325 lines
14 KiB
Java
325 lines
14 KiB
Java
package x.a.a;
|
|
|
|
import android.net.Uri;
|
|
import android.os.Binder;
|
|
import android.os.Bundle;
|
|
import android.os.IBinder;
|
|
import android.os.IInterface;
|
|
import android.os.Parcel;
|
|
import android.os.RemoteException;
|
|
/* compiled from: ICustomTabsCallback */
|
|
public interface a extends IInterface {
|
|
|
|
/* compiled from: ICustomTabsCallback */
|
|
/* renamed from: x.a.a.a$a reason: collision with other inner class name */
|
|
public static abstract class AbstractBinderC0345a extends Binder implements a {
|
|
private static final String DESCRIPTOR = "android.support.customtabs.ICustomTabsCallback";
|
|
public static final int TRANSACTION_extraCallback = 3;
|
|
public static final int TRANSACTION_extraCallbackWithResult = 7;
|
|
public static final int TRANSACTION_onMessageChannelReady = 4;
|
|
public static final int TRANSACTION_onNavigationEvent = 2;
|
|
public static final int TRANSACTION_onPostMessage = 5;
|
|
public static final int TRANSACTION_onRelationshipValidationResult = 6;
|
|
|
|
/* compiled from: ICustomTabsCallback */
|
|
/* renamed from: x.a.a.a$a$a reason: collision with other inner class name */
|
|
public static class C0346a implements a {
|
|
public static a a;
|
|
public IBinder b;
|
|
|
|
public C0346a(IBinder iBinder) {
|
|
this.b = iBinder;
|
|
}
|
|
|
|
@Override // android.os.IInterface
|
|
public IBinder asBinder() {
|
|
return this.b;
|
|
}
|
|
|
|
@Override // x.a.a.a
|
|
public void extraCallback(String str, Bundle bundle) throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken("android.support.customtabs.ICustomTabsCallback");
|
|
obtain.writeString(str);
|
|
if (bundle != null) {
|
|
obtain.writeInt(1);
|
|
bundle.writeToParcel(obtain, 0);
|
|
} else {
|
|
obtain.writeInt(0);
|
|
}
|
|
if (this.b.transact(3, obtain, obtain2, 0) || AbstractBinderC0345a.getDefaultImpl() == null) {
|
|
obtain2.readException();
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
return;
|
|
}
|
|
AbstractBinderC0345a.getDefaultImpl().extraCallback(str, bundle);
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // x.a.a.a
|
|
public Bundle extraCallbackWithResult(String str, Bundle bundle) throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken("android.support.customtabs.ICustomTabsCallback");
|
|
obtain.writeString(str);
|
|
if (bundle != null) {
|
|
obtain.writeInt(1);
|
|
bundle.writeToParcel(obtain, 0);
|
|
} else {
|
|
obtain.writeInt(0);
|
|
}
|
|
if (!this.b.transact(7, obtain, obtain2, 0) && AbstractBinderC0345a.getDefaultImpl() != null) {
|
|
return AbstractBinderC0345a.getDefaultImpl().extraCallbackWithResult(str, bundle);
|
|
}
|
|
obtain2.readException();
|
|
Bundle bundle2 = obtain2.readInt() != 0 ? (Bundle) Bundle.CREATOR.createFromParcel(obtain2) : null;
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
return bundle2;
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // x.a.a.a
|
|
public void onMessageChannelReady(Bundle bundle) throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken("android.support.customtabs.ICustomTabsCallback");
|
|
if (bundle != null) {
|
|
obtain.writeInt(1);
|
|
bundle.writeToParcel(obtain, 0);
|
|
} else {
|
|
obtain.writeInt(0);
|
|
}
|
|
if (this.b.transact(4, obtain, obtain2, 0) || AbstractBinderC0345a.getDefaultImpl() == null) {
|
|
obtain2.readException();
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
return;
|
|
}
|
|
AbstractBinderC0345a.getDefaultImpl().onMessageChannelReady(bundle);
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // x.a.a.a
|
|
public void onNavigationEvent(int i, Bundle bundle) throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken("android.support.customtabs.ICustomTabsCallback");
|
|
obtain.writeInt(i);
|
|
if (bundle != null) {
|
|
obtain.writeInt(1);
|
|
bundle.writeToParcel(obtain, 0);
|
|
} else {
|
|
obtain.writeInt(0);
|
|
}
|
|
if (this.b.transact(2, obtain, obtain2, 0) || AbstractBinderC0345a.getDefaultImpl() == null) {
|
|
obtain2.readException();
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
return;
|
|
}
|
|
AbstractBinderC0345a.getDefaultImpl().onNavigationEvent(i, bundle);
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // x.a.a.a
|
|
public void onPostMessage(String str, Bundle bundle) throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken("android.support.customtabs.ICustomTabsCallback");
|
|
obtain.writeString(str);
|
|
if (bundle != null) {
|
|
obtain.writeInt(1);
|
|
bundle.writeToParcel(obtain, 0);
|
|
} else {
|
|
obtain.writeInt(0);
|
|
}
|
|
if (this.b.transact(5, obtain, obtain2, 0) || AbstractBinderC0345a.getDefaultImpl() == null) {
|
|
obtain2.readException();
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
return;
|
|
}
|
|
AbstractBinderC0345a.getDefaultImpl().onPostMessage(str, bundle);
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // x.a.a.a
|
|
public void onRelationshipValidationResult(int i, Uri uri, boolean z2, Bundle bundle) throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken("android.support.customtabs.ICustomTabsCallback");
|
|
obtain.writeInt(i);
|
|
if (uri != null) {
|
|
obtain.writeInt(1);
|
|
uri.writeToParcel(obtain, 0);
|
|
} else {
|
|
obtain.writeInt(0);
|
|
}
|
|
obtain.writeInt(z2 ? 1 : 0);
|
|
if (bundle != null) {
|
|
obtain.writeInt(1);
|
|
bundle.writeToParcel(obtain, 0);
|
|
} else {
|
|
obtain.writeInt(0);
|
|
}
|
|
if (this.b.transact(6, obtain, obtain2, 0) || AbstractBinderC0345a.getDefaultImpl() == null) {
|
|
obtain2.readException();
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
return;
|
|
}
|
|
AbstractBinderC0345a.getDefaultImpl().onRelationshipValidationResult(i, uri, z2, bundle);
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
}
|
|
|
|
public AbstractBinderC0345a() {
|
|
attachInterface(this, "android.support.customtabs.ICustomTabsCallback");
|
|
}
|
|
|
|
public static a asInterface(IBinder iBinder) {
|
|
if (iBinder == null) {
|
|
return null;
|
|
}
|
|
IInterface queryLocalInterface = iBinder.queryLocalInterface("android.support.customtabs.ICustomTabsCallback");
|
|
return (queryLocalInterface == null || !(queryLocalInterface instanceof a)) ? new C0346a(iBinder) : (a) queryLocalInterface;
|
|
}
|
|
|
|
public static a getDefaultImpl() {
|
|
return C0346a.a;
|
|
}
|
|
|
|
public static boolean setDefaultImpl(a aVar) {
|
|
if (C0346a.a != null) {
|
|
throw new IllegalStateException("setDefaultImpl() called twice");
|
|
} else if (aVar == null) {
|
|
return false;
|
|
} else {
|
|
C0346a.a = aVar;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
@Override // android.os.IInterface
|
|
public IBinder asBinder() {
|
|
return this;
|
|
}
|
|
|
|
@Override // android.os.Binder
|
|
public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
|
|
if (i != 1598968902) {
|
|
boolean z2 = false;
|
|
Bundle bundle = null;
|
|
switch (i) {
|
|
case 2:
|
|
parcel.enforceInterface("android.support.customtabs.ICustomTabsCallback");
|
|
int readInt = parcel.readInt();
|
|
if (parcel.readInt() != 0) {
|
|
bundle = (Bundle) Bundle.CREATOR.createFromParcel(parcel);
|
|
}
|
|
onNavigationEvent(readInt, bundle);
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 3:
|
|
parcel.enforceInterface("android.support.customtabs.ICustomTabsCallback");
|
|
String readString = parcel.readString();
|
|
if (parcel.readInt() != 0) {
|
|
bundle = (Bundle) Bundle.CREATOR.createFromParcel(parcel);
|
|
}
|
|
extraCallback(readString, bundle);
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 4:
|
|
parcel.enforceInterface("android.support.customtabs.ICustomTabsCallback");
|
|
if (parcel.readInt() != 0) {
|
|
bundle = (Bundle) Bundle.CREATOR.createFromParcel(parcel);
|
|
}
|
|
onMessageChannelReady(bundle);
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 5:
|
|
parcel.enforceInterface("android.support.customtabs.ICustomTabsCallback");
|
|
String readString2 = parcel.readString();
|
|
if (parcel.readInt() != 0) {
|
|
bundle = (Bundle) Bundle.CREATOR.createFromParcel(parcel);
|
|
}
|
|
onPostMessage(readString2, bundle);
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 6:
|
|
parcel.enforceInterface("android.support.customtabs.ICustomTabsCallback");
|
|
int readInt2 = parcel.readInt();
|
|
Uri uri = parcel.readInt() != 0 ? (Uri) Uri.CREATOR.createFromParcel(parcel) : null;
|
|
if (parcel.readInt() != 0) {
|
|
z2 = true;
|
|
}
|
|
if (parcel.readInt() != 0) {
|
|
bundle = (Bundle) Bundle.CREATOR.createFromParcel(parcel);
|
|
}
|
|
onRelationshipValidationResult(readInt2, uri, z2, bundle);
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 7:
|
|
parcel.enforceInterface("android.support.customtabs.ICustomTabsCallback");
|
|
String readString3 = parcel.readString();
|
|
if (parcel.readInt() != 0) {
|
|
bundle = (Bundle) Bundle.CREATOR.createFromParcel(parcel);
|
|
}
|
|
Bundle extraCallbackWithResult = extraCallbackWithResult(readString3, bundle);
|
|
parcel2.writeNoException();
|
|
if (extraCallbackWithResult != null) {
|
|
parcel2.writeInt(1);
|
|
extraCallbackWithResult.writeToParcel(parcel2, 1);
|
|
} else {
|
|
parcel2.writeInt(0);
|
|
}
|
|
return true;
|
|
default:
|
|
return super.onTransact(i, parcel, parcel2, i2);
|
|
}
|
|
} else {
|
|
parcel2.writeString("android.support.customtabs.ICustomTabsCallback");
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
|
|
void extraCallback(String str, Bundle bundle) throws RemoteException;
|
|
|
|
Bundle extraCallbackWithResult(String str, Bundle bundle) throws RemoteException;
|
|
|
|
void onMessageChannelReady(Bundle bundle) throws RemoteException;
|
|
|
|
void onNavigationEvent(int i, Bundle bundle) throws RemoteException;
|
|
|
|
void onPostMessage(String str, Bundle bundle) throws RemoteException;
|
|
|
|
void onRelationshipValidationResult(int i, Uri uri, boolean z2, Bundle bundle) throws RemoteException;
|
|
}
|