@Override
  public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(atId);
    dest.writeString(huodongId);
    dest.writeString(name);
    dest.writeString(address);

    dest.writeInt(uid);
    dest.writeString(description);
    dest.writeString(pic);
    dest.writeString(lat);
    dest.writeString(lng);
    dest.writeString(cityCode);

    dest.writeString(applyEndTime);
    dest.writeString(startTime);
    dest.writeString(endTime);

    dest.writeInt(applyAge);
    dest.writeString(limitNum);
    dest.writeString(applyNum);
    dest.writeString(askPhone);
    dest.writeString(money);

    dest.writeInt(top ? 1 : 0);
    dest.writeInt(push ? 1 : 0);

    dest.writeInt(hot ? 1 : 0);
    dest.writeInt(over ? 1 : 0);
    dest.writeInt(distance);

    dest.writeTypedList(applyers);
    dest.writeStringList(pics);

    dest.writeInt(senderUid);
    dest.writeString(senderName);
    dest.writeString(senderPic);
    dest.writeInt(senderSex);
    dest.writeString(ShareUrl);

    dest.writeInt(teamId);
    dest.writeInt(isApply ? 1 : 0);
    dest.writeString(lookNum);
    dest.writeInt(openNotice ? 1 : 0);
    dest.writeInt(huodongType);
    dest.writeInt(type);
    dest.writeFloat(rate);
    dest.writeString(openUrl);
    dest.writeParcelable(lastComment, PARCELABLE_WRITE_RETURN_VALUE);
    dest.writeStringList(commends);
  }
 public void writeToParcel(Parcel parcel, int i)
 {
     Object obj = null;
     String s;
     if (loginBehavior != null)
     {
         s = loginBehavior.name();
     } else
     {
         s = null;
     }
     parcel.writeString(s);
     parcel.writeStringList(new ArrayList(permissions));
     s = obj;
     if (defaultAudience != null)
     {
         s = defaultAudience.name();
     }
     parcel.writeString(s);
     parcel.writeString(applicationId);
     parcel.writeString(authId);
     if (isRerequest)
     {
         i = 1;
     } else
     {
         i = 0;
     }
     parcel.writeByte((byte)i);
 }
 @Override
 public void writeToParcel(Parcel dest, int flags) {
   dest.writeInt(this.id);
   dest.writeString(this.title);
   dest.writeString(this.description);
   dest.writeString(this.artistName);
   dest.writeString(this.posterPic);
   dest.writeString(this.thumbnailPic);
   dest.writeString(this.albumImg);
   dest.writeString(this.regdate);
   dest.writeString(this.videoSourceTypeName);
   dest.writeInt(this.totalViews);
   dest.writeInt(this.totalPcViews);
   dest.writeInt(this.totalMobileViews);
   dest.writeInt(this.totalComments);
   dest.writeString(this.url);
   dest.writeString(this.hdUrl);
   dest.writeString(this.uhdUrl);
   dest.writeString(this.shdUrl);
   dest.writeLong(this.videoSize);
   dest.writeLong(this.hdVideoSize);
   dest.writeLong(this.uhdVideoSize);
   dest.writeLong(this.shdVideoSize);
   dest.writeInt(this.duration);
   dest.writeInt(this.status);
   dest.writeInt(this.linkId);
   dest.writeString(this.playListPic);
   dest.writeByte(this.favorite ? (byte) 1 : (byte) 0);
   dest.writeString(this.pauseImageUrl);
   dest.writeString(this.pauseTraceUrl);
   dest.writeString(this.pauseClickUrl);
   dest.writeList(this.artists);
   dest.writeList(this.relatedVideos);
   dest.writeStringList(this.pauseTraceUrls);
 }
 @Override
 public void writeToParcel(Parcel dest, int flags) {
   dest.writeString(mName);
   dest.writeByte((byte) (mPredefined ? 1 : 0));
   dest.writeByte((byte) (mManualSearch ? 1 : 0));
   dest.writeStringList(new ArrayList<String>(mAccountUuids));
   dest.writeParcelable(mConditions, flags);
 }
