Java Code Examples for android.text.TextUtils.writeToParcel()

The following are Jave code examples for showing how to use writeToParcel() of the android.text.TextUtils class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: android_ui   File: EditLayout.java   Source Code and License Vote up 5 votes
/**
 */
@Override
public void writeToParcel(@NonNull Parcel dest, int flags) {
	super.writeToParcel(dest, flags);
	TextUtils.writeToParcel(text, dest, flags);
	TextUtils.writeToParcel(hint, dest, flags);
	dest.writeInt(inputType);
	dest.writeInt(maxLength);
	dest.writeInt(lines);
	dest.writeInt(minLines);
	dest.writeInt(maxLines);
}
 
Example 2
Project: android_ui   File: SearchView.java   Source Code and License Vote up 5 votes
/**
 */
@Override
public void writeToParcel(@NonNull Parcel dest, int flags) {
	super.writeToParcel(dest, flags);
	TextUtils.writeToParcel(hint, dest, flags);
	TextUtils.writeToParcel(query, dest, flags);
}
 
Example 3
Project: android_ui   File: InputLayout.java   Source Code and License Vote up 5 votes
/**
 */
@Override
public void writeToParcel(@NonNull Parcel dest, int flags) {
	super.writeToParcel(dest, flags);
	TextUtils.writeToParcel(label, dest, flags);
	TextUtils.writeToParcel(note, dest, flags);
	TextUtils.writeToParcel(error, dest, flags);
	TextUtils.writeToParcel(constraint, dest, flags);
}
 
Example 4
Project: android_ui   File: SpinnerLayout.java   Source Code and License Vote up 5 votes
/**
 */
@Override
public void writeToParcel(@NonNull Parcel dest, int flags) {
	super.writeToParcel(dest, flags);
	dest.writeInt(selection);
	TextUtils.writeToParcel(prompt, dest, flags);
}
 
Example 5
Project: mobile-store   File: AppSecurityPermissions.java   Source Code and License Vote up 5 votes
public void setPermission(MyPermissionGroupInfo grp, MyPermissionInfo perm,
                          boolean first, CharSequence newPermPrefix) {
    group = grp;
    this.perm = perm;

    ImageView permGrpIcon = (ImageView) findViewById(R.id.perm_icon);
    TextView permNameView = (TextView) findViewById(R.id.perm_name);

    PackageManager pm = getContext().getPackageManager();
    Drawable icon = null;
    if (first) {
        icon = grp.loadGroupIcon(getContext(), pm);
    }
    CharSequence label = perm.label;
    if (perm.newPerm && newPermPrefix != null) {
        // If this is a new permission, format it appropriately.
        SpannableStringBuilder builder = new SpannableStringBuilder();
        Parcel parcel = Parcel.obtain();
        TextUtils.writeToParcel(newPermPrefix, parcel, 0);
        parcel.setDataPosition(0);
        CharSequence newStr = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(parcel);
        parcel.recycle();
        builder.append(newStr);
        builder.append(label);
        label = builder;
    }

    permGrpIcon.setImageDrawable(icon);
    permGrpIcon.setColorFilter(0xff757575);
    permNameView.setText(label);
    setOnClickListener(this);
}
 
Example 6
Project: boohee_v5.6   File: IMediaControllerCallback.java   Source Code and License Vote up 5 votes
public void onQueueTitleChanged(CharSequence title) throws RemoteException {
    Parcel _data = Parcel.obtain();
    try {
        _data.writeInterfaceToken(Stub.DESCRIPTOR);
        if (title != null) {
            _data.writeInt(1);
            TextUtils.writeToParcel(title, _data, 0);
        } else {
            _data.writeInt(0);
        }
        this.mRemote.transact(6, _data, null, 1);
    } finally {
        _data.recycle();
    }
}
 
Example 7
Project: Hands-On-Android-UI-Development   File: DatePickerLayout.java   Source Code and License Vote up 5 votes
@Override
public void writeToParcel(final Parcel out, final int flags) {
    super.writeToParcel(out, flags);

    out.writeLong(timestamp);
    TextUtils.writeToParcel(label, out, flags);
}
 
Example 8
Project: Hands-On-Android-UI-Development   File: DatePickerLayout.java   Source Code and License Vote up 5 votes
@Override
public void writeToParcel(final Parcel out, final int flags) {
    super.writeToParcel(out, flags);

    out.writeLong(timestamp);
    TextUtils.writeToParcel(label, out, flags);
}
 
Example 9
Project: Hands-On-Android-UI-Development   File: DatePickerLayout.java   Source Code and License Vote up 5 votes
@Override
public void writeToParcel(final Parcel out, final int flags) {
    super.writeToParcel(out, flags);

    out.writeLong(timestamp);
    TextUtils.writeToParcel(label, out, flags);
}
 
Example 10
Project: Hands-On-Android-UI-Development   File: DatePickerLayout.java   Source Code and License Vote up 5 votes
@Override
public void writeToParcel(final Parcel out, final int flags) {
    super.writeToParcel(out, flags);

    out.writeLong(timestamp);
    TextUtils.writeToParcel(label, out, flags);
}
 
Example 11
Project: ChromeLikeTabSwitcher   File: Tab.java   Source Code and License Vote up 5 votes
@Override
public final void writeToParcel(final Parcel parcel, final int flags) {
    TextUtils.writeToParcel(title, parcel, flags);
    parcel.writeInt(iconId);
    parcel.writeParcelable(iconBitmap, flags);
    parcel.writeInt(closeable ? 1 : 0);
    parcel.writeInt(closeButtonIconId);
    parcel.writeParcelable(closeButtonIconBitmap, flags);
    parcel.writeParcelable(backgroundColor, flags);
    parcel.writeInt(contentBackgroundColor);
    parcel.writeParcelable(titleTextColor, flags);
    parcel.writeInt(progressBarShown ? 1 : 0);
    parcel.writeInt(progressBarColor);
    parcel.writeBundle(parameters);
}
 
Example 12
Project: letv   File: BackStackState.java   Source Code and License Vote up 5 votes
public void writeToParcel(Parcel dest, int flags) {
    dest.writeIntArray(this.mOps);
    dest.writeInt(this.mTransition);
    dest.writeInt(this.mTransitionStyle);
    dest.writeString(this.mName);
    dest.writeInt(this.mIndex);
    dest.writeInt(this.mBreadCrumbTitleRes);
    TextUtils.writeToParcel(this.mBreadCrumbTitleText, dest, 0);
    dest.writeInt(this.mBreadCrumbShortTitleRes);
    TextUtils.writeToParcel(this.mBreadCrumbShortTitleText, dest, 0);
    dest.writeStringList(this.mSharedElementSourceNames);
    dest.writeStringList(this.mSharedElementTargetNames);
}
 
Example 13
Project: AssistantBySDK   File: SwitchButton.java   Source Code and License Vote up 4 votes
@Override
public void writeToParcel(Parcel out, int flags) {
	super.writeToParcel(out, flags);
	TextUtils.writeToParcel(onText, out, flags);
	TextUtils.writeToParcel(offText, out, flags);
}
 
Example 14
Project: boohee_v5.6   File: PlaybackStateCompat.java   Source Code and License Vote up 4 votes
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this.mAction);
    TextUtils.writeToParcel(this.mName, dest, flags);
    dest.writeInt(this.mIcon);
    dest.writeBundle(this.mExtras);
}
 
