jimu-decompiled/sources/com/liulishuo/filedownloader/i/IFileDownloadIPCCallback.java
2025-05-13 19:24:51 +02:00

79 lines
2.9 KiB
Java

package com.liulishuo.filedownloader.i;
import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
import com.liulishuo.filedownloader.message.MessageSnapshot;
/* loaded from: classes.dex */
public interface IFileDownloadIPCCallback extends IInterface {
public static abstract class Stub extends Binder implements IFileDownloadIPCCallback {
private static class Proxy implements IFileDownloadIPCCallback {
private IBinder a;
Proxy(IBinder iBinder) {
this.a = iBinder;
}
@Override // com.liulishuo.filedownloader.i.IFileDownloadIPCCallback
public void a(MessageSnapshot messageSnapshot) throws RemoteException {
Parcel obtain = Parcel.obtain();
try {
obtain.writeInterfaceToken("com.liulishuo.filedownloader.i.IFileDownloadIPCCallback");
if (messageSnapshot != null) {
obtain.writeInt(1);
messageSnapshot.writeToParcel(obtain, 0);
} else {
obtain.writeInt(0);
}
this.a.transact(1, obtain, null, 1);
} finally {
obtain.recycle();
}
}
@Override // android.os.IInterface
public IBinder asBinder() {
return this.a;
}
}
public Stub() {
attachInterface(this, "com.liulishuo.filedownloader.i.IFileDownloadIPCCallback");
}
public static IFileDownloadIPCCallback a(IBinder iBinder) {
if (iBinder == null) {
return null;
}
IInterface queryLocalInterface = iBinder.queryLocalInterface("com.liulishuo.filedownloader.i.IFileDownloadIPCCallback");
return (queryLocalInterface == null || !(queryLocalInterface instanceof IFileDownloadIPCCallback)) ? new Proxy(iBinder) : (IFileDownloadIPCCallback) queryLocalInterface;
}
@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 == 1) {
parcel.enforceInterface("com.liulishuo.filedownloader.i.IFileDownloadIPCCallback");
a(parcel.readInt() != 0 ? MessageSnapshot.CREATOR.createFromParcel(parcel) : null);
return true;
}
if (i != 1598968902) {
return super.onTransact(i, parcel, parcel2, i2);
}
parcel2.writeString("com.liulishuo.filedownloader.i.IFileDownloadIPCCallback");
return true;
}
}
void a(MessageSnapshot messageSnapshot) throws RemoteException;
}