Ejemplo n.º 1
0
 /** Constructor called from {@link #CREATOR} */
 private SavedState(Parcel in) {
   super(in);
   mode = in.readInt();
   hour = in.readInt();
   minute = in.readInt();
   is24Hour = in.readInt() == 1;
 }
 public SavedState(Parcel source) {
   super(source);
   automatic = source.readInt() == 1;
   progress = source.readInt();
   oldAutomatic = source.readInt() == 1;
   oldProgress = source.readInt();
 }
Ejemplo n.º 3
0
 private Quiz(Parcel in) {
   this.id = in.readLong();
   this.title = in.readString();
   this.mobile_url = in.readString();
   this.html_url = in.readString();
   this.description = in.readString();
   this.quiz_type = in.readString();
   this.lock_info = in.readParcelable(LockInfo.class.getClassLoader());
   this.assignment = in.readParcelable(Assignment.class.getClassLoader());
   this.permissions = in.readParcelable(QuizPermission.class.getClassLoader());
   this.allowed_attempts = in.readInt();
   this.question_count = in.readInt();
   this.points_possible = in.readDouble();
   this.due_at = in.readString();
   this.time_limit = in.readInt();
   this.access_code = in.readString();
   this.ip_filter = in.readString();
   this.locked_for_user = in.readByte() != 0;
   this.lock_explanation = in.readString();
   this.hide_results = in.readString();
   this.unlock_at = in.readString();
   this.one_time_results = in.readByte() != 0;
   this.lock_at = in.readString();
   in.readStringArray(this.question_types);
   this.has_access_code = in.readByte() != 0;
 }
Ejemplo n.º 4
0
 @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);
 }
Ejemplo n.º 5
0
 protected TopStoriesEntity(Parcel in) {
   this.image = in.readString();
   this.type = in.readInt();
   this.id = in.readInt();
   this.ga_prefix = in.readString();
   this.title = in.readString();
 }
 public CatCmdMessage(Parcel in) {
   mCmdDet = in.readParcelable(null);
   mTextMsg = in.readParcelable(null);
   mMenu = in.readParcelable(null);
   mInput = in.readParcelable(null);
   mLoadIconFailed = (in.readByte() == 1);
   switch (getCmdType()) {
     case LAUNCH_BROWSER:
       mBrowserSettings = new BrowserSettings();
       mBrowserSettings.url = in.readString();
       mBrowserSettings.mode = LaunchBrowserMode.values()[in.readInt()];
       break;
     case PLAY_TONE:
       mToneSettings = in.readParcelable(null);
       break;
     case SET_UP_CALL:
       mCallSettings = new CallSettings();
       mCallSettings.confirmMsg = in.readParcelable(null);
       mCallSettings.callMsg = in.readParcelable(null);
       break;
     case SET_UP_EVENT_LIST:
       mSetupEventListSettings = new SetupEventListSettings();
       int length = in.readInt();
       mSetupEventListSettings.eventList = new int[length];
       for (int i = 0; i < length; i++) {
         mSetupEventListSettings.eventList[i] = in.readInt();
       }
       break;
     default:
       break;
   }
 }
    public ParcelXmlCommandResult createFromParcel(Parcel parcel) {
      int type = parcel.readInt();
      String statusMessage = parcel.readString();
      String serialNumber = parcel.readString();
      int batteryStatus = parcel.readInt();
      int batteryMv = parcel.readInt();
      boolean batteryCharging = parcel.readByte() == 1;
      boolean externalPower = parcel.readByte() == 1;

      BluetoothInformation btInfo = new BluetoothInformation();
      btInfo.bTReconnectRequired = parcel.readByte() == 1;
      btInfo.bluetoothName = parcel.readString();
      btInfo.oldBluetoothName = parcel.readString();

      XMLCommandResult result =
          new XMLCommandResult(
              type,
              btInfo,
              statusMessage,
              serialNumber,
              batteryStatus,
              batteryMv,
              batteryCharging,
              externalPower);

      return new ParcelXmlCommandResult(result);
    }
 public void readFromParcel(Parcel in) {
   super.readFromParcel(in);
   mSourcePackage = in.readString();
   mLabelRes = in.readInt();
   mNonLocalizedLabel = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in);
   mIcon = in.readInt();
 }
