- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
131 lines
4.5 KiB
Java
131 lines
4.5 KiB
Java
package com.facebook.ppml.receiver;
|
|
|
|
import android.os.Binder;
|
|
import android.os.Bundle;
|
|
import android.os.IBinder;
|
|
import android.os.IInterface;
|
|
import android.os.Parcel;
|
|
import android.os.RemoteException;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public interface IReceiverService extends IInterface {
|
|
|
|
public static class Default implements IReceiverService {
|
|
@Override // android.os.IInterface
|
|
public IBinder asBinder() {
|
|
return null;
|
|
}
|
|
|
|
@Override // com.facebook.ppml.receiver.IReceiverService
|
|
public int sendEvents(Bundle bundle) throws RemoteException {
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
int sendEvents(Bundle bundle) throws RemoteException;
|
|
|
|
public static abstract class Stub extends Binder implements IReceiverService {
|
|
private static final String DESCRIPTOR = "com.facebook.ppml.receiver.IReceiverService";
|
|
static final int TRANSACTION_sendEvents = 1;
|
|
|
|
public static IReceiverService getDefaultImpl() {
|
|
return Proxy.sDefaultImpl;
|
|
}
|
|
|
|
@Override // android.os.IInterface
|
|
public IBinder asBinder() {
|
|
return this;
|
|
}
|
|
|
|
public Stub() {
|
|
attachInterface(this, DESCRIPTOR);
|
|
}
|
|
|
|
public static IReceiverService asInterface(IBinder iBinder) {
|
|
if (iBinder == null) {
|
|
return null;
|
|
}
|
|
IInterface queryLocalInterface = iBinder.queryLocalInterface(DESCRIPTOR);
|
|
if (queryLocalInterface != null && (queryLocalInterface instanceof IReceiverService)) {
|
|
return (IReceiverService) 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) {
|
|
if (i == 1598968902) {
|
|
parcel2.writeString(DESCRIPTOR);
|
|
return true;
|
|
}
|
|
return super.onTransact(i, parcel, parcel2, i2);
|
|
}
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
int sendEvents = sendEvents(parcel.readInt() != 0 ? (Bundle) Bundle.CREATOR.createFromParcel(parcel) : null);
|
|
parcel2.writeNoException();
|
|
parcel2.writeInt(sendEvents);
|
|
return true;
|
|
}
|
|
|
|
public static class Proxy implements IReceiverService {
|
|
public static IReceiverService sDefaultImpl;
|
|
private IBinder mRemote;
|
|
|
|
@Override // android.os.IInterface
|
|
public IBinder asBinder() {
|
|
return this.mRemote;
|
|
}
|
|
|
|
public String getInterfaceDescriptor() {
|
|
return Stub.DESCRIPTOR;
|
|
}
|
|
|
|
public Proxy(IBinder iBinder) {
|
|
this.mRemote = iBinder;
|
|
}
|
|
|
|
@Override // com.facebook.ppml.receiver.IReceiverService
|
|
public int sendEvents(Bundle bundle) throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
if (bundle != null) {
|
|
obtain.writeInt(1);
|
|
bundle.writeToParcel(obtain, 0);
|
|
} else {
|
|
obtain.writeInt(0);
|
|
}
|
|
if (!this.mRemote.transact(1, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
int sendEvents = Stub.getDefaultImpl().sendEvents(bundle);
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
return sendEvents;
|
|
}
|
|
obtain2.readException();
|
|
int readInt = obtain2.readInt();
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
return readInt;
|
|
} catch (Throwable th) {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
throw th;
|
|
}
|
|
}
|
|
}
|
|
|
|
public static boolean setDefaultImpl(IReceiverService iReceiverService) {
|
|
if (Proxy.sDefaultImpl != null) {
|
|
throw new IllegalStateException("setDefaultImpl() called twice");
|
|
}
|
|
if (iReceiverService == null) {
|
|
return false;
|
|
}
|
|
Proxy.sDefaultImpl = iReceiverService;
|
|
return true;
|
|
}
|
|
}
|
|
}
|