Exemple #5
0
 @Override
 public void writeToParcel(Parcel dest, int flag) {
   // TODO Auto-generated method stub
   dest.writeString(title);
   dest.writeString(subDesc);
   dest.writeStringList(type);
   dest.writeString(date.toString());
 }
 @Override
 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_AddContacts:
       {
         data.enforceInterface(DESCRIPTOR);
         java.lang.String _arg0;
         _arg0 = data.readString();
         boolean _result = this.AddContacts(_arg0);
         reply.writeNoException();
         reply.writeInt(((_result) ? (1) : (0)));
         return true;
       }
     case TRANSACTION_DelContacts:
       {
         data.enforceInterface(DESCRIPTOR);
         java.lang.String _arg0;
         _arg0 = data.readString();
         boolean _result = this.DelContacts(_arg0);
         reply.writeNoException();
         reply.writeInt(((_result) ? (1) : (0)));
         return true;
       }
     case TRANSACTION_GetMicroblogById:
       {
         data.enforceInterface(DESCRIPTOR);
         java.lang.String _arg0;
         _arg0 = data.readString();
         java.lang.String _result = this.GetMicroblogById(_arg0);
         reply.writeNoException();
         reply.writeString(_result);
         return true;
       }
     case TRANSACTION_GetMicroblog:
       {
         data.enforceInterface(DESCRIPTOR);
         java.lang.String _result = this.GetMicroblog();
         reply.writeNoException();
         reply.writeString(_result);
         return true;
       }
     case TRANSACTION_UpdateMicroblog:
       {
         data.enforceInterface(DESCRIPTOR);
         java.util.List<java.lang.String> _result = this.UpdateMicroblog();
         reply.writeNoException();
         reply.writeStringList(_result);
         return true;
       }
   }
   return super.onTransact(code, data, reply, flags);
 }
Exemple #7
0
 @Override
 public void writeToParcel(Parcel parcel, int flags) {
   parcel.writeString(mPhotoId.toString());
   parcel.writeString(mUserId.toString());
   parcel.writeString(mEventId.toString());
   parcel.writeString(MapUtils.latLngToString(mLocation));
   parcel.writeString(getDateFormat().format(mDate));
   parcel.writeStringArray(mUrl);
   parcel.writeStringList(mTags);
 }
 @Override
 public void writeToParcel(Parcel parcel, int arg1) {
   parcel.writeString(uploadId);
   parcel.writeLong(startTime);
   parcel.writeLong(currentTime);
   parcel.writeLong(uploadedBytes);
   parcel.writeLong(totalBytes);
   parcel.writeInt(numberOfRetries);
   parcel.writeInt(totalFiles);
   parcel.writeStringList(successfullyUploadedFiles);
 }
 @Test
 public void testReadAndWriteStringList() throws Exception {
   ArrayList<String> original = new ArrayList<String>();
   ArrayList<String> rehydrated = new ArrayList<String>();
   original.add("str1");
   original.add("str2");
   parcel.writeStringList(original);
   parcel.readStringList(rehydrated);
   assertEquals(2, rehydrated.size());
   assertEquals("str1", rehydrated.get(0));
   assertEquals("str2", rehydrated.get(1));
 }
Exemple #10
0
 @Override
 public void writeToParcel(Parcel dest, int flags) {
   dest.writeString(this.ID);
   dest.writeString(this.name);
   dest.writeString(this.email);
   dest.writeString(this.publicKey);
   dest.writeString(this.fileLink);
   dest.writeString(this.fileKey);
   dest.writeInt(this.status);
   dest.writeString(this.nonce);
   dest.writeString(this.nonce2);
   dest.writeStringList(groups);
 }
 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);
 }
  @Override
  public void writeToParcel(Parcel dest, int flags) {
    ArrayList<String> data = dest.createStringArrayList();

    data.add(this.getName());
    data.add(this.getEmail());

    if (this.getId() != null) data.add(this.getId().toString());
    else data.add(null);

    dest.writeStringList(data);

    dest.writeList(this.joinedGames);
  }
 @Override
 public void onEntriesDeleted(java.util.List<java.lang.String> addresses)
     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.writeStringList(addresses);
     mRemote.transact(Stub.TRANSACTION_onEntriesDeleted, _data, _reply, 0);
     _reply.readException();
   } finally {
     _reply.recycle();
     _data.recycle();
   }
 }
Exemple #14
0
 @Override
 public void writeToParcel(Parcel dest, int flags) {
   dest.writeString(this.feed);
   dest.writeString(this.category);
   dest.writeStringList(this.identifiers);
   dest.writeString(this.cleanTitle);
   dest.writeInt(this.dislikes);
   dest.writeByte(isDeleted ? (byte) 1 : (byte) 0);
   dest.writeString(this.author);
   dest.writeInt(this.userScore);
   dest.writeString(this.rawMessage);
   dest.writeLong(this.id);
   dest.writeByte(isClosed ? (byte) 1 : (byte) 0);
   dest.writeInt(this.posts);
   dest.writeByte(userSubscription ? (byte) 1 : (byte) 0);
   dest.writeString(this.link);
   dest.writeLong(createdAt != null ? createdAt.getTime() : -1);
   dest.writeString(this.title);
   dest.writeString(this.message);
   dest.writeString(this.slug);
   dest.writeString(this.highlightedPost);
   dest.writeInt(this.likes);
 }