Ejemplo n.º 9
0
 @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_checkModules:
       {
         data.enforceInterface(DESCRIPTOR);
         eu.licentia.necessitas.ministro.IMinistroCallback _arg0;
         _arg0 =
             eu.licentia.necessitas.ministro.IMinistroCallback.Stub.asInterface(
                 data.readStrongBinder());
         java.lang.String[] _arg1;
         _arg1 = data.createStringArray();
         java.lang.String _arg2;
         _arg2 = data.readString();
         int _arg3;
         _arg3 = data.readInt();
         int _arg4;
         _arg4 = data.readInt();
         this.checkModules(_arg0, _arg1, _arg2, _arg3, _arg4);
         reply.writeNoException();
         return true;
       }
   }
   return super.onTransact(code, data, reply, flags);
 }
Ejemplo n.º 10
0
 private PurchaseParams(Parcel paramParcel) {
   this.docid = ((Common.Docid) ParcelableProto.getProtoFromParcel(paramParcel));
   this.docidStr = paramParcel.readString();
   this.document = ((Document) paramParcel.readParcelable(Document.class.getClassLoader()));
   this.offerType = paramParcel.readInt();
   this.offerId = paramParcel.readString();
   this.appVersionCode = paramParcel.readInt();
   this.appTitle = paramParcel.readString();
   this.appContinueUrl = paramParcel.readString();
   Boolean localBoolean;
   if (paramParcel.readByte() != 0) {
     if (paramParcel.readByte() != 0) {
       localBoolean = Boolean.TRUE;
     }
   }
   for (this.appEverExternallyHosted = localBoolean; ; this.appEverExternallyHosted = null) {
     this.appInstallLocation = paramParcel.readInt();
     this.voucherId = paramParcel.readString();
     this.inAppPurchaseInfo =
         ((Purchase.InAppPurchaseInfo) ParcelableProto.getProtoFromParcel(paramParcel));
     this.callingPackage = paramParcel.readString();
     this.indirectProvisioningType = paramParcel.readInt();
     return;
     localBoolean = Boolean.FALSE;
     break;
   }
 }
 public void readFromParcel(Parcel in) {
   name = in.readString();
   iconUrl = in.readString();
   description = in.readString();
   justUnlocked = in.readInt() == 1 ? true : false;
   unlocked = in.readInt() == 1 ? true : false;
 }
Ejemplo n.º 12
0
        public boolean onTransact(int i, Parcel parcel, Parcel parcel1, int j)
            throws RemoteException
        {
            switch(i)
            {
            default:
                return super.onTransact(i, parcel, parcel1, j);

            case 1598968902: 
                parcel1.writeString("com.google.android.gms.wallet.internal.IWalletInternalServiceCallbacks");
                return true;

            case 1: // '\001'
                parcel.enforceInterface("com.google.android.gms.wallet.internal.IWalletInternalServiceCallbacks");
                i = parcel.readInt();
                j = parcel.readInt();
                break;
            }
            if(parcel.readInt() != 0)
                parcel = (Bundle)Bundle.CREATOR.createFromParcel(parcel);
            else
                parcel = null;
            zzb(i, j, parcel);
            parcel1.writeNoException();
            return true;
        }
 public ApiObject createFromParcel(Parcel parcel) {
   final int code = parcel.readInt();
   switch (code) {
     default:
       return new Error("Unknown object code: " + code);
     case Type.ERROR:
       return new Error(parcel.readString());
     case Type.VOID:
       return Void.Instance;
     case Type.INT:
       return new Integer(parcel.readInt());
     case Type.LONG:
       return new Long(parcel.readLong());
     case Type.FLOAT:
       return new Float(parcel.readFloat());
     case Type.BOOLEAN:
       return new Boolean(parcel.readByte() == 1);
     case Type.DATE:
       return new Date(new java.util.Date(parcel.readLong()));
     case Type.STRING:
       return new String(parcel.readString());
     case Type.TEXT_POSITION:
       return new TextPosition(parcel.readInt(), parcel.readInt(), parcel.readInt());
     case Type.SERIALIZABLE:
       return new Serializable(parcel.readSerializable());
     case Type.PARCELABALE:
       return new Parcelable(parcel.readParcelable(null));
   }
 }
  public void onServiceConnected(ComponentName className, IBinder service) {
    // Get the OpenUDID from the remote service
    try {
      // Send a random number to the service
      android.os.Parcel data = android.os.Parcel.obtain();
      data.writeInt(mRandom.nextInt());
      android.os.Parcel reply = android.os.Parcel.obtain();
      service.transact(1, android.os.Parcel.obtain(), reply, 0);
      if (data.readInt() == reply.readInt()) // Check if the service returns us this number
      {
        final String _openUDID = reply.readString();
        if (_openUDID != null) { // if valid OpenUDID, save it
          if (LOG) Log.d(TAG, "Received " + _openUDID);

          if (mReceivedOpenUDIDs.containsKey(_openUDID))
            mReceivedOpenUDIDs.put(_openUDID, mReceivedOpenUDIDs.get(_openUDID) + 1);
          else mReceivedOpenUDIDs.put(_openUDID, 1);
        }
      }
    } catch (RemoteException e) {
      if (LOG) Log.e(TAG, "RemoteException: " + e.getMessage());
    }
    mContext.unbindService(this);

    startService(); // Try the next one
  }
