Esempio n. 1
0
 public void writeToParcel(Parcel paramParcel, int paramInt)
 {
   paramParcel.writeIntArray(this.mOps);
   paramParcel.writeInt(this.mTransition);
   paramParcel.writeInt(this.mTransitionStyle);
   paramParcel.writeString(this.mName);
   paramParcel.writeInt(this.mIndex);
   paramParcel.writeInt(this.mBreadCrumbTitleRes);
   TextUtils.writeToParcel(this.mBreadCrumbTitleText, paramParcel, 0);
   paramParcel.writeInt(this.mBreadCrumbShortTitleRes);
   TextUtils.writeToParcel(this.mBreadCrumbShortTitleText, paramParcel, 0);
 }
 public void writeToParcel(Parcel paramParcel, int paramInt)
 {
   paramParcel.writeIntArray(a);
   paramParcel.writeInt(b);
   paramParcel.writeInt(c);
   paramParcel.writeString(d);
   paramParcel.writeInt(e);
   paramParcel.writeInt(f);
   TextUtils.writeToParcel(g, paramParcel, 0);
   paramParcel.writeInt(h);
   TextUtils.writeToParcel(i, paramParcel, 0);
   paramParcel.writeStringList(j);
   paramParcel.writeStringList(k);
 }
 public void writeToParcel(Parcel dest, int parcelableFlags) {
   if (activityInfo != null) {
     dest.writeInt(1);
     activityInfo.writeToParcel(dest, parcelableFlags);
   } else if (serviceInfo != null) {
     dest.writeInt(2);
     serviceInfo.writeToParcel(dest, parcelableFlags);
   } else if (providerInfo != null) {
     dest.writeInt(3);
     providerInfo.writeToParcel(dest, parcelableFlags);
   } else {
     dest.writeInt(0);
   }
   if (filter != null) {
     dest.writeInt(1);
     filter.writeToParcel(dest, parcelableFlags);
   } else {
     dest.writeInt(0);
   }
   dest.writeInt(priority);
   dest.writeInt(preferredOrder);
   dest.writeInt(match);
   dest.writeInt(specificIndex);
   dest.writeInt(labelRes);
   TextUtils.writeToParcel(nonLocalizedLabel, dest, parcelableFlags);
   dest.writeInt(icon);
   dest.writeString(resolvePackageName);
   dest.writeInt(system ? 1 : 0);
 }
 public void writeToParcel(Parcel dest, int parcelableFlags) {
   super.writeToParcel(dest, parcelableFlags);
   dest.writeString(mSourcePackage);
   dest.writeInt(mLabelRes);
   TextUtils.writeToParcel(mNonLocalizedLabel, dest, parcelableFlags);
   dest.writeInt(mIcon);
 }
 public void writeToParcel(Parcel dest, int flags) {
   dest.writeInt(id);
   dest.writeInt(persistentId);
   if (baseIntent != null) {
     dest.writeInt(1);
     baseIntent.writeToParcel(dest, 0);
   } else {
     dest.writeInt(0);
   }
   ComponentName.writeToParcel(origActivity, dest);
   TextUtils.writeToParcel(description, dest, Parcelable.PARCELABLE_WRITE_RETURN_VALUE);
 }
 @Override
 public void writeToParcel(Parcel dest, int flags) {
   dest.writeLong(id);
   dest.writeInt(titleRes);
   TextUtils.writeToParcel(title, dest, flags);
   dest.writeInt(summaryRes);
   TextUtils.writeToParcel(summary, dest, flags);
   dest.writeInt(breadCrumbTitleRes);
   TextUtils.writeToParcel(breadCrumbTitle, dest, flags);
   dest.writeInt(breadCrumbShortTitleRes);
   TextUtils.writeToParcel(breadCrumbShortTitle, dest, flags);
   dest.writeInt(iconRes);
   dest.writeString(fragment);
   dest.writeBundle(fragmentArguments);
   if (intent != null) {
     dest.writeInt(1);
     intent.writeToParcel(dest, flags);
   } else {
     dest.writeInt(0);
   }
   dest.writeBundle(extras);
 }
 public void writeToParcel(Parcel dest, int flags) {
   dest.writeInt(id);
   ComponentName.writeToParcel(baseActivity, dest);
   ComponentName.writeToParcel(topActivity, dest);
   if (thumbnail != null) {
     dest.writeInt(1);
     thumbnail.writeToParcel(dest, 0);
   } else {
     dest.writeInt(0);
   }
   TextUtils.writeToParcel(description, dest, Parcelable.PARCELABLE_WRITE_RETURN_VALUE);
   dest.writeInt(numActivities);
   dest.writeInt(numRunning);
 }
 @Override
 public void setSelectedText(java.lang.CharSequence selectedText, int seq)
     throws android.os.RemoteException {
   android.os.Parcel _data = android.os.Parcel.obtain();
   try {
     _data.writeInterfaceToken(DESCRIPTOR);
     if ((selectedText != null)) {
       _data.writeInt(1);
       android.text.TextUtils.writeToParcel(selectedText, _data, 0);
     } else {
       _data.writeInt(0);
     }
     _data.writeInt(seq);
     mRemote.transact(
         Stub.TRANSACTION_setSelectedText, _data, null, android.os.IBinder.FLAG_ONEWAY);
   } finally {
     _data.recycle();
   }
 }