Beispiel #1
0
 @Override
 public void writeToParcel(Parcel dest, int flags) {
   dest.writeLong(id);
   dest.writeString(userId);
   dest.writeString(labelCode);
   dest.writeString(nickname);
   dest.writeString(mobile);
   dest.writeString(remarkName);
   dest.writeInt(gender);
   dest.writeLong(birthday);
   dest.writeInt(age);
   dest.writeInt(constellation);
   dest.writeString(province);
   dest.writeString(city);
   dest.writeString(school);
   dest.writeInt(height);
   dest.writeString(job);
   dest.writeString(signature);
   dest.writeString(avatar);
   dest.writeString(avatarThumb);
   dest.writeTypedArray(labels, flags);
   dest.writeParcelable(location, flags);
   dest.writeString(appearanceFace);
   dest.writeParcelable(theme, flags);
   dest.writeTypedArray(albumPhotos, flags);
   dest.writeTypedArray(labelStories, flags);
   dest.writeTypedArray(interestTypes, flags);
   dest.writeTypedArray(userTags, flags);
   dest.writeInt(visitorCount);
   dest.writeInt(myPhotoTotal);
 }
 public void writeToParcel(Parcel dest, int parcelableFlags) {
   dest.writeString(packageName);
   dest.writeInt(versionCode);
   dest.writeString(versionName);
   dest.writeString(sharedUserId);
   // M
   // Theme feature
   dest.writeInt(isThemePackage);
   dest.writeInt(themeNameId);
   // M
   dest.writeInt(sharedUserLabel);
   if (applicationInfo != null) {
     dest.writeInt(1);
     applicationInfo.writeToParcel(dest, parcelableFlags);
   } else {
     dest.writeInt(0);
   }
   dest.writeLong(firstInstallTime);
   dest.writeLong(lastUpdateTime);
   dest.writeIntArray(gids);
   dest.writeTypedArray(activities, parcelableFlags);
   dest.writeTypedArray(receivers, parcelableFlags);
   dest.writeTypedArray(services, parcelableFlags);
   dest.writeTypedArray(providers, parcelableFlags);
   dest.writeTypedArray(instrumentation, parcelableFlags);
   dest.writeTypedArray(permissions, parcelableFlags);
   dest.writeStringArray(requestedPermissions);
   dest.writeTypedArray(signatures, parcelableFlags);
   dest.writeTypedArray(configPreferences, parcelableFlags);
   dest.writeTypedArray(reqFeatures, parcelableFlags);
   dest.writeInt(installLocation);
 }
 @Override
 public void writeToParcel(Parcel parcel, int flags) {
   parcel.writeInt(mTrips.length);
   parcel.writeTypedArray(mTrips, flags);
   parcel.writeInt(mSubscriptions.length);
   parcel.writeTypedArray(mSubscriptions, flags);
   parcel.writeParcelable(mIndex, flags);
   parcel.writeParcelable(mPreamble, flags);
   parcel.writeParcelable(mInfo, flags);
   parcel.writeParcelable(mCredit, flags);
 }
  @Override
  public void writeToParcel(final Parcel dest, final int flags) {
    dest.writeSerializable(standard);

    dest.writeString(payeeName);
    dest.writeString(payeeVerifiedBy);

    if (outputs != null) {
      dest.writeInt(outputs.length);
      dest.writeTypedArray(outputs, 0);
    } else {
      dest.writeInt(0);
    }

    dest.writeString(memo);

    dest.writeString(paymentUrl);

    if (payeeData != null) {
      dest.writeInt(payeeData.length);
      dest.writeByteArray(payeeData);
    } else {
      dest.writeInt(0);
    }

    dest.writeString(paymentRequestUrl);
  }
 @Override
 public void writeToParcel(Parcel dest, int flags) {
   dest.writeString(name);
   dest.writeString(fullName);
   dest.writeString(key);
   dest.writeTypedArray(subItems, flags);
 }
 @DSSink({DSSinkKind.SENSITIVE_UNCATEGORIZED})
 @DSGenerator(
     tool_name = "Doppelganger",
     tool_version = "2.0",
     generated_on = "2013-12-30 12:34:48.941 -0500",
     hash_original_method = "45D9E31DA8DC0720E2897CA268CD8E20",
     hash_generated_method = "73D8B8C603E33D973013EB0774B0CFD7")
 @Override
 public void writeToParcel(Parcel out, int parcelableFlags) {
   super.writeToParcel(out, parcelableFlags);
   out.writeString(authority);
   out.writeString(readPermission);
   out.writeString(writePermission);
   out.writeInt(grantUriPermissions ? 1 : 0);
   out.writeTypedArray(uriPermissionPatterns, parcelableFlags);
   out.writeTypedArray(pathPermissions, parcelableFlags);
   out.writeInt(multiprocess ? 1 : 0);
   out.writeInt(initOrder);
   out.writeInt(isSyncable ? 1 : 0);
 }
 @Override
 public void writeToParcel(Parcel dest, int flags) {
   dest.writeString(name);
   dest.writeTypedArray(users, flags);
   final Bundle bundle = new Bundle();
   if (values != null) {
     for (Entry<String, ParcelableBindingValue> entry : values.entrySet()) {
       bundle.putParcelable(entry.getKey(), entry.getValue());
     }
   }
   dest.writeBundle(bundle);
 }
 public final void a(ParcelableCollaborator[] paramArrayOfParcelableCollaborator) {
   Parcel localParcel1 = Parcel.obtain();
   Parcel localParcel2 = Parcel.obtain();
   try {
     localParcel1.writeInterfaceToken(
         "com.google.android.gms.drive.realtime.internal.ICollaboratorsCallback");
     localParcel1.writeTypedArray(paramArrayOfParcelableCollaborator, 0);
     a.transact(1, localParcel1, localParcel2, 0);
     localParcel2.readException();
     return;
   } finally {
     localParcel2.recycle();
     localParcel1.recycle();
   }
 }
