@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_sendBillingRequest:
       {
         data.enforceInterface(DESCRIPTOR);
         android.os.Bundle _arg0;
         if ((0 != data.readInt())) {
           _arg0 = android.os.Bundle.CREATOR.createFromParcel(data);
         } else {
           _arg0 = null;
         }
         android.os.Bundle _result = this.sendBillingRequest(_arg0);
         reply.writeNoException();
         if ((_result != null)) {
           reply.writeInt(1);
           _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE);
         } else {
           reply.writeInt(0);
         }
         return true;
       }
   }
   return super.onTransact(code, data, reply, flags);
 }
Esempio n. 2
0
 @Override
 public void writeToParcel(Parcel dest, int flags) {
   dest.writeLong(this.id);
   dest.writeString(this.title);
   dest.writeString(this.mobile_url);
   dest.writeString(this.html_url);
   dest.writeString(this.description);
   dest.writeString(this.quiz_type);
   dest.writeParcelable(this.lock_info, flags);
   dest.writeParcelable(this.assignment, flags);
   dest.writeParcelable(this.permissions, flags);
   dest.writeInt(this.allowed_attempts);
   dest.writeInt(this.question_count);
   dest.writeDouble(this.points_possible);
   dest.writeString(this.due_at);
   dest.writeInt(this.time_limit);
   dest.writeString(this.access_code);
   dest.writeString(this.ip_filter);
   dest.writeByte(this.locked_for_user ? (byte) 1 : (byte) 0);
   dest.writeString(this.lock_explanation);
   dest.writeString(this.hide_results);
   dest.writeString(this.unlock_at);
   dest.writeByte(this.one_time_results ? (byte) 1 : (byte) 0);
   dest.writeString(this.lock_at);
   dest.writeStringArray(this.question_types);
   dest.writeByte(this.has_access_code ? (byte) 1 : (byte) 0);
 }
Esempio n. 3
0
 public void writeToParcel(Parcel dest, int flags) {
   dest.writeInt(mFromServiceId);
   dest.writeInt(mToServiceId);
   dest.writeInt(mFromCodeScheme);
   dest.writeInt(mToCodeScheme);
   dest.writeByte((byte) (mSelected ? 1 : 0));
 }
 @Override
 public void writeToParcel(Parcel dest, int flags) {
   dest.writeInt(numberOfLines);
   dest.writeInt(backgroundColor);
   dest.writeInt(textColor);
   dest.writeInt(textSize);
 }
  @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);
  }
Esempio n. 6
0
 @Override
 public void writeToParcel(Parcel dest, int flags) {
   dest.writeInt(_id);
   dest.writeInt(news_id);
   dest.writeString(type);
   dest.writeString(url);
 }
Esempio n. 7
0
 /**
  * This demonstrates the basic types that you can use as parameters and return values in AIDL.
  */
 public void basicTypes(
     int anInt,
     long aLong,
     boolean aBoolean,
     float aFloat,
     double aDouble,
     java.lang.String aString)
     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(anInt);
     _data.writeLong(aLong);
     _data.writeInt(((aBoolean) ? (1) : (0)));
     _data.writeFloat(aFloat);
     _data.writeDouble(aDouble);
     _data.writeString(aString);
     mRemote.transact(Stub.TRANSACTION_basicTypes, _data, _reply, 0);
     _reply.readException();
   } finally {
     _reply.recycle();
     _data.recycle();
   }
 }
Esempio n. 8
0
 @Override
 public void writeToParcel(Parcel dest, int flags) {
   dest.writeInt(this.position);
   dest.writeInt(this.type);
   dest.writeString(this.city);
   dest.writeString(this.region);
 }
 public void writeToParcel(Parcel dest, int flags) {
   dest.writeInt(this.truncated ? 1 : 0);
   dest.writeInt(this.scanResults.size());
   for (ScanResult s : this.scanResults) {
     s.writeToParcel(dest, flags);
   }
 }
 @Override
 public void writeToParcel(Parcel destination, int flags) {
   super.writeToParcel(destination, flags);
   destination.writeInt(number1);
   destination.writeInt(number2);
   destination.writeInt(number3);
 }
Esempio n. 11
0
 @Override
 public void writeToParcel(Parcel dest, int flags) {
   super.writeToParcel(dest, flags);
   dest.writeInt(mYear);
   dest.writeInt(mMonth);
   dest.writeInt(mDay);
 }
