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 int setupConnection(
     android.os.Bundle args, org.chromium.content.common.IChildProcessCallback callback)
     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);
     if ((args != null)) {
       _data.writeInt(1);
       args.writeToParcel(_data, 0);
     } else {
       _data.writeInt(0);
     }
     _data.writeStrongBinder((((callback != null)) ? (callback.asBinder()) : (null)));
     mRemote.transact(Stub.TRANSACTION_setupConnection, _data, _reply, 0);
     _reply.readException();
     _result = _reply.readInt();
   } finally {
     _reply.recycle();
     _data.recycle();
   }
   return _result;
 }
Пример #3
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;
 }
 /**
  * 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;
 }
Пример #5
0
 public void confirmCredentials(
     IAccountManagerResponse response,
     Account account,
     Bundle options,
     boolean expectActivityLaunch)
     throws RemoteException {
   int i = Stub.TRANSACTION_getPassword;
   Parcel _data = Parcel.obtain();
   Parcel _reply = Parcel.obtain();
   try {
     _data.writeInterfaceToken(Stub.DESCRIPTOR);
     _data.writeStrongBinder(response != null ? response.asBinder() : null);
     if (account != null) {
       _data.writeInt(Stub.TRANSACTION_getPassword);
       account.writeToParcel(_data, 0);
     } else {
       _data.writeInt(0);
     }
     if (options != null) {
       _data.writeInt(Stub.TRANSACTION_getPassword);
       options.writeToParcel(_data, 0);
     } else {
       _data.writeInt(0);
     }
     if (!expectActivityLaunch) {
       i = 0;
     }
     _data.writeInt(i);
     this.mRemote.transact(Stub.TRANSACTION_confirmCredentials, _data, _reply, 0);
     _reply.readException();
   } finally {
     _reply.recycle();
     _data.recycle();
   }
 }
Пример #6
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();
   }
 }
Пример #7
0
 public void addAcount(
     IAccountManagerResponse response,
     String accountType,
     String authTokenType,
     String[] requiredFeatures,
     boolean expectActivityLaunch,
     Bundle options)
     throws RemoteException {
   int i = Stub.TRANSACTION_getPassword;
   Parcel _data = Parcel.obtain();
   Parcel _reply = Parcel.obtain();
   try {
     _data.writeInterfaceToken(Stub.DESCRIPTOR);
     _data.writeStrongBinder(response != null ? response.asBinder() : null);
     _data.writeString(accountType);
     _data.writeString(authTokenType);
     _data.writeStringArray(requiredFeatures);
     if (!expectActivityLaunch) {
       i = 0;
     }
     _data.writeInt(i);
     if (options != null) {
       _data.writeInt(Stub.TRANSACTION_getPassword);
       options.writeToParcel(_data, 0);
     } else {
       _data.writeInt(0);
     }
     this.mRemote.transact(Stub.TRANSACTION_addAcount, _data, _reply, 0);
     _reply.readException();
   } finally {
     _reply.recycle();
     _data.recycle();
   }
 }
Пример #8
0
 public boolean addAccount(Account account, String password, Bundle extras)
     throws RemoteException {
   boolean _result = true;
   Parcel _data = Parcel.obtain();
   Parcel _reply = Parcel.obtain();
   try {
     _data.writeInterfaceToken(Stub.DESCRIPTOR);
     if (account != null) {
       _data.writeInt(Stub.TRANSACTION_getPassword);
       account.writeToParcel(_data, 0);
     } else {
       _data.writeInt(0);
     }
     _data.writeString(password);
     if (extras != null) {
       _data.writeInt(Stub.TRANSACTION_getPassword);
       extras.writeToParcel(_data, 0);
     } else {
       _data.writeInt(0);
     }
     this.mRemote.transact(Stub.TRANSACTION_addAccount, _data, _reply, 0);
     _reply.readException();
     if (_reply.readInt() == 0) {
       _result = false;
     }
     _reply.recycle();
     _data.recycle();
     return _result;
   } catch (Throwable th) {
     _reply.recycle();
     _data.recycle();
   }
 }
Пример #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_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);
 }
Пример #10
0
 public boolean onTransact(int code, Parcel data, Parcel reply, int flags)
     throws RemoteException {
   Bundle bundle = null;
   String readString;
   switch (code) {
     case Std.STD_FILE /*1*/:
       data.enforceInterface("com.google.android.auth.IAuthManagerService");
       readString = data.readString();
       String readString2 = data.readString();
       if (data.readInt() != 0) {
         bundle = (Bundle) Bundle.CREATOR.createFromParcel(data);
       }
       bundle = m1206a(readString, readString2, bundle);
       reply.writeNoException();
       if (bundle != null) {
         reply.writeInt(1);
         bundle.writeToParcel(reply, 1);
       } else {
         reply.writeInt(0);
       }
       return true;
     case Std.STD_URL /*2*/:
       data.enforceInterface("com.google.android.auth.IAuthManagerService");
       readString = data.readString();
       if (data.readInt() != 0) {
         bundle = (Bundle) Bundle.CREATOR.createFromParcel(data);
       }
       bundle = m1205a(readString, bundle);
       reply.writeNoException();
       if (bundle != null) {
         reply.writeInt(1);
         bundle.writeToParcel(reply, 1);
       } else {
         reply.writeInt(0);
       }
       return true;
     case 1598968902:
       reply.writeString("com.google.android.auth.IAuthManagerService");
       return true;
     default:
       return super.onTransact(code, data, reply, flags);
   }
 }
 public void onResult(Bundle value) throws RemoteException {
   Parcel _data = Parcel.obtain();
   try {
     _data.writeInterfaceToken(Stub.DESCRIPTOR);
     if (value != null) {
       _data.writeInt(Stub.TRANSACTION_onResult);
       value.writeToParcel(_data, 0);
     } else {
       _data.writeInt(0);
     }
     this.mRemote.transact(Stub.TRANSACTION_onResult, _data, null, Stub.TRANSACTION_onResult);
   } finally {
     _data.recycle();
   }
 }