Ejemplo n.º 15
0
  public boolean onTransact(int i, Parcel parcel, Parcel parcel1, int j) {
    IBinder ibinder = null;
    Object obj = null;
    switch (i) {
      default:
        return super.onTransact(i, parcel, parcel1, j);

      case 1598968902:
        parcel1.writeString("com.google.android.gms.common.internal.IGmsCallbacks");
        return true;

      case 1: // '\001'
        parcel.enforceInterface("com.google.android.gms.common.internal.IGmsCallbacks");
        i = parcel.readInt();
        ibinder = parcel.readStrongBinder();
        if (parcel.readInt() != 0) {
          obj = (Bundle) Bundle.CREATOR.createFromParcel(parcel);
        }
        a(i, ibinder, ((Bundle) (obj)));
        parcel1.writeNoException();
        return true;

      case 2: // '\002'
        parcel.enforceInterface("com.google.android.gms.common.internal.IGmsCallbacks");
        i = parcel.readInt();
        obj = ibinder;
        break;
    }
    if (parcel.readInt() != 0) {
      obj = (Bundle) Bundle.CREATOR.createFromParcel(parcel);
    }
    a(i, ((Bundle) (obj)));
    parcel1.writeNoException();
    return true;
  }
Ejemplo n.º 16
0
 private Article(Parcel parcel) {
   this.id = parcel.readInt();
   this.title = parcel.readString();
   this.html = parcel.readString();
   this.topicName = parcel.readString();
   this.weight = parcel.readInt();
 }
 public boolean onTransact(
     int paramInt1, Parcel paramParcel1, Parcel paramParcel2, int paramInt2) {
   switch (paramInt1) {
     default:
       return super.onTransact(paramInt1, paramParcel1, paramParcel2, paramInt2);
     case 1598968902:
       paramParcel2.writeString("com.google.android.gms.ads.internal.client.IAdManagerCreator");
       return true;
   }
   paramParcel1.enforceInterface("com.google.android.gms.ads.internal.client.IAdManagerCreator");
   zzd localzzd = zzd.zza.zzau(paramParcel1.readStrongBinder());
   if (paramParcel1.readInt() != 0) {}
   for (zzba localzzba = zzba.CREATOR.zzc(paramParcel1); ; localzzba = null) {
     paramParcel1 =
         zza(
             localzzd,
             localzzba,
             paramParcel1.readString(),
             zzdr.zza.zzr(paramParcel1.readStrongBinder()),
             paramParcel1.readInt());
     paramParcel2.writeNoException();
     paramParcel2.writeStrongBinder(paramParcel1);
     return true;
   }
 }
 public boolean onTransact(
     int paramInt1, Parcel paramParcel1, Parcel paramParcel2, int paramInt2) {
   Object localObject2 = null;
   Object localObject3 = null;
   Object localObject4 = null;
   Object localObject5 = null;
   Object localObject1 = null;
   switch (paramInt1) {
     default:
       return super.onTransact(paramInt1, paramParcel1, paramParcel2, paramInt2);
     case 1598968902:
       paramParcel2.writeString(
           "com.google.android.gms.location.places.internal.IPlacesCallbacks");
       return true;
     case 1:
       paramParcel1.enforceInterface(
           "com.google.android.gms.location.places.internal.IPlacesCallbacks");
       paramParcel2 = (Parcel) localObject1;
       if (paramParcel1.readInt() != 0) {
         paramParcel2 = DataHolder.CREATOR.zzA(paramParcel1);
       }
       zzX(paramParcel2);
       return true;
     case 2:
       paramParcel1.enforceInterface(
           "com.google.android.gms.location.places.internal.IPlacesCallbacks");
       paramParcel2 = (Parcel) localObject2;
       if (paramParcel1.readInt() != 0) {
         paramParcel2 = DataHolder.CREATOR.zzA(paramParcel1);
       }
       zzY(paramParcel2);
       return true;
     case 3:
       paramParcel1.enforceInterface(
           "com.google.android.gms.location.places.internal.IPlacesCallbacks");
       paramParcel2 = (Parcel) localObject3;
       if (paramParcel1.readInt() != 0) {
         paramParcel2 = DataHolder.CREATOR.zzA(paramParcel1);
       }
       zzZ(paramParcel2);
       return true;
     case 4:
       paramParcel1.enforceInterface(
           "com.google.android.gms.location.places.internal.IPlacesCallbacks");
       paramParcel2 = (Parcel) localObject4;
       if (paramParcel1.readInt() != 0) {
         paramParcel2 = Status.CREATOR.createFromParcel(paramParcel1);
       }
       zzay(paramParcel2);
       return true;
   }
   paramParcel1.enforceInterface(
       "com.google.android.gms.location.places.internal.IPlacesCallbacks");
   paramParcel2 = (Parcel) localObject5;
   if (paramParcel1.readInt() != 0) {
     paramParcel2 = DataHolder.CREATOR.zzA(paramParcel1);
   }
   zzaa(paramParcel2);
   return true;
 }
Ejemplo n.º 19
0
  public Layoutelements(Parcel im) {
    try {
      Bitmap bitmap = (Bitmap) im.readParcelable(getClass().getClassLoader());
      // Convert Bitmap to Drawable:
      imageId = new BitmapDrawable(bitmap);

      title = im.readString();
      desc = im.readString();
      permissions = im.readString();
      symlink = im.readString();
      int j = im.readInt();
      date = im.readLong();
      int i = im.readInt();
      if (i == 0) {
        header = false;
      } else {
        header = true;
      }
      if (j == 0) {
        isDirectory = false;
      } else {
        isDirectory = true;
      }
    } catch (Exception e) {
      e.printStackTrace();
    }
    date1 = im.readString();
    longSize = im.readLong();
  }
Ejemplo n.º 20
0
 @DSSafe(DSCat.SAFE_OTHERS)
 @DSGenerator(
     tool_name = "Doppelganger",
     tool_version = "2.0",
     generated_on = "2013-12-30 12:33:32.766 -0500",
     hash_original_method = "A58EACE4A3F53740E5D628758A64E4CC",
     hash_generated_method = "9073D982142882D66A8936FA7C8E980E")
 public StorageVolume createFromParcel(Parcel in) {
   String path = in.readString();
   String description = in.readString();
   int removable = in.readInt();
   int emulated = in.readInt();
   int storageId = in.readInt();
   int mtpReserveSpace = in.readInt();
   int allowMassStorage = in.readInt();
   long maxFileSize = in.readLong();
   return new StorageVolume(
       path,
       description,
       removable == 1,
       emulated == 1,
       mtpReserveSpace,
       storageId,
       allowMassStorage == 1,
       maxFileSize);
 }
Ejemplo n.º 21
0
 /** {@hide} */
 public void readFromParcel(Parcel in) {
   mUsername = in.readString();
   mEncryptedPassword = in.readString();
   mPassword = in.readString();
   mService = in.readString();
   mCaptchaToken = in.readString();
   int len = in.readInt();
   if (len == -1) {
     mCaptchaData = null;
   } else {
     mCaptchaData = new byte[len];
     in.readByteArray(mCaptchaData);
   }
   mCaptchaMimeType = in.readString();
   mCaptchaAnswer = in.readString();
   mFlags = in.readInt();
   String status = in.readString();
   if (status == null) {
     mStatus = null;
   } else {
     mStatus = Status.valueOf(status);
   }
   mJsonString = in.readString();
   mSid = in.readString();
   mAuthtoken = in.readString();
 }
 public SuggestionsInfo(Parcel source) {
   mSuggestionsAttributes = source.readInt();
   mSuggestions = source.readStringArray();
   mCookie = source.readInt();
   mSequence = source.readInt();
   mSuggestionsAvailable = source.readInt() == 1;
 }
 public void readToParcel(Parcel source) {
   setSplitTransId(source.readInt());
   setTransId(source.readInt());
   setCategId(source.readInt());
   setSubCategId(source.readInt());
   setSplitTransAmount(source.readDouble());
 }
 @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_mapTileRequestCompleted:
       {
         data.enforceInterface(DESCRIPTOR);
         int _arg0;
         _arg0 = data.readInt();
         int _arg1;
         _arg1 = data.readInt();
         int _arg2;
         _arg2 = data.readInt();
         int _arg3;
         _arg3 = data.readInt();
         java.lang.String _arg4;
         _arg4 = data.readString();
         this.mapTileRequestCompleted(_arg0, _arg1, _arg2, _arg3, _arg4);
         reply.writeNoException();
         return true;
       }
   }
   return super.onTransact(code, data, reply, flags);
 }
  private PaymentIntent(final Parcel in) {
    standard = (Standard) in.readSerializable();

    payeeName = in.readString();
    payeeVerifiedBy = in.readString();

    final int outputsLength = in.readInt();
    if (outputsLength > 0) {
      outputs = new Output[outputsLength];
      in.readTypedArray(outputs, Output.CREATOR);
    } else {
      outputs = null;
    }

    memo = in.readString();

    paymentUrl = in.readString();

    final int payeeDataLength = in.readInt();
    if (payeeDataLength > 0) {
      payeeData = new byte[payeeDataLength];
      in.readByteArray(payeeData);
    } else {
      payeeData = null;
    }

    paymentRequestUrl = in.readString();
  }
