コード例 #1
0
ファイル: WapPdu.java プロジェクト: hashiz/mailnotify
 @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
ファイル: SavedFrames.java プロジェクト: mcrops/GuyJavaCode
 @Override
 public void writeToParcel(Parcel out, int arg1) {
   out.writeLong(timeStamp);
   out.writeInt(frameSize);
   out.writeByteArray(frameBytesData);
   out.writeString(cachePath);
 }
コード例 #6
0
ファイル: NetworkResponse.java プロジェクト: Eccelor/Apoyo
 @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);
 }
コード例 #8
0
  @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);
 }
コード例 #11
0
 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)});
   }
 }
コード例 #12
0
    @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);
    }
  }
コード例 #18
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();
   }
 }
コード例 #19
0
 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
ファイル: LoginData.java プロジェクト: hhachutw/MTK6577
 /** {@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);
 }
コード例 #21
0
 /**
  * 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);
 }
コード例 #22
0
 @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
ファイル: AndroidMessage.java プロジェクト: coodeer/wire
 @Override
 public final void writeToParcel(Parcel dest, int flags) {
   dest.writeByteArray(encode());
 }
コード例 #25
0
 /** 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);
 }