Advertisement
alexforsale

com.android.internal.atfwd

Oct 6th, 2013
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.70 KB | None | 0 0
  1. package com.android.internal.atfwd;
  2.  
  3. import android.os.Binder;
  4. import android.os.IBinder;
  5. import android.os.IInterface;
  6. import android.os.Parcel;
  7. import android.os.Parcelable.Creator;
  8. import android.os.RemoteException;
  9.  
  10. public abstract interface IAtCmdFwd extends IInterface
  11. {
  12. public abstract AtCmdResponse processAtCmd(AtCmd paramAtCmd)
  13. throws RemoteException;
  14.  
  15. public static abstract class Stub extends Binder
  16. implements IAtCmdFwd
  17. {
  18. private static final String DESCRIPTOR = "com.android.internal.atfwd.IAtCmdFwd";
  19. static final int TRANSACTION_processAtCmd = 1;
  20.  
  21. public Stub()
  22. {
  23. attachInterface(this, "com.android.internal.atfwd.IAtCmdFwd");
  24. }
  25.  
  26. public static IAtCmdFwd asInterface(IBinder paramIBinder)
  27. {
  28. if (paramIBinder == null)
  29. return null;
  30. IInterface localIInterface = paramIBinder.queryLocalInterface("com.android.internal.atfwd.IAtCmdFwd");
  31. if ((localIInterface != null) && ((localIInterface instanceof IAtCmdFwd)))
  32. return (IAtCmdFwd)localIInterface;
  33. return new Proxy(paramIBinder);
  34. }
  35.  
  36. public IBinder asBinder()
  37. {
  38. return this;
  39. }
  40.  
  41. public boolean onTransact(int paramInt1, Parcel paramParcel1, Parcel paramParcel2, int paramInt2)
  42. throws RemoteException
  43. {
  44. switch (paramInt1)
  45. {
  46. default:
  47. return super.onTransact(paramInt1, paramParcel1, paramParcel2, paramInt2);
  48. case 1598968902:
  49. paramParcel2.writeString("com.android.internal.atfwd.IAtCmdFwd");
  50. return true;
  51. case 1:
  52. }
  53. paramParcel1.enforceInterface("com.android.internal.atfwd.IAtCmdFwd");
  54. if (paramParcel1.readInt() != 0);
  55. for (AtCmd localAtCmd = (AtCmd)AtCmd.CREATOR.createFromParcel(paramParcel1); ; localAtCmd = null)
  56. {
  57. AtCmdResponse localAtCmdResponse = processAtCmd(localAtCmd);
  58. paramParcel2.writeNoException();
  59. if (localAtCmdResponse == null)
  60. break;
  61. paramParcel2.writeInt(1);
  62. localAtCmdResponse.writeToParcel(paramParcel2, 1);
  63. return true;
  64. }
  65. paramParcel2.writeInt(0);
  66. return true;
  67. }
  68.  
  69. private static class Proxy
  70. implements IAtCmdFwd
  71. {
  72. private IBinder mRemote;
  73.  
  74. Proxy(IBinder paramIBinder)
  75. {
  76. this.mRemote = paramIBinder;
  77. }
  78.  
  79. public IBinder asBinder()
  80. {
  81. return this.mRemote;
  82. }
  83.  
  84. public String getInterfaceDescriptor()
  85. {
  86. return "com.android.internal.atfwd.IAtCmdFwd";
  87. }
  88.  
  89. public AtCmdResponse processAtCmd(AtCmd paramAtCmd)
  90. throws RemoteException
  91. {
  92. Parcel localParcel1 = Parcel.obtain();
  93. Parcel localParcel2 = Parcel.obtain();
  94. while (true)
  95. {
  96. try
  97. {
  98. localParcel1.writeInterfaceToken("com.android.internal.atfwd.IAtCmdFwd");
  99. if (paramAtCmd != null)
  100. {
  101. localParcel1.writeInt(1);
  102. paramAtCmd.writeToParcel(localParcel1, 0);
  103. this.mRemote.transact(1, localParcel1, localParcel2, 0);
  104. localParcel2.readException();
  105. if (localParcel2.readInt() != 0)
  106. {
  107. localAtCmdResponse = (AtCmdResponse)AtCmdResponse.CREATOR.createFromParcel(localParcel2);
  108. return localAtCmdResponse;
  109. }
  110. }
  111. else
  112. {
  113. localParcel1.writeInt(0);
  114. continue;
  115. }
  116. }
  117. finally
  118. {
  119. localParcel2.recycle();
  120. localParcel1.recycle();
  121. }
  122. AtCmdResponse localAtCmdResponse = null;
  123. }
  124. }
  125. }
  126. }
  127. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement