List of usage examples for android.text TextUtils CHAR_SEQUENCE_CREATOR
Parcelable.Creator CHAR_SEQUENCE_CREATOR
To view the source code for android.text TextUtils CHAR_SEQUENCE_CREATOR.
Click Source Link
From source file:Main.java
public static Spanned spannedFromByteArray(byte[] byteArray) { Parcel obtain = Parcel.obtain();/*from w w w .j a va2 s . c o m*/ obtain.unmarshall(byteArray, 0, byteArray.length); obtain.setDataPosition(0); Spanned result = (Spanned) TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(obtain); obtain.recycle(); return result; }
From source file:de.mrapp.android.dialog.datastructure.ViewPagerItem.java
/** * Creates a new representation of one item of a view pager. * * @param source/*w w w . j a v a 2 s.c om*/ * The source, the representation should be created from, as an instance of the class * {@link Parcel}. The source may not be null */ @SuppressWarnings("unchecked") private ViewPagerItem(@NonNull final Parcel source) { this.title = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source); this.fragmentClass = (Class<? extends Fragment>) source.readSerializable(); this.arguments = source.readBundle(getClass().getClassLoader()); }
From source file:de.mrapp.android.preference.activity.PreferenceHeader.java
/** * Creates a new navigation item, which categorizes multiple preferences. * * @param source//from w w w . ja v a 2 s.c o m * The parcel, the navigation item should be created from, as an instance of the class * {@link Parcel}. The parcel may not be null */ @SuppressWarnings("deprecation") private PreferenceHeader(@NonNull final Parcel source) { setTitle(TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source)); setSummary(TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source)); setBreadCrumbTitle(TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source)); setBreadCrumbShortTitle(TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source)); setIcon(new BitmapDrawable((Bitmap) source.readParcelable(Bitmap.class.getClassLoader()))); setFragment(source.readString()); setExtras(source.readBundle(getClass().getClassLoader())); if (source.readInt() != 0) { setIntent(Intent.CREATOR.createFromParcel(source)); } }
From source file:com.chuhan.privatecalc.fragment.os.BackStackState.java
public BackStackState(Parcel in) { mOps = in.createIntArray();/*w ww . ja v a2s .com*/ mTransition = in.readInt(); mTransitionStyle = in.readInt(); mName = in.readString(); mIndex = in.readInt(); mBreadCrumbTitleRes = in.readInt(); mBreadCrumbTitleText = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in); mBreadCrumbShortTitleRes = in.readInt(); mBreadCrumbShortTitleText = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in); }
From source file:com.achep.base.dashboard.DashboardCategory.java
private DashboardCategory(Parcel in) { titleRes = in.readInt();/*from w w w .j av a 2 s . c o m*/ title = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in); final int count = in.readInt(); for (int n = 0; n < count; n++) { DashboardTile tile = DashboardTile.CREATOR.createFromParcel(in); tiles.add(tile); } }
From source file:android.app.Notification.java
/** * Unflatten the notification from a parcel. *//*from w ww . j a v a2 s .c o m*/ public Notification(Parcel parcel) { int version = parcel.readInt(); when = parcel.readLong(); icon = parcel.readInt(); number = parcel.readInt(); if (parcel.readInt() != 0) { contentIntent = PendingIntent.CREATOR.createFromParcel(parcel); } if (parcel.readInt() != 0) { deleteIntent = PendingIntent.CREATOR.createFromParcel(parcel); } if (parcel.readInt() != 0) { tickerText = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(parcel); } if (parcel.readInt() != 0) { tickerView = RemoteViews.CREATOR.createFromParcel(parcel); } if (parcel.readInt() != 0) { contentView = RemoteViews.CREATOR.createFromParcel(parcel); } if (parcel.readInt() != 0) { largeIcon = Bitmap.CREATOR.createFromParcel(parcel); } defaults = parcel.readInt(); flags = parcel.readInt(); if (parcel.readInt() != 0) { sound = Uri.CREATOR.createFromParcel(parcel); } audioStreamType = parcel.readInt(); vibrate = parcel.createLongArray(); ledARGB = parcel.readInt(); ledOnMS = parcel.readInt(); ledOffMS = parcel.readInt(); iconLevel = parcel.readInt(); if (parcel.readInt() != 0) { fullScreenIntent = PendingIntent.CREATOR.createFromParcel(parcel); } priority = parcel.readInt(); kind = parcel.createStringArray(); // may set kind to null if (parcel.readInt() != 0) { extras = parcel.readBundle(); } actions = parcel.createTypedArray(Action.CREATOR); if (parcel.readInt() != 0) { bigContentView = RemoteViews.CREATOR.createFromParcel(parcel); } }