예제 #1
0
 @Override
 public void writeToParcel(Parcel dest, int flags) {
   dest.writeByteArray(wapData);
   dest.writeInt(dataIndex);
   dest.writeString(contentType);
   dest.writeInt(binaryContentType);
   dest.writeString(applicationId);
   dest.writeInt(binaryApplicationId);
   dest.writeString(mailBox);
   dest.writeByteArray(timestamp);
   dest.writeString(serviceName);
 }
예제 #2
0
  @Override
  public void writeToParcel(final Parcel dest, final int flags) {
    dest.writeSerializable(address.getParameters());
    dest.writeByteArray(address.getHash160());

    dest.writeString(label);
  }
예제 #3
0
 @Test
 public void testWriteAndCreateByteArray_lengthZero() {
   byte[] bytes = new byte[] {};
   parcel.writeByteArray(bytes);
   byte[] actualBytes = parcel.createByteArray();
   assertTrue(Arrays.equals(bytes, actualBytes));
 }
예제 #4
0
 /**
  * Writes the contents of this object to a parcel
  *
  * @param parcel The parcel to write the data to.
  * @param flags this parameter is ignored
  */
 @Override
 public void writeToParcel(Parcel parcel, int flags) {
   parcel.writeByteArray(getPayload());
   parcel.writeInt(getQos());
   parcel.writeBooleanArray(new boolean[] {isRetained(), isDuplicate()});
   parcel.writeString(messageId);
 }
예제 #5
0
 @Override
 public void writeToParcel(Parcel out, int arg1) {
   out.writeLong(timeStamp);
   out.writeInt(frameSize);
   out.writeByteArray(frameBytesData);
   out.writeString(cachePath);
 }
예제 #6
0
 @Override
 public void writeToParcel(Parcel dest, int flags) {
   dest.writeInt(statusCode);
   dest.writeSerializable(headers);
   dest.writeString(response);
   dest.writeByteArray(rawResponse);
 }
예제 #7
0
 public void writeToParcel(Parcel dest, int flags) {
   dest.writeByteArray(mBytes);
   dest.writeString(mExpectedFingerprint);
   dest.writeString(mKeyIdHex);
   dest.writeString(mKeybaseName);
   dest.writeString(mFbUsername);
 }
  @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);
  }
예제 #9
0
 public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags)
     throws android.os.RemoteException {
   switch (code) {
     case INTERFACE_TRANSACTION:
       {
         reply.writeString(DESCRIPTOR);
         return true;
       }
     case TRANSACTION_readFile:
       {
         data.enforceInterface(DESCRIPTOR);
         int _arg0;
         _arg0 = data.readInt();
         byte[] _result = this.readFile(_arg0);
         reply.writeNoException();
         reply.writeByteArray(_result);
         return true;
       }
     case TRANSACTION_writeFile:
       {
         data.enforceInterface(DESCRIPTOR);
         int _arg0;
         _arg0 = data.readInt();
         byte[] _arg1;
         _arg1 = data.createByteArray();
         int _result = this.writeFile(_arg0, _arg1);
         reply.writeNoException();
         reply.writeInt(_result);
         return true;
       }
   }
   return super.onTransact(code, data, reply, flags);
 }
예제 #10
0
파일: Person.java 프로젝트: CLEVER463/Book
 @Override
 public void writeToParcel(Parcel dest, int flags) {
   dest.writeString(this.name);
   dest.writeString(this.gender);
   dest.writeString(this.storageOfBook);
   dest.writeByteArray(this.imageId);
 }
 public static void keep_writeByteArray(Parcel paramParcel, Field paramField, Object paramObject) {
   try {
     paramParcel.writeByteArray((byte[]) paramField.get(paramObject));
     return;
   } catch (Exception paramParcel) {
     v.e("MicroMsg.MCacheItem", "exception:%s", new Object[] {be.f(paramParcel)});
   }
 }
    @Override
    public void writeToParcel(final Parcel dest, final int flags) {
      dest.writeSerializable(amount);

      final byte[] program = script.getProgram();
      dest.writeInt(program.length);
      dest.writeByteArray(program);
    }
예제 #13
0
파일: Info.java 프로젝트: rubensworks/hydra
 public void writeToParcel(Parcel dest, int flags) {
   try {
     byte[] data = BinaryPropertyListWriter.writeToArray(array);
     dest.writeInt(data.length);
     dest.writeByteArray(data);
   } catch (Exception e) {
     e.printStackTrace();
   }
 }
예제 #14
0
 public void writeToParcel(Parcel dest, int flags) {
   dest.writeInt(mStatus);
   dest.writeString(mStatusText);
   dest.writeByteArray(mAvatarData);
   dest.writeString(mAvatarType);
   dest.writeInt(mClientType);
   dest.writeMap(mExtendedInfo);
   dest.writeString(mResource);
 }
예제 #15
0
 @Override
 public void writeToParcel(Parcel dest, int flags) {
   if (mDevice != null) {
     dest.writeInt(1);
     mDevice.writeToParcel(dest, flags);
   } else {
     dest.writeInt(0);
   }
   if (mScanRecord != null) {
     dest.writeInt(1);
     dest.writeByteArray(mScanRecord.getBytes());
   } else {
     dest.writeInt(0);
   }
   dest.writeInt(mRssi);
   dest.writeLong(mTimestampNanos);
 }
