ADD week 5

This commit is contained in:
2025-03-31 16:33:42 +02:00
parent 86f265f22d
commit bf645048e6
4927 changed files with 544053 additions and 0 deletions

View File

@ -0,0 +1,164 @@
package android.support.v4.app;
import android.app.Notification;
import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.RemoteException;
/* loaded from: classes.dex */
public interface INotificationSideChannel extends IInterface {
public static final String DESCRIPTOR = "android.support.v4.app.INotificationSideChannel";
public static class Default implements INotificationSideChannel {
@Override // android.os.IInterface
public IBinder asBinder() {
return null;
}
@Override // android.support.v4.app.INotificationSideChannel
public void cancel(String str, int i, String str2) throws RemoteException {
}
@Override // android.support.v4.app.INotificationSideChannel
public void cancelAll(String str) throws RemoteException {
}
@Override // android.support.v4.app.INotificationSideChannel
public void notify(String str, int i, String str2, Notification notification) throws RemoteException {
}
}
void cancel(String str, int i, String str2) throws RemoteException;
void cancelAll(String str) throws RemoteException;
void notify(String str, int i, String str2, Notification notification) throws RemoteException;
public static abstract class Stub extends Binder implements INotificationSideChannel {
static final int TRANSACTION_cancel = 2;
static final int TRANSACTION_cancelAll = 3;
static final int TRANSACTION_notify = 1;
@Override // android.os.IInterface
public IBinder asBinder() {
return this;
}
public Stub() {
attachInterface(this, INotificationSideChannel.DESCRIPTOR);
}
public static INotificationSideChannel asInterface(IBinder iBinder) {
if (iBinder == null) {
return null;
}
IInterface queryLocalInterface = iBinder.queryLocalInterface(INotificationSideChannel.DESCRIPTOR);
if (queryLocalInterface != null && (queryLocalInterface instanceof INotificationSideChannel)) {
return (INotificationSideChannel) 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(INotificationSideChannel.DESCRIPTOR);
}
if (i == 1598968902) {
parcel2.writeString(INotificationSideChannel.DESCRIPTOR);
return true;
}
if (i == 1) {
notify(parcel.readString(), parcel.readInt(), parcel.readString(), (Notification) _Parcel.readTypedObject(parcel, Notification.CREATOR));
} else if (i == 2) {
cancel(parcel.readString(), parcel.readInt(), parcel.readString());
} else if (i == 3) {
cancelAll(parcel.readString());
} else {
return super.onTransact(i, parcel, parcel2, i2);
}
return true;
}
private static class Proxy implements INotificationSideChannel {
private IBinder mRemote;
@Override // android.os.IInterface
public IBinder asBinder() {
return this.mRemote;
}
public String getInterfaceDescriptor() {
return INotificationSideChannel.DESCRIPTOR;
}
Proxy(IBinder iBinder) {
this.mRemote = iBinder;
}
@Override // android.support.v4.app.INotificationSideChannel
public void notify(String str, int i, String str2, Notification notification) throws RemoteException {
Parcel obtain = Parcel.obtain();
try {
obtain.writeInterfaceToken(INotificationSideChannel.DESCRIPTOR);
obtain.writeString(str);
obtain.writeInt(i);
obtain.writeString(str2);
_Parcel.writeTypedObject(obtain, notification, 0);
this.mRemote.transact(1, obtain, null, 1);
} finally {
obtain.recycle();
}
}
@Override // android.support.v4.app.INotificationSideChannel
public void cancel(String str, int i, String str2) throws RemoteException {
Parcel obtain = Parcel.obtain();
try {
obtain.writeInterfaceToken(INotificationSideChannel.DESCRIPTOR);
obtain.writeString(str);
obtain.writeInt(i);
obtain.writeString(str2);
this.mRemote.transact(2, obtain, null, 1);
} finally {
obtain.recycle();
}
}
@Override // android.support.v4.app.INotificationSideChannel
public void cancelAll(String str) throws RemoteException {
Parcel obtain = Parcel.obtain();
try {
obtain.writeInterfaceToken(INotificationSideChannel.DESCRIPTOR);
obtain.writeString(str);
this.mRemote.transact(3, obtain, null, 1);
} finally {
obtain.recycle();
}
}
}
}
public static class _Parcel {
/* JADX INFO: Access modifiers changed from: private */
public static <T> T readTypedObject(Parcel parcel, Parcelable.Creator<T> creator) {
if (parcel.readInt() != 0) {
return creator.createFromParcel(parcel);
}
return null;
}
/* JADX INFO: Access modifiers changed from: private */
public static <T extends Parcelable> void writeTypedObject(Parcel parcel, T t, int i) {
if (t != null) {
parcel.writeInt(1);
t.writeToParcel(parcel, i);
} else {
parcel.writeInt(0);
}
}
}
}

View File

@ -0,0 +1,15 @@
package android.support.v4.app;
import androidx.core.app.RemoteActionCompat;
import androidx.versionedparcelable.VersionedParcel;
/* loaded from: classes.dex */
public final class RemoteActionCompatParcelizer extends androidx.core.app.RemoteActionCompatParcelizer {
public static RemoteActionCompat read(VersionedParcel versionedParcel) {
return androidx.core.app.RemoteActionCompatParcelizer.read(versionedParcel);
}
public static void write(RemoteActionCompat remoteActionCompat, VersionedParcel versionedParcel) {
androidx.core.app.RemoteActionCompatParcelizer.write(remoteActionCompat, versionedParcel);
}
}