package com.bda.controller; import android.os.Binder; import android.os.IBinder; import android.os.IInterface; import android.os.Parcel; import android.os.RemoteException; /* loaded from: classes.dex */ public interface IControllerMonitor extends IInterface { void onLog(int i, int i2, String str) throws RemoteException; public static abstract class Stub extends Binder implements IControllerMonitor { private static final String DESCRIPTOR = "com.bda.controller.IControllerMonitor"; static final int TRANSACTION_onLog = 1; @Override // android.os.IInterface public IBinder asBinder() { return this; } public Stub() { attachInterface(this, DESCRIPTOR); } public static IControllerMonitor asInterface(IBinder iBinder) { if (iBinder == null) { return null; } IInterface queryLocalInterface = iBinder.queryLocalInterface(DESCRIPTOR); if (queryLocalInterface != null && (queryLocalInterface instanceof IControllerMonitor)) { return (IControllerMonitor) queryLocalInterface; } return new Proxy(iBinder); } @Override // android.os.Binder public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException { if (i != 1) { if (i == 1598968902) { parcel2.writeString(DESCRIPTOR); return true; } return super.onTransact(i, parcel, parcel2, i2); } parcel.enforceInterface(DESCRIPTOR); onLog(parcel.readInt(), parcel.readInt(), parcel.readString()); parcel2.writeNoException(); return true; } private static class Proxy implements IControllerMonitor { private IBinder mRemote; public String getInterfaceDescriptor() { return Stub.DESCRIPTOR; } Proxy(IBinder iBinder) { this.mRemote = iBinder; } @Override // android.os.IInterface public IBinder asBinder() { return this.mRemote; } @Override // com.bda.controller.IControllerMonitor public void onLog(int i, int i2, String str) throws RemoteException { Parcel obtain = Parcel.obtain(); Parcel obtain2 = Parcel.obtain(); try { obtain.writeInterfaceToken(Stub.DESCRIPTOR); obtain.writeInt(i); obtain.writeInt(i2); obtain.writeString(str); this.mRemote.transact(1, obtain, obtain2, 0); obtain2.readException(); } finally { obtain2.recycle(); obtain.recycle(); } } } } }