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