Example 15
Project: android-titanium-imagecropper   File: CropImageOptions.java   Source Code and License Vote up 4 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
  dest.writeInt(cropShape.ordinal());
  dest.writeFloat(snapRadius);
  dest.writeFloat(touchRadius);
  dest.writeInt(guidelines.ordinal());
  dest.writeInt(scaleType.ordinal());
  dest.writeByte((byte) (showCropOverlay ? 1 : 0));
  dest.writeByte((byte) (showProgressBar ? 1 : 0));
  dest.writeByte((byte) (autoZoomEnabled ? 1 : 0));
  dest.writeByte((byte) (multiTouchEnabled ? 1 : 0));
  dest.writeInt(maxZoom);
  dest.writeFloat(initialCropWindowPaddingRatio);
  dest.writeByte((byte) (fixAspectRatio ? 1 : 0));
  dest.writeInt(aspectRatioX);
  dest.writeInt(aspectRatioY);
  dest.writeFloat(borderLineThickness);
  dest.writeInt(borderLineColor);
  dest.writeFloat(borderCornerThickness);
  dest.writeFloat(borderCornerOffset);
  dest.writeFloat(borderCornerLength);
  dest.writeInt(borderCornerColor);
  dest.writeFloat(guidelinesThickness);
  dest.writeInt(guidelinesColor);
  dest.writeInt(backgroundColor);
  dest.writeInt(minCropWindowWidth);
  dest.writeInt(minCropWindowHeight);
  dest.writeInt(minCropResultWidth);
  dest.writeInt(minCropResultHeight);
  dest.writeInt(maxCropResultWidth);
  dest.writeInt(maxCropResultHeight);
  TextUtils.writeToParcel(activityTitle, dest, flags);
  dest.writeInt(activityMenuIconColor);
  dest.writeParcelable(outputUri, flags);
  dest.writeString(outputCompressFormat.name());
  dest.writeInt(outputCompressQuality);
  dest.writeInt(outputRequestWidth);
  dest.writeInt(outputRequestHeight);
  dest.writeInt(outputRequestSizeOptions.ordinal());
  dest.writeInt(noOutputImage ? 1 : 0);
  dest.writeParcelable(initialCropWindowRectangle, flags);
  dest.writeInt(initialRotation);
  dest.writeByte((byte) (allowRotation ? 1 : 0));
  dest.writeByte((byte) (allowFlipping ? 1 : 0));
  dest.writeByte((byte) (allowCounterRotation ? 1 : 0));
  dest.writeInt(rotationDegrees);
  dest.writeByte((byte) (flipHorizontally ? 1 : 0));
  dest.writeByte((byte) (flipVertically ? 1 : 0));
  TextUtils.writeToParcel(cropMenuCropButtonTitle, dest, flags);
  dest.writeInt(cropMenuCropButtonIcon);
}
 
Example 16
Project: sealtalk-android-master   File: SwitchButton.java   Source Code and License Vote up 4 votes
@Override
public void writeToParcel(Parcel out, int flags) {
    super.writeToParcel(out, flags);
    TextUtils.writeToParcel(onText, out, flags);
    TextUtils.writeToParcel(offText, out, flags);
}
 
Example 17
Project: Sega   File: SearchItem.java   Source Code and License Vote up 4 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.icon);
    TextUtils.writeToParcel(this.text, dest, flags); // dest.writeValue(this.text);
}
 
Example 18
Project: cwac-crossport   File: TextInputLayout.java   Source Code and License Vote up 4 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
  super.writeToParcel(dest, flags);
  TextUtils.writeToParcel(error, dest, flags);
        dest.writeInt(isPasswordToggledVisible ? 1 : 0);
}
 
Example 19
Project: letv   File: PlaybackStateCompat.java   Source Code and License Vote up 4 votes
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this.mAction);
    TextUtils.writeToParcel(this.mName, dest, flags);
    dest.writeInt(this.mIcon);
    dest.writeBundle(this.mExtras);
}
 
Example 20
Project: boohee_v5.6   File: TextInputLayout.java   Source Code and License Vote up 4 votes
public void writeToParcel(Parcel dest, int flags) {
    super.writeToParcel(dest, flags);
    TextUtils.writeToParcel(this.error, dest, flags);
}