Ejemplo n.º 26
0
 public static FavaDiagnosticsEntity a(Parcel paramParcel) {
   int i = 0;
   int j = efj.a(paramParcel);
   String str = null;
   int k = 0;
   while (paramParcel.dataPosition() < j) {
     int m = paramParcel.readInt();
     switch (0xFFFF & m) {
       default:
         efj.b(paramParcel, m);
         break;
       case 1:
         efj.a(paramParcel, m, 4);
         k = paramParcel.readInt();
         break;
       case 2:
         str = efj.e(paramParcel, m);
         break;
       case 3:
         efj.a(paramParcel, m, 4);
         i = paramParcel.readInt();
     }
   }
   if (paramParcel.dataPosition() != j) {
     throw new bm("Overread allowed size end=" + j, paramParcel);
   }
   return new FavaDiagnosticsEntity(k, str, i);
 }
        @DSSafe(DSCat.SAFE_OTHERS)
        @DSGenerator(
            tool_name = "Doppelganger",
            tool_version = "2.0",
            generated_on = "2013-12-30 12:34:55.755 -0500",
            hash_original_method = "8E491D44C01D53B45589AFC0F51C5901",
            hash_generated_method = "F2CB1E3ED7E70E38911746D19D4C2C4E")
        public ParceledListSlice createFromParcel(Parcel in) {
          final int numItems = in.readInt();
          final boolean lastSlice = in.readInt() == 1;

          if (numItems > 0) {
            final int parcelSize = in.readInt();

            // Advance within this Parcel
            int offset = in.dataPosition();
            in.setDataPosition(offset + parcelSize);

            Parcel p = Parcel.obtain();
            p.setDataPosition(0);
            p.appendFrom(in, offset, parcelSize);
            p.setDataPosition(0);

            return new ParceledListSlice(p, numItems, lastSlice);
          } else {
            return new ParceledListSlice();
          }
        }
Ejemplo n.º 28
0
 public boolean onTransact(
     int paramInt1, Parcel paramParcel1, Parcel paramParcel2, int paramInt2)
     throws RemoteException {
   switch (paramInt1) {
     default:
       return super.onTransact(paramInt1, paramParcel1, paramParcel2, paramInt2);
     case 1598968902:
       paramParcel2.writeString(
           "com.google.android.gms.wearable.internal.ILargeAssetSyncRequestResponder");
       return true;
     case 2:
       paramParcel1.enforceInterface(
           "com.google.android.gms.wearable.internal.ILargeAssetSyncRequestResponder");
       refuse(paramParcel1.readInt());
       paramParcel2.writeNoException();
       return true;
   }
   paramParcel1.enforceInterface(
       "com.google.android.gms.wearable.internal.ILargeAssetSyncRequestResponder");
   if (paramParcel1.readInt() != 0) {}
   for (ParcelFileDescriptor localParcelFileDescriptor =
           (ParcelFileDescriptor) ParcelFileDescriptor.CREATOR.createFromParcel(paramParcel1);
       ;
       localParcelFileDescriptor = null) {
     zza(localParcelFileDescriptor, paramParcel1.readLong());
     paramParcel2.writeNoException();
     return true;
   }
 }
Ejemplo n.º 29
0
 private VKPhotoSizes(Parcel in) {
   super(in);
   this.mOriginalWidth = in.readInt();
   this.mOriginalHeight = in.readInt();
   this.mWidthThumb = in.readString();
   this.mLastWidth = in.readInt();
 }
Ejemplo n.º 30
0
 public ImgurMessage(Parcel in) {
   super(in);
   mSenderId = in.readInt();
   mBody = in.readString();
   mFrom = in.readString();
   mIsSending = in.readInt() == 1;
 }