/build/mobile/sutagent/android/watcher/IWatcherService.java

http://github.com/zpao/v8monkey · Java · 104 lines · 94 code · 0 blank · 10 comment · 3 complexity · 3801f5ba0a49d30fdc8786b953f9c887 MD5 · raw file

  1. /*
  2. * This file is auto-generated. DO NOT MODIFY.
  3. * Original file: C:\\Users\\Bob\\workspace\\Watcher\\src\\com\\mozilla\\watcher\\IWatcherService.aidl
  4. */
  5. package com.mozilla.watcher;
  6. public interface IWatcherService extends android.os.IInterface
  7. {
  8. /** Local-side IPC implementation stub class. */
  9. public static abstract class Stub extends android.os.Binder implements com.mozilla.watcher.IWatcherService
  10. {
  11. private static final java.lang.String DESCRIPTOR = "com.mozilla.watcher.IWatcherService";
  12. /** Construct the stub at attach it to the interface. */
  13. public Stub()
  14. {
  15. this.attachInterface(this, DESCRIPTOR);
  16. }
  17. /**
  18. * Cast an IBinder object into an com.mozilla.watcher.IWatcherService interface,
  19. * generating a proxy if needed.
  20. */
  21. public static com.mozilla.watcher.IWatcherService asInterface(android.os.IBinder obj)
  22. {
  23. if ((obj==null)) {
  24. return null;
  25. }
  26. android.os.IInterface iin = (android.os.IInterface)obj.queryLocalInterface(DESCRIPTOR);
  27. if (((iin!=null)&&(iin instanceof com.mozilla.watcher.IWatcherService))) {
  28. return ((com.mozilla.watcher.IWatcherService)iin);
  29. }
  30. return new com.mozilla.watcher.IWatcherService.Stub.Proxy(obj);
  31. }
  32. public android.os.IBinder asBinder()
  33. {
  34. return this;
  35. }
  36. @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException
  37. {
  38. switch (code)
  39. {
  40. case INTERFACE_TRANSACTION:
  41. {
  42. reply.writeString(DESCRIPTOR);
  43. return true;
  44. }
  45. case TRANSACTION_UpdateApplication:
  46. {
  47. data.enforceInterface(DESCRIPTOR);
  48. java.lang.String _arg0;
  49. _arg0 = data.readString();
  50. java.lang.String _arg1;
  51. _arg1 = data.readString();
  52. java.lang.String _arg2;
  53. _arg2 = data.readString();
  54. int _arg3;
  55. _arg3 = data.readInt();
  56. int _result = this.UpdateApplication(_arg0, _arg1, _arg2, _arg3);
  57. reply.writeNoException();
  58. reply.writeInt(_result);
  59. return true;
  60. }
  61. }
  62. return super.onTransact(code, data, reply, flags);
  63. }
  64. private static class Proxy implements com.mozilla.watcher.IWatcherService
  65. {
  66. private android.os.IBinder mRemote;
  67. Proxy(android.os.IBinder remote)
  68. {
  69. mRemote = remote;
  70. }
  71. public android.os.IBinder asBinder()
  72. {
  73. return mRemote;
  74. }
  75. public java.lang.String getInterfaceDescriptor()
  76. {
  77. return DESCRIPTOR;
  78. }
  79. public int UpdateApplication(java.lang.String sPkgName, java.lang.String sPkgFileName, java.lang.String sOutFile, int bReboot) throws android.os.RemoteException
  80. {
  81. android.os.Parcel _data = android.os.Parcel.obtain();
  82. android.os.Parcel _reply = android.os.Parcel.obtain();
  83. int _result;
  84. try {
  85. _data.writeInterfaceToken(DESCRIPTOR);
  86. _data.writeString(sPkgName);
  87. _data.writeString(sPkgFileName);
  88. _data.writeString(sOutFile);
  89. _data.writeInt(bReboot);
  90. mRemote.transact(Stub.TRANSACTION_UpdateApplication, _data, _reply, 0);
  91. _reply.readException();
  92. _result = _reply.readInt();
  93. }
  94. finally {
  95. _reply.recycle();
  96. _data.recycle();
  97. }
  98. return _result;
  99. }
  100. }
  101. static final int TRANSACTION_UpdateApplication = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
  102. }
  103. public int UpdateApplication(java.lang.String sPkgName, java.lang.String sPkgFileName, java.lang.String sOutFile, int bReboot) throws android.os.RemoteException;
  104. }