Beispiel #9
0
 public void writeToParcel(Parcel parcel, int flags) {
   super.writeToParcel(parcel, flags);
   parcel.writeParcelable(mManfData, flags);
   parcel.writeInt(mApplications.length);
   parcel.writeTypedArray(mApplications, flags);
 }
 public boolean onTransact(int code, Parcel data, Parcel reply, int flags)
     throws RemoteException {
   int i = 0;
   Account _arg0;
   String _result;
   IAccountManagerResponse _arg02;
   Account _arg1;
   String _arg12;
   Bundle _arg2;
   boolean _arg3;
   String _arg22;
   boolean _arg4;
   Bundle _arg5;
   switch (code) {
     case TRANSACTION_getPassword /*1*/:
       data.enforceInterface(DESCRIPTOR);
       if (data.readInt() != 0) {
         _arg0 = (Account) Account.CREATOR.createFromParcel(data);
       } else {
         _arg0 = null;
       }
       _result = getPassword(_arg0);
       reply.writeNoException();
       reply.writeString(_result);
       return true;
     case TRANSACTION_getUserData /*2*/:
       data.enforceInterface(DESCRIPTOR);
       if (data.readInt() != 0) {
         _arg0 = (Account) Account.CREATOR.createFromParcel(data);
       } else {
         _arg0 = null;
       }
       _result = getUserData(_arg0, data.readString());
       reply.writeNoException();
       reply.writeString(_result);
       return true;
     case TRANSACTION_getAccounts /*3*/:
       data.enforceInterface(DESCRIPTOR);
       Account[] _result2 = getAccounts(data.readString());
       reply.writeNoException();
       reply.writeTypedArray(_result2, TRANSACTION_getPassword);
       return true;
     case TRANSACTION_hasFeatures /*4*/:
       data.enforceInterface(DESCRIPTOR);
       _arg02 =
           com.xiaomi.accounts.IAccountManagerResponse.Stub.asInterface(data.readStrongBinder());
       if (data.readInt() != 0) {
         _arg1 = (Account) Account.CREATOR.createFromParcel(data);
       } else {
         _arg1 = null;
       }
       hasFeatures(_arg02, _arg1, data.createStringArray());
       reply.writeNoException();
       return true;
     case TRANSACTION_getAccountsByFeatures /*5*/:
       data.enforceInterface(DESCRIPTOR);
       getAccountsByFeatures(
           com.xiaomi.accounts.IAccountManagerResponse.Stub.asInterface(data.readStrongBinder()),
           data.readString(),
           data.createStringArray());
       reply.writeNoException();
       return true;
     case TRANSACTION_addAccount /*6*/:
       data.enforceInterface(DESCRIPTOR);
       if (data.readInt() != 0) {
         _arg0 = (Account) Account.CREATOR.createFromParcel(data);
       } else {
         _arg0 = null;
       }
       _arg12 = data.readString();
       if (data.readInt() != 0) {
         _arg2 = (Bundle) Bundle.CREATOR.createFromParcel(data);
       } else {
         _arg2 = null;
       }
       boolean _result3 = addAccount(_arg0, _arg12, _arg2);
       reply.writeNoException();
       if (_result3) {
         i = TRANSACTION_getPassword;
       }
       reply.writeInt(i);
       return true;
     case TRANSACTION_removeAccount /*7*/:
       data.enforceInterface(DESCRIPTOR);
       _arg02 =
           com.xiaomi.accounts.IAccountManagerResponse.Stub.asInterface(data.readStrongBinder());
       if (data.readInt() != 0) {
         _arg1 = (Account) Account.CREATOR.createFromParcel(data);
       } else {
         _arg1 = null;
       }
       removeAccount(_arg02, _arg1);
       reply.writeNoException();
       return true;
     case TRANSACTION_invalidateAuthToken /*8*/:
       data.enforceInterface(DESCRIPTOR);
       invalidateAuthToken(data.readString(), data.readString());
       reply.writeNoException();
       return true;
     case TRANSACTION_peekAuthToken /*9*/:
       data.enforceInterface(DESCRIPTOR);
       if (data.readInt() != 0) {
         _arg0 = (Account) Account.CREATOR.createFromParcel(data);
       } else {
         _arg0 = null;
       }
       _result = peekAuthToken(_arg0, data.readString());
       reply.writeNoException();
       reply.writeString(_result);
       return true;
     case TRANSACTION_setAuthToken /*10*/:
       data.enforceInterface(DESCRIPTOR);
       if (data.readInt() != 0) {
         _arg0 = (Account) Account.CREATOR.createFromParcel(data);
       } else {
         _arg0 = null;
       }
       setAuthToken(_arg0, data.readString(), data.readString());
       reply.writeNoException();
       return true;
     case TRANSACTION_setPassword /*11*/:
       data.enforceInterface(DESCRIPTOR);
       if (data.readInt() != 0) {
         _arg0 = (Account) Account.CREATOR.createFromParcel(data);
       } else {
         _arg0 = null;
       }
       setPassword(_arg0, data.readString());
       reply.writeNoException();
       return true;
     case TRANSACTION_clearPassword /*12*/:
       data.enforceInterface(DESCRIPTOR);
       if (data.readInt() != 0) {
         _arg0 = (Account) Account.CREATOR.createFromParcel(data);
       } else {
         _arg0 = null;
       }
       clearPassword(_arg0);
       reply.writeNoException();
       return true;
     case TRANSACTION_setUserData /*13*/:
       data.enforceInterface(DESCRIPTOR);
       if (data.readInt() != 0) {
         _arg0 = (Account) Account.CREATOR.createFromParcel(data);
       } else {
         _arg0 = null;
       }
       setUserData(_arg0, data.readString(), data.readString());
       reply.writeNoException();
       return true;
     case TRANSACTION_updateAppPermission /*14*/:
       data.enforceInterface(DESCRIPTOR);
       if (data.readInt() != 0) {
         _arg0 = (Account) Account.CREATOR.createFromParcel(data);
       } else {
         _arg0 = null;
       }
       _arg12 = data.readString();
       int _arg23 = data.readInt();
       if (data.readInt() != 0) {
         _arg3 = true;
       } else {
         _arg3 = false;
       }
       updateAppPermission(_arg0, _arg12, _arg23, _arg3);
       reply.writeNoException();
       return true;
     case TRANSACTION_getAuthToken /*15*/:
       data.enforceInterface(DESCRIPTOR);
       _arg02 =
           com.xiaomi.accounts.IAccountManagerResponse.Stub.asInterface(data.readStrongBinder());
       if (data.readInt() != 0) {
         _arg1 = (Account) Account.CREATOR.createFromParcel(data);
       } else {
         _arg1 = null;
       }
       _arg22 = data.readString();
       if (data.readInt() != 0) {
         _arg3 = true;
       } else {
         _arg3 = false;
       }
       if (data.readInt() != 0) {
         _arg4 = true;
       } else {
         _arg4 = false;
       }
       if (data.readInt() != 0) {
         _arg5 = (Bundle) Bundle.CREATOR.createFromParcel(data);
       } else {
         _arg5 = null;
       }
       getAuthToken(_arg02, _arg1, _arg22, _arg3, _arg4, _arg5);
       reply.writeNoException();
       return true;
     case TRANSACTION_addAcount /*16*/:
       data.enforceInterface(DESCRIPTOR);
       _arg02 =
           com.xiaomi.accounts.IAccountManagerResponse.Stub.asInterface(data.readStrongBinder());
       _arg12 = data.readString();
       _arg22 = data.readString();
       String[] _arg32 = data.createStringArray();
       if (data.readInt() != 0) {
         _arg4 = true;
       } else {
         _arg4 = false;
       }
       if (data.readInt() != 0) {
         _arg5 = (Bundle) Bundle.CREATOR.createFromParcel(data);
       } else {
         _arg5 = null;
       }
       addAcount(_arg02, _arg12, _arg22, _arg32, _arg4, _arg5);
       reply.writeNoException();
       return true;
     case TRANSACTION_updateCredentials /*17*/:
       Bundle _arg42;
       data.enforceInterface(DESCRIPTOR);
       _arg02 =
           com.xiaomi.accounts.IAccountManagerResponse.Stub.asInterface(data.readStrongBinder());
       if (data.readInt() != 0) {
         _arg1 = (Account) Account.CREATOR.createFromParcel(data);
       } else {
         _arg1 = null;
       }
       _arg22 = data.readString();
       if (data.readInt() != 0) {
         _arg3 = true;
       } else {
         _arg3 = false;
       }
       if (data.readInt() != 0) {
         _arg42 = (Bundle) Bundle.CREATOR.createFromParcel(data);
       } else {
         _arg42 = null;
       }
       updateCredentials(_arg02, _arg1, _arg22, _arg3, _arg42);
       reply.writeNoException();
       return true;
     case TRANSACTION_editProperties /*18*/:
       boolean _arg24;
       data.enforceInterface(DESCRIPTOR);
       _arg02 =
           com.xiaomi.accounts.IAccountManagerResponse.Stub.asInterface(data.readStrongBinder());
       _arg12 = data.readString();
       if (data.readInt() != 0) {
         _arg24 = true;
       } else {
         _arg24 = false;
       }
       editProperties(_arg02, _arg12, _arg24);
       reply.writeNoException();
       return true;
     case TRANSACTION_confirmCredentials /*19*/:
       data.enforceInterface(DESCRIPTOR);
       _arg02 =
           com.xiaomi.accounts.IAccountManagerResponse.Stub.asInterface(data.readStrongBinder());
       if (data.readInt() != 0) {
         _arg1 = (Account) Account.CREATOR.createFromParcel(data);
       } else {
         _arg1 = null;
       }
       if (data.readInt() != 0) {
         _arg2 = (Bundle) Bundle.CREATOR.createFromParcel(data);
       } else {
         _arg2 = null;
       }
       if (data.readInt() != 0) {
         _arg3 = true;
       } else {
         _arg3 = false;
       }
       confirmCredentials(_arg02, _arg1, _arg2, _arg3);
       reply.writeNoException();
       return true;
     case TRANSACTION_getAuthTokenLabel /*20*/:
       data.enforceInterface(DESCRIPTOR);
       getAuthTokenLabel(
           com.xiaomi.accounts.IAccountManagerResponse.Stub.asInterface(data.readStrongBinder()),
           data.readString(),
           data.readString());
       reply.writeNoException();
       return true;
     case 1598968902:
       reply.writeString(DESCRIPTOR);
       return true;
     default:
       return super.onTransact(code, data, reply, flags);
   }
 }