-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathICarManageCallback.java
More file actions
95 lines (82 loc) · 3.26 KB
/
Copy pathICarManageCallback.java
File metadata and controls
95 lines (82 loc) · 3.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
package com.microntek;
import android.os.Binder;
import android.os.Bundle;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
public interface ICarManageCallback extends IInterface {
public static abstract class Stub extends Binder implements ICarManageCallback {
private static final String DESCRIPTOR = "android.microntek.ICarManageCallback";
static final int TRANSACTION_onStatusChanged = 1;
private static class Proxy implements ICarManageCallback {
private IBinder mRemote;
Proxy(IBinder remote) {
this.mRemote = remote;
}
public IBinder asBinder() {
return this.mRemote;
}
public String getInterfaceDescriptor() {
return Stub.DESCRIPTOR;
}
public void onStatusChanged(String type, Bundle bundle) throws RemoteException {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
_data.writeInterfaceToken(Stub.DESCRIPTOR);
_data.writeString(type);
if (bundle != null) {
_data.writeInt(Stub.TRANSACTION_onStatusChanged);
bundle.writeToParcel(_data, 0);
} else {
_data.writeInt(0);
}
this.mRemote.transact(Stub.TRANSACTION_onStatusChanged, _data, _reply, 0);
_reply.readException();
} finally {
_reply.recycle();
_data.recycle();
}
}
}
public Stub() {
attachInterface(this, DESCRIPTOR);
}
public static ICarManageCallback asInterface(IBinder obj) {
if (obj == null) {
return null;
}
IInterface iin = obj.queryLocalInterface(DESCRIPTOR);
if (iin == null || !(iin instanceof ICarManageCallback)) {
return new Proxy(obj);
}
return (ICarManageCallback) iin;
}
public IBinder asBinder() {
return this;
}
public boolean onTransact(int code, Parcel data, Parcel reply, int flags) throws RemoteException {
switch (code) {
case TRANSACTION_onStatusChanged /*1*/:
Bundle bundle;
data.enforceInterface(DESCRIPTOR);
String _arg0 = data.readString();
if (data.readInt() != 0) {
bundle = (Bundle) Bundle.CREATOR.createFromParcel(data);
} else {
bundle = null;
}
onStatusChanged(_arg0, bundle);
reply.writeNoException();
return true;
case IBinder.INTERFACE_TRANSACTION /*1598968902*/:
reply.writeString(DESCRIPTOR);
return true;
default:
return super.onTransact(code, data, reply, flags);
}
}
}
void onStatusChanged(String str, Bundle bundle) throws RemoteException;
}