package a; import android.os.Binder; import android.os.Bundle; import android.os.IBinder; import android.os.IInterface; import android.os.Parcel; /* loaded from: classes.dex */ public interface b extends IInterface { public static abstract class a extends Binder implements b { /* renamed from: a.b$a$a, reason: collision with other inner class name */ private static class C0001a implements b { /* renamed from: b, reason: collision with root package name */ public static b f1b; /* renamed from: a, reason: collision with root package name */ private IBinder f2a; C0001a(IBinder iBinder) { this.f2a = iBinder; } @Override // android.os.IInterface public IBinder asBinder() { return this.f2a; } @Override // a.b public boolean k(a.a aVar) { Parcel obtain = Parcel.obtain(); Parcel obtain2 = Parcel.obtain(); try { obtain.writeInterfaceToken("android.support.customtabs.ICustomTabsService"); obtain.writeStrongBinder(aVar != null ? aVar.asBinder() : null); if (!this.f2a.transact(3, obtain, obtain2, 0) && a.L() != null) { return a.L().k(aVar); } obtain2.readException(); return obtain2.readInt() != 0; } finally { obtain2.recycle(); obtain.recycle(); } } @Override // a.b public boolean n(long j10) { Parcel obtain = Parcel.obtain(); Parcel obtain2 = Parcel.obtain(); try { obtain.writeInterfaceToken("android.support.customtabs.ICustomTabsService"); obtain.writeLong(j10); if (!this.f2a.transact(2, obtain, obtain2, 0) && a.L() != null) { return a.L().n(j10); } obtain2.readException(); return obtain2.readInt() != 0; } finally { obtain2.recycle(); obtain.recycle(); } } @Override // a.b public boolean o(a.a aVar, Bundle bundle) { Parcel obtain = Parcel.obtain(); Parcel obtain2 = Parcel.obtain(); try { obtain.writeInterfaceToken("android.support.customtabs.ICustomTabsService"); obtain.writeStrongBinder(aVar != null ? aVar.asBinder() : null); if (bundle != null) { obtain.writeInt(1); bundle.writeToParcel(obtain, 0); } else { obtain.writeInt(0); } if (!this.f2a.transact(10, obtain, obtain2, 0) && a.L() != null) { return a.L().o(aVar, bundle); } obtain2.readException(); return obtain2.readInt() != 0; } finally { obtain2.recycle(); obtain.recycle(); } } } public static b K(IBinder iBinder) { if (iBinder == null) { return null; } IInterface queryLocalInterface = iBinder.queryLocalInterface("android.support.customtabs.ICustomTabsService"); return (queryLocalInterface == null || !(queryLocalInterface instanceof b)) ? new C0001a(iBinder) : (b) queryLocalInterface; } public static b L() { return C0001a.f1b; } } boolean k(a.a aVar); boolean n(long j10); boolean o(a.a aVar, Bundle bundle); }