mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-12 17:07:17 +01:00
126 lines
4.7 KiB
Java
126 lines
4.7 KiB
Java
package android.accounts;
|
|
|
|
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: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes.dex */
|
|
public interface IAccountAuthenticatorResponse extends IInterface {
|
|
void onError(int i, String str) throws RemoteException;
|
|
|
|
void onRequestContinued() throws RemoteException;
|
|
|
|
void onResult(Bundle bundle) throws RemoteException;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
public static abstract class Stub extends Binder implements IAccountAuthenticatorResponse {
|
|
public static final String DESCRIPTOR = "android.accounts.IAccountAuthenticatorResponse";
|
|
static final int TRANSACTION_onError = 3;
|
|
static final int TRANSACTION_onRequestContinued = 2;
|
|
static final int TRANSACTION_onResult = 1;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
public static class Proxy implements IAccountAuthenticatorResponse {
|
|
private IBinder mRemote;
|
|
|
|
public Proxy(IBinder iBinder) {
|
|
this.mRemote = iBinder;
|
|
}
|
|
|
|
@Override // android.os.IInterface
|
|
public IBinder asBinder() {
|
|
return this.mRemote;
|
|
}
|
|
|
|
public String getInterfaceDescriptor() {
|
|
return Stub.DESCRIPTOR;
|
|
}
|
|
|
|
@Override // android.accounts.IAccountAuthenticatorResponse
|
|
public void onError(int i, String str) throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
obtain.writeInt(i);
|
|
obtain.writeString(str);
|
|
this.mRemote.transact(3, obtain, null, 1);
|
|
} finally {
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.accounts.IAccountAuthenticatorResponse
|
|
public void onRequestContinued() throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
this.mRemote.transact(2, obtain, null, 1);
|
|
} finally {
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.accounts.IAccountAuthenticatorResponse
|
|
public void onResult(Bundle bundle) throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
if (bundle != null) {
|
|
obtain.writeInt(1);
|
|
bundle.writeToParcel(obtain, 0);
|
|
} else {
|
|
obtain.writeInt(0);
|
|
}
|
|
this.mRemote.transact(1, obtain, null, 1);
|
|
obtain.recycle();
|
|
} catch (Throwable th) {
|
|
obtain.recycle();
|
|
throw th;
|
|
}
|
|
}
|
|
}
|
|
|
|
public Stub() {
|
|
attachInterface(this, DESCRIPTOR);
|
|
}
|
|
|
|
public static IAccountAuthenticatorResponse asInterface(IBinder iBinder) {
|
|
if (iBinder == null) {
|
|
return null;
|
|
}
|
|
IInterface queryLocalInterface = iBinder.queryLocalInterface(DESCRIPTOR);
|
|
return (queryLocalInterface == null || !(queryLocalInterface instanceof IAccountAuthenticatorResponse)) ? new Proxy(iBinder) : (IAccountAuthenticatorResponse) 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(DESCRIPTOR);
|
|
}
|
|
if (i == 1598968902) {
|
|
parcel2.writeString(DESCRIPTOR);
|
|
return true;
|
|
}
|
|
if (i == 1) {
|
|
onResult((Bundle) (parcel.readInt() != 0 ? Bundle.CREATOR.createFromParcel(parcel) : null));
|
|
} else if (i == 2) {
|
|
onRequestContinued();
|
|
} else {
|
|
if (i != 3) {
|
|
return super.onTransact(i, parcel, parcel2, i2);
|
|
}
|
|
onError(parcel.readInt(), parcel.readString());
|
|
}
|
|
return true;
|
|
}
|
|
|
|
@Override // android.os.IInterface
|
|
public IBinder asBinder() {
|
|
return this;
|
|
}
|
|
}
|
|
}
|