Esempio n. 12
0
 @Override
 public void writeToParcel(Parcel parcel, int i) {
   parcel.writeInt(getId());
   parcel.writeString(name);
   parcel.writeLong(lastpaid.getTime());
   parcel.writeInt(ahead);
 }
Esempio n. 13
0
 public void writeToParcel(Parcel parcel, int n2) {
   parcel.writeInt(this.id);
   parcel.writeString(this.title);
   parcel.writeString(this.html);
   parcel.writeString(this.topicName);
   parcel.writeInt(this.weight);
 }
Esempio n. 14
0
 /** Given the arguments in bundle form, returns a bundle for results. */
 @Override
 public android.os.Bundle sendBillingRequest(android.os.Bundle bundle)
     throws android.os.RemoteException {
   android.os.Parcel _data = android.os.Parcel.obtain();
   android.os.Parcel _reply = android.os.Parcel.obtain();
   android.os.Bundle _result;
   try {
     _data.writeInterfaceToken(DESCRIPTOR);
     if ((bundle != null)) {
       _data.writeInt(1);
       bundle.writeToParcel(_data, 0);
     } else {
       _data.writeInt(0);
     }
     mRemote.transact(Stub.TRANSACTION_sendBillingRequest, _data, _reply, 0);
     _reply.readException();
     if ((0 != _reply.readInt())) {
       _result = android.os.Bundle.CREATOR.createFromParcel(_reply);
     } else {
       _result = null;
     }
   } finally {
     _reply.recycle();
     _data.recycle();
   }
   return _result;
 }
 @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_setPreferredResolution:
       {
         data.enforceInterface(DESCRIPTOR);
         int _arg0;
         _arg0 = data.readInt();
         int _result = this.setPreferredResolution(_arg0);
         reply.writeNoException();
         reply.writeInt(_result);
         return true;
       }
     case TRANSACTION_setFramePerSecond:
       {
         data.enforceInterface(DESCRIPTOR);
         int _arg0;
         _arg0 = data.readInt();
         int _result = this.setFramePerSecond(_arg0);
         reply.writeNoException();
         reply.writeInt(_result);
         return true;
       }
     case TRANSACTION_boostUp:
       {
         data.enforceInterface(DESCRIPTOR);
         int _arg0;
         _arg0 = data.readInt();
         int _result = this.boostUp(_arg0);
         reply.writeNoException();
         reply.writeInt(_result);
         return true;
       }
     case TRANSACTION_getAbstractTemperature:
       {
         data.enforceInterface(DESCRIPTOR);
         int _result = this.getAbstractTemperature();
         reply.writeNoException();
         reply.writeInt(_result);
         return true;
       }
     case TRANSACTION_setGamePowerSaving:
       {
         data.enforceInterface(DESCRIPTOR);
         boolean _arg0;
         _arg0 = (0 != data.readInt());
         int _result = this.setGamePowerSaving(_arg0);
         reply.writeNoException();
         reply.writeInt(_result);
         return true;
       }
   }
   return super.onTransact(code, data, reply, flags);
 }
Esempio n. 16
0
 @Override
 public void writeToParcel(Parcel dest, int flags) {
   dest.writeString(name);
   dest.writeString(url);
   dest.writeInt(id);
   dest.writeInt(number);
 }
 /**
  * Provides details of a list of SKUs Given a list of SKUs of a valid type in the skusBundle,
  * this returns a bundle with a list JSON strings containing the productId, price, title and
  * description. This API can be called with a maximum of 20 SKUs.
  *
  * @param apiVersion billing API version that the Third-party is using
  * @param packageName the package name of the calling app
  * @param skusBundle bundle containing a StringArrayList of SKUs with key "ITEM_ID_LIST"
  * @return Bundle containing the following key-value pairs "RESPONSE_CODE" with int value,
  *     RESULT_OK(0) if success, other response codes on failure as listed above.
  *     "DETAILS_LIST" with a StringArrayList containing purchase information in JSON format
  *     similar to: '{ "productId" : "exampleSku", "type" : "inapp", "price" : "$5.00", "title
  *     : "Example Title", "description" : "This is an example description" }'
  */
 @Override
 public android.os.Bundle getSkuDetails(
     int apiVersion,
     java.lang.String packageName,
     java.lang.String type,
     android.os.Bundle skusBundle)
     throws android.os.RemoteException {
   android.os.Parcel _data = android.os.Parcel.obtain();
   android.os.Parcel _reply = android.os.Parcel.obtain();
   android.os.Bundle _result;
   try {
     _data.writeInterfaceToken(DESCRIPTOR);
     _data.writeInt(apiVersion);
     _data.writeString(packageName);
     _data.writeString(type);
     if ((skusBundle != null)) {
       _data.writeInt(1);
       skusBundle.writeToParcel(_data, 0);
     } else {
       _data.writeInt(0);
     }
     mRemote.transact(Stub.TRANSACTION_getSkuDetails, _data, _reply, 0);
     _reply.readException();
     if ((0 != _reply.readInt())) {
       _result = android.os.Bundle.CREATOR.createFromParcel(_reply);
     } else {
       _result = null;
     }
   } finally {
     _reply.recycle();
     _data.recycle();
   }
   return _result;
 }
