Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.android.internal.atfwd;
- import android.os.Binder;
- import android.os.IBinder;
- import android.os.IInterface;
- import android.os.Parcel;
- import android.os.Parcelable.Creator;
- import android.os.RemoteException;
- public abstract interface IAtCmdFwd extends IInterface
- {
- public abstract AtCmdResponse processAtCmd(AtCmd paramAtCmd)
- throws RemoteException;
- public static abstract class Stub extends Binder
- implements IAtCmdFwd
- {
- private static final String DESCRIPTOR = "com.android.internal.atfwd.IAtCmdFwd";
- static final int TRANSACTION_processAtCmd = 1;
- public Stub()
- {
- attachInterface(this, "com.android.internal.atfwd.IAtCmdFwd");
- }
- public static IAtCmdFwd asInterface(IBinder paramIBinder)
- {
- if (paramIBinder == null)
- return null;
- IInterface localIInterface = paramIBinder.queryLocalInterface("com.android.internal.atfwd.IAtCmdFwd");
- if ((localIInterface != null) && ((localIInterface instanceof IAtCmdFwd)))
- return (IAtCmdFwd)localIInterface;
- return new Proxy(paramIBinder);
- }
- public IBinder asBinder()
- {
- return this;
- }
- 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.android.internal.atfwd.IAtCmdFwd");
- return true;
- case 1:
- }
- paramParcel1.enforceInterface("com.android.internal.atfwd.IAtCmdFwd");
- if (paramParcel1.readInt() != 0);
- for (AtCmd localAtCmd = (AtCmd)AtCmd.CREATOR.createFromParcel(paramParcel1); ; localAtCmd = null)
- {
- AtCmdResponse localAtCmdResponse = processAtCmd(localAtCmd);
- paramParcel2.writeNoException();
- if (localAtCmdResponse == null)
- break;
- paramParcel2.writeInt(1);
- localAtCmdResponse.writeToParcel(paramParcel2, 1);
- return true;
- }
- paramParcel2.writeInt(0);
- return true;
- }
- private static class Proxy
- implements IAtCmdFwd
- {
- private IBinder mRemote;
- Proxy(IBinder paramIBinder)
- {
- this.mRemote = paramIBinder;
- }
- public IBinder asBinder()
- {
- return this.mRemote;
- }
- public String getInterfaceDescriptor()
- {
- return "com.android.internal.atfwd.IAtCmdFwd";
- }
- public AtCmdResponse processAtCmd(AtCmd paramAtCmd)
- throws RemoteException
- {
- Parcel localParcel1 = Parcel.obtain();
- Parcel localParcel2 = Parcel.obtain();
- while (true)
- {
- try
- {
- localParcel1.writeInterfaceToken("com.android.internal.atfwd.IAtCmdFwd");
- if (paramAtCmd != null)
- {
- localParcel1.writeInt(1);
- paramAtCmd.writeToParcel(localParcel1, 0);
- this.mRemote.transact(1, localParcel1, localParcel2, 0);
- localParcel2.readException();
- if (localParcel2.readInt() != 0)
- {
- localAtCmdResponse = (AtCmdResponse)AtCmdResponse.CREATOR.createFromParcel(localParcel2);
- return localAtCmdResponse;
- }
- }
- else
- {
- localParcel1.writeInt(0);
- continue;
- }
- }
- finally
- {
- localParcel2.recycle();
- localParcel1.recycle();
- }
- AtCmdResponse localAtCmdResponse = null;
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement