Rabbit-R1/android (non root)/java/sources/androidx/room/IMultiInstanceInvalidationService.java
2024-05-21 17:08:36 -04:00

155 lines
6.6 KiB
Java

package androidx.room;
import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
import androidx.room.IMultiInstanceInvalidationCallback;
/* loaded from: classes2.dex */
public interface IMultiInstanceInvalidationService extends IInterface {
public static final String DESCRIPTOR = "androidx.room.IMultiInstanceInvalidationService";
/* loaded from: classes2.dex */
public static class Default implements IMultiInstanceInvalidationService {
@Override // android.os.IInterface
public IBinder asBinder() {
return null;
}
@Override // androidx.room.IMultiInstanceInvalidationService
public void broadcastInvalidation(int i, String[] strArr) throws RemoteException {
}
@Override // androidx.room.IMultiInstanceInvalidationService
public int registerCallback(IMultiInstanceInvalidationCallback iMultiInstanceInvalidationCallback, String str) throws RemoteException {
return 0;
}
@Override // androidx.room.IMultiInstanceInvalidationService
public void unregisterCallback(IMultiInstanceInvalidationCallback iMultiInstanceInvalidationCallback, int i) throws RemoteException {
}
}
void broadcastInvalidation(int i, String[] strArr) throws RemoteException;
int registerCallback(IMultiInstanceInvalidationCallback iMultiInstanceInvalidationCallback, String str) throws RemoteException;
void unregisterCallback(IMultiInstanceInvalidationCallback iMultiInstanceInvalidationCallback, int i) throws RemoteException;
/* loaded from: classes2.dex */
public static abstract class Stub extends Binder implements IMultiInstanceInvalidationService {
static final int TRANSACTION_broadcastInvalidation = 3;
static final int TRANSACTION_registerCallback = 1;
static final int TRANSACTION_unregisterCallback = 2;
@Override // android.os.IInterface
public IBinder asBinder() {
return this;
}
public Stub() {
attachInterface(this, IMultiInstanceInvalidationService.DESCRIPTOR);
}
public static IMultiInstanceInvalidationService asInterface(IBinder iBinder) {
if (iBinder == null) {
return null;
}
IInterface queryLocalInterface = iBinder.queryLocalInterface(IMultiInstanceInvalidationService.DESCRIPTOR);
if (queryLocalInterface != null && (queryLocalInterface instanceof IMultiInstanceInvalidationService)) {
return (IMultiInstanceInvalidationService) queryLocalInterface;
}
return new Proxy(iBinder);
}
@Override // android.os.Binder
public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
if (i >= 1 && i <= 16777215) {
parcel.enforceInterface(IMultiInstanceInvalidationService.DESCRIPTOR);
}
if (i == 1598968902) {
parcel2.writeString(IMultiInstanceInvalidationService.DESCRIPTOR);
return true;
}
if (i == 1) {
int registerCallback = registerCallback(IMultiInstanceInvalidationCallback.Stub.asInterface(parcel.readStrongBinder()), parcel.readString());
parcel2.writeNoException();
parcel2.writeInt(registerCallback);
} else if (i == 2) {
unregisterCallback(IMultiInstanceInvalidationCallback.Stub.asInterface(parcel.readStrongBinder()), parcel.readInt());
parcel2.writeNoException();
} else if (i == 3) {
broadcastInvalidation(parcel.readInt(), parcel.createStringArray());
} else {
return super.onTransact(i, parcel, parcel2, i2);
}
return true;
}
/* loaded from: classes2.dex */
private static class Proxy implements IMultiInstanceInvalidationService {
private IBinder mRemote;
@Override // android.os.IInterface
public IBinder asBinder() {
return this.mRemote;
}
public String getInterfaceDescriptor() {
return IMultiInstanceInvalidationService.DESCRIPTOR;
}
Proxy(IBinder iBinder) {
this.mRemote = iBinder;
}
@Override // androidx.room.IMultiInstanceInvalidationService
public int registerCallback(IMultiInstanceInvalidationCallback iMultiInstanceInvalidationCallback, String str) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken(IMultiInstanceInvalidationService.DESCRIPTOR);
obtain.writeStrongInterface(iMultiInstanceInvalidationCallback);
obtain.writeString(str);
this.mRemote.transact(1, obtain, obtain2, 0);
obtain2.readException();
return obtain2.readInt();
} finally {
obtain2.recycle();
obtain.recycle();
}
}
@Override // androidx.room.IMultiInstanceInvalidationService
public void unregisterCallback(IMultiInstanceInvalidationCallback iMultiInstanceInvalidationCallback, int i) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken(IMultiInstanceInvalidationService.DESCRIPTOR);
obtain.writeStrongInterface(iMultiInstanceInvalidationCallback);
obtain.writeInt(i);
this.mRemote.transact(2, obtain, obtain2, 0);
obtain2.readException();
} finally {
obtain2.recycle();
obtain.recycle();
}
}
@Override // androidx.room.IMultiInstanceInvalidationService
public void broadcastInvalidation(int i, String[] strArr) throws RemoteException {
Parcel obtain = Parcel.obtain();
try {
obtain.writeInterfaceToken(IMultiInstanceInvalidationService.DESCRIPTOR);
obtain.writeInt(i);
obtain.writeStringArray(strArr);
this.mRemote.transact(3, obtain, null, 1);
} finally {
obtain.recycle();
}
}
}
}
}