Esempio n. 18
0
 @Override
 public void writeToParcel(Parcel dest, int flags) {
   dest.writeInt(id);
   dest.writeInt(serverId);
   dest.writeInt(userId);
   dest.writeString(note);
 }
Esempio n. 19
0
 public Bundle m2330a(String str, String str2, Bundle bundle) throws RemoteException {
   Parcel obtain = Parcel.obtain();
   Parcel obtain2 = Parcel.obtain();
   try {
     obtain.writeInterfaceToken("com.google.android.auth.IAuthManagerService");
     obtain.writeString(str);
     obtain.writeString(str2);
     if (bundle != null) {
       obtain.writeInt(1);
       bundle.writeToParcel(obtain, 0);
     } else {
       obtain.writeInt(0);
     }
     this.kn.transact(1, obtain, obtain2, 0);
     obtain2.readException();
     Bundle bundle2 =
         obtain2.readInt() != 0 ? (Bundle) Bundle.CREATOR.createFromParcel(obtain2) : null;
     obtain2.recycle();
     obtain.recycle();
     return bundle2;
   } catch (Throwable th) {
     obtain2.recycle();
     obtain.recycle();
   }
 }
 @Override
 public void writeToParcel(Parcel dest, int flags) {
   // Note: Parcel data is read in a FIFO manner.
   dest.writeString(super.getTimeScope().name());
   dest.writeInt(super.getTimeRangeStart());
   dest.writeInt(super.getTimeRangeStop());
 }
Esempio n. 21
0
 public final void zza(
     UserAttributeParcel paramUserAttributeParcel, AppMetadata paramAppMetadata)
     throws RemoteException {
   Parcel localParcel1 = Parcel.obtain();
   Parcel localParcel2 = Parcel.obtain();
   for (; ; ) {
     try {
       localParcel1.writeInterfaceToken(
           "com.google.android.gms.measurement.internal.IMeasurementService");
       if (paramUserAttributeParcel != null) {
         localParcel1.writeInt(1);
         paramUserAttributeParcel.writeToParcel(localParcel1, 0);
         if (paramAppMetadata != null) {
           localParcel1.writeInt(1);
           paramAppMetadata.writeToParcel(localParcel1, 0);
           this.zzop.transact(2, localParcel1, localParcel2, 0);
           localParcel2.readException();
         }
       } else {
         localParcel1.writeInt(0);
         continue;
       }
       localParcel1.writeInt(0);
     } finally {
       localParcel2.recycle();
       localParcel1.recycle();
     }
   }
 }
  /** {@inheritDoc} */
  @Override
  public void writeToParcel(Parcel dest, int flags) {
    boolean[] validDataList = new boolean[MemberData.values().length];
    int validDataPos = dest.dataPosition();
    dest.writeBooleanArray(validDataList); // Placeholder for real array.

    if (mPluginId != null) {
      validDataList[MemberData.PLUGIN_ID.ordinal()] = true;
      dest.writeString(mPluginId);
    }

    if (mNetwork != null) {
      validDataList[MemberData.NETWORK.ordinal()] = true;
      dest.writeString(mNetwork);
    }

    if (mNetworkUrl != null) {
      validDataList[MemberData.NETWORK_URL.ordinal()] = true;
      dest.writeString(mNetworkUrl.toString());
    }

    if (mIconUrl != null) {
      validDataList[MemberData.ICON_URL.ordinal()] = true;
      dest.writeString(mIconUrl.toString());
    }

    if (mAuthType != null) {
      validDataList[MemberData.AUTH_TYPE.ordinal()] = true;
      dest.writeString(mAuthType);
    }

    if (mIconMime != null) {
      validDataList[MemberData.ICON_MIME.ordinal()] = true;
      dest.writeString(mIconMime);
    }

    if (mOrder != -1) {
      validDataList[MemberData.ORDER.ordinal()] = true;
      dest.writeInt(mOrder);
    }

    if (mName != null) {
      validDataList[MemberData.NAME.ordinal()] = true;
      dest.writeString(mName);
    }

    if (mCapabilities != null) {
      dest.writeInt(mCapabilities.size());
      for (IdentityCapability cap : mCapabilities) {
        cap.writeToParcel(dest, 0);
      }
    } else {
      dest.writeInt(0);
    }

    int currentPos = dest.dataPosition();
    dest.setDataPosition(validDataPos);
    dest.writeBooleanArray(validDataList); // Real array.
    dest.setDataPosition(currentPos);
  }