Exemple #15
0
  @Override
  public void writeToParcel(Parcel dest, int flags) {
    dest.writeDouble(mLongitude);
    dest.writeDouble(mLatitude);
    dest.writeString(mCityCode);
    dest.writeString(mCurrCondition);
    dest.writeInt(mCurrTempC);
    dest.writeFloat(mCurrHumidity);
    dest.writeString(mCurrWindDirection);
    dest.writeInt(mCurrWindPower);
    dest.writeString(mCarWashIndex);
    dest.writeString(mTravelIndex);
    dest.writeString(mDressingIndex);
    dest.writeString(mComfortIndex);
    dest.writeString(mRetain1);
    dest.writeString(mRetain2);
    dest.writeString(mRetain3);
    dest.writeString(mRetain4);
    dest.writeString(mRetain5);
    dest.writeStringList(mCondition);

    dest.writeIntArray(mMaxTempC);
    dest.writeIntArray(mMinTempC);
  }
 @Override
 public void writeToParcel(Parcel out, int flags) {
   out.writeStringList(meanings);
 }
  @Override
  public void onLoadFinished(Loader<Cursor> loader, Cursor data) {

    MatrixCursor matrix =
        new MatrixCursor(new String[] {"_id", "user_data", "grouped"}) {
          @Override
          public byte[] getBlob(int column) {
            return super.getBlob(column);
          }
        };
    data.moveToFirst();

    long lastMasterKeyId = 0;
    String lastName = "";
    ArrayList<String> uids = new ArrayList<>();

    boolean header = true;

    // Iterate over all rows
    while (!data.isAfterLast()) {
      long masterKeyId = data.getLong(INDEX_MASTER_KEY_ID);
      String userId = data.getString(INDEX_USER_ID);
      KeyRing.UserId pieces = KeyRing.splitUserId(userId);

      // Two cases:

      boolean grouped = masterKeyId == lastMasterKeyId;
      boolean subGrouped = data.isFirst() || grouped && lastName.equals(pieces.name);
      // Remember for next loop
      lastName = pieces.name;

      Log.d(Constants.TAG, Long.toString(masterKeyId, 16) + (grouped ? "grouped" : "not grouped"));

      if (!subGrouped) {
        // 1. This name should NOT be grouped with the previous, so we flush the buffer

        Parcel p = Parcel.obtain();
        p.writeStringList(uids);
        byte[] d = p.marshall();
        p.recycle();

        matrix.addRow(new Object[] {lastMasterKeyId, d, header ? 1 : 0});
        // indicate that we have a header for this masterKeyId
        header = false;

        // Now clear the buffer, and add the new user id, for the next round
        uids.clear();
      }

      // 2. This name should be grouped with the previous, just add to buffer
      uids.add(userId);
      lastMasterKeyId = masterKeyId;

      // If this one wasn't grouped, the next one's gotta be a header
      if (!grouped) {
        header = true;
      }

      // Regardless of the outcome, move to next entry
      data.moveToNext();
    }

    // If there is anything left in the buffer, flush it one last time
    if (!uids.isEmpty()) {

      Parcel p = Parcel.obtain();
      p.writeStringList(uids);
      byte[] d = p.marshall();
      p.recycle();

      matrix.addRow(new Object[] {lastMasterKeyId, d, header ? 1 : 0});
    }

    mUserIdsAdapter.swapCursor(matrix);
  }
Exemple #18
0
 public void writeToParcel(Parcel out, int flags) {
   out.writeStringList(products);
   out.writeString(type);
   out.writeString(size);
 }
