Context-detection API for Android developed as a university project
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

ContextAnalyserBinder.java 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. /*
  2. * This file is auto-generated. DO NOT MODIFY.
  3. * Original file: uk/co/md87/android/contextanalyser/rpc/ContextAnalyserBinder.aidl
  4. */
  5. package uk.co.md87.android.contextanalyser.rpc;
  6. import java.lang.String;
  7. import java.util.Map;
  8. import android.os.RemoteException;
  9. import android.os.IBinder;
  10. import android.os.IInterface;
  11. import android.os.Binder;
  12. import android.os.Parcel;
  13. /**
  14. * Interface to facilitate RPC with the context analyser service.
  15. *
  16. * @author chris
  17. */
  18. public interface ContextAnalyserBinder extends android.os.IInterface
  19. {
  20. /** Local-side IPC implementation stub class. */
  21. public static abstract class Stub extends android.os.Binder implements uk.co.md87.android.contextanalyser.rpc.ContextAnalyserBinder
  22. {
  23. private static final java.lang.String DESCRIPTOR = "uk.co.md87.android.contextanalyser.rpc.ContextAnalyserBinder";
  24. /** Construct the stub at attach it to the interface. */
  25. public Stub()
  26. {
  27. this.attachInterface(this, DESCRIPTOR);
  28. }
  29. /**
  30. * Cast an IBinder object into an ContextAnalyserBinder interface,
  31. * generating a proxy if needed.
  32. */
  33. public static uk.co.md87.android.contextanalyser.rpc.ContextAnalyserBinder asInterface(android.os.IBinder obj)
  34. {
  35. if ((obj==null)) {
  36. return null;
  37. }
  38. android.os.IInterface iin = (android.os.IInterface)obj.queryLocalInterface(DESCRIPTOR);
  39. if (((iin!=null)&&(iin instanceof uk.co.md87.android.contextanalyser.rpc.ContextAnalyserBinder))) {
  40. return ((uk.co.md87.android.contextanalyser.rpc.ContextAnalyserBinder)iin);
  41. }
  42. return new uk.co.md87.android.contextanalyser.rpc.ContextAnalyserBinder.Stub.Proxy(obj);
  43. }
  44. public android.os.IBinder asBinder()
  45. {
  46. return this;
  47. }
  48. @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException
  49. {
  50. switch (code)
  51. {
  52. case INTERFACE_TRANSACTION:
  53. {
  54. reply.writeString(DESCRIPTOR);
  55. return true;
  56. }
  57. case TRANSACTION_getActivity:
  58. {
  59. data.enforceInterface(DESCRIPTOR);
  60. java.lang.String _result = this.getActivity();
  61. reply.writeNoException();
  62. reply.writeString(_result);
  63. return true;
  64. }
  65. case TRANSACTION_getPredictions:
  66. {
  67. data.enforceInterface(DESCRIPTOR);
  68. java.util.Map _result = this.getPredictions();
  69. reply.writeNoException();
  70. reply.writeMap(_result);
  71. return true;
  72. }
  73. }
  74. return super.onTransact(code, data, reply, flags);
  75. }
  76. private static class Proxy implements uk.co.md87.android.contextanalyser.rpc.ContextAnalyserBinder
  77. {
  78. private android.os.IBinder mRemote;
  79. Proxy(android.os.IBinder remote)
  80. {
  81. mRemote = remote;
  82. }
  83. public android.os.IBinder asBinder()
  84. {
  85. return mRemote;
  86. }
  87. public java.lang.String getInterfaceDescriptor()
  88. {
  89. return DESCRIPTOR;
  90. }
  91. public java.lang.String getActivity() throws android.os.RemoteException
  92. {
  93. android.os.Parcel _data = android.os.Parcel.obtain();
  94. android.os.Parcel _reply = android.os.Parcel.obtain();
  95. java.lang.String _result;
  96. try {
  97. _data.writeInterfaceToken(DESCRIPTOR);
  98. mRemote.transact(Stub.TRANSACTION_getActivity, _data, _reply, 0);
  99. _reply.readException();
  100. _result = _reply.readString();
  101. }
  102. finally {
  103. _reply.recycle();
  104. _data.recycle();
  105. }
  106. return _result;
  107. }
  108. public java.util.Map getPredictions() throws android.os.RemoteException
  109. {
  110. android.os.Parcel _data = android.os.Parcel.obtain();
  111. android.os.Parcel _reply = android.os.Parcel.obtain();
  112. java.util.Map _result;
  113. try {
  114. _data.writeInterfaceToken(DESCRIPTOR);
  115. mRemote.transact(Stub.TRANSACTION_getPredictions, _data, _reply, 0);
  116. _reply.readException();
  117. java.lang.ClassLoader cl = (java.lang.ClassLoader)this.getClass().getClassLoader();
  118. _result = _reply.readHashMap(cl);
  119. }
  120. finally {
  121. _reply.recycle();
  122. _data.recycle();
  123. }
  124. return _result;
  125. }
  126. }
  127. static final int TRANSACTION_getActivity = (IBinder.FIRST_CALL_TRANSACTION + 0);
  128. static final int TRANSACTION_getPredictions = (IBinder.FIRST_CALL_TRANSACTION + 1);
  129. }
  130. public java.lang.String getActivity() throws android.os.RemoteException;
  131. public java.util.Map getPredictions() throws android.os.RemoteException;
  132. }