PageRenderTime 12ms CodeModel.GetById 4ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

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