Пример #12
0
 /**
  * This method is called by the Ministro service back into the application which implements
  * this interface.
  *
  * <p>param in - loaderParams loaderParams fields: * Key Name Key type Explanations *
  * "error.code" Integer See below * "error.message" String Missing if no error, otherwise will
  * contain the error message translated into phone language where available. * "dex.path"
  * String The list of jar/apk files containing classes and resources, needed to be passed to
  * application DexClassLoader * "lib.path" String The list of directories containing native
  * libraries; may be missing, needed to be passed to application DexClassLoader *
  * "loader.class.name" String Loader class name.
  *
  * <p>"error.code" field possible errors: - 0 no error. - 1 incompatible Ministro version.
  * Ministro needs to be upgraded. - 2 not all modules could be satisfy. - 3 invalid parameters
  * - 4 invalid qt version - 5 download canceled
  *
  * <p>The parameter contains additional fields which are used by the loader to start your
  * application, so it must be passed to the loader.
  */
 @Override
 public void loaderReady(android.os.Bundle loaderParams) throws android.os.RemoteException {
   android.os.Parcel _data = android.os.Parcel.obtain();
   try {
     _data.writeInterfaceToken(DESCRIPTOR);
     if ((loaderParams != null)) {
       _data.writeInt(1);
       loaderParams.writeToParcel(_data, 0);
     } else {
       _data.writeInt(0);
     }
     mRemote.transact(
         Stub.TRANSACTION_loaderReady, _data, null, android.os.IBinder.FLAG_ONEWAY);
   } finally {
     _data.recycle();
   }
 }
        public void onEvent(String s, Bundle bundle)
            throws RemoteException
        {
            Parcel parcel = Parcel.obtain();
            parcel.writeInterfaceToken("android.support.v4.media.session.IMediaControllerCallback");
            parcel.writeString(s);
            if (bundle == null)
            {
                break MISSING_BLOCK_LABEL_49;
            }
            parcel.writeInt(1);
            bundle.writeToParcel(parcel, 0);
_L1:
            mRemote.transact(1, parcel, null, 1);
            parcel.recycle();
            return;
            parcel.writeInt(0);
              goto _L1
Пример #14
0
 /*
  * Enabled aggressive block sorting
  * Enabled unnecessary exception pruning
  * Enabled aggressive exception aggregation
  */
 @Override
 public void onCreate(Bundle bundle) throws RemoteException {
     Parcel parcel = Parcel.obtain();
     Parcel parcel2 = Parcel.obtain();
     try {
         parcel.writeInterfaceToken("com.google.android.gms.maps.internal.IMapViewDelegate");
         if (bundle != null) {
             parcel.writeInt(1);
             bundle.writeToParcel(parcel, 0);
         } else {
             parcel.writeInt(0);
         }
         this.kn.transact(2, parcel, parcel2, 0);
         parcel2.readException();
         return;
     }
     finally {
         parcel2.recycle();
         parcel.recycle();
     }
 }
Пример #15
0
 /**
  * Check/download required libs to run the application
  *
  * <p>param callback - interface used by Minsitro service to notify the client when the loader
  * is ready param parameters parameters fields: * Key Name Key type Explanations
  * "required.modules" StringArray Required modules by your application "application.title"
  * String Application name, used to show more informations to user "qt.provider" String Qt
  * libs provider, currently only "necessitas" is supported. "minimum.ministro.api" Integer
  * Minimum Ministro API level, used to check if Ministro service compatible with your
  * application. Current API Level is 1 ! "minimum.qt.version" Integer Minimim Qt version (e.g.
  * 0x040800, which means Qt 4.8.0, check
  * http://doc.trolltech.com/4.8/qtglobal.html#QT_VERSION)! "3rd.party.repositories"
  * StringArray 3rd party repositories, which should be downloaded by ministro, needs
  * minimum.ministro.api >= 2 Check http://community.kde.org/Necessitas/Ministro for more
  * details.
  */
 public void requestLoader(
     org.kde.necessitas.ministro.IMinistroCallback callback, android.os.Bundle parameters)
     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.writeStrongBinder((((callback != null)) ? (callback.asBinder()) : (null)));
     if ((parameters != null)) {
       _data.writeInt(1);
       parameters.writeToParcel(_data, 0);
     } else {
       _data.writeInt(0);
     }
     mRemote.transact(Stub.TRANSACTION_requestLoader, _data, _reply, 0);
     _reply.readException();
   } finally {
     _reply.recycle();
     _data.recycle();
   }
 }