Exemple #19
0
 @Override
 public void writeToParcel(Parcel dest, int flags) {
   dest.writeValue(mLocationCoords);
   dest.writeString(mName);
   dest.writeStringList(mTypes);
 }
 @Override
 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_createPrivacyList:
       {
         data.enforceInterface(DESCRIPTOR);
         java.lang.String _arg0;
         _arg0 = data.readString();
         java.util.List<com.rei.lolchat.service.PrivacyListItem> _arg1;
         _arg1 = data.createTypedArrayList(com.rei.lolchat.service.PrivacyListItem.CREATOR);
         this.createPrivacyList(_arg0, _arg1);
         reply.writeNoException();
         return true;
       }
     case TRANSACTION_removePrivacyList:
       {
         data.enforceInterface(DESCRIPTOR);
         java.lang.String _arg0;
         _arg0 = data.readString();
         this.removePrivacyList(_arg0);
         reply.writeNoException();
         return true;
       }
     case TRANSACTION_editPrivacyList:
       {
         data.enforceInterface(DESCRIPTOR);
         java.lang.String _arg0;
         _arg0 = data.readString();
         java.util.List<com.rei.lolchat.service.PrivacyListItem> _arg1;
         _arg1 = data.createTypedArrayList(com.rei.lolchat.service.PrivacyListItem.CREATOR);
         this.editPrivacyList(_arg0, _arg1);
         reply.writeNoException();
         return true;
       }
     case TRANSACTION_getActivePrivacyList:
       {
         data.enforceInterface(DESCRIPTOR);
         java.lang.String _result = this.getActivePrivacyList();
         reply.writeNoException();
         reply.writeString(_result);
         return true;
       }
     case TRANSACTION_getDefaultPrivacyList:
       {
         data.enforceInterface(DESCRIPTOR);
         java.lang.String _result = this.getDefaultPrivacyList();
         reply.writeNoException();
         reply.writeString(_result);
         return true;
       }
     case TRANSACTION_setActivePrivacyList:
       {
         data.enforceInterface(DESCRIPTOR);
         java.lang.String _arg0;
         _arg0 = data.readString();
         this.setActivePrivacyList(_arg0);
         reply.writeNoException();
         return true;
       }
     case TRANSACTION_setDefaultPrivacyList:
       {
         data.enforceInterface(DESCRIPTOR);
         java.lang.String _arg0;
         _arg0 = data.readString();
         this.setDefaultPrivacyList(_arg0);
         reply.writeNoException();
         return true;
       }
     case TRANSACTION_declineActivePrivacyList:
       {
         data.enforceInterface(DESCRIPTOR);
         this.declineActivePrivacyList();
         reply.writeNoException();
         return true;
       }
     case TRANSACTION_declineDefaultPrivacyList:
       {
         data.enforceInterface(DESCRIPTOR);
         this.declineDefaultPrivacyList();
         reply.writeNoException();
         return true;
       }
     case TRANSACTION_getPrivacyLists:
       {
         data.enforceInterface(DESCRIPTOR);
         java.util.List<java.lang.String> _result = this.getPrivacyLists();
         reply.writeNoException();
         reply.writeStringList(_result);
         return true;
       }
     case TRANSACTION_blockUser:
       {
         data.enforceInterface(DESCRIPTOR);
         java.lang.String _arg0;
         _arg0 = data.readString();
         java.lang.String _arg1;
         _arg1 = data.readString();
         this.blockUser(_arg0, _arg1);
         reply.writeNoException();
         return true;
       }
     case TRANSACTION_getBlockedUsersByList:
       {
         data.enforceInterface(DESCRIPTOR);
         java.lang.String _arg0;
         _arg0 = data.readString();
         java.util.List<java.lang.String> _result = this.getBlockedUsersByList(_arg0);
         reply.writeNoException();
         reply.writeStringList(_result);
         return true;
       }
     case TRANSACTION_getBlockedGroupsByList:
       {
         data.enforceInterface(DESCRIPTOR);
         java.lang.String _arg0;
         _arg0 = data.readString();
         java.util.List<java.lang.String> _result = this.getBlockedGroupsByList(_arg0);
         reply.writeNoException();
         reply.writeStringList(_result);
         return true;
       }
     case TRANSACTION_addPrivacyListListener:
       {
         data.enforceInterface(DESCRIPTOR);
         com.rei.lolchat.service.aidl.IPrivacyListListener _arg0;
         _arg0 =
             com.rei.lolchat.service.aidl.IPrivacyListListener.Stub.asInterface(
                 data.readStrongBinder());
         this.addPrivacyListListener(_arg0);
         reply.writeNoException();
         return true;
       }
     case TRANSACTION_removePrivacyListListener:
       {
         data.enforceInterface(DESCRIPTOR);
         com.rei.lolchat.service.aidl.IPrivacyListListener _arg0;
         _arg0 =
             com.rei.lolchat.service.aidl.IPrivacyListListener.Stub.asInterface(
                 data.readStrongBinder());
         this.removePrivacyListListener(_arg0);
         reply.writeNoException();
         return true;
       }
   }
   return super.onTransact(code, data, reply, flags);
 }
 @Override
 public void writeToParcel(Parcel dest, int flags) {
   dest.writeString(mPackageName);
   dest.writeInt(mMainStatus);
   dest.writeStringList(new ArrayList<>(mDomains));
 }
 @Override
 public void writeToParcel(Parcel dest, int flags) {
   dest.writeStringList(semesters);
   dest.writeTypedList(takenCourses);
 }