예제 #16
0
 public int writeFile(int file_lid, byte[] buff) throws android.os.RemoteException {
   android.os.Parcel _data = android.os.Parcel.obtain();
   android.os.Parcel _reply = android.os.Parcel.obtain();
   int _result;
   try {
     _data.writeInterfaceToken(DESCRIPTOR);
     _data.writeInt(file_lid);
     _data.writeByteArray(buff);
     mRemote.transact(Stub.TRANSACTION_writeFile, _data, _reply, 0);
     _reply.readException();
     _result = _reply.readInt();
   } finally {
     _reply.recycle();
     _data.recycle();
   }
   return _result;
 }
예제 #17
0
  /** Implement the Parcelable interface */
  @DSGenerator(
      tool_name = "Doppelganger",
      tool_version = "2.0",
      generated_on = "2013-12-30 12:36:02.379 -0500",
      hash_original_method = "FB185B7C2F06925C4BFCD27CA8D3CCFA",
      hash_generated_method = "54EA4035BADA299A0CB903894C3D5048")
  public void writeToParcel(Parcel dest, int flags) {
    dest.writeByte(groupFormed ? (byte) 1 : (byte) 0);
    dest.writeByte(isGroupOwner ? (byte) 1 : (byte) 0);

    if (groupOwnerAddress != null) {
      dest.writeByte((byte) 1);
      dest.writeByteArray(groupOwnerAddress.getAddress());
    } else {
      dest.writeByte((byte) 0);
    }
  }
 @Override
 public void sendImageAsBitmapByteArray(int id, int x, int y, byte[] bitmapByteArray)
     throws android.os.RemoteException {
   android.os.Parcel _data = android.os.Parcel.obtain();
   android.os.Parcel _reply = android.os.Parcel.obtain();
   try {
     _data.writeInterfaceToken(DESCRIPTOR);
     _data.writeInt(id);
     _data.writeInt(x);
     _data.writeInt(y);
     _data.writeByteArray(bitmapByteArray);
     mRemote.transact(Stub.TRANSACTION_sendImageAsBitmapByteArray, _data, _reply, 0);
     _reply.readException();
   } finally {
     _reply.recycle();
     _data.recycle();
   }
 }
 public void onResponseReceived(long l, Map map, byte abyte0[])
     throws RemoteException
 {
     Parcel parcel;
     Parcel parcel1;
     parcel = Parcel.obtain();
     parcel1 = Parcel.obtain();
     parcel.writeInterfaceToken("com.amazon.dcp.sso.IWebserviceCallback");
     parcel.writeLong(l);
     parcel.writeMap(map);
     parcel.writeByteArray(abyte0);
     mRemote.transact(1, parcel, parcel1, 0);
     parcel1.readException();
     parcel1.recycle();
     parcel.recycle();
     return;
     map;
     parcel1.recycle();
     parcel.recycle();
     throw map;
 }
예제 #20
0
 /** {@hide} */
 public void writeToParcel(Parcel out, int flags) {
   out.writeString(mUsername);
   out.writeString(mEncryptedPassword);
   out.writeString(mPassword);
   out.writeString(mService);
   out.writeString(mCaptchaToken);
   if (mCaptchaData == null) {
     out.writeInt(-1);
   } else {
     out.writeInt(mCaptchaData.length);
     out.writeByteArray(mCaptchaData);
   }
   out.writeString(mCaptchaMimeType);
   out.writeString(mCaptchaAnswer);
   out.writeInt(mFlags);
   if (mStatus == null) {
     out.writeString(null);
   } else {
     out.writeString(mStatus.name());
   }
   out.writeString(mJsonString);
   out.writeString(mSid);
   out.writeString(mAuthtoken);
 }
 /**
  * Flatten this object in to a Parcel.
  *
  * @param dest The Parcel in which the object should be written.
  * @param flags Additional flags about how the object should be written. May be 0 or {@link
  *     #PARCELABLE_WRITE_RETURN_VALUE}.
  */
 @Override
 public void writeToParcel(Parcel dest, int flags) {
   Log.d(TAG, "in writeToParcel");
   dest.writeInt(_byte.length);
   dest.writeByteArray(_byte);
 }
 @Override
 public void writeToParcel(Parcel out, int flags) {
   out.writeByteArray(content_);
 }
예제 #23
0
 public void writeToParcel(Parcel parcel, int i) {
   parcel.writeString(wA);
   parcel.writeByteArray(wB);
   parcel.writeInt(wC);
 }
예제 #24
0
 @Override
 public final void writeToParcel(Parcel dest, int flags) {
   dest.writeByteArray(encode());
 }
 /** Implement the Parcelable interface {@hide} */
 public void writeToParcel(Parcel dest, int flags) {
   dest.writeInt(octets.size());
   dest.writeByteArray(octets.toByteArray());
 }
예제 #26
0
 public void writeToParcel(Parcel parcel, int i) {
   parcel.writeString(zzayl);
   parcel.writeByteArray(zzaym);
   parcel.writeInt(zzayn);
 }
예제 #27
0
파일: bug.java 프로젝트: ChiangC/FMTech
 public final void writeToParcel(Parcel paramParcel, int paramInt) {
   paramParcel.writeString(this.a);
   obf localobf = new obf();
   localobf.a = this.b;
   paramParcel.writeByteArray(qat.a(localobf));
 }
예제 #28
0
 @Override
 public void writeToParcel(Parcel dest, int flags) {
   dest.writeByteArray(fileContent);
 }
예제 #29
0
 @Override
 public void writeToParcel(Parcel dest, int flags) {
   dest.writeString(this.clazz);
   dest.writeByteArray(this.baseCommandBytes);
 }
예제 #30
0
 public void writeToParcel(Parcel dest, int parcelableFlags) {
   dest.writeByteArray(mSignature);
 }