Пример #16
0
        public void zzb(int i, int j, Bundle bundle)
            throws RemoteException
        {
            Parcel parcel;
            Parcel parcel1;
            parcel = Parcel.obtain();
            parcel1 = Parcel.obtain();
            parcel.writeInterfaceToken("com.google.android.gms.wallet.internal.IWalletInternalServiceCallbacks");
            parcel.writeInt(i);
            parcel.writeInt(j);
            if(bundle == null)
                break MISSING_BLOCK_LABEL_78;
            parcel.writeInt(1);
            bundle.writeToParcel(parcel, 0);
_L1:
            zzlW.transact(1, parcel, parcel1, 0);
            parcel1.readException();
            parcel1.recycle();
            parcel.recycle();
            return;
            parcel.writeInt(0);
              goto _L1
Пример #17
0
    public boolean onTransact(int i, Parcel parcel, Parcel parcel1, int j)
        throws RemoteException
    {
        Object obj1 = null;
        Object obj2 = null;
        b b1 = null;
        Object obj = null;
        switch (i)
        {
        default:
            return super.onTransact(i, parcel, parcel1, j);

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

        case 1: // '\001'
            parcel.enforceInterface("com.google.android.gms.maps.internal.IMapViewDelegate");
            b1 = a();
            parcel1.writeNoException();
            parcel = obj;
            if (b1 != null)
            {
                parcel = b1.asBinder();
            }
            parcel1.writeStrongBinder(parcel);
            return true;

        case 2: // '\002'
            parcel.enforceInterface("com.google.android.gms.maps.internal.IMapViewDelegate");
            Bundle bundle = obj1;
            if (parcel.readInt() != 0)
            {
                bundle = (Bundle)Bundle.CREATOR.createFromParcel(parcel);
            }
            a(bundle);
            parcel1.writeNoException();
            return true;

        case 3: // '\003'
            parcel.enforceInterface("com.google.android.gms.maps.internal.IMapViewDelegate");
            b();
            parcel1.writeNoException();
            return true;

        case 4: // '\004'
            parcel.enforceInterface("com.google.android.gms.maps.internal.IMapViewDelegate");
            c();
            parcel1.writeNoException();
            return true;

        case 5: // '\005'
            parcel.enforceInterface("com.google.android.gms.maps.internal.IMapViewDelegate");
            d();
            parcel1.writeNoException();
            return true;

        case 6: // '\006'
            parcel.enforceInterface("com.google.android.gms.maps.internal.IMapViewDelegate");
            e();
            parcel1.writeNoException();
            return true;

        case 7: // '\007'
            parcel.enforceInterface("com.google.android.gms.maps.internal.IMapViewDelegate");
            Bundle bundle1 = obj2;
            if (parcel.readInt() != 0)
            {
                bundle1 = (Bundle)Bundle.CREATOR.createFromParcel(parcel);
            }
            b(bundle1);
            parcel1.writeNoException();
            if (bundle1 != null)
            {
                parcel1.writeInt(1);
                bundle1.writeToParcel(parcel1, 1);
            } else
            {
                parcel1.writeInt(0);
            }
            return true;

        case 8: // '\b'
            parcel.enforceInterface("com.google.android.gms.maps.internal.IMapViewDelegate");
            e e1 = f();
            parcel1.writeNoException();
            parcel = b1;
            if (e1 != null)
            {
                parcel = e1.asBinder();
            }
            parcel1.writeStrongBinder(parcel);
            return true;

        case 9: // '\t'
            parcel.enforceInterface("com.google.android.gms.maps.internal.IMapViewDelegate");
            a(.a(parcel.readStrongBinder()));
            parcel1.writeNoException();
            return true;
        }
    }
Пример #18
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.dynamic.IFragmentWrapper");
                return true;

            case 2: // '\002'
                parcel.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
                d d3 = gD();
                parcel1.writeNoException();
                IBinder ibinder4 = null;
                if (d3 != null)
                {
                    ibinder4 = d3.asBinder();
                }
                parcel1.writeStrongBinder(ibinder4);
                return true;

            case 3: // '\003'
                parcel.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
                Bundle bundle = getArguments();
                parcel1.writeNoException();
                if (bundle != null)
                {
                    parcel1.writeInt(1);
                    bundle.writeToParcel(parcel1, 1);
                    return true;
                } else
                {
                    parcel1.writeInt(0);
                    return true;
                }

            case 4: // '\004'
                parcel.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
                int k4 = getId();
                parcel1.writeNoException();
                parcel1.writeInt(k4);
                return true;

            case 5: // '\005'
                parcel.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
                c c2 = gE();
                parcel1.writeNoException();
                IBinder ibinder3 = null;
                if (c2 != null)
                {
                    ibinder3 = c2.asBinder();
                }
                parcel1.writeStrongBinder(ibinder3);
                return true;

            case 6: // '\006'
                parcel.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
                d d2 = gF();
                parcel1.writeNoException();
                IBinder ibinder2 = null;
                if (d2 != null)
                {
                    ibinder2 = d2.asBinder();
                }
                parcel1.writeStrongBinder(ibinder2);
                return true;

            case 7: // '\007'
                parcel.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
                boolean flag12 = getRetainInstance();
                parcel1.writeNoException();
                int j4;
                if (flag12)
                {
                    j4 = 1;
                } else
                {
                    j4 = 0;
                }
                parcel1.writeInt(j4);
                return true;

            case 8: // '\b'
                parcel.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
                String s = getTag();
                parcel1.writeNoException();
                parcel1.writeString(s);
                return true;

            case 9: // '\t'
                parcel.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
                c c1 = gG();
                parcel1.writeNoException();
                IBinder ibinder1 = null;
                if (c1 != null)
                {
                    ibinder1 = c1.asBinder();
                }
                parcel1.writeStrongBinder(ibinder1);
                return true;

            case 10: // '\n'
                parcel.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
                int i4 = getTargetRequestCode();
                parcel1.writeNoException();
                parcel1.writeInt(i4);
                return true;

            case 11: // '\013'
                parcel.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
                boolean flag11 = getUserVisibleHint();
                parcel1.writeNoException();
                int l3 = 0;
                if (flag11)
                {
                    l3 = 1;
                }
                parcel1.writeInt(l3);
                return true;

            case 12: // '\f'
                parcel.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
                d d1 = getView();
                parcel1.writeNoException();
                IBinder ibinder = null;
                if (d1 != null)
                {
                    ibinder = d1.asBinder();
                }
                parcel1.writeStrongBinder(ibinder);
                return true;

            case 13: // '\r'
                parcel.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
                boolean flag10 = isAdded();
                parcel1.writeNoException();
                int k3 = 0;
                if (flag10)
                {
                    k3 = 1;
                }
                parcel1.writeInt(k3);
                return true;

            case 14: // '\016'
                parcel.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
                boolean flag9 = isDetached();
                parcel1.writeNoException();
                int j3 = 0;
                if (flag9)
                {
                    j3 = 1;
                }
                parcel1.writeInt(j3);
                return true;

            case 15: // '\017'
                parcel.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
                boolean flag8 = isHidden();
                parcel1.writeNoException();
                int i3 = 0;
                if (flag8)
                {
                    i3 = 1;
                }
                parcel1.writeInt(i3);
                return true;

            case 16: // '\020'
                parcel.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
                boolean flag7 = isInLayout();
                parcel1.writeNoException();
                int l2 = 0;
                if (flag7)
                {
                    l2 = 1;
                }
                parcel1.writeInt(l2);
                return true;

            case 17: // '\021'
                parcel.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
                boolean flag6 = isRemoving();
                parcel1.writeNoException();
                int k2 = 0;
                if (flag6)
                {
                    k2 = 1;
                }
                parcel1.writeInt(k2);
                return true;

            case 18: // '\022'
                parcel.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
                boolean flag5 = isResumed();
                parcel1.writeNoException();
                int j2 = 0;
                if (flag5)
                {
                    j2 = 1;
                }
                parcel1.writeInt(j2);
                return true;

            case 19: // '\023'
                parcel.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
                boolean flag4 = isVisible();
                parcel1.writeNoException();
                int i2 = 0;
                if (flag4)
                {
                    i2 = 1;
                }
                parcel1.writeInt(i2);
                return true;

            case 20: // '\024'
                parcel.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
                c(com.google.android.gms.dynamic.d.a.ag(parcel.readStrongBinder()));
                parcel1.writeNoException();
                return true;

            case 21: // '\025'
                parcel.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
                int l1 = parcel.readInt();
                boolean flag3 = false;
                if (l1 != 0)
                {
                    flag3 = true;
                }
                setHasOptionsMenu(flag3);
                parcel1.writeNoException();
                return true;

            case 22: // '\026'
                parcel.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
                int k1 = parcel.readInt();
                boolean flag2 = false;
                if (k1 != 0)
                {
                    flag2 = true;
                }
                setMenuVisibility(flag2);
                parcel1.writeNoException();
                return true;

            case 23: // '\027'
                parcel.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
                int j1 = parcel.readInt();
                boolean flag1 = false;
                if (j1 != 0)
                {
                    flag1 = true;
                }
                setRetainInstance(flag1);
                parcel1.writeNoException();
                return true;

            case 24: // '\030'
                parcel.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
                int i1 = parcel.readInt();
                boolean flag = false;
                if (i1 != 0)
                {
                    flag = true;
                }
                setUserVisibleHint(flag);
                parcel1.writeNoException();
                return true;

            case 25: // '\031'
                parcel.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
                int l = parcel.readInt();
                Intent intent1 = null;
                if (l != 0)
                {
                    intent1 = (Intent)Intent.CREATOR.createFromParcel(parcel);
                }
                startActivity(intent1);
                parcel1.writeNoException();
                return true;

            case 26: // '\032'
                parcel.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
                int k = parcel.readInt();
                Intent intent = null;
                if (k != 0)
                {
                    intent = (Intent)Intent.CREATOR.createFromParcel(parcel);
                }
                startActivityForResult(intent, parcel.readInt());
                parcel1.writeNoException();
                return true;

            case 27: // '\033'
                parcel.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
                d(com.google.android.gms.dynamic.d.a.ag(parcel.readStrongBinder()));
                parcel1.writeNoException();
                return true;
            }
        }
  public void testSurveyStateSaving() {
    final String surveyJsonString =
        "{\"collections\":[{\"id\":151,\"selector\":\"\\\"@mixpanel\\\" in properties[\\\"$email\\\"]\"}],"
            + "\"id\":299,"
            + "\"questions\":["
            + "{\"prompt\":\"PROMPT1\",\"extra_data\":{\"$choices\":[\"Answer1,1\",\"Answer1,2\",\"Answer1,3\"]},\"type\":\"multiple_choice\",\"id\":287},"
            + "{\"prompt\":\"PROMPT2\",\"extra_data\":{},\"type\":\"text\",\"id\":289}]}";

    Bitmap.Config conf = Bitmap.Config.ARGB_8888;
    Bitmap testBitmap = Bitmap.createBitmap(100, 100, conf);

    UpdateDisplayState originalUpdateDisplayState;
    try {
      final JSONObject surveyJson = new JSONObject(surveyJsonString);
      final Survey s = new Survey(surveyJson);
      final UpdateDisplayState.DisplayState.SurveyState surveyState =
          new UpdateDisplayState.DisplayState.SurveyState(s);
      surveyState.setHighlightColor(Color.WHITE);
      surveyState.setBackground(testBitmap);
      originalUpdateDisplayState = new UpdateDisplayState(surveyState, "DistinctId", "Token");
    } catch (JSONException e) {
      throw new RuntimeException("Survey string in test doesn't parse");
    } catch (BadDecideObjectException e) {
      throw new RuntimeException("Test survey string couldn't be made into a survey");
    }

    final Bundle inBundle = new Bundle();
    inBundle.putParcelable("TEST SURVEY PARCEL", originalUpdateDisplayState);
    final Parcel outerParcel = Parcel.obtain();
    inBundle.writeToParcel(outerParcel, 0);
    outerParcel.setDataPosition(0);
    final Bundle outBundle = outerParcel.readBundle();
    outBundle.setClassLoader(UpdateDisplayState.class.getClassLoader());
    final UpdateDisplayState inUpdateDisplayState = outBundle.getParcelable("TEST SURVEY PARCEL");

    final UpdateDisplayState.DisplayState.SurveyState surveyState =
        (UpdateDisplayState.DisplayState.SurveyState) inUpdateDisplayState.getDisplayState();
    final Survey inSurvey = surveyState.getSurvey();
    final String inDistinctId = inUpdateDisplayState.getDistinctId();
    final String inToken = inUpdateDisplayState.getToken();

    assertEquals("DistinctId", inDistinctId);
    assertEquals("Token", inToken);
    assertEquals(inSurvey.getId(), 299);

    List<Survey.Question> inQuestions = inSurvey.getQuestions();
    assertEquals(2, inQuestions.size());

    final Survey.Question q1 = inQuestions.get(0);
    assertEquals(q1.getId(), 287);
    assertEquals(q1.getPrompt(), "PROMPT1");
    assertEquals(q1.getType(), Survey.QuestionType.MULTIPLE_CHOICE);

    final List<String> q1Choices = q1.getChoices();
    assertEquals(q1Choices.size(), 3);
    assertEquals(q1Choices.get(0), "Answer1,1");
    assertEquals(q1Choices.get(1), "Answer1,2");
    assertEquals(q1Choices.get(2), "Answer1,3");

    final Survey.Question q2 = inQuestions.get(1);
    assertEquals(q2.getId(), 289);
    assertEquals(q2.getPrompt(), "PROMPT2");
    assertEquals(q2.getType(), Survey.QuestionType.TEXT);

    assertNotNull(surveyState.getBackground());
    assertNotNull(surveyState.getAnswers());
  }
Пример #20
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_dial:
       {
         data.enforceInterface(DESCRIPTOR);
         java.lang.String _arg0;
         _arg0 = data.readString();
         this.dial(_arg0);
         reply.writeNoException();
         return true;
       }
     case TRANSACTION_call:
       {
         data.enforceInterface(DESCRIPTOR);
         java.lang.String _arg0;
         _arg0 = data.readString();
         this.call(_arg0);
         reply.writeNoException();
         return true;
       }
     case TRANSACTION_showCallScreen:
       {
         data.enforceInterface(DESCRIPTOR);
         boolean _result = this.showCallScreen();
         reply.writeNoException();
         reply.writeInt(((_result) ? (1) : (0)));
         return true;
       }
     case TRANSACTION_showCallScreenWithDialpad:
       {
         data.enforceInterface(DESCRIPTOR);
         boolean _arg0;
         _arg0 = (0 != data.readInt());
         boolean _result = this.showCallScreenWithDialpad(_arg0);
         reply.writeNoException();
         reply.writeInt(((_result) ? (1) : (0)));
         return true;
       }
     case TRANSACTION_endCall:
       {
         data.enforceInterface(DESCRIPTOR);
         boolean _result = this.endCall();
         reply.writeNoException();
         reply.writeInt(((_result) ? (1) : (0)));
         return true;
       }
     case TRANSACTION_answerRingingCall:
       {
         data.enforceInterface(DESCRIPTOR);
         this.answerRingingCall();
         reply.writeNoException();
         return true;
       }
     case TRANSACTION_silenceRinger:
       {
         data.enforceInterface(DESCRIPTOR);
         this.silenceRinger();
         reply.writeNoException();
         return true;
       }
     case TRANSACTION_isOffhook:
       {
         data.enforceInterface(DESCRIPTOR);
         boolean _result = this.isOffhook();
         reply.writeNoException();
         reply.writeInt(((_result) ? (1) : (0)));
         return true;
       }
     case TRANSACTION_isRinging:
       {
         data.enforceInterface(DESCRIPTOR);
         boolean _result = this.isRinging();
         reply.writeNoException();
         reply.writeInt(((_result) ? (1) : (0)));
         return true;
       }
     case TRANSACTION_isIdle:
       {
         data.enforceInterface(DESCRIPTOR);
         boolean _result = this.isIdle();
         reply.writeNoException();
         reply.writeInt(((_result) ? (1) : (0)));
         return true;
       }
     case TRANSACTION_isRadioOn:
       {
         data.enforceInterface(DESCRIPTOR);
         boolean _result = this.isRadioOn();
         reply.writeNoException();
         reply.writeInt(((_result) ? (1) : (0)));
         return true;
       }
     case TRANSACTION_isSimPinEnabled:
       {
         data.enforceInterface(DESCRIPTOR);
         boolean _result = this.isSimPinEnabled();
         reply.writeNoException();
         reply.writeInt(((_result) ? (1) : (0)));
         return true;
       }
     case TRANSACTION_cancelMissedCallsNotification:
       {
         data.enforceInterface(DESCRIPTOR);
         this.cancelMissedCallsNotification();
         reply.writeNoException();
         return true;
       }
     case TRANSACTION_supplyPin:
       {
         data.enforceInterface(DESCRIPTOR);
         java.lang.String _arg0;
         _arg0 = data.readString();
         boolean _result = this.supplyPin(_arg0);
         reply.writeNoException();
         reply.writeInt(((_result) ? (1) : (0)));
         return true;
       }
     case TRANSACTION_handlePinMmi:
       {
         data.enforceInterface(DESCRIPTOR);
         java.lang.String _arg0;
         _arg0 = data.readString();
         boolean _result = this.handlePinMmi(_arg0);
         reply.writeNoException();
         reply.writeInt(((_result) ? (1) : (0)));
         return true;
       }
     case TRANSACTION_toggleRadioOnOff:
       {
         data.enforceInterface(DESCRIPTOR);
         this.toggleRadioOnOff();
         reply.writeNoException();
         return true;
       }
     case TRANSACTION_setRadio:
       {
         data.enforceInterface(DESCRIPTOR);
         boolean _arg0;
         _arg0 = (0 != data.readInt());
         boolean _result = this.setRadio(_arg0);
         reply.writeNoException();
         reply.writeInt(((_result) ? (1) : (0)));
         return true;
       }
     case TRANSACTION_updateServiceLocation:
       {
         data.enforceInterface(DESCRIPTOR);
         this.updateServiceLocation();
         reply.writeNoException();
         return true;
       }
     case TRANSACTION_enableLocationUpdates:
       {
         data.enforceInterface(DESCRIPTOR);
         this.enableLocationUpdates();
         reply.writeNoException();
         return true;
       }
     case TRANSACTION_disableLocationUpdates:
       {
         data.enforceInterface(DESCRIPTOR);
         this.disableLocationUpdates();
         reply.writeNoException();
         return true;
       }
     case TRANSACTION_enableApnType:
       {
         data.enforceInterface(DESCRIPTOR);
         java.lang.String _arg0;
         _arg0 = data.readString();
         int _result = this.enableApnType(_arg0);
         reply.writeNoException();
         reply.writeInt(_result);
         return true;
       }
     case TRANSACTION_disableApnType:
       {
         data.enforceInterface(DESCRIPTOR);
         java.lang.String _arg0;
         _arg0 = data.readString();
         int _result = this.disableApnType(_arg0);
         reply.writeNoException();
         reply.writeInt(_result);
         return true;
       }
     case TRANSACTION_enableDataConnectivity:
       {
         data.enforceInterface(DESCRIPTOR);
         boolean _result = this.enableDataConnectivity();
         reply.writeNoException();
         reply.writeInt(((_result) ? (1) : (0)));
         return true;
       }
     case TRANSACTION_disableDataConnectivity:
       {
         data.enforceInterface(DESCRIPTOR);
         boolean _result = this.disableDataConnectivity();
         reply.writeNoException();
         reply.writeInt(((_result) ? (1) : (0)));
         return true;
       }
     case TRANSACTION_isDataConnectivityPossible:
       {
         data.enforceInterface(DESCRIPTOR);
         boolean _result = this.isDataConnectivityPossible();
         reply.writeNoException();
         reply.writeInt(((_result) ? (1) : (0)));
         return true;
       }
     case TRANSACTION_getCellLocation:
       {
         data.enforceInterface(DESCRIPTOR);
         android.os.Bundle _result = this.getCellLocation();
         reply.writeNoException();
         if ((_result != null)) {
           reply.writeInt(1);
           _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE);
         } else {
           reply.writeInt(0);
         }
         return true;
       }
     case TRANSACTION_getNeighboringCellInfo:
       {
         data.enforceInterface(DESCRIPTOR);
         java.util.List<android.telephony.NeighboringCellInfo> _result =
             this.getNeighboringCellInfo();
         reply.writeNoException();
         reply.writeTypedList(_result);
         return true;
       }
     case TRANSACTION_getCallState:
       {
         data.enforceInterface(DESCRIPTOR);
         int _result = this.getCallState();
         reply.writeNoException();
         reply.writeInt(_result);
         return true;
       }
     case TRANSACTION_getDataActivity:
       {
         data.enforceInterface(DESCRIPTOR);
         int _result = this.getDataActivity();
         reply.writeNoException();
         reply.writeInt(_result);
         return true;
       }
     case TRANSACTION_getDataState:
       {
         data.enforceInterface(DESCRIPTOR);
         int _result = this.getDataState();
         reply.writeNoException();
         reply.writeInt(_result);
         return true;
       }
     case TRANSACTION_getActivePhoneType:
       {
         data.enforceInterface(DESCRIPTOR);
         int _result = this.getActivePhoneType();
         reply.writeNoException();
         reply.writeInt(_result);
         return true;
       }
     case TRANSACTION_getCdmaEriIconIndex:
       {
         data.enforceInterface(DESCRIPTOR);
         int _result = this.getCdmaEriIconIndex();
         reply.writeNoException();
         reply.writeInt(_result);
         return true;
       }
     case TRANSACTION_getCdmaEriIconMode:
       {
         data.enforceInterface(DESCRIPTOR);
         int _result = this.getCdmaEriIconMode();
         reply.writeNoException();
         reply.writeInt(_result);
         return true;
       }
     case TRANSACTION_getCdmaEriText:
       {
         data.enforceInterface(DESCRIPTOR);
         java.lang.String _result = this.getCdmaEriText();
         reply.writeNoException();
         reply.writeString(_result);
         return true;
       }
     case TRANSACTION_getCdmaNeedsProvisioning:
       {
         data.enforceInterface(DESCRIPTOR);
         boolean _result = this.getCdmaNeedsProvisioning();
         reply.writeNoException();
         reply.writeInt(((_result) ? (1) : (0)));
         return true;
       }
     case TRANSACTION_getVoiceMessageCount:
       {
         data.enforceInterface(DESCRIPTOR);
         int _result = this.getVoiceMessageCount();
         reply.writeNoException();
         reply.writeInt(_result);
         return true;
       }
     case TRANSACTION_getNetworkType:
       {
         data.enforceInterface(DESCRIPTOR);
         int _result = this.getNetworkType();
         reply.writeNoException();
         reply.writeInt(_result);
         return true;
       }
     case TRANSACTION_hasIccCard:
       {
         data.enforceInterface(DESCRIPTOR);
         boolean _result = this.hasIccCard();
         reply.writeNoException();
         reply.writeInt(((_result) ? (1) : (0)));
         return true;
       }
   }
   return super.onTransact(code, data, reply, flags);
 }
