alexandroid/decompiled/jadx/sources/android/support/customtabs/trusted/ITrustedWebActivityCallback.java
KaKi87 a47fad5135 📦 Add decompiled Alexa 2.2.730155.0 (jadx, apktool, Hermes strings)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:04:16 +01:00

123 lines
4.8 KiB
Java

package android.support.customtabs.trusted;
import android.os.Binder;
import android.os.Bundle;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.RemoteException;
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
/* loaded from: classes.dex */
public interface ITrustedWebActivityCallback extends IInterface {
public static final String DESCRIPTOR = "android.support.customtabs.trusted.ITrustedWebActivityCallback";
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
public static class _Parcel {
/* JADX INFO: Access modifiers changed from: private */
public static <T> T readTypedObject(Parcel parcel, Parcelable.Creator<T> creator) {
if (parcel.readInt() != 0) {
return creator.createFromParcel(parcel);
}
return null;
}
/* JADX INFO: Access modifiers changed from: private */
public static <T extends Parcelable> void writeTypedObject(Parcel parcel, T t, int i) {
if (t == null) {
parcel.writeInt(0);
} else {
parcel.writeInt(1);
t.writeToParcel(parcel, i);
}
}
}
void onExtraCallback(String str, Bundle bundle) throws RemoteException;
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
public static abstract class Stub extends Binder implements ITrustedWebActivityCallback {
static final int TRANSACTION_onExtraCallback = 2;
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
public static class Proxy implements ITrustedWebActivityCallback {
private IBinder mRemote;
public Proxy(IBinder iBinder) {
this.mRemote = iBinder;
}
@Override // android.os.IInterface
public IBinder asBinder() {
return this.mRemote;
}
public String getInterfaceDescriptor() {
return ITrustedWebActivityCallback.DESCRIPTOR;
}
@Override // android.support.customtabs.trusted.ITrustedWebActivityCallback
public void onExtraCallback(String str, Bundle bundle) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken(ITrustedWebActivityCallback.DESCRIPTOR);
obtain.writeString(str);
_Parcel.writeTypedObject(obtain, bundle, 0);
this.mRemote.transact(2, obtain, obtain2, 0);
obtain2.readException();
} finally {
obtain2.recycle();
obtain.recycle();
}
}
}
public Stub() {
attachInterface(this, ITrustedWebActivityCallback.DESCRIPTOR);
}
public static ITrustedWebActivityCallback asInterface(IBinder iBinder) {
if (iBinder == null) {
return null;
}
IInterface queryLocalInterface = iBinder.queryLocalInterface(ITrustedWebActivityCallback.DESCRIPTOR);
return (queryLocalInterface == null || !(queryLocalInterface instanceof ITrustedWebActivityCallback)) ? new Proxy(iBinder) : (ITrustedWebActivityCallback) queryLocalInterface;
}
@Override // android.os.Binder
public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
if (i >= 1 && i <= 16777215) {
parcel.enforceInterface(ITrustedWebActivityCallback.DESCRIPTOR);
}
if (i == 1598968902) {
parcel2.writeString(ITrustedWebActivityCallback.DESCRIPTOR);
return true;
}
if (i != 2) {
return super.onTransact(i, parcel, parcel2, i2);
}
onExtraCallback(parcel.readString(), (Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR));
parcel2.writeNoException();
return true;
}
@Override // android.os.IInterface
public IBinder asBinder() {
return this;
}
}
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
public static class Default implements ITrustedWebActivityCallback {
@Override // android.os.IInterface
public IBinder asBinder() {
return null;
}
@Override // android.support.customtabs.trusted.ITrustedWebActivityCallback
public void onExtraCallback(String str, Bundle bundle) throws RemoteException {
}
}
}