package r1; import android.os.Binder; import android.os.IBinder; import android.os.IInterface; import android.os.Parcel; import android.os.RemoteException; public interface b extends IInterface { public static abstract class a extends Binder implements b { /* renamed from: r1.b$a$a reason: collision with other inner class name */ public static class C1962a implements b { /* renamed from: b reason: collision with root package name */ public static b f124349b; /* renamed from: a reason: collision with root package name */ public IBinder f124350a; public C1962a(IBinder iBinder) { this.f124350a = iBinder; } public final IBinder asBinder() { return this.f124350a; } @Override // r1.b public final void c(String str) throws RemoteException { Parcel obtain = Parcel.obtain(); Parcel obtain2 = Parcel.obtain(); try { obtain.writeInterfaceToken("com.coloros.gamespace.gamesdk.IHyperBoostService"); obtain.writeString(str); if (this.f124350a.transact(4, obtain, obtain2, 0) || a.T() == null) { obtain2.readException(); } else { a.T().c(str); } } finally { obtain2.recycle(); obtain.recycle(); } } @Override // r1.b public final boolean d(IBinder iBinder) throws RemoteException { Parcel obtain = Parcel.obtain(); Parcel obtain2 = Parcel.obtain(); try { obtain.writeInterfaceToken("com.coloros.gamespace.gamesdk.IHyperBoostService"); obtain.writeStrongBinder(iBinder); boolean z14 = false; if (!this.f124350a.transact(2, obtain, obtain2, 0) && a.T() != null) { return a.T().d(iBinder); } obtain2.readException(); if (obtain2.readInt() != 0) { z14 = true; } obtain2.recycle(); obtain.recycle(); return z14; } finally { obtain2.recycle(); obtain.recycle(); } } } public static b T() { return C1962a.f124349b; } public static b j1(IBinder iBinder) { if (iBinder == null) { return null; } IInterface queryLocalInterface = iBinder.queryLocalInterface("com.coloros.gamespace.gamesdk.IHyperBoostService"); if (queryLocalInterface == null || !(queryLocalInterface instanceof b)) { return new C1962a(iBinder); } return (b) queryLocalInterface; } } void c(String str) throws RemoteException; boolean d(IBinder iBinder) throws RemoteException; }