Пример #21
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_isBillingSupported:
       {
         data.enforceInterface(DESCRIPTOR);
         int _arg0;
         _arg0 = data.readInt();
         java.lang.String _arg1;
         _arg1 = data.readString();
         java.lang.String _arg2;
         _arg2 = data.readString();
         int _result = this.isBillingSupported(_arg0, _arg1, _arg2);
         reply.writeNoException();
         reply.writeInt(_result);
         return true;
       }
     case TRANSACTION_getSkuDetails:
       {
         data.enforceInterface(DESCRIPTOR);
         int _arg0;
         _arg0 = data.readInt();
         java.lang.String _arg1;
         _arg1 = data.readString();
         java.lang.String _arg2;
         _arg2 = data.readString();
         android.os.Bundle _arg3;
         if ((0 != data.readInt())) {
           _arg3 = android.os.Bundle.CREATOR.createFromParcel(data);
         } else {
           _arg3 = null;
         }
         android.os.Bundle _result = this.getSkuDetails(_arg0, _arg1, _arg2, _arg3);
         reply.writeNoException();
         if ((_result != null)) {
           reply.writeInt(1);
           _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE);
         } else {
           reply.writeInt(0);
         }
         return true;
       }
     case TRANSACTION_getBuyIntent:
       {
         data.enforceInterface(DESCRIPTOR);
         int _arg0;
         _arg0 = data.readInt();
         java.lang.String _arg1;
         _arg1 = data.readString();
         java.lang.String _arg2;
         _arg2 = data.readString();
         java.lang.String _arg3;
         _arg3 = data.readString();
         java.lang.String _arg4;
         _arg4 = data.readString();
         android.os.Bundle _result = this.getBuyIntent(_arg0, _arg1, _arg2, _arg3, _arg4);
         reply.writeNoException();
         if ((_result != null)) {
           reply.writeInt(1);
           _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE);
         } else {
           reply.writeInt(0);
         }
         return true;
       }
     case TRANSACTION_getPurchases:
       {
         data.enforceInterface(DESCRIPTOR);
         int _arg0;
         _arg0 = data.readInt();
         java.lang.String _arg1;
         _arg1 = data.readString();
         java.lang.String _arg2;
         _arg2 = data.readString();
         java.lang.String _arg3;
         _arg3 = data.readString();
         android.os.Bundle _result = this.getPurchases(_arg0, _arg1, _arg2, _arg3);
         reply.writeNoException();
         if ((_result != null)) {
           reply.writeInt(1);
           _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE);
         } else {
           reply.writeInt(0);
         }
         return true;
       }
     case TRANSACTION_consumePurchase:
       {
         data.enforceInterface(DESCRIPTOR);
         int _arg0;
         _arg0 = data.readInt();
         java.lang.String _arg1;
         _arg1 = data.readString();
         java.lang.String _arg2;
         _arg2 = data.readString();
         int _result = this.consumePurchase(_arg0, _arg1, _arg2);
         reply.writeNoException();
         reply.writeInt(_result);
         return true;
       }
   }
   return super.onTransact(code, data, reply, flags);
 }
 public boolean onTransact(
     int paramInt1, Parcel paramParcel1, Parcel paramParcel2, int paramInt2) {
   String str2 = null;
   Object localObject2 = null;
   Object localObject1 = null;
   String str1 = null;
   boolean bool = false;
   long l1;
   switch (paramInt1) {
     default:
       return super.onTransact(paramInt1, paramParcel1, paramParcel2, paramInt2);
     case 1598968902:
       paramParcel2.writeString("com.android.emailcommon.service.IEmailService");
       return true;
     case 1:
       paramParcel1.enforceInterface("com.android.emailcommon.service.IEmailService");
       paramParcel2 = paramParcel1.readStrongBinder();
       if (paramParcel2 == null) {
         paramParcel2 = null;
       }
       for (; ; ) {
         l1 = paramParcel1.readLong();
         long l2 = paramParcel1.readLong();
         if (paramParcel1.readInt() != 0) {
           bool = true;
         }
         a(paramParcel2, l1, l2, bool);
         return true;
         localObject1 =
             paramParcel2.queryLocalInterface(
                 "com.android.emailcommon.service.IEmailServiceCallback");
         if ((localObject1 != null) && ((localObject1 instanceof bfb))) {
           paramParcel2 = (bfb) localObject1;
         } else {
           paramParcel2 = new bfd(paramParcel2);
         }
       }
     case 2:
       paramParcel1.enforceInterface("com.android.emailcommon.service.IEmailService");
       a(paramParcel1.readLong());
       paramParcel2.writeNoException();
       return true;
     case 3:
       paramParcel1.enforceInterface("com.android.emailcommon.service.IEmailService");
       c(paramParcel1.readLong());
       paramParcel2.writeNoException();
       return true;
     case 4:
       paramParcel1.enforceInterface("com.android.emailcommon.service.IEmailService");
       l1 = paramParcel1.readLong();
       localObject1 = str1;
       if (paramParcel1.readInt() != 0) {
         localObject1 = (Bundle) Bundle.CREATOR.createFromParcel(paramParcel1);
       }
       paramInt1 = a(l1, (Bundle) localObject1);
       paramParcel2.writeNoException();
       paramParcel2.writeInt(paramInt1);
       if (localObject1 != null) {
         paramParcel2.writeInt(1);
         ((Bundle) localObject1).writeToParcel(paramParcel2, 1);
         return true;
       }
       paramParcel2.writeInt(0);
       return true;
     case 5:
       paramParcel1.enforceInterface("com.android.emailcommon.service.IEmailService");
       b(paramParcel1.readLong());
       paramParcel2.writeNoException();
       return true;
     case 6:
       paramParcel1.enforceInterface("com.android.emailcommon.service.IEmailService");
       localObject1 = str2;
       if (paramParcel1.readInt() != 0) {
         localObject1 = (HostAuthCompat) HostAuthCompat.CREATOR.createFromParcel(paramParcel1);
       }
       paramParcel1 = a((HostAuthCompat) localObject1);
       paramParcel2.writeNoException();
       if (paramParcel1 != null) {
         paramParcel2.writeInt(1);
         paramParcel1.writeToParcel(paramParcel2, 1);
         return true;
       }
       paramParcel2.writeInt(0);
       return true;
     case 7:
       paramParcel1.enforceInterface("com.android.emailcommon.service.IEmailService");
       l1 = paramParcel1.readLong();
       if (paramParcel1.readInt() != 0) {}
       for (localObject1 = (SearchParams) SearchParams.CREATOR.createFromParcel(paramParcel1);
           ;
           localObject1 = null) {
         paramParcel1 = a(l1, (SearchParams) localObject1, paramParcel1.readLong());
         paramParcel2.writeNoException();
         if (paramParcel1 == null) {
           break;
         }
         paramParcel2.writeInt(1);
         paramParcel1.writeToParcel(paramParcel2, 1);
         return true;
       }
       paramParcel2.writeInt(0);
       return true;
     case 8:
       paramParcel1.enforceInterface("com.android.emailcommon.service.IEmailService");
       a(
           paramParcel1.readLong(),
           paramParcel1.readInt(),
           paramParcel1.readLong(),
           paramParcel1.readLong(),
           paramParcel1.readString());
       return true;
     case 9:
       paramParcel1.enforceInterface("com.android.emailcommon.service.IEmailService");
       paramParcel1 = a(paramParcel1.readString(), paramParcel1.readString());
       paramParcel2.writeNoException();
       if (paramParcel1 != null) {
         paramParcel2.writeInt(1);
         paramParcel1.writeToParcel(paramParcel2, 1);
         return true;
       }
       paramParcel2.writeInt(0);
       return true;
     case 10:
       paramParcel1.enforceInterface("com.android.emailcommon.service.IEmailService");
       l1 = paramParcel1.readLong();
       paramParcel2 = (Parcel) localObject2;
       if (paramParcel1.readInt() != 0) {
         paramParcel2 =
             (ExchangeOofSettings) ExchangeOofSettings.CREATOR.createFromParcel(paramParcel1);
       }
       a(l1, paramParcel2);
       return true;
     case 11:
       paramParcel1.enforceInterface("com.android.emailcommon.service.IEmailService");
       a(paramParcel1.readInt());
       return true;
     case 12:
       paramParcel1.enforceInterface("com.android.emailcommon.service.IEmailService");
       a(paramParcel1.readString());
       paramParcel2.writeNoException();
       return true;
     case 13:
       paramParcel1.enforceInterface("com.android.emailcommon.service.IEmailService");
       paramInt1 = a();
       paramParcel2.writeNoException();
       paramParcel2.writeInt(paramInt1);
       return true;
     case 14:
       paramParcel1.enforceInterface("com.android.emailcommon.service.IEmailService");
       a(paramParcel1.readLong(), paramParcel1.readLong());
       paramParcel2.writeNoException();
       return true;
     case 15:
       paramParcel1.enforceInterface("com.android.emailcommon.service.IEmailService");
       a(paramParcel1.readLong(), paramParcel1.readString(), paramParcel1.readLong());
       paramParcel2.writeNoException();
       return true;
     case 16:
       paramParcel1.enforceInterface("com.android.emailcommon.service.IEmailService");
       b(paramParcel1.readLong(), paramParcel1.readLong());
       paramParcel2.writeNoException();
       return true;
     case 17:
       paramParcel1.enforceInterface("com.android.emailcommon.service.IEmailService");
       paramParcel1 =
           a(
               paramParcel1.readString(),
               paramParcel1.createStringArrayList(),
               paramParcel1.readLong(),
               paramParcel1.readLong());
       paramParcel2.writeNoException();
       paramParcel2.writeTypedList(paramParcel1);
       return true;
     case 18:
       paramParcel1.enforceInterface("com.android.emailcommon.service.IEmailService");
       paramParcel1 = b(paramParcel1.readString());
       paramParcel2.writeNoException();
       paramParcel2.writeString(paramParcel1);
       return true;
     case 19:
       paramParcel1.enforceInterface("com.android.emailcommon.service.IEmailService");
       c(paramParcel1.readLong(), paramParcel1.readLong());
       return true;
   }
   paramParcel1.enforceInterface("com.android.emailcommon.service.IEmailService");
   str1 = paramParcel1.readString();
   str2 = paramParcel1.readString();
   if (paramParcel1.readInt() != 0) {
     localObject1 = (Bundle) Bundle.CREATOR.createFromParcel(paramParcel1);
   }
   paramParcel1 = a(str1, str2, (Bundle) localObject1);
   paramParcel2.writeNoException();
   if (paramParcel1 != null) {
     paramParcel2.writeInt(1);
     paramParcel1.writeToParcel(paramParcel2, 1);
     return true;
   }
   paramParcel2.writeInt(0);
   return true;
 }