Esempio n. 23
0
        public fk a(b b1, int i, int j, int k, String s)
            throws RemoteException
        {
            Parcel parcel;
            Parcel parcel1;
            parcel = Parcel.obtain();
            parcel1 = Parcel.obtain();
            parcel.writeInterfaceToken("com.google.android.gms.plus.internal.IPlusService");
            if (b1 == null)
            {
                break MISSING_BLOCK_LABEL_103;
            }
            b1 = b1.asBinder();
_L1:
            parcel.writeStrongBinder(b1);
            parcel.writeInt(i);
            parcel.writeInt(j);
            parcel.writeInt(k);
            parcel.writeString(s);
            kn.transact(16, parcel, parcel1, 0);
            parcel1.readException();
            b1 = com.google.android.gms.internal.fk.a.A(parcel1.readStrongBinder());
            parcel1.recycle();
            parcel.recycle();
            return b1;
            b1 = null;
              goto _L1
Esempio n. 24
0
 @Override
 public void writeToParcel(Parcel dest, int flags) {
   dest.writeString(bookName);
   dest.writeInt(chapterNum);
   dest.writeString(verseNum);
   dest.writeInt(id);
 }
 @Override
 public void writeToParcel(Parcel dest, int flags) {
   dest.writeInt(outWidth);
   dest.writeInt(outHeight);
   dest.writeInt(maxFileSize);
   dest.writeString(srcImageUri);
 }
 public void m2746a(ix ixVar, UserAddressRequest userAddressRequest, Bundle bundle)
     throws RemoteException {
   Parcel obtain = Parcel.obtain();
   Parcel obtain2 = Parcel.obtain();
   try {
     obtain.writeInterfaceToken(
         "com.google.android.gms.identity.intents.internal.IAddressService");
     obtain.writeStrongBinder(ixVar != null ? ixVar.asBinder() : null);
     if (userAddressRequest != null) {
       obtain.writeInt(1);
       userAddressRequest.writeToParcel(obtain, 0);
     } else {
       obtain.writeInt(0);
     }
     if (bundle != null) {
       obtain.writeInt(1);
       bundle.writeToParcel(obtain, 0);
     } else {
       obtain.writeInt(0);
     }
     this.kq.transact(2, obtain, obtain2, 0);
     obtain2.readException();
   } finally {
     obtain2.recycle();
     obtain.recycle();
   }
 }
 @Override
 public void writeToParcel(Parcel dest, int flags) {
   super.writeToParcel(dest, flags);
   dest.writeInt(mSubtypeLocaleSelectedPos);
   dest.writeInt(mKeyboardLayoutSetSelectedPos);
   dest.writeParcelable(mSubtype, 0);
 }
Esempio n. 28
0
 @Override
 public void writeToParcel(Parcel dest, int flags) {
   super.writeToParcel(dest, flags);
   dest.writeTypedList(seasons);
   dest.writeInt(seasonPosition);
   dest.writeInt(episodePosition);
 }
Esempio n. 29
0
 @Override
 public void writeToParcel(Parcel dest, int flags) {
   dest.writeInt(hour);
   dest.writeInt(interval);
   dest.writeInt(unit.ordinal());
   dest.writeInt(volume);
 }
 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);
 }