Initial commit
This commit is contained in:
@@ -0,0 +1,78 @@
|
||||
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;
|
||||
}
|
@@ -0,0 +1,254 @@
|
||||
package com.liulishuo.filedownloader.i;
|
||||
|
||||
import android.app.Notification;
|
||||
import android.os.Binder;
|
||||
import android.os.IBinder;
|
||||
import android.os.IInterface;
|
||||
import android.os.Parcel;
|
||||
import android.os.RemoteException;
|
||||
import com.liulishuo.filedownloader.i.IFileDownloadIPCCallback;
|
||||
import com.liulishuo.filedownloader.model.FileDownloadHeader;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public interface IFileDownloadIPCService extends IInterface {
|
||||
byte a(int i) throws RemoteException;
|
||||
|
||||
void a(int i, Notification notification) throws RemoteException;
|
||||
|
||||
void a(IFileDownloadIPCCallback iFileDownloadIPCCallback) throws RemoteException;
|
||||
|
||||
void a(String str, String str2, boolean z, int i, int i2, int i3, boolean z2, FileDownloadHeader fileDownloadHeader, boolean z3) throws RemoteException;
|
||||
|
||||
void a(boolean z) throws RemoteException;
|
||||
|
||||
boolean a(String str, String str2) throws RemoteException;
|
||||
|
||||
void b(IFileDownloadIPCCallback iFileDownloadIPCCallback) throws RemoteException;
|
||||
|
||||
boolean b(int i) throws RemoteException;
|
||||
|
||||
void c() throws RemoteException;
|
||||
|
||||
boolean c(int i) throws RemoteException;
|
||||
|
||||
boolean d() throws RemoteException;
|
||||
|
||||
boolean d(int i) throws RemoteException;
|
||||
|
||||
long e(int i) throws RemoteException;
|
||||
|
||||
void e() throws RemoteException;
|
||||
|
||||
long f(int i) throws RemoteException;
|
||||
|
||||
public static abstract class Stub extends Binder implements IFileDownloadIPCService {
|
||||
public Stub() {
|
||||
attachInterface(this, "com.liulishuo.filedownloader.i.IFileDownloadIPCService");
|
||||
}
|
||||
|
||||
public static IFileDownloadIPCService a(IBinder iBinder) {
|
||||
if (iBinder == null) {
|
||||
return null;
|
||||
}
|
||||
IInterface queryLocalInterface = iBinder.queryLocalInterface("com.liulishuo.filedownloader.i.IFileDownloadIPCService");
|
||||
return (queryLocalInterface == null || !(queryLocalInterface instanceof IFileDownloadIPCService)) ? new Proxy(iBinder) : (IFileDownloadIPCService) 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 == 1598968902) {
|
||||
parcel2.writeString("com.liulishuo.filedownloader.i.IFileDownloadIPCService");
|
||||
return true;
|
||||
}
|
||||
switch (i) {
|
||||
case 1:
|
||||
parcel.enforceInterface("com.liulishuo.filedownloader.i.IFileDownloadIPCService");
|
||||
a(IFileDownloadIPCCallback.Stub.a(parcel.readStrongBinder()));
|
||||
return true;
|
||||
case 2:
|
||||
parcel.enforceInterface("com.liulishuo.filedownloader.i.IFileDownloadIPCService");
|
||||
b(IFileDownloadIPCCallback.Stub.a(parcel.readStrongBinder()));
|
||||
return true;
|
||||
case 3:
|
||||
parcel.enforceInterface("com.liulishuo.filedownloader.i.IFileDownloadIPCService");
|
||||
boolean a = a(parcel.readString(), parcel.readString());
|
||||
parcel2.writeNoException();
|
||||
parcel2.writeInt(a ? 1 : 0);
|
||||
return true;
|
||||
case 4:
|
||||
parcel.enforceInterface("com.liulishuo.filedownloader.i.IFileDownloadIPCService");
|
||||
a(parcel.readString(), parcel.readString(), parcel.readInt() != 0, parcel.readInt(), parcel.readInt(), parcel.readInt(), parcel.readInt() != 0, parcel.readInt() != 0 ? FileDownloadHeader.CREATOR.createFromParcel(parcel) : null, parcel.readInt() != 0);
|
||||
parcel2.writeNoException();
|
||||
return true;
|
||||
case 5:
|
||||
parcel.enforceInterface("com.liulishuo.filedownloader.i.IFileDownloadIPCService");
|
||||
boolean b = b(parcel.readInt());
|
||||
parcel2.writeNoException();
|
||||
parcel2.writeInt(b ? 1 : 0);
|
||||
return true;
|
||||
case 6:
|
||||
parcel.enforceInterface("com.liulishuo.filedownloader.i.IFileDownloadIPCService");
|
||||
e();
|
||||
parcel2.writeNoException();
|
||||
return true;
|
||||
case 7:
|
||||
parcel.enforceInterface("com.liulishuo.filedownloader.i.IFileDownloadIPCService");
|
||||
boolean c = c(parcel.readInt());
|
||||
parcel2.writeNoException();
|
||||
parcel2.writeInt(c ? 1 : 0);
|
||||
return true;
|
||||
case 8:
|
||||
parcel.enforceInterface("com.liulishuo.filedownloader.i.IFileDownloadIPCService");
|
||||
long f = f(parcel.readInt());
|
||||
parcel2.writeNoException();
|
||||
parcel2.writeLong(f);
|
||||
return true;
|
||||
case 9:
|
||||
parcel.enforceInterface("com.liulishuo.filedownloader.i.IFileDownloadIPCService");
|
||||
long e = e(parcel.readInt());
|
||||
parcel2.writeNoException();
|
||||
parcel2.writeLong(e);
|
||||
return true;
|
||||
case 10:
|
||||
parcel.enforceInterface("com.liulishuo.filedownloader.i.IFileDownloadIPCService");
|
||||
byte a2 = a(parcel.readInt());
|
||||
parcel2.writeNoException();
|
||||
parcel2.writeByte(a2);
|
||||
return true;
|
||||
case 11:
|
||||
parcel.enforceInterface("com.liulishuo.filedownloader.i.IFileDownloadIPCService");
|
||||
boolean d = d();
|
||||
parcel2.writeNoException();
|
||||
parcel2.writeInt(d ? 1 : 0);
|
||||
return true;
|
||||
case 12:
|
||||
parcel.enforceInterface("com.liulishuo.filedownloader.i.IFileDownloadIPCService");
|
||||
a(parcel.readInt(), parcel.readInt() != 0 ? (Notification) Notification.CREATOR.createFromParcel(parcel) : null);
|
||||
return true;
|
||||
case 13:
|
||||
parcel.enforceInterface("com.liulishuo.filedownloader.i.IFileDownloadIPCService");
|
||||
a(parcel.readInt() != 0);
|
||||
return true;
|
||||
case 14:
|
||||
parcel.enforceInterface("com.liulishuo.filedownloader.i.IFileDownloadIPCService");
|
||||
boolean d2 = d(parcel.readInt());
|
||||
parcel2.writeNoException();
|
||||
parcel2.writeInt(d2 ? 1 : 0);
|
||||
return true;
|
||||
case 15:
|
||||
parcel.enforceInterface("com.liulishuo.filedownloader.i.IFileDownloadIPCService");
|
||||
c();
|
||||
parcel2.writeNoException();
|
||||
return true;
|
||||
default:
|
||||
return super.onTransact(i, parcel, parcel2, i2);
|
||||
}
|
||||
}
|
||||
|
||||
private static class Proxy implements IFileDownloadIPCService {
|
||||
private IBinder a;
|
||||
|
||||
Proxy(IBinder iBinder) {
|
||||
this.a = iBinder;
|
||||
}
|
||||
|
||||
@Override // com.liulishuo.filedownloader.i.IFileDownloadIPCService
|
||||
public void a(IFileDownloadIPCCallback iFileDownloadIPCCallback) throws RemoteException {
|
||||
Parcel obtain = Parcel.obtain();
|
||||
try {
|
||||
obtain.writeInterfaceToken("com.liulishuo.filedownloader.i.IFileDownloadIPCService");
|
||||
obtain.writeStrongBinder(iFileDownloadIPCCallback != null ? iFileDownloadIPCCallback.asBinder() : null);
|
||||
this.a.transact(1, obtain, null, 1);
|
||||
} finally {
|
||||
obtain.recycle();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.os.IInterface
|
||||
public IBinder asBinder() {
|
||||
return this.a;
|
||||
}
|
||||
|
||||
@Override // com.liulishuo.filedownloader.i.IFileDownloadIPCService
|
||||
public void b(IFileDownloadIPCCallback iFileDownloadIPCCallback) throws RemoteException {
|
||||
Parcel obtain = Parcel.obtain();
|
||||
try {
|
||||
obtain.writeInterfaceToken("com.liulishuo.filedownloader.i.IFileDownloadIPCService");
|
||||
obtain.writeStrongBinder(iFileDownloadIPCCallback != null ? iFileDownloadIPCCallback.asBinder() : null);
|
||||
this.a.transact(2, obtain, null, 1);
|
||||
} finally {
|
||||
obtain.recycle();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // com.liulishuo.filedownloader.i.IFileDownloadIPCService
|
||||
public void a(String str, String str2, boolean z, int i, int i2, int i3, boolean z2, FileDownloadHeader fileDownloadHeader, boolean z3) throws RemoteException {
|
||||
Parcel obtain = Parcel.obtain();
|
||||
Parcel obtain2 = Parcel.obtain();
|
||||
try {
|
||||
obtain.writeInterfaceToken("com.liulishuo.filedownloader.i.IFileDownloadIPCService");
|
||||
obtain.writeString(str);
|
||||
obtain.writeString(str2);
|
||||
int i4 = 1;
|
||||
obtain.writeInt(z ? 1 : 0);
|
||||
obtain.writeInt(i);
|
||||
obtain.writeInt(i2);
|
||||
obtain.writeInt(i3);
|
||||
obtain.writeInt(z2 ? 1 : 0);
|
||||
if (fileDownloadHeader != null) {
|
||||
obtain.writeInt(1);
|
||||
fileDownloadHeader.writeToParcel(obtain, 0);
|
||||
} else {
|
||||
obtain.writeInt(0);
|
||||
}
|
||||
if (!z3) {
|
||||
i4 = 0;
|
||||
}
|
||||
obtain.writeInt(i4);
|
||||
this.a.transact(4, obtain, obtain2, 0);
|
||||
obtain2.readException();
|
||||
} finally {
|
||||
obtain2.recycle();
|
||||
obtain.recycle();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // com.liulishuo.filedownloader.i.IFileDownloadIPCService
|
||||
public boolean b(int i) throws RemoteException {
|
||||
Parcel obtain = Parcel.obtain();
|
||||
Parcel obtain2 = Parcel.obtain();
|
||||
try {
|
||||
obtain.writeInterfaceToken("com.liulishuo.filedownloader.i.IFileDownloadIPCService");
|
||||
obtain.writeInt(i);
|
||||
this.a.transact(5, obtain, obtain2, 0);
|
||||
obtain2.readException();
|
||||
return obtain2.readInt() != 0;
|
||||
} finally {
|
||||
obtain2.recycle();
|
||||
obtain.recycle();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // com.liulishuo.filedownloader.i.IFileDownloadIPCService
|
||||
public byte a(int i) throws RemoteException {
|
||||
Parcel obtain = Parcel.obtain();
|
||||
Parcel obtain2 = Parcel.obtain();
|
||||
try {
|
||||
obtain.writeInterfaceToken("com.liulishuo.filedownloader.i.IFileDownloadIPCService");
|
||||
obtain.writeInt(i);
|
||||
this.a.transact(10, obtain, obtain2, 0);
|
||||
obtain2.readException();
|
||||
return obtain2.readByte();
|
||||
} finally {
|
||||
obtain2.recycle();
|
||||
obtain.recycle();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user