Пример #23
0
 public boolean onTransact(int code, Parcel data, Parcel reply, int flags)
     throws RemoteException {
   Intent intent = null;
   boolean z = false;
   C0306d fX;
   IBinder asBinder;
   int id;
   C0305c fY;
   boolean retainInstance;
   int i;
   switch (code) {
     case Std.STD_URL /*2*/:
       data.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
       fX = fX();
       reply.writeNoException();
       if (fX != null) {
         asBinder = fX.asBinder();
       }
       reply.writeStrongBinder(asBinder);
       return true;
     case Std.STD_URI /*3*/:
       data.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
       Bundle arguments = getArguments();
       reply.writeNoException();
       if (arguments != null) {
         reply.writeInt(1);
         arguments.writeToParcel(reply, 1);
         return true;
       }
       reply.writeInt(0);
       return true;
     case Std.STD_CLASS /*4*/:
       data.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
       id = getId();
       reply.writeNoException();
       reply.writeInt(id);
       return true;
     case Std.STD_JAVA_TYPE /*5*/:
       data.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
       fY = fY();
       reply.writeNoException();
       if (fY != null) {
         asBinder = fY.asBinder();
       }
       reply.writeStrongBinder(asBinder);
       return true;
     case Std.STD_CURRENCY /*6*/:
       data.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
       fX = fZ();
       reply.writeNoException();
       if (fX != null) {
         asBinder = fX.asBinder();
       }
       reply.writeStrongBinder(asBinder);
       return true;
     case Std.STD_PATTERN /*7*/:
       data.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
       retainInstance = getRetainInstance();
       reply.writeNoException();
       reply.writeInt(retainInstance ? 1 : 0);
       return true;
     case Std.STD_LOCALE /*8*/:
       data.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
       String tag = getTag();
       reply.writeNoException();
       reply.writeString(tag);
       return true;
     case Std.STD_CHARSET /*9*/:
       data.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
       fY = ga();
       reply.writeNoException();
       if (fY != null) {
         asBinder = fY.asBinder();
       }
       reply.writeStrongBinder(asBinder);
       return true;
     case Std.STD_TIME_ZONE /*10*/:
       data.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
       id = getTargetRequestCode();
       reply.writeNoException();
       reply.writeInt(id);
       return true;
     case Std.STD_INET_ADDRESS /*11*/:
       data.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
       retainInstance = getUserVisibleHint();
       reply.writeNoException();
       if (retainInstance) {
         i = 1;
       }
       reply.writeInt(i);
       return true;
     case Std.STD_INET_SOCKET_ADDRESS /*12*/:
       data.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
       fX = getView();
       reply.writeNoException();
       if (fX != null) {
         asBinder = fX.asBinder();
       }
       reply.writeStrongBinder(asBinder);
       return true;
     case CommonStatusCodes.ERROR /*13*/:
       data.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
       retainInstance = isAdded();
       reply.writeNoException();
       if (retainInstance) {
         i = 1;
       }
       reply.writeInt(i);
       return true;
     case GamesStatusCodes.STATUS_INTERRUPTED /*14*/:
       data.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
       retainInstance = isDetached();
       reply.writeNoException();
       if (retainInstance) {
         i = 1;
       }
       reply.writeInt(i);
       return true;
     case GamesStatusCodes.STATUS_TIMEOUT /*15*/:
       data.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
       retainInstance = isHidden();
       reply.writeNoException();
       if (retainInstance) {
         i = 1;
       }
       reply.writeInt(i);
       return true;
     case TransportMediator.FLAG_KEY_MEDIA_PAUSE /*16*/:
       data.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
       retainInstance = isInLayout();
       reply.writeNoException();
       if (retainInstance) {
         i = 1;
       }
       reply.writeInt(i);
       return true;
     case C0065R.styleable.TwoWayView_android_paddingRight /*17*/:
       data.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
       retainInstance = isRemoving();
       reply.writeNoException();
       if (retainInstance) {
         i = 1;
       }
       reply.writeInt(i);
       return true;
     case C0065R.styleable.TwoWayView_android_paddingBottom /*18*/:
       data.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
       retainInstance = isResumed();
       reply.writeNoException();
       if (retainInstance) {
         i = 1;
       }
       reply.writeInt(i);
       return true;
     case C0065R.styleable.TwoWayView_android_focusable /*19*/:
       data.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
       retainInstance = isVisible();
       reply.writeNoException();
       if (retainInstance) {
         i = 1;
       }
       reply.writeInt(i);
       return true;
     case HttpEngine.MAX_REDIRECTS /*20*/:
       data.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
       m355b(C0820a.m1755K(data.readStrongBinder()));
       reply.writeNoException();
       return true;
     case C0065R.styleable.TwoWayView_android_visibility /*21*/:
       data.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
       if (data.readInt() != 0) {
         z = true;
       }
       setHasOptionsMenu(z);
       reply.writeNoException();
       return true;
     case C0065R.styleable.TwoWayView_android_fitsSystemWindows /*22*/:
       data.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
       if (data.readInt() != 0) {
         z = true;
       }
       setMenuVisibility(z);
       reply.writeNoException();
       return true;
     case C0065R.styleable.TwoWayView_android_scrollbars /*23*/:
       data.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
       if (data.readInt() != 0) {
         z = true;
       }
       setRetainInstance(z);
       reply.writeNoException();
       return true;
     case C0065R.styleable.TwoWayView_android_fadingEdge /*24*/:
       data.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
       if (data.readInt() != 0) {
         z = true;
       }
       setUserVisibleHint(z);
       reply.writeNoException();
       return true;
     case C0065R.styleable.TwoWayView_android_fadingEdgeLength /*25*/:
       data.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
       if (data.readInt() != 0) {
         intent = (Intent) Intent.CREATOR.createFromParcel(data);
       }
       startActivity(intent);
       reply.writeNoException();
       return true;
     case C0065R.styleable.TwoWayView_android_nextFocusLeft /*26*/:
       data.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
       if (data.readInt() != 0) {
         intent = (Intent) Intent.CREATOR.createFromParcel(data);
       }
       startActivityForResult(intent, data.readInt());
       reply.writeNoException();
       return true;
     case C0065R.styleable.TwoWayView_android_nextFocusRight /*27*/:
       data.enforceInterface("com.google.android.gms.dynamic.IFragmentWrapper");
       m356c(C0820a.m1755K(data.readStrongBinder()));
       reply.writeNoException();
       return true;
     case 1598968902:
       reply.writeString("com.google.android.gms.dynamic.IFragmentWrapper");
       return true;
     default:
       return super.onTransact(code, data, reply, flags);
   }
 }