- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
157 lines
6.3 KiB
Java
157 lines
6.3 KiB
Java
package com.bda.controller;
|
|
|
|
import android.os.Binder;
|
|
import android.os.IBinder;
|
|
import android.os.IInterface;
|
|
import android.os.Parcel;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public interface IControllerService extends IInterface {
|
|
int getState(int i, int i2);
|
|
|
|
void registerListener(IControllerListener iControllerListener, int i);
|
|
|
|
void registerListener2(IControllerListener iControllerListener, int i);
|
|
|
|
void sendMessage(int i, int i2);
|
|
|
|
void unregisterListener(IControllerListener iControllerListener, int i);
|
|
|
|
void unregisterMonitor(IControllerMonitor iControllerMonitor, int i);
|
|
|
|
public static abstract class Stub extends Binder implements IControllerService {
|
|
public static IControllerService asInterface(IBinder iBinder) {
|
|
if (iBinder == null) {
|
|
return null;
|
|
}
|
|
IInterface queryLocalInterface = iBinder.queryLocalInterface("com.bda.controller.IControllerService");
|
|
if (queryLocalInterface != null && (queryLocalInterface instanceof IControllerService)) {
|
|
return (IControllerService) queryLocalInterface;
|
|
}
|
|
return new Proxy(iBinder);
|
|
}
|
|
|
|
public static class Proxy implements IControllerService {
|
|
public IBinder mRemote;
|
|
|
|
@Override // android.os.IInterface
|
|
public IBinder asBinder() {
|
|
return this.mRemote;
|
|
}
|
|
|
|
public Proxy(IBinder iBinder) {
|
|
this.mRemote = iBinder;
|
|
}
|
|
|
|
@Override // com.bda.controller.IControllerService
|
|
public void registerListener(IControllerListener iControllerListener, int i) {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken("com.bda.controller.IControllerService");
|
|
obtain.writeStrongBinder(iControllerListener != null ? iControllerListener.asBinder() : null);
|
|
obtain.writeInt(i);
|
|
this.mRemote.transact(1, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
} catch (Throwable th) {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
throw th;
|
|
}
|
|
}
|
|
|
|
@Override // com.bda.controller.IControllerService
|
|
public void unregisterListener(IControllerListener iControllerListener, int i) {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken("com.bda.controller.IControllerService");
|
|
obtain.writeStrongBinder(iControllerListener != null ? iControllerListener.asBinder() : null);
|
|
obtain.writeInt(i);
|
|
this.mRemote.transact(2, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
} catch (Throwable th) {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
throw th;
|
|
}
|
|
}
|
|
|
|
@Override // com.bda.controller.IControllerService
|
|
public void unregisterMonitor(IControllerMonitor iControllerMonitor, int i) {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken("com.bda.controller.IControllerService");
|
|
obtain.writeStrongBinder(iControllerMonitor != null ? iControllerMonitor.asBinder() : null);
|
|
obtain.writeInt(i);
|
|
this.mRemote.transact(4, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
} catch (Throwable th) {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
throw th;
|
|
}
|
|
}
|
|
|
|
@Override // com.bda.controller.IControllerService
|
|
public int getState(int i, int i2) {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken("com.bda.controller.IControllerService");
|
|
obtain.writeInt(i);
|
|
obtain.writeInt(i2);
|
|
this.mRemote.transact(8, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
return obtain2.readInt();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // com.bda.controller.IControllerService
|
|
public void sendMessage(int i, int i2) {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken("com.bda.controller.IControllerService");
|
|
obtain.writeInt(i);
|
|
obtain.writeInt(i2);
|
|
this.mRemote.transact(9, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // com.bda.controller.IControllerService
|
|
public void registerListener2(IControllerListener iControllerListener, int i) {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken("com.bda.controller.IControllerService");
|
|
obtain.writeStrongBinder(iControllerListener != null ? iControllerListener.asBinder() : null);
|
|
obtain.writeInt(i);
|
|
this.mRemote.transact(10, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
} catch (Throwable th) {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
throw th;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|