Add decompiled APK source code (JADX)

- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-02-18 14:52:23 -08:00
parent cc210a65ea
commit f9d20bb3fc
26991 changed files with 2541449 additions and 0 deletions

View File

@@ -0,0 +1,371 @@
package android.support.customtabs;
import android.net.Uri;
import android.os.Binder;
import android.os.Bundle;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.RemoteException;
import androidx.annotation.RestrictTo;
@RestrictTo({RestrictTo.Scope.LIBRARY})
/* loaded from: classes.dex */
public interface ICustomTabsCallback extends IInterface {
public static final String DESCRIPTOR = "android$support$customtabs$ICustomTabsCallback".replace('$', '.');
public static class Default implements ICustomTabsCallback {
@Override // android.os.IInterface
public IBinder asBinder() {
return null;
}
@Override // android.support.customtabs.ICustomTabsCallback
public void extraCallback(String str, Bundle bundle) throws RemoteException {
}
@Override // android.support.customtabs.ICustomTabsCallback
public Bundle extraCallbackWithResult(String str, Bundle bundle) throws RemoteException {
return null;
}
@Override // android.support.customtabs.ICustomTabsCallback
public void onActivityLayout(int i, int i2, int i3, int i4, int i5, Bundle bundle) throws RemoteException {
}
@Override // android.support.customtabs.ICustomTabsCallback
public void onActivityResized(int i, int i2, Bundle bundle) throws RemoteException {
}
@Override // android.support.customtabs.ICustomTabsCallback
public void onMessageChannelReady(Bundle bundle) throws RemoteException {
}
@Override // android.support.customtabs.ICustomTabsCallback
public void onMinimized(Bundle bundle) throws RemoteException {
}
@Override // android.support.customtabs.ICustomTabsCallback
public void onNavigationEvent(int i, Bundle bundle) throws RemoteException {
}
@Override // android.support.customtabs.ICustomTabsCallback
public void onPostMessage(String str, Bundle bundle) throws RemoteException {
}
@Override // android.support.customtabs.ICustomTabsCallback
public void onRelationshipValidationResult(int i, Uri uri, boolean z, Bundle bundle) throws RemoteException {
}
@Override // android.support.customtabs.ICustomTabsCallback
public void onUnminimized(Bundle bundle) throws RemoteException {
}
@Override // android.support.customtabs.ICustomTabsCallback
public void onWarmupCompleted(Bundle bundle) throws RemoteException {
}
}
void extraCallback(String str, Bundle bundle) throws RemoteException;
Bundle extraCallbackWithResult(String str, Bundle bundle) throws RemoteException;
void onActivityLayout(int i, int i2, int i3, int i4, int i5, Bundle bundle) throws RemoteException;
void onActivityResized(int i, int i2, Bundle bundle) throws RemoteException;
void onMessageChannelReady(Bundle bundle) throws RemoteException;
void onMinimized(Bundle bundle) throws RemoteException;
void onNavigationEvent(int i, Bundle bundle) throws RemoteException;
void onPostMessage(String str, Bundle bundle) throws RemoteException;
void onRelationshipValidationResult(int i, Uri uri, boolean z, Bundle bundle) throws RemoteException;
void onUnminimized(Bundle bundle) throws RemoteException;
void onWarmupCompleted(Bundle bundle) throws RemoteException;
public static abstract class Stub extends Binder implements ICustomTabsCallback {
static final int TRANSACTION_extraCallback = 3;
static final int TRANSACTION_extraCallbackWithResult = 7;
static final int TRANSACTION_onActivityLayout = 10;
static final int TRANSACTION_onActivityResized = 8;
static final int TRANSACTION_onMessageChannelReady = 4;
static final int TRANSACTION_onMinimized = 11;
static final int TRANSACTION_onNavigationEvent = 2;
static final int TRANSACTION_onPostMessage = 5;
static final int TRANSACTION_onRelationshipValidationResult = 6;
static final int TRANSACTION_onUnminimized = 12;
static final int TRANSACTION_onWarmupCompleted = 9;
@Override // android.os.IInterface
public IBinder asBinder() {
return this;
}
public Stub() {
attachInterface(this, ICustomTabsCallback.DESCRIPTOR);
}
public static ICustomTabsCallback asInterface(IBinder iBinder) {
if (iBinder == null) {
return null;
}
IInterface queryLocalInterface = iBinder.queryLocalInterface(ICustomTabsCallback.DESCRIPTOR);
if (queryLocalInterface != null && (queryLocalInterface instanceof ICustomTabsCallback)) {
return (ICustomTabsCallback) queryLocalInterface;
}
return new Proxy(iBinder);
}
@Override // android.os.Binder
public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
String str = ICustomTabsCallback.DESCRIPTOR;
if (i >= 1 && i <= 16777215) {
parcel.enforceInterface(str);
}
if (i == 1598968902) {
parcel2.writeString(str);
return true;
}
switch (i) {
case 2:
onNavigationEvent(parcel.readInt(), (Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR));
return true;
case 3:
extraCallback(parcel.readString(), (Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR));
return true;
case 4:
onMessageChannelReady((Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR));
parcel2.writeNoException();
return true;
case 5:
onPostMessage(parcel.readString(), (Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR));
parcel2.writeNoException();
return true;
case 6:
onRelationshipValidationResult(parcel.readInt(), (Uri) _Parcel.readTypedObject(parcel, Uri.CREATOR), parcel.readInt() != 0, (Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR));
return true;
case 7:
Bundle extraCallbackWithResult = extraCallbackWithResult(parcel.readString(), (Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR));
parcel2.writeNoException();
_Parcel.writeTypedObject(parcel2, extraCallbackWithResult, 1);
return true;
case 8:
onActivityResized(parcel.readInt(), parcel.readInt(), (Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR));
return true;
case 9:
onWarmupCompleted((Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR));
return true;
case 10:
onActivityLayout(parcel.readInt(), parcel.readInt(), parcel.readInt(), parcel.readInt(), parcel.readInt(), (Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR));
return true;
case 11:
onMinimized((Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR));
return true;
case 12:
onUnminimized((Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR));
return true;
default:
return super.onTransact(i, parcel, parcel2, i2);
}
}
public static class Proxy implements ICustomTabsCallback {
private IBinder mRemote;
@Override // android.os.IInterface
public IBinder asBinder() {
return this.mRemote;
}
public String getInterfaceDescriptor() {
return ICustomTabsCallback.DESCRIPTOR;
}
public Proxy(IBinder iBinder) {
this.mRemote = iBinder;
}
@Override // android.support.customtabs.ICustomTabsCallback
public void onNavigationEvent(int i, Bundle bundle) throws RemoteException {
Parcel obtain = Parcel.obtain();
try {
obtain.writeInterfaceToken(ICustomTabsCallback.DESCRIPTOR);
obtain.writeInt(i);
_Parcel.writeTypedObject(obtain, bundle, 0);
this.mRemote.transact(2, obtain, null, 1);
} finally {
obtain.recycle();
}
}
@Override // android.support.customtabs.ICustomTabsCallback
public void extraCallback(String str, Bundle bundle) throws RemoteException {
Parcel obtain = Parcel.obtain();
try {
obtain.writeInterfaceToken(ICustomTabsCallback.DESCRIPTOR);
obtain.writeString(str);
_Parcel.writeTypedObject(obtain, bundle, 0);
this.mRemote.transact(3, obtain, null, 1);
} finally {
obtain.recycle();
}
}
@Override // android.support.customtabs.ICustomTabsCallback
public void onMessageChannelReady(Bundle bundle) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken(ICustomTabsCallback.DESCRIPTOR);
_Parcel.writeTypedObject(obtain, bundle, 0);
this.mRemote.transact(4, obtain, obtain2, 0);
obtain2.readException();
} finally {
obtain2.recycle();
obtain.recycle();
}
}
@Override // android.support.customtabs.ICustomTabsCallback
public void onPostMessage(String str, Bundle bundle) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken(ICustomTabsCallback.DESCRIPTOR);
obtain.writeString(str);
_Parcel.writeTypedObject(obtain, bundle, 0);
this.mRemote.transact(5, obtain, obtain2, 0);
obtain2.readException();
} finally {
obtain2.recycle();
obtain.recycle();
}
}
@Override // android.support.customtabs.ICustomTabsCallback
public void onRelationshipValidationResult(int i, Uri uri, boolean z, Bundle bundle) throws RemoteException {
Parcel obtain = Parcel.obtain();
try {
obtain.writeInterfaceToken(ICustomTabsCallback.DESCRIPTOR);
obtain.writeInt(i);
_Parcel.writeTypedObject(obtain, uri, 0);
obtain.writeInt(z ? 1 : 0);
_Parcel.writeTypedObject(obtain, bundle, 0);
this.mRemote.transact(6, obtain, null, 1);
} finally {
obtain.recycle();
}
}
@Override // android.support.customtabs.ICustomTabsCallback
public Bundle extraCallbackWithResult(String str, Bundle bundle) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken(ICustomTabsCallback.DESCRIPTOR);
obtain.writeString(str);
_Parcel.writeTypedObject(obtain, bundle, 0);
this.mRemote.transact(7, obtain, obtain2, 0);
obtain2.readException();
return (Bundle) _Parcel.readTypedObject(obtain2, Bundle.CREATOR);
} finally {
obtain2.recycle();
obtain.recycle();
}
}
@Override // android.support.customtabs.ICustomTabsCallback
public void onActivityResized(int i, int i2, Bundle bundle) throws RemoteException {
Parcel obtain = Parcel.obtain();
try {
obtain.writeInterfaceToken(ICustomTabsCallback.DESCRIPTOR);
obtain.writeInt(i);
obtain.writeInt(i2);
_Parcel.writeTypedObject(obtain, bundle, 0);
this.mRemote.transact(8, obtain, null, 1);
} finally {
obtain.recycle();
}
}
@Override // android.support.customtabs.ICustomTabsCallback
public void onWarmupCompleted(Bundle bundle) throws RemoteException {
Parcel obtain = Parcel.obtain();
try {
obtain.writeInterfaceToken(ICustomTabsCallback.DESCRIPTOR);
_Parcel.writeTypedObject(obtain, bundle, 0);
this.mRemote.transact(9, obtain, null, 1);
} finally {
obtain.recycle();
}
}
@Override // android.support.customtabs.ICustomTabsCallback
public void onActivityLayout(int i, int i2, int i3, int i4, int i5, Bundle bundle) throws RemoteException {
Parcel obtain = Parcel.obtain();
try {
obtain.writeInterfaceToken(ICustomTabsCallback.DESCRIPTOR);
obtain.writeInt(i);
obtain.writeInt(i2);
obtain.writeInt(i3);
obtain.writeInt(i4);
obtain.writeInt(i5);
_Parcel.writeTypedObject(obtain, bundle, 0);
this.mRemote.transact(10, obtain, null, 1);
} finally {
obtain.recycle();
}
}
@Override // android.support.customtabs.ICustomTabsCallback
public void onMinimized(Bundle bundle) throws RemoteException {
Parcel obtain = Parcel.obtain();
try {
obtain.writeInterfaceToken(ICustomTabsCallback.DESCRIPTOR);
_Parcel.writeTypedObject(obtain, bundle, 0);
this.mRemote.transact(11, obtain, null, 1);
} finally {
obtain.recycle();
}
}
@Override // android.support.customtabs.ICustomTabsCallback
public void onUnminimized(Bundle bundle) throws RemoteException {
Parcel obtain = Parcel.obtain();
try {
obtain.writeInterfaceToken(ICustomTabsCallback.DESCRIPTOR);
_Parcel.writeTypedObject(obtain, bundle, 0);
this.mRemote.transact(12, 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,515 @@
package android.support.customtabs;
import android.net.Uri;
import android.os.Binder;
import android.os.Bundle;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.RemoteException;
import android.support.customtabs.ICustomTabsCallback;
import androidx.annotation.RestrictTo;
import java.util.List;
@RestrictTo({RestrictTo.Scope.LIBRARY})
/* loaded from: classes.dex */
public interface ICustomTabsService extends IInterface {
public static final String DESCRIPTOR = "android$support$customtabs$ICustomTabsService".replace('$', '.');
public static class Default implements ICustomTabsService {
@Override // android.os.IInterface
public IBinder asBinder() {
return null;
}
@Override // android.support.customtabs.ICustomTabsService
public Bundle extraCommand(String str, Bundle bundle) throws RemoteException {
return null;
}
@Override // android.support.customtabs.ICustomTabsService
public boolean isEngagementSignalsApiAvailable(ICustomTabsCallback iCustomTabsCallback, Bundle bundle) throws RemoteException {
return false;
}
@Override // android.support.customtabs.ICustomTabsService
public boolean mayLaunchUrl(ICustomTabsCallback iCustomTabsCallback, Uri uri, Bundle bundle, List<Bundle> list) throws RemoteException {
return false;
}
@Override // android.support.customtabs.ICustomTabsService
public boolean newSession(ICustomTabsCallback iCustomTabsCallback) throws RemoteException {
return false;
}
@Override // android.support.customtabs.ICustomTabsService
public boolean newSessionWithExtras(ICustomTabsCallback iCustomTabsCallback, Bundle bundle) throws RemoteException {
return false;
}
@Override // android.support.customtabs.ICustomTabsService
public int postMessage(ICustomTabsCallback iCustomTabsCallback, String str, Bundle bundle) throws RemoteException {
return 0;
}
@Override // android.support.customtabs.ICustomTabsService
public boolean receiveFile(ICustomTabsCallback iCustomTabsCallback, Uri uri, int i, Bundle bundle) throws RemoteException {
return false;
}
@Override // android.support.customtabs.ICustomTabsService
public boolean requestPostMessageChannel(ICustomTabsCallback iCustomTabsCallback, Uri uri) throws RemoteException {
return false;
}
@Override // android.support.customtabs.ICustomTabsService
public boolean requestPostMessageChannelWithExtras(ICustomTabsCallback iCustomTabsCallback, Uri uri, Bundle bundle) throws RemoteException {
return false;
}
@Override // android.support.customtabs.ICustomTabsService
public boolean setEngagementSignalsCallback(ICustomTabsCallback iCustomTabsCallback, IBinder iBinder, Bundle bundle) throws RemoteException {
return false;
}
@Override // android.support.customtabs.ICustomTabsService
public boolean updateVisuals(ICustomTabsCallback iCustomTabsCallback, Bundle bundle) throws RemoteException {
return false;
}
@Override // android.support.customtabs.ICustomTabsService
public boolean validateRelationship(ICustomTabsCallback iCustomTabsCallback, int i, Uri uri, Bundle bundle) throws RemoteException {
return false;
}
@Override // android.support.customtabs.ICustomTabsService
public boolean warmup(long j) throws RemoteException {
return false;
}
}
Bundle extraCommand(String str, Bundle bundle) throws RemoteException;
boolean isEngagementSignalsApiAvailable(ICustomTabsCallback iCustomTabsCallback, Bundle bundle) throws RemoteException;
boolean mayLaunchUrl(ICustomTabsCallback iCustomTabsCallback, Uri uri, Bundle bundle, List<Bundle> list) throws RemoteException;
boolean newSession(ICustomTabsCallback iCustomTabsCallback) throws RemoteException;
boolean newSessionWithExtras(ICustomTabsCallback iCustomTabsCallback, Bundle bundle) throws RemoteException;
int postMessage(ICustomTabsCallback iCustomTabsCallback, String str, Bundle bundle) throws RemoteException;
boolean receiveFile(ICustomTabsCallback iCustomTabsCallback, Uri uri, int i, Bundle bundle) throws RemoteException;
boolean requestPostMessageChannel(ICustomTabsCallback iCustomTabsCallback, Uri uri) throws RemoteException;
boolean requestPostMessageChannelWithExtras(ICustomTabsCallback iCustomTabsCallback, Uri uri, Bundle bundle) throws RemoteException;
boolean setEngagementSignalsCallback(ICustomTabsCallback iCustomTabsCallback, IBinder iBinder, Bundle bundle) throws RemoteException;
boolean updateVisuals(ICustomTabsCallback iCustomTabsCallback, Bundle bundle) throws RemoteException;
boolean validateRelationship(ICustomTabsCallback iCustomTabsCallback, int i, Uri uri, Bundle bundle) throws RemoteException;
boolean warmup(long j) throws RemoteException;
public static abstract class Stub extends Binder implements ICustomTabsService {
static final int TRANSACTION_extraCommand = 5;
static final int TRANSACTION_isEngagementSignalsApiAvailable = 13;
static final int TRANSACTION_mayLaunchUrl = 4;
static final int TRANSACTION_newSession = 3;
static final int TRANSACTION_newSessionWithExtras = 10;
static final int TRANSACTION_postMessage = 8;
static final int TRANSACTION_receiveFile = 12;
static final int TRANSACTION_requestPostMessageChannel = 7;
static final int TRANSACTION_requestPostMessageChannelWithExtras = 11;
static final int TRANSACTION_setEngagementSignalsCallback = 14;
static final int TRANSACTION_updateVisuals = 6;
static final int TRANSACTION_validateRelationship = 9;
static final int TRANSACTION_warmup = 2;
@Override // android.os.IInterface
public IBinder asBinder() {
return this;
}
public Stub() {
attachInterface(this, ICustomTabsService.DESCRIPTOR);
}
public static ICustomTabsService asInterface(IBinder iBinder) {
if (iBinder == null) {
return null;
}
IInterface queryLocalInterface = iBinder.queryLocalInterface(ICustomTabsService.DESCRIPTOR);
if (queryLocalInterface != null && (queryLocalInterface instanceof ICustomTabsService)) {
return (ICustomTabsService) queryLocalInterface;
}
return new Proxy(iBinder);
}
@Override // android.os.Binder
public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
String str = ICustomTabsService.DESCRIPTOR;
if (i >= 1 && i <= 16777215) {
parcel.enforceInterface(str);
}
if (i == 1598968902) {
parcel2.writeString(str);
return true;
}
switch (i) {
case 2:
boolean warmup = warmup(parcel.readLong());
parcel2.writeNoException();
parcel2.writeInt(warmup ? 1 : 0);
return true;
case 3:
boolean newSession = newSession(ICustomTabsCallback.Stub.asInterface(parcel.readStrongBinder()));
parcel2.writeNoException();
parcel2.writeInt(newSession ? 1 : 0);
return true;
case 4:
ICustomTabsCallback asInterface = ICustomTabsCallback.Stub.asInterface(parcel.readStrongBinder());
Uri uri = (Uri) _Parcel.readTypedObject(parcel, Uri.CREATOR);
Parcelable.Creator creator = Bundle.CREATOR;
boolean mayLaunchUrl = mayLaunchUrl(asInterface, uri, (Bundle) _Parcel.readTypedObject(parcel, creator), parcel.createTypedArrayList(creator));
parcel2.writeNoException();
parcel2.writeInt(mayLaunchUrl ? 1 : 0);
return true;
case 5:
Bundle extraCommand = extraCommand(parcel.readString(), (Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR));
parcel2.writeNoException();
_Parcel.writeTypedObject(parcel2, extraCommand, 1);
return true;
case 6:
boolean updateVisuals = updateVisuals(ICustomTabsCallback.Stub.asInterface(parcel.readStrongBinder()), (Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR));
parcel2.writeNoException();
parcel2.writeInt(updateVisuals ? 1 : 0);
return true;
case 7:
boolean requestPostMessageChannel = requestPostMessageChannel(ICustomTabsCallback.Stub.asInterface(parcel.readStrongBinder()), (Uri) _Parcel.readTypedObject(parcel, Uri.CREATOR));
parcel2.writeNoException();
parcel2.writeInt(requestPostMessageChannel ? 1 : 0);
return true;
case 8:
int postMessage = postMessage(ICustomTabsCallback.Stub.asInterface(parcel.readStrongBinder()), parcel.readString(), (Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR));
parcel2.writeNoException();
parcel2.writeInt(postMessage);
return true;
case 9:
boolean validateRelationship = validateRelationship(ICustomTabsCallback.Stub.asInterface(parcel.readStrongBinder()), parcel.readInt(), (Uri) _Parcel.readTypedObject(parcel, Uri.CREATOR), (Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR));
parcel2.writeNoException();
parcel2.writeInt(validateRelationship ? 1 : 0);
return true;
case 10:
boolean newSessionWithExtras = newSessionWithExtras(ICustomTabsCallback.Stub.asInterface(parcel.readStrongBinder()), (Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR));
parcel2.writeNoException();
parcel2.writeInt(newSessionWithExtras ? 1 : 0);
return true;
case 11:
boolean requestPostMessageChannelWithExtras = requestPostMessageChannelWithExtras(ICustomTabsCallback.Stub.asInterface(parcel.readStrongBinder()), (Uri) _Parcel.readTypedObject(parcel, Uri.CREATOR), (Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR));
parcel2.writeNoException();
parcel2.writeInt(requestPostMessageChannelWithExtras ? 1 : 0);
return true;
case 12:
boolean receiveFile = receiveFile(ICustomTabsCallback.Stub.asInterface(parcel.readStrongBinder()), (Uri) _Parcel.readTypedObject(parcel, Uri.CREATOR), parcel.readInt(), (Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR));
parcel2.writeNoException();
parcel2.writeInt(receiveFile ? 1 : 0);
return true;
case 13:
boolean isEngagementSignalsApiAvailable = isEngagementSignalsApiAvailable(ICustomTabsCallback.Stub.asInterface(parcel.readStrongBinder()), (Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR));
parcel2.writeNoException();
parcel2.writeInt(isEngagementSignalsApiAvailable ? 1 : 0);
return true;
case 14:
boolean engagementSignalsCallback = setEngagementSignalsCallback(ICustomTabsCallback.Stub.asInterface(parcel.readStrongBinder()), parcel.readStrongBinder(), (Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR));
parcel2.writeNoException();
parcel2.writeInt(engagementSignalsCallback ? 1 : 0);
return true;
default:
return super.onTransact(i, parcel, parcel2, i2);
}
}
public static class Proxy implements ICustomTabsService {
private IBinder mRemote;
@Override // android.os.IInterface
public IBinder asBinder() {
return this.mRemote;
}
public String getInterfaceDescriptor() {
return ICustomTabsService.DESCRIPTOR;
}
public Proxy(IBinder iBinder) {
this.mRemote = iBinder;
}
@Override // android.support.customtabs.ICustomTabsService
public boolean warmup(long j) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken(ICustomTabsService.DESCRIPTOR);
obtain.writeLong(j);
this.mRemote.transact(2, obtain, obtain2, 0);
obtain2.readException();
return obtain2.readInt() != 0;
} finally {
obtain2.recycle();
obtain.recycle();
}
}
@Override // android.support.customtabs.ICustomTabsService
public boolean newSession(ICustomTabsCallback iCustomTabsCallback) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken(ICustomTabsService.DESCRIPTOR);
obtain.writeStrongInterface(iCustomTabsCallback);
this.mRemote.transact(3, obtain, obtain2, 0);
obtain2.readException();
return obtain2.readInt() != 0;
} finally {
obtain2.recycle();
obtain.recycle();
}
}
@Override // android.support.customtabs.ICustomTabsService
public boolean newSessionWithExtras(ICustomTabsCallback iCustomTabsCallback, Bundle bundle) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken(ICustomTabsService.DESCRIPTOR);
obtain.writeStrongInterface(iCustomTabsCallback);
_Parcel.writeTypedObject(obtain, bundle, 0);
this.mRemote.transact(10, obtain, obtain2, 0);
obtain2.readException();
return obtain2.readInt() != 0;
} finally {
obtain2.recycle();
obtain.recycle();
}
}
@Override // android.support.customtabs.ICustomTabsService
public boolean mayLaunchUrl(ICustomTabsCallback iCustomTabsCallback, Uri uri, Bundle bundle, List<Bundle> list) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken(ICustomTabsService.DESCRIPTOR);
obtain.writeStrongInterface(iCustomTabsCallback);
_Parcel.writeTypedObject(obtain, uri, 0);
_Parcel.writeTypedObject(obtain, bundle, 0);
_Parcel.writeTypedList(obtain, list, 0);
this.mRemote.transact(4, obtain, obtain2, 0);
obtain2.readException();
return obtain2.readInt() != 0;
} finally {
obtain2.recycle();
obtain.recycle();
}
}
@Override // android.support.customtabs.ICustomTabsService
public Bundle extraCommand(String str, Bundle bundle) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken(ICustomTabsService.DESCRIPTOR);
obtain.writeString(str);
_Parcel.writeTypedObject(obtain, bundle, 0);
this.mRemote.transact(5, obtain, obtain2, 0);
obtain2.readException();
return (Bundle) _Parcel.readTypedObject(obtain2, Bundle.CREATOR);
} finally {
obtain2.recycle();
obtain.recycle();
}
}
@Override // android.support.customtabs.ICustomTabsService
public boolean updateVisuals(ICustomTabsCallback iCustomTabsCallback, Bundle bundle) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken(ICustomTabsService.DESCRIPTOR);
obtain.writeStrongInterface(iCustomTabsCallback);
_Parcel.writeTypedObject(obtain, bundle, 0);
this.mRemote.transact(6, obtain, obtain2, 0);
obtain2.readException();
return obtain2.readInt() != 0;
} finally {
obtain2.recycle();
obtain.recycle();
}
}
@Override // android.support.customtabs.ICustomTabsService
public boolean requestPostMessageChannel(ICustomTabsCallback iCustomTabsCallback, Uri uri) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken(ICustomTabsService.DESCRIPTOR);
obtain.writeStrongInterface(iCustomTabsCallback);
_Parcel.writeTypedObject(obtain, uri, 0);
this.mRemote.transact(7, obtain, obtain2, 0);
obtain2.readException();
return obtain2.readInt() != 0;
} finally {
obtain2.recycle();
obtain.recycle();
}
}
@Override // android.support.customtabs.ICustomTabsService
public boolean requestPostMessageChannelWithExtras(ICustomTabsCallback iCustomTabsCallback, Uri uri, Bundle bundle) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken(ICustomTabsService.DESCRIPTOR);
obtain.writeStrongInterface(iCustomTabsCallback);
_Parcel.writeTypedObject(obtain, uri, 0);
_Parcel.writeTypedObject(obtain, bundle, 0);
this.mRemote.transact(11, obtain, obtain2, 0);
obtain2.readException();
return obtain2.readInt() != 0;
} finally {
obtain2.recycle();
obtain.recycle();
}
}
@Override // android.support.customtabs.ICustomTabsService
public int postMessage(ICustomTabsCallback iCustomTabsCallback, String str, Bundle bundle) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken(ICustomTabsService.DESCRIPTOR);
obtain.writeStrongInterface(iCustomTabsCallback);
obtain.writeString(str);
_Parcel.writeTypedObject(obtain, bundle, 0);
this.mRemote.transact(8, obtain, obtain2, 0);
obtain2.readException();
return obtain2.readInt();
} finally {
obtain2.recycle();
obtain.recycle();
}
}
@Override // android.support.customtabs.ICustomTabsService
public boolean validateRelationship(ICustomTabsCallback iCustomTabsCallback, int i, Uri uri, Bundle bundle) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken(ICustomTabsService.DESCRIPTOR);
obtain.writeStrongInterface(iCustomTabsCallback);
obtain.writeInt(i);
_Parcel.writeTypedObject(obtain, uri, 0);
_Parcel.writeTypedObject(obtain, bundle, 0);
this.mRemote.transact(9, obtain, obtain2, 0);
obtain2.readException();
return obtain2.readInt() != 0;
} finally {
obtain2.recycle();
obtain.recycle();
}
}
@Override // android.support.customtabs.ICustomTabsService
public boolean receiveFile(ICustomTabsCallback iCustomTabsCallback, Uri uri, int i, Bundle bundle) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken(ICustomTabsService.DESCRIPTOR);
obtain.writeStrongInterface(iCustomTabsCallback);
_Parcel.writeTypedObject(obtain, uri, 0);
obtain.writeInt(i);
_Parcel.writeTypedObject(obtain, bundle, 0);
this.mRemote.transact(12, obtain, obtain2, 0);
obtain2.readException();
return obtain2.readInt() != 0;
} finally {
obtain2.recycle();
obtain.recycle();
}
}
@Override // android.support.customtabs.ICustomTabsService
public boolean isEngagementSignalsApiAvailable(ICustomTabsCallback iCustomTabsCallback, Bundle bundle) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken(ICustomTabsService.DESCRIPTOR);
obtain.writeStrongInterface(iCustomTabsCallback);
_Parcel.writeTypedObject(obtain, bundle, 0);
this.mRemote.transact(13, obtain, obtain2, 0);
obtain2.readException();
return obtain2.readInt() != 0;
} finally {
obtain2.recycle();
obtain.recycle();
}
}
@Override // android.support.customtabs.ICustomTabsService
public boolean setEngagementSignalsCallback(ICustomTabsCallback iCustomTabsCallback, IBinder iBinder, Bundle bundle) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken(ICustomTabsService.DESCRIPTOR);
obtain.writeStrongInterface(iCustomTabsCallback);
obtain.writeStrongBinder(iBinder);
_Parcel.writeTypedObject(obtain, bundle, 0);
this.mRemote.transact(14, obtain, obtain2, 0);
obtain2.readException();
return obtain2.readInt() != 0;
} finally {
obtain2.recycle();
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);
}
}
/* JADX INFO: Access modifiers changed from: private */
public static <T extends Parcelable> void writeTypedList(Parcel parcel, List<T> list, int i) {
if (list == null) {
parcel.writeInt(-1);
return;
}
int size = list.size();
parcel.writeInt(size);
for (int i2 = 0; i2 < size; i2++) {
writeTypedObject(parcel, list.get(i2), i);
}
}
}
}

View File

@@ -0,0 +1,165 @@
package android.support.customtabs;
import android.os.Binder;
import android.os.Bundle;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.RemoteException;
import androidx.annotation.RestrictTo;
@RestrictTo({RestrictTo.Scope.LIBRARY})
/* loaded from: classes.dex */
public interface IEngagementSignalsCallback extends IInterface {
public static final String DESCRIPTOR = "android$support$customtabs$IEngagementSignalsCallback".replace('$', '.');
public static class Default implements IEngagementSignalsCallback {
@Override // android.os.IInterface
public IBinder asBinder() {
return null;
}
@Override // android.support.customtabs.IEngagementSignalsCallback
public void onGreatestScrollPercentageIncreased(int i, Bundle bundle) throws RemoteException {
}
@Override // android.support.customtabs.IEngagementSignalsCallback
public void onSessionEnded(boolean z, Bundle bundle) throws RemoteException {
}
@Override // android.support.customtabs.IEngagementSignalsCallback
public void onVerticalScrollEvent(boolean z, Bundle bundle) throws RemoteException {
}
}
void onGreatestScrollPercentageIncreased(int i, Bundle bundle) throws RemoteException;
void onSessionEnded(boolean z, Bundle bundle) throws RemoteException;
void onVerticalScrollEvent(boolean z, Bundle bundle) throws RemoteException;
public static abstract class Stub extends Binder implements IEngagementSignalsCallback {
static final int TRANSACTION_onGreatestScrollPercentageIncreased = 3;
static final int TRANSACTION_onSessionEnded = 4;
static final int TRANSACTION_onVerticalScrollEvent = 2;
@Override // android.os.IInterface
public IBinder asBinder() {
return this;
}
public Stub() {
attachInterface(this, IEngagementSignalsCallback.DESCRIPTOR);
}
public static IEngagementSignalsCallback asInterface(IBinder iBinder) {
if (iBinder == null) {
return null;
}
IInterface queryLocalInterface = iBinder.queryLocalInterface(IEngagementSignalsCallback.DESCRIPTOR);
if (queryLocalInterface != null && (queryLocalInterface instanceof IEngagementSignalsCallback)) {
return (IEngagementSignalsCallback) queryLocalInterface;
}
return new Proxy(iBinder);
}
@Override // android.os.Binder
public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
String str = IEngagementSignalsCallback.DESCRIPTOR;
if (i >= 1 && i <= 16777215) {
parcel.enforceInterface(str);
}
if (i == 1598968902) {
parcel2.writeString(str);
return true;
}
if (i == 2) {
onVerticalScrollEvent(parcel.readInt() != 0, (Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR));
} else if (i == 3) {
onGreatestScrollPercentageIncreased(parcel.readInt(), (Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR));
} else if (i == 4) {
onSessionEnded(parcel.readInt() != 0, (Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR));
} else {
return super.onTransact(i, parcel, parcel2, i2);
}
return true;
}
public static class Proxy implements IEngagementSignalsCallback {
private IBinder mRemote;
@Override // android.os.IInterface
public IBinder asBinder() {
return this.mRemote;
}
public String getInterfaceDescriptor() {
return IEngagementSignalsCallback.DESCRIPTOR;
}
public Proxy(IBinder iBinder) {
this.mRemote = iBinder;
}
@Override // android.support.customtabs.IEngagementSignalsCallback
public void onVerticalScrollEvent(boolean z, Bundle bundle) throws RemoteException {
Parcel obtain = Parcel.obtain();
try {
obtain.writeInterfaceToken(IEngagementSignalsCallback.DESCRIPTOR);
obtain.writeInt(z ? 1 : 0);
_Parcel.writeTypedObject(obtain, bundle, 0);
this.mRemote.transact(2, obtain, null, 1);
} finally {
obtain.recycle();
}
}
@Override // android.support.customtabs.IEngagementSignalsCallback
public void onGreatestScrollPercentageIncreased(int i, Bundle bundle) throws RemoteException {
Parcel obtain = Parcel.obtain();
try {
obtain.writeInterfaceToken(IEngagementSignalsCallback.DESCRIPTOR);
obtain.writeInt(i);
_Parcel.writeTypedObject(obtain, bundle, 0);
this.mRemote.transact(3, obtain, null, 1);
} finally {
obtain.recycle();
}
}
@Override // android.support.customtabs.IEngagementSignalsCallback
public void onSessionEnded(boolean z, Bundle bundle) throws RemoteException {
Parcel obtain = Parcel.obtain();
try {
obtain.writeInterfaceToken(IEngagementSignalsCallback.DESCRIPTOR);
obtain.writeInt(z ? 1 : 0);
_Parcel.writeTypedObject(obtain, bundle, 0);
this.mRemote.transact(4, 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,153 @@
package android.support.customtabs;
import android.os.Binder;
import android.os.Bundle;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.RemoteException;
import android.support.customtabs.ICustomTabsCallback;
import androidx.annotation.RestrictTo;
@RestrictTo({RestrictTo.Scope.LIBRARY})
/* loaded from: classes.dex */
public interface IPostMessageService extends IInterface {
public static final String DESCRIPTOR = "android$support$customtabs$IPostMessageService".replace('$', '.');
public static class Default implements IPostMessageService {
@Override // android.os.IInterface
public IBinder asBinder() {
return null;
}
@Override // android.support.customtabs.IPostMessageService
public void onMessageChannelReady(ICustomTabsCallback iCustomTabsCallback, Bundle bundle) throws RemoteException {
}
@Override // android.support.customtabs.IPostMessageService
public void onPostMessage(ICustomTabsCallback iCustomTabsCallback, String str, Bundle bundle) throws RemoteException {
}
}
void onMessageChannelReady(ICustomTabsCallback iCustomTabsCallback, Bundle bundle) throws RemoteException;
void onPostMessage(ICustomTabsCallback iCustomTabsCallback, String str, Bundle bundle) throws RemoteException;
public static abstract class Stub extends Binder implements IPostMessageService {
static final int TRANSACTION_onMessageChannelReady = 2;
static final int TRANSACTION_onPostMessage = 3;
@Override // android.os.IInterface
public IBinder asBinder() {
return this;
}
public Stub() {
attachInterface(this, IPostMessageService.DESCRIPTOR);
}
public static IPostMessageService asInterface(IBinder iBinder) {
if (iBinder == null) {
return null;
}
IInterface queryLocalInterface = iBinder.queryLocalInterface(IPostMessageService.DESCRIPTOR);
if (queryLocalInterface != null && (queryLocalInterface instanceof IPostMessageService)) {
return (IPostMessageService) queryLocalInterface;
}
return new Proxy(iBinder);
}
@Override // android.os.Binder
public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
String str = IPostMessageService.DESCRIPTOR;
if (i >= 1 && i <= 16777215) {
parcel.enforceInterface(str);
}
if (i == 1598968902) {
parcel2.writeString(str);
return true;
}
if (i == 2) {
onMessageChannelReady(ICustomTabsCallback.Stub.asInterface(parcel.readStrongBinder()), (Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR));
parcel2.writeNoException();
} else if (i == 3) {
onPostMessage(ICustomTabsCallback.Stub.asInterface(parcel.readStrongBinder()), parcel.readString(), (Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR));
parcel2.writeNoException();
} else {
return super.onTransact(i, parcel, parcel2, i2);
}
return true;
}
public static class Proxy implements IPostMessageService {
private IBinder mRemote;
@Override // android.os.IInterface
public IBinder asBinder() {
return this.mRemote;
}
public String getInterfaceDescriptor() {
return IPostMessageService.DESCRIPTOR;
}
public Proxy(IBinder iBinder) {
this.mRemote = iBinder;
}
@Override // android.support.customtabs.IPostMessageService
public void onMessageChannelReady(ICustomTabsCallback iCustomTabsCallback, Bundle bundle) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken(IPostMessageService.DESCRIPTOR);
obtain.writeStrongInterface(iCustomTabsCallback);
_Parcel.writeTypedObject(obtain, bundle, 0);
this.mRemote.transact(2, obtain, obtain2, 0);
obtain2.readException();
} finally {
obtain2.recycle();
obtain.recycle();
}
}
@Override // android.support.customtabs.IPostMessageService
public void onPostMessage(ICustomTabsCallback iCustomTabsCallback, String str, Bundle bundle) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken(IPostMessageService.DESCRIPTOR);
obtain.writeStrongInterface(iCustomTabsCallback);
obtain.writeString(str);
_Parcel.writeTypedObject(obtain, bundle, 0);
this.mRemote.transact(3, obtain, obtain2, 0);
obtain2.readException();
} finally {
obtain2.recycle();
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,124 @@
package android.support.customtabs.trusted;
import android.os.Binder;
import android.os.Bundle;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.RemoteException;
import androidx.annotation.RestrictTo;
@RestrictTo({RestrictTo.Scope.LIBRARY})
/* loaded from: classes.dex */
public interface ITrustedWebActivityCallback extends IInterface {
public static final String DESCRIPTOR = "android$support$customtabs$trusted$ITrustedWebActivityCallback".replace('$', '.');
public static class Default implements ITrustedWebActivityCallback {
@Override // android.os.IInterface
public IBinder asBinder() {
return null;
}
@Override // android.support.customtabs.trusted.ITrustedWebActivityCallback
public void onExtraCallback(String str, Bundle bundle) throws RemoteException {
}
}
void onExtraCallback(String str, Bundle bundle) throws RemoteException;
public static abstract class Stub extends Binder implements ITrustedWebActivityCallback {
static final int TRANSACTION_onExtraCallback = 2;
@Override // android.os.IInterface
public IBinder asBinder() {
return this;
}
public Stub() {
attachInterface(this, ITrustedWebActivityCallback.DESCRIPTOR);
}
public static ITrustedWebActivityCallback asInterface(IBinder iBinder) {
if (iBinder == null) {
return null;
}
IInterface queryLocalInterface = iBinder.queryLocalInterface(ITrustedWebActivityCallback.DESCRIPTOR);
if (queryLocalInterface != null && (queryLocalInterface instanceof ITrustedWebActivityCallback)) {
return (ITrustedWebActivityCallback) queryLocalInterface;
}
return new Proxy(iBinder);
}
@Override // android.os.Binder
public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
String str = ITrustedWebActivityCallback.DESCRIPTOR;
if (i >= 1 && i <= 16777215) {
parcel.enforceInterface(str);
}
if (i == 1598968902) {
parcel2.writeString(str);
return true;
}
if (i == 2) {
onExtraCallback(parcel.readString(), (Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR));
parcel2.writeNoException();
return true;
}
return super.onTransact(i, parcel, parcel2, i2);
}
public static class Proxy implements ITrustedWebActivityCallback {
private IBinder mRemote;
@Override // android.os.IInterface
public IBinder asBinder() {
return this.mRemote;
}
public String getInterfaceDescriptor() {
return ITrustedWebActivityCallback.DESCRIPTOR;
}
public Proxy(IBinder iBinder) {
this.mRemote = iBinder;
}
@Override // android.support.customtabs.trusted.ITrustedWebActivityCallback
public void onExtraCallback(String str, Bundle bundle) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken(ITrustedWebActivityCallback.DESCRIPTOR);
obtain.writeString(str);
_Parcel.writeTypedObject(obtain, bundle, 0);
this.mRemote.transact(2, obtain, obtain2, 0);
obtain2.readException();
} finally {
obtain2.recycle();
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,299 @@
package android.support.customtabs.trusted;
import android.os.Binder;
import android.os.Bundle;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.RemoteException;
import androidx.annotation.RestrictTo;
@RestrictTo({RestrictTo.Scope.LIBRARY})
/* loaded from: classes.dex */
public interface ITrustedWebActivityService extends IInterface {
public static final String DESCRIPTOR = "android$support$customtabs$trusted$ITrustedWebActivityService".replace('$', '.');
public static class Default implements ITrustedWebActivityService {
@Override // android.support.customtabs.trusted.ITrustedWebActivityService
public Bundle areNotificationsEnabled(Bundle bundle) throws RemoteException {
return null;
}
@Override // android.os.IInterface
public IBinder asBinder() {
return null;
}
@Override // android.support.customtabs.trusted.ITrustedWebActivityService
public void cancelNotification(Bundle bundle) throws RemoteException {
}
@Override // android.support.customtabs.trusted.ITrustedWebActivityService
public Bundle extraCommand(String str, Bundle bundle, IBinder iBinder) throws RemoteException {
return null;
}
@Override // android.support.customtabs.trusted.ITrustedWebActivityService
public Bundle getActiveNotifications() throws RemoteException {
return null;
}
@Override // android.support.customtabs.trusted.ITrustedWebActivityService
public Bundle getSmallIconBitmap() throws RemoteException {
return null;
}
@Override // android.support.customtabs.trusted.ITrustedWebActivityService
public int getSmallIconId() throws RemoteException {
return 0;
}
@Override // android.support.customtabs.trusted.ITrustedWebActivityService
public Bundle notifyNotificationWithChannel(Bundle bundle) throws RemoteException {
return null;
}
}
Bundle areNotificationsEnabled(Bundle bundle) throws RemoteException;
void cancelNotification(Bundle bundle) throws RemoteException;
Bundle extraCommand(String str, Bundle bundle, IBinder iBinder) throws RemoteException;
Bundle getActiveNotifications() throws RemoteException;
Bundle getSmallIconBitmap() throws RemoteException;
int getSmallIconId() throws RemoteException;
Bundle notifyNotificationWithChannel(Bundle bundle) throws RemoteException;
public static abstract class Stub extends Binder implements ITrustedWebActivityService {
static final int TRANSACTION_areNotificationsEnabled = 6;
static final int TRANSACTION_cancelNotification = 3;
static final int TRANSACTION_extraCommand = 9;
static final int TRANSACTION_getActiveNotifications = 5;
static final int TRANSACTION_getSmallIconBitmap = 7;
static final int TRANSACTION_getSmallIconId = 4;
static final int TRANSACTION_notifyNotificationWithChannel = 2;
@Override // android.os.IInterface
public IBinder asBinder() {
return this;
}
public Stub() {
attachInterface(this, ITrustedWebActivityService.DESCRIPTOR);
}
public static ITrustedWebActivityService asInterface(IBinder iBinder) {
if (iBinder == null) {
return null;
}
IInterface queryLocalInterface = iBinder.queryLocalInterface(ITrustedWebActivityService.DESCRIPTOR);
if (queryLocalInterface != null && (queryLocalInterface instanceof ITrustedWebActivityService)) {
return (ITrustedWebActivityService) queryLocalInterface;
}
return new Proxy(iBinder);
}
@Override // android.os.Binder
public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
String str = ITrustedWebActivityService.DESCRIPTOR;
if (i >= 1 && i <= 16777215) {
parcel.enforceInterface(str);
}
if (i == 1598968902) {
parcel2.writeString(str);
return true;
}
switch (i) {
case 2:
Bundle notifyNotificationWithChannel = notifyNotificationWithChannel((Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR));
parcel2.writeNoException();
_Parcel.writeTypedObject(parcel2, notifyNotificationWithChannel, 1);
return true;
case 3:
cancelNotification((Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR));
parcel2.writeNoException();
return true;
case 4:
int smallIconId = getSmallIconId();
parcel2.writeNoException();
parcel2.writeInt(smallIconId);
return true;
case 5:
Bundle activeNotifications = getActiveNotifications();
parcel2.writeNoException();
_Parcel.writeTypedObject(parcel2, activeNotifications, 1);
return true;
case 6:
Bundle areNotificationsEnabled = areNotificationsEnabled((Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR));
parcel2.writeNoException();
_Parcel.writeTypedObject(parcel2, areNotificationsEnabled, 1);
return true;
case 7:
Bundle smallIconBitmap = getSmallIconBitmap();
parcel2.writeNoException();
_Parcel.writeTypedObject(parcel2, smallIconBitmap, 1);
return true;
case 8:
default:
return super.onTransact(i, parcel, parcel2, i2);
case 9:
Bundle extraCommand = extraCommand(parcel.readString(), (Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR), parcel.readStrongBinder());
parcel2.writeNoException();
_Parcel.writeTypedObject(parcel2, extraCommand, 1);
return true;
}
}
public static class Proxy implements ITrustedWebActivityService {
private IBinder mRemote;
@Override // android.os.IInterface
public IBinder asBinder() {
return this.mRemote;
}
public String getInterfaceDescriptor() {
return ITrustedWebActivityService.DESCRIPTOR;
}
public Proxy(IBinder iBinder) {
this.mRemote = iBinder;
}
@Override // android.support.customtabs.trusted.ITrustedWebActivityService
public Bundle areNotificationsEnabled(Bundle bundle) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken(ITrustedWebActivityService.DESCRIPTOR);
_Parcel.writeTypedObject(obtain, bundle, 0);
this.mRemote.transact(6, obtain, obtain2, 0);
obtain2.readException();
return (Bundle) _Parcel.readTypedObject(obtain2, Bundle.CREATOR);
} finally {
obtain2.recycle();
obtain.recycle();
}
}
@Override // android.support.customtabs.trusted.ITrustedWebActivityService
public Bundle notifyNotificationWithChannel(Bundle bundle) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken(ITrustedWebActivityService.DESCRIPTOR);
_Parcel.writeTypedObject(obtain, bundle, 0);
this.mRemote.transact(2, obtain, obtain2, 0);
obtain2.readException();
return (Bundle) _Parcel.readTypedObject(obtain2, Bundle.CREATOR);
} finally {
obtain2.recycle();
obtain.recycle();
}
}
@Override // android.support.customtabs.trusted.ITrustedWebActivityService
public void cancelNotification(Bundle bundle) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken(ITrustedWebActivityService.DESCRIPTOR);
_Parcel.writeTypedObject(obtain, bundle, 0);
this.mRemote.transact(3, obtain, obtain2, 0);
obtain2.readException();
} finally {
obtain2.recycle();
obtain.recycle();
}
}
@Override // android.support.customtabs.trusted.ITrustedWebActivityService
public Bundle getActiveNotifications() throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken(ITrustedWebActivityService.DESCRIPTOR);
this.mRemote.transact(5, obtain, obtain2, 0);
obtain2.readException();
return (Bundle) _Parcel.readTypedObject(obtain2, Bundle.CREATOR);
} finally {
obtain2.recycle();
obtain.recycle();
}
}
@Override // android.support.customtabs.trusted.ITrustedWebActivityService
public int getSmallIconId() throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken(ITrustedWebActivityService.DESCRIPTOR);
this.mRemote.transact(4, obtain, obtain2, 0);
obtain2.readException();
return obtain2.readInt();
} finally {
obtain2.recycle();
obtain.recycle();
}
}
@Override // android.support.customtabs.trusted.ITrustedWebActivityService
public Bundle getSmallIconBitmap() throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken(ITrustedWebActivityService.DESCRIPTOR);
this.mRemote.transact(7, obtain, obtain2, 0);
obtain2.readException();
return (Bundle) _Parcel.readTypedObject(obtain2, Bundle.CREATOR);
} finally {
obtain2.recycle();
obtain.recycle();
}
}
@Override // android.support.customtabs.trusted.ITrustedWebActivityService
public Bundle extraCommand(String str, Bundle bundle, IBinder iBinder) throws RemoteException {
Parcel obtain = Parcel.obtain();
Parcel obtain2 = Parcel.obtain();
try {
obtain.writeInterfaceToken(ITrustedWebActivityService.DESCRIPTOR);
obtain.writeString(str);
_Parcel.writeTypedObject(obtain, bundle, 0);
obtain.writeStrongBinder(iBinder);
this.mRemote.transact(9, obtain, obtain2, 0);
obtain2.readException();
return (Bundle) _Parcel.readTypedObject(obtain2, Bundle.CREATOR);
} finally {
obtain2.recycle();
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,167 @@
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;
import androidx.annotation.RestrictTo;
@RestrictTo({RestrictTo.Scope.LIBRARY})
/* loaded from: classes.dex */
public interface INotificationSideChannel extends IInterface {
public static final String DESCRIPTOR = "android$support$v4$app$INotificationSideChannel".replace('$', '.');
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 {
String str = INotificationSideChannel.DESCRIPTOR;
if (i >= 1 && i <= 16777215) {
parcel.enforceInterface(str);
}
if (i == 1598968902) {
parcel2.writeString(str);
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;
}
public static class Proxy implements INotificationSideChannel {
private IBinder mRemote;
@Override // android.os.IInterface
public IBinder asBinder() {
return this.mRemote;
}
public String getInterfaceDescriptor() {
return INotificationSideChannel.DESCRIPTOR;
}
public 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,17 @@
package android.support.v4.app;
import androidx.annotation.RestrictTo;
import androidx.core.app.RemoteActionCompat;
import androidx.versionedparcelable.VersionedParcel;
@RestrictTo({RestrictTo.Scope.LIBRARY})
/* 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);
}
}

View File

@@ -0,0 +1,17 @@
package android.support.v4.graphics.drawable;
import androidx.annotation.RestrictTo;
import androidx.core.graphics.drawable.IconCompat;
import androidx.versionedparcelable.VersionedParcel;
@RestrictTo({RestrictTo.Scope.LIBRARY})
/* loaded from: classes.dex */
public final class IconCompatParcelizer extends androidx.core.graphics.drawable.IconCompatParcelizer {
public static IconCompat read(VersionedParcel versionedParcel) {
return androidx.core.graphics.drawable.IconCompatParcelizer.read(versionedParcel);
}
public static void write(IconCompat iconCompat, VersionedParcel versionedParcel) {
androidx.core.graphics.drawable.IconCompatParcelizer.write(iconCompat, versionedParcel);
}
}

View File

@@ -0,0 +1,17 @@
package android.support.v4.media;
import androidx.annotation.RestrictTo;
import androidx.media.AudioAttributesCompat;
import androidx.versionedparcelable.VersionedParcel;
@RestrictTo({RestrictTo.Scope.LIBRARY})
/* loaded from: classes.dex */
public final class AudioAttributesCompatParcelizer extends androidx.media.AudioAttributesCompatParcelizer {
public static AudioAttributesCompat read(VersionedParcel versionedParcel) {
return androidx.media.AudioAttributesCompatParcelizer.read(versionedParcel);
}
public static void write(AudioAttributesCompat audioAttributesCompat, VersionedParcel versionedParcel) {
androidx.media.AudioAttributesCompatParcelizer.write(audioAttributesCompat, versionedParcel);
}
}

View File

@@ -0,0 +1,17 @@
package android.support.v4.media;
import androidx.annotation.RestrictTo;
import androidx.media.AudioAttributesImplApi21;
import androidx.versionedparcelable.VersionedParcel;
@RestrictTo({RestrictTo.Scope.LIBRARY})
/* loaded from: classes.dex */
public final class AudioAttributesImplApi21Parcelizer extends androidx.media.AudioAttributesImplApi21Parcelizer {
public static AudioAttributesImplApi21 read(VersionedParcel versionedParcel) {
return androidx.media.AudioAttributesImplApi21Parcelizer.read(versionedParcel);
}
public static void write(AudioAttributesImplApi21 audioAttributesImplApi21, VersionedParcel versionedParcel) {
androidx.media.AudioAttributesImplApi21Parcelizer.write(audioAttributesImplApi21, versionedParcel);
}
}

View File

@@ -0,0 +1,17 @@
package android.support.v4.media;
import androidx.annotation.RestrictTo;
import androidx.media.AudioAttributesImplApi26;
import androidx.versionedparcelable.VersionedParcel;
@RestrictTo({RestrictTo.Scope.LIBRARY})
/* loaded from: classes.dex */
public final class AudioAttributesImplApi26Parcelizer extends androidx.media.AudioAttributesImplApi26Parcelizer {
public static AudioAttributesImplApi26 read(VersionedParcel versionedParcel) {
return androidx.media.AudioAttributesImplApi26Parcelizer.read(versionedParcel);
}
public static void write(AudioAttributesImplApi26 audioAttributesImplApi26, VersionedParcel versionedParcel) {
androidx.media.AudioAttributesImplApi26Parcelizer.write(audioAttributesImplApi26, versionedParcel);
}
}

View File

@@ -0,0 +1,17 @@
package android.support.v4.media;
import androidx.annotation.RestrictTo;
import androidx.media.AudioAttributesImplBase;
import androidx.versionedparcelable.VersionedParcel;
@RestrictTo({RestrictTo.Scope.LIBRARY})
/* loaded from: classes.dex */
public final class AudioAttributesImplBaseParcelizer extends androidx.media.AudioAttributesImplBaseParcelizer {
public static AudioAttributesImplBase read(VersionedParcel versionedParcel) {
return androidx.media.AudioAttributesImplBaseParcelizer.read(versionedParcel);
}
public static void write(AudioAttributesImplBase audioAttributesImplBase, VersionedParcel versionedParcel) {
androidx.media.AudioAttributesImplBaseParcelizer.write(audioAttributesImplBase, versionedParcel);
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,277 @@
package android.support.v4.media;
import android.annotation.SuppressLint;
import android.graphics.Bitmap;
import android.media.MediaDescription;
import android.net.Uri;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import android.text.TextUtils;
import androidx.annotation.Nullable;
import androidx.annotation.RestrictTo;
@SuppressLint({"BanParcelableUsage"})
/* loaded from: classes.dex */
public final class MediaDescriptionCompat implements Parcelable {
public static final long BT_FOLDER_TYPE_ALBUMS = 2;
public static final long BT_FOLDER_TYPE_ARTISTS = 3;
public static final long BT_FOLDER_TYPE_GENRES = 4;
public static final long BT_FOLDER_TYPE_MIXED = 0;
public static final long BT_FOLDER_TYPE_PLAYLISTS = 5;
public static final long BT_FOLDER_TYPE_TITLES = 1;
public static final long BT_FOLDER_TYPE_YEARS = 6;
public static final Parcelable.Creator<MediaDescriptionCompat> CREATOR = new Parcelable.Creator<MediaDescriptionCompat>() { // from class: android.support.v4.media.MediaDescriptionCompat.1
/* JADX WARN: Can't rename method to resolve collision */
@Override // android.os.Parcelable.Creator
public MediaDescriptionCompat createFromParcel(Parcel parcel) {
return MediaDescriptionCompat.fromMediaDescription(MediaDescription.CREATOR.createFromParcel(parcel));
}
/* JADX WARN: Can't rename method to resolve collision */
@Override // android.os.Parcelable.Creator
public MediaDescriptionCompat[] newArray(int i) {
return new MediaDescriptionCompat[i];
}
};
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final String DESCRIPTION_KEY_MEDIA_URI = "android.support.v4.media.description.MEDIA_URI";
@RestrictTo({RestrictTo.Scope.LIBRARY})
public static final String DESCRIPTION_KEY_NULL_BUNDLE_FLAG = "android.support.v4.media.description.NULL_BUNDLE_FLAG";
public static final String EXTRA_BT_FOLDER_TYPE = "android.media.extra.BT_FOLDER_TYPE";
public static final String EXTRA_DOWNLOAD_STATUS = "android.media.extra.DOWNLOAD_STATUS";
public static final long STATUS_DOWNLOADED = 2;
public static final long STATUS_DOWNLOADING = 1;
public static final long STATUS_NOT_DOWNLOADED = 0;
private static final String TAG = "MediaDescriptionCompat";
private final CharSequence mDescription;
private MediaDescription mDescriptionFwk;
private final Bundle mExtras;
private final Bitmap mIcon;
private final Uri mIconUri;
private final String mMediaId;
private final Uri mMediaUri;
private final CharSequence mSubtitle;
private final CharSequence mTitle;
@Override // android.os.Parcelable
public int describeContents() {
return 0;
}
@Nullable
public CharSequence getDescription() {
return this.mDescription;
}
@Nullable
public Bundle getExtras() {
return this.mExtras;
}
@Nullable
public Bitmap getIconBitmap() {
return this.mIcon;
}
@Nullable
public Uri getIconUri() {
return this.mIconUri;
}
@Nullable
public String getMediaId() {
return this.mMediaId;
}
@Nullable
public Uri getMediaUri() {
return this.mMediaUri;
}
@Nullable
public CharSequence getSubtitle() {
return this.mSubtitle;
}
@Nullable
public CharSequence getTitle() {
return this.mTitle;
}
public MediaDescriptionCompat(String str, CharSequence charSequence, CharSequence charSequence2, CharSequence charSequence3, Bitmap bitmap, Uri uri, Bundle bundle, Uri uri2) {
this.mMediaId = str;
this.mTitle = charSequence;
this.mSubtitle = charSequence2;
this.mDescription = charSequence3;
this.mIcon = bitmap;
this.mIconUri = uri;
this.mExtras = bundle;
this.mMediaUri = uri2;
}
public MediaDescriptionCompat(Parcel parcel) {
this.mMediaId = parcel.readString();
Parcelable.Creator creator = TextUtils.CHAR_SEQUENCE_CREATOR;
this.mTitle = (CharSequence) creator.createFromParcel(parcel);
this.mSubtitle = (CharSequence) creator.createFromParcel(parcel);
this.mDescription = (CharSequence) creator.createFromParcel(parcel);
ClassLoader classLoader = MediaDescriptionCompat.class.getClassLoader();
this.mIcon = (Bitmap) parcel.readParcelable(classLoader);
this.mIconUri = (Uri) parcel.readParcelable(classLoader);
this.mExtras = parcel.readBundle(classLoader);
this.mMediaUri = (Uri) parcel.readParcelable(classLoader);
}
@Override // android.os.Parcelable
public void writeToParcel(Parcel parcel, int i) {
((MediaDescription) getMediaDescription()).writeToParcel(parcel, i);
}
public String toString() {
return ((Object) this.mTitle) + ", " + ((Object) this.mSubtitle) + ", " + ((Object) this.mDescription);
}
public Object getMediaDescription() {
MediaDescription mediaDescription = this.mDescriptionFwk;
if (mediaDescription != null) {
return mediaDescription;
}
MediaDescription.Builder builder = new MediaDescription.Builder();
builder.setMediaId(this.mMediaId);
builder.setTitle(this.mTitle);
builder.setSubtitle(this.mSubtitle);
builder.setDescription(this.mDescription);
builder.setIconBitmap(this.mIcon);
builder.setIconUri(this.mIconUri);
builder.setExtras(this.mExtras);
builder.setMediaUri(this.mMediaUri);
MediaDescription build = builder.build();
this.mDescriptionFwk = build;
return build;
}
/* JADX WARN: Removed duplicated region for block: B:16:0x0068 */
/* JADX WARN: Removed duplicated region for block: B:20:0x006c */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static android.support.v4.media.MediaDescriptionCompat fromMediaDescription(java.lang.Object r8) {
/*
r0 = 0
if (r8 == 0) goto L79
android.support.v4.media.MediaDescriptionCompat$Builder r1 = new android.support.v4.media.MediaDescriptionCompat$Builder
r1.<init>()
android.media.MediaDescription r8 = (android.media.MediaDescription) r8
java.lang.String r2 = r8.getMediaId()
r1.setMediaId(r2)
java.lang.CharSequence r2 = r8.getTitle()
r1.setTitle(r2)
java.lang.CharSequence r2 = r8.getSubtitle()
r1.setSubtitle(r2)
java.lang.CharSequence r2 = r8.getDescription()
r1.setDescription(r2)
android.graphics.Bitmap r2 = r8.getIconBitmap()
r1.setIconBitmap(r2)
android.net.Uri r2 = r8.getIconUri()
r1.setIconUri(r2)
android.os.Bundle r2 = r8.getExtras()
if (r2 == 0) goto L3e
android.os.Bundle r2 = android.support.v4.media.session.MediaSessionCompat.unparcelWithClassLoader(r2)
L3e:
java.lang.String r3 = "android.support.v4.media.description.MEDIA_URI"
if (r2 == 0) goto L49
android.os.Parcelable r4 = r2.getParcelable(r3)
android.net.Uri r4 = (android.net.Uri) r4
goto L4a
L49:
r4 = r0
L4a:
if (r4 == 0) goto L62
java.lang.String r5 = "android.support.v4.media.description.NULL_BUNDLE_FLAG"
boolean r6 = r2.containsKey(r5)
if (r6 == 0) goto L5c
int r6 = r2.size()
r7 = 2
if (r6 != r7) goto L5c
goto L63
L5c:
r2.remove(r3)
r2.remove(r5)
L62:
r0 = r2
L63:
r1.setExtras(r0)
if (r4 == 0) goto L6c
r1.setMediaUri(r4)
goto L73
L6c:
android.net.Uri r0 = r8.getMediaUri()
r1.setMediaUri(r0)
L73:
android.support.v4.media.MediaDescriptionCompat r0 = r1.build()
r0.mDescriptionFwk = r8
L79:
return r0
*/
throw new UnsupportedOperationException("Method not decompiled: android.support.v4.media.MediaDescriptionCompat.fromMediaDescription(java.lang.Object):android.support.v4.media.MediaDescriptionCompat");
}
public static final class Builder {
private CharSequence mDescription;
private Bundle mExtras;
private Bitmap mIcon;
private Uri mIconUri;
private String mMediaId;
private Uri mMediaUri;
private CharSequence mSubtitle;
private CharSequence mTitle;
public Builder setDescription(@Nullable CharSequence charSequence) {
this.mDescription = charSequence;
return this;
}
public Builder setExtras(@Nullable Bundle bundle) {
this.mExtras = bundle;
return this;
}
public Builder setIconBitmap(@Nullable Bitmap bitmap) {
this.mIcon = bitmap;
return this;
}
public Builder setIconUri(@Nullable Uri uri) {
this.mIconUri = uri;
return this;
}
public Builder setMediaId(@Nullable String str) {
this.mMediaId = str;
return this;
}
public Builder setMediaUri(@Nullable Uri uri) {
this.mMediaUri = uri;
return this;
}
public Builder setSubtitle(@Nullable CharSequence charSequence) {
this.mSubtitle = charSequence;
return this;
}
public Builder setTitle(@Nullable CharSequence charSequence) {
this.mTitle = charSequence;
return this;
}
public MediaDescriptionCompat build() {
return new MediaDescriptionCompat(this.mMediaId, this.mTitle, this.mSubtitle, this.mDescription, this.mIcon, this.mIconUri, this.mExtras, this.mMediaUri);
}
}
}

View File

@@ -0,0 +1,378 @@
package android.support.v4.media;
import android.annotation.SuppressLint;
import android.graphics.Bitmap;
import android.media.MediaMetadata;
import android.net.Uri;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.v4.media.MediaDescriptionCompat;
import android.support.v4.media.session.MediaSessionCompat;
import android.text.TextUtils;
import android.util.Log;
import androidx.annotation.RestrictTo;
import androidx.collection.ArrayMap;
import java.util.Set;
@SuppressLint({"BanParcelableUsage"})
/* loaded from: classes.dex */
public final class MediaMetadataCompat implements Parcelable {
public static final Parcelable.Creator<MediaMetadataCompat> CREATOR;
static final ArrayMap<String, Integer> METADATA_KEYS_TYPE;
public static final String METADATA_KEY_ADVERTISEMENT = "android.media.metadata.ADVERTISEMENT";
public static final String METADATA_KEY_ALBUM = "android.media.metadata.ALBUM";
public static final String METADATA_KEY_ALBUM_ART = "android.media.metadata.ALBUM_ART";
public static final String METADATA_KEY_ALBUM_ARTIST = "android.media.metadata.ALBUM_ARTIST";
public static final String METADATA_KEY_ALBUM_ART_URI = "android.media.metadata.ALBUM_ART_URI";
public static final String METADATA_KEY_ART = "android.media.metadata.ART";
public static final String METADATA_KEY_ARTIST = "android.media.metadata.ARTIST";
public static final String METADATA_KEY_ART_URI = "android.media.metadata.ART_URI";
public static final String METADATA_KEY_AUTHOR = "android.media.metadata.AUTHOR";
public static final String METADATA_KEY_BT_FOLDER_TYPE = "android.media.metadata.BT_FOLDER_TYPE";
public static final String METADATA_KEY_COMPILATION = "android.media.metadata.COMPILATION";
public static final String METADATA_KEY_COMPOSER = "android.media.metadata.COMPOSER";
public static final String METADATA_KEY_DATE = "android.media.metadata.DATE";
public static final String METADATA_KEY_DISC_NUMBER = "android.media.metadata.DISC_NUMBER";
public static final String METADATA_KEY_DISPLAY_DESCRIPTION = "android.media.metadata.DISPLAY_DESCRIPTION";
public static final String METADATA_KEY_DISPLAY_ICON = "android.media.metadata.DISPLAY_ICON";
public static final String METADATA_KEY_DISPLAY_ICON_URI = "android.media.metadata.DISPLAY_ICON_URI";
public static final String METADATA_KEY_DISPLAY_SUBTITLE = "android.media.metadata.DISPLAY_SUBTITLE";
public static final String METADATA_KEY_DISPLAY_TITLE = "android.media.metadata.DISPLAY_TITLE";
public static final String METADATA_KEY_DOWNLOAD_STATUS = "android.media.metadata.DOWNLOAD_STATUS";
public static final String METADATA_KEY_DURATION = "android.media.metadata.DURATION";
public static final String METADATA_KEY_GENRE = "android.media.metadata.GENRE";
public static final String METADATA_KEY_MEDIA_ID = "android.media.metadata.MEDIA_ID";
public static final String METADATA_KEY_MEDIA_URI = "android.media.metadata.MEDIA_URI";
public static final String METADATA_KEY_NUM_TRACKS = "android.media.metadata.NUM_TRACKS";
public static final String METADATA_KEY_RATING = "android.media.metadata.RATING";
public static final String METADATA_KEY_TITLE = "android.media.metadata.TITLE";
public static final String METADATA_KEY_TRACK_NUMBER = "android.media.metadata.TRACK_NUMBER";
public static final String METADATA_KEY_USER_RATING = "android.media.metadata.USER_RATING";
public static final String METADATA_KEY_WRITER = "android.media.metadata.WRITER";
public static final String METADATA_KEY_YEAR = "android.media.metadata.YEAR";
static final int METADATA_TYPE_BITMAP = 2;
static final int METADATA_TYPE_LONG = 0;
static final int METADATA_TYPE_RATING = 3;
static final int METADATA_TYPE_TEXT = 1;
private static final String[] PREFERRED_BITMAP_ORDER;
private static final String[] PREFERRED_DESCRIPTION_ORDER;
private static final String[] PREFERRED_URI_ORDER;
private static final String TAG = "MediaMetadata";
final Bundle mBundle;
private MediaDescriptionCompat mDescription;
private MediaMetadata mMetadataFwk;
@Override // android.os.Parcelable
public int describeContents() {
return 0;
}
static {
ArrayMap<String, Integer> arrayMap = new ArrayMap<>();
METADATA_KEYS_TYPE = arrayMap;
arrayMap.put(METADATA_KEY_TITLE, 1);
arrayMap.put(METADATA_KEY_ARTIST, 1);
arrayMap.put(METADATA_KEY_DURATION, 0);
arrayMap.put(METADATA_KEY_ALBUM, 1);
arrayMap.put(METADATA_KEY_AUTHOR, 1);
arrayMap.put(METADATA_KEY_WRITER, 1);
arrayMap.put(METADATA_KEY_COMPOSER, 1);
arrayMap.put(METADATA_KEY_COMPILATION, 1);
arrayMap.put(METADATA_KEY_DATE, 1);
arrayMap.put(METADATA_KEY_YEAR, 0);
arrayMap.put(METADATA_KEY_GENRE, 1);
arrayMap.put(METADATA_KEY_TRACK_NUMBER, 0);
arrayMap.put(METADATA_KEY_NUM_TRACKS, 0);
arrayMap.put(METADATA_KEY_DISC_NUMBER, 0);
arrayMap.put(METADATA_KEY_ALBUM_ARTIST, 1);
arrayMap.put(METADATA_KEY_ART, 2);
arrayMap.put(METADATA_KEY_ART_URI, 1);
arrayMap.put(METADATA_KEY_ALBUM_ART, 2);
arrayMap.put(METADATA_KEY_ALBUM_ART_URI, 1);
arrayMap.put(METADATA_KEY_USER_RATING, 3);
arrayMap.put(METADATA_KEY_RATING, 3);
arrayMap.put(METADATA_KEY_DISPLAY_TITLE, 1);
arrayMap.put(METADATA_KEY_DISPLAY_SUBTITLE, 1);
arrayMap.put(METADATA_KEY_DISPLAY_DESCRIPTION, 1);
arrayMap.put(METADATA_KEY_DISPLAY_ICON, 2);
arrayMap.put(METADATA_KEY_DISPLAY_ICON_URI, 1);
arrayMap.put(METADATA_KEY_MEDIA_ID, 1);
arrayMap.put(METADATA_KEY_BT_FOLDER_TYPE, 0);
arrayMap.put(METADATA_KEY_MEDIA_URI, 1);
arrayMap.put("android.media.metadata.ADVERTISEMENT", 0);
arrayMap.put(METADATA_KEY_DOWNLOAD_STATUS, 0);
PREFERRED_DESCRIPTION_ORDER = new String[]{METADATA_KEY_TITLE, METADATA_KEY_ARTIST, METADATA_KEY_ALBUM, METADATA_KEY_ALBUM_ARTIST, METADATA_KEY_WRITER, METADATA_KEY_AUTHOR, METADATA_KEY_COMPOSER};
PREFERRED_BITMAP_ORDER = new String[]{METADATA_KEY_DISPLAY_ICON, METADATA_KEY_ART, METADATA_KEY_ALBUM_ART};
PREFERRED_URI_ORDER = new String[]{METADATA_KEY_DISPLAY_ICON_URI, METADATA_KEY_ART_URI, METADATA_KEY_ALBUM_ART_URI};
CREATOR = new Parcelable.Creator<MediaMetadataCompat>() { // from class: android.support.v4.media.MediaMetadataCompat.1
/* JADX WARN: Can't rename method to resolve collision */
@Override // android.os.Parcelable.Creator
public MediaMetadataCompat createFromParcel(Parcel parcel) {
return new MediaMetadataCompat(parcel);
}
/* JADX WARN: Can't rename method to resolve collision */
@Override // android.os.Parcelable.Creator
public MediaMetadataCompat[] newArray(int i) {
return new MediaMetadataCompat[i];
}
};
}
public MediaMetadataCompat(Bundle bundle) {
Bundle bundle2 = new Bundle(bundle);
this.mBundle = bundle2;
MediaSessionCompat.ensureClassLoader(bundle2);
}
public MediaMetadataCompat(Parcel parcel) {
this.mBundle = parcel.readBundle(MediaSessionCompat.class.getClassLoader());
}
public boolean containsKey(String str) {
return this.mBundle.containsKey(str);
}
public CharSequence getText(String str) {
return this.mBundle.getCharSequence(str);
}
public String getString(String str) {
CharSequence charSequence = this.mBundle.getCharSequence(str);
if (charSequence != null) {
return charSequence.toString();
}
return null;
}
public long getLong(String str) {
return this.mBundle.getLong(str, 0L);
}
public RatingCompat getRating(String str) {
try {
return RatingCompat.fromRating(this.mBundle.getParcelable(str));
} catch (Exception e) {
Log.w(TAG, "Failed to retrieve a key as Rating.", e);
return null;
}
}
public Bitmap getBitmap(String str) {
try {
return (Bitmap) this.mBundle.getParcelable(str);
} catch (Exception e) {
Log.w(TAG, "Failed to retrieve a key as Bitmap.", e);
return null;
}
}
public MediaDescriptionCompat getDescription() {
Bitmap bitmap;
Uri uri;
MediaDescriptionCompat mediaDescriptionCompat = this.mDescription;
if (mediaDescriptionCompat != null) {
return mediaDescriptionCompat;
}
String string = getString(METADATA_KEY_MEDIA_ID);
CharSequence[] charSequenceArr = new CharSequence[3];
CharSequence text = getText(METADATA_KEY_DISPLAY_TITLE);
if (TextUtils.isEmpty(text)) {
int i = 0;
int i2 = 0;
while (i < 3) {
String[] strArr = PREFERRED_DESCRIPTION_ORDER;
if (i2 >= strArr.length) {
break;
}
int i3 = i2 + 1;
CharSequence text2 = getText(strArr[i2]);
if (!TextUtils.isEmpty(text2)) {
charSequenceArr[i] = text2;
i++;
}
i2 = i3;
}
} else {
charSequenceArr[0] = text;
charSequenceArr[1] = getText(METADATA_KEY_DISPLAY_SUBTITLE);
charSequenceArr[2] = getText(METADATA_KEY_DISPLAY_DESCRIPTION);
}
int i4 = 0;
while (true) {
String[] strArr2 = PREFERRED_BITMAP_ORDER;
if (i4 >= strArr2.length) {
bitmap = null;
break;
}
bitmap = getBitmap(strArr2[i4]);
if (bitmap != null) {
break;
}
i4++;
}
int i5 = 0;
while (true) {
String[] strArr3 = PREFERRED_URI_ORDER;
if (i5 >= strArr3.length) {
uri = null;
break;
}
String string2 = getString(strArr3[i5]);
if (!TextUtils.isEmpty(string2)) {
uri = Uri.parse(string2);
break;
}
i5++;
}
String string3 = getString(METADATA_KEY_MEDIA_URI);
Uri parse = TextUtils.isEmpty(string3) ? null : Uri.parse(string3);
MediaDescriptionCompat.Builder builder = new MediaDescriptionCompat.Builder();
builder.setMediaId(string);
builder.setTitle(charSequenceArr[0]);
builder.setSubtitle(charSequenceArr[1]);
builder.setDescription(charSequenceArr[2]);
builder.setIconBitmap(bitmap);
builder.setIconUri(uri);
builder.setMediaUri(parse);
Bundle bundle = new Bundle();
if (this.mBundle.containsKey(METADATA_KEY_BT_FOLDER_TYPE)) {
bundle.putLong(MediaDescriptionCompat.EXTRA_BT_FOLDER_TYPE, getLong(METADATA_KEY_BT_FOLDER_TYPE));
}
if (this.mBundle.containsKey(METADATA_KEY_DOWNLOAD_STATUS)) {
bundle.putLong(MediaDescriptionCompat.EXTRA_DOWNLOAD_STATUS, getLong(METADATA_KEY_DOWNLOAD_STATUS));
}
if (!bundle.isEmpty()) {
builder.setExtras(bundle);
}
MediaDescriptionCompat build = builder.build();
this.mDescription = build;
return build;
}
@Override // android.os.Parcelable
public void writeToParcel(Parcel parcel, int i) {
parcel.writeBundle(this.mBundle);
}
public int size() {
return this.mBundle.size();
}
public Set<String> keySet() {
return this.mBundle.keySet();
}
public Bundle getBundle() {
return new Bundle(this.mBundle);
}
public static MediaMetadataCompat fromMediaMetadata(Object obj) {
if (obj == null) {
return null;
}
Parcel obtain = Parcel.obtain();
MediaMetadata mediaMetadata = (MediaMetadata) obj;
mediaMetadata.writeToParcel(obtain, 0);
obtain.setDataPosition(0);
MediaMetadataCompat createFromParcel = CREATOR.createFromParcel(obtain);
obtain.recycle();
createFromParcel.mMetadataFwk = mediaMetadata;
return createFromParcel;
}
public Object getMediaMetadata() {
if (this.mMetadataFwk == null) {
Parcel obtain = Parcel.obtain();
writeToParcel(obtain, 0);
obtain.setDataPosition(0);
this.mMetadataFwk = (MediaMetadata) MediaMetadata.CREATOR.createFromParcel(obtain);
obtain.recycle();
}
return this.mMetadataFwk;
}
public static final class Builder {
private final Bundle mBundle;
public Builder() {
this.mBundle = new Bundle();
}
public Builder(MediaMetadataCompat mediaMetadataCompat) {
Bundle bundle = new Bundle(mediaMetadataCompat.mBundle);
this.mBundle = bundle;
MediaSessionCompat.ensureClassLoader(bundle);
}
@RestrictTo({RestrictTo.Scope.LIBRARY})
public Builder(MediaMetadataCompat mediaMetadataCompat, int i) {
this(mediaMetadataCompat);
for (String str : this.mBundle.keySet()) {
Object obj = this.mBundle.get(str);
if (obj instanceof Bitmap) {
Bitmap bitmap = (Bitmap) obj;
if (bitmap.getHeight() > i || bitmap.getWidth() > i) {
putBitmap(str, scaleBitmap(bitmap, i));
}
}
}
}
public Builder putText(String str, CharSequence charSequence) {
ArrayMap<String, Integer> arrayMap = MediaMetadataCompat.METADATA_KEYS_TYPE;
if (arrayMap.containsKey(str) && arrayMap.get(str).intValue() != 1) {
throw new IllegalArgumentException("The " + str + " key cannot be used to put a CharSequence");
}
this.mBundle.putCharSequence(str, charSequence);
return this;
}
public Builder putString(String str, String str2) {
ArrayMap<String, Integer> arrayMap = MediaMetadataCompat.METADATA_KEYS_TYPE;
if (arrayMap.containsKey(str) && arrayMap.get(str).intValue() != 1) {
throw new IllegalArgumentException("The " + str + " key cannot be used to put a String");
}
this.mBundle.putCharSequence(str, str2);
return this;
}
public Builder putLong(String str, long j) {
ArrayMap<String, Integer> arrayMap = MediaMetadataCompat.METADATA_KEYS_TYPE;
if (arrayMap.containsKey(str) && arrayMap.get(str).intValue() != 0) {
throw new IllegalArgumentException("The " + str + " key cannot be used to put a long");
}
this.mBundle.putLong(str, j);
return this;
}
public Builder putRating(String str, RatingCompat ratingCompat) {
ArrayMap<String, Integer> arrayMap = MediaMetadataCompat.METADATA_KEYS_TYPE;
if (arrayMap.containsKey(str) && arrayMap.get(str).intValue() != 3) {
throw new IllegalArgumentException("The " + str + " key cannot be used to put a Rating");
}
this.mBundle.putParcelable(str, (Parcelable) ratingCompat.getRating());
return this;
}
public Builder putBitmap(String str, Bitmap bitmap) {
ArrayMap<String, Integer> arrayMap = MediaMetadataCompat.METADATA_KEYS_TYPE;
if (arrayMap.containsKey(str) && arrayMap.get(str).intValue() != 2) {
throw new IllegalArgumentException("The " + str + " key cannot be used to put a Bitmap");
}
this.mBundle.putParcelable(str, bitmap);
return this;
}
public MediaMetadataCompat build() {
return new MediaMetadataCompat(this.mBundle);
}
private Bitmap scaleBitmap(Bitmap bitmap, int i) {
float f = i;
float min = Math.min(f / bitmap.getWidth(), f / bitmap.getHeight());
return Bitmap.createScaledBitmap(bitmap, (int) (bitmap.getWidth() * min), (int) (bitmap.getHeight() * min), true);
}
}
}

View File

@@ -0,0 +1,218 @@
package android.support.v4.media;
import android.annotation.SuppressLint;
import android.media.Rating;
import android.os.Parcel;
import android.os.Parcelable;
import android.util.Log;
import androidx.annotation.RestrictTo;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@SuppressLint({"BanParcelableUsage"})
/* loaded from: classes.dex */
public final class RatingCompat implements Parcelable {
public static final Parcelable.Creator<RatingCompat> CREATOR = new Parcelable.Creator<RatingCompat>() { // from class: android.support.v4.media.RatingCompat.1
/* JADX WARN: Can't rename method to resolve collision */
@Override // android.os.Parcelable.Creator
public RatingCompat createFromParcel(Parcel parcel) {
return new RatingCompat(parcel.readInt(), parcel.readFloat());
}
/* JADX WARN: Can't rename method to resolve collision */
@Override // android.os.Parcelable.Creator
public RatingCompat[] newArray(int i) {
return new RatingCompat[i];
}
};
public static final int RATING_3_STARS = 3;
public static final int RATING_4_STARS = 4;
public static final int RATING_5_STARS = 5;
public static final int RATING_HEART = 1;
public static final int RATING_NONE = 0;
private static final float RATING_NOT_RATED = -1.0f;
public static final int RATING_PERCENTAGE = 6;
public static final int RATING_THUMB_UP_DOWN = 2;
private static final String TAG = "Rating";
private Object mRatingObj;
private final int mRatingStyle;
private final float mRatingValue;
@Retention(RetentionPolicy.SOURCE)
@RestrictTo({RestrictTo.Scope.LIBRARY})
public @interface StarStyle {
}
@Retention(RetentionPolicy.SOURCE)
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX})
public @interface Style {
}
@Override // android.os.Parcelable
public int describeContents() {
return this.mRatingStyle;
}
public int getRatingStyle() {
return this.mRatingStyle;
}
public boolean hasHeart() {
return this.mRatingStyle == 1 && this.mRatingValue == 1.0f;
}
public boolean isRated() {
return this.mRatingValue >= 0.0f;
}
public boolean isThumbUp() {
return this.mRatingStyle == 2 && this.mRatingValue == 1.0f;
}
public RatingCompat(int i, float f) {
this.mRatingStyle = i;
this.mRatingValue = f;
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("Rating:style=");
sb.append(this.mRatingStyle);
sb.append(" rating=");
float f = this.mRatingValue;
sb.append(f < 0.0f ? "unrated" : String.valueOf(f));
return sb.toString();
}
@Override // android.os.Parcelable
public void writeToParcel(Parcel parcel, int i) {
parcel.writeInt(this.mRatingStyle);
parcel.writeFloat(this.mRatingValue);
}
public static RatingCompat newUnratedRating(int i) {
switch (i) {
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
return new RatingCompat(i, -1.0f);
default:
return null;
}
}
public static RatingCompat newHeartRating(boolean z) {
return new RatingCompat(1, z ? 1.0f : 0.0f);
}
public static RatingCompat newThumbRating(boolean z) {
return new RatingCompat(2, z ? 1.0f : 0.0f);
}
public static RatingCompat newStarRating(int i, float f) {
float f2;
if (i == 3) {
f2 = 3.0f;
} else if (i == 4) {
f2 = 4.0f;
} else {
if (i != 5) {
Log.e(TAG, "Invalid rating style (" + i + ") for a star rating");
return null;
}
f2 = 5.0f;
}
if (f < 0.0f || f > f2) {
Log.e(TAG, "Trying to set out of range star-based rating");
return null;
}
return new RatingCompat(i, f);
}
public static RatingCompat newPercentageRating(float f) {
if (f < 0.0f || f > 100.0f) {
Log.e(TAG, "Invalid percentage-based rating value");
return null;
}
return new RatingCompat(6, f);
}
public float getStarRating() {
int i = this.mRatingStyle;
if ((i == 3 || i == 4 || i == 5) && isRated()) {
return this.mRatingValue;
}
return -1.0f;
}
public float getPercentRating() {
if (this.mRatingStyle == 6 && isRated()) {
return this.mRatingValue;
}
return -1.0f;
}
public static RatingCompat fromRating(Object obj) {
RatingCompat ratingCompat = null;
if (obj != null) {
Rating rating = (Rating) obj;
int ratingStyle = rating.getRatingStyle();
if (rating.isRated()) {
switch (ratingStyle) {
case 1:
ratingCompat = newHeartRating(rating.hasHeart());
break;
case 2:
ratingCompat = newThumbRating(rating.isThumbUp());
break;
case 3:
case 4:
case 5:
ratingCompat = newStarRating(ratingStyle, rating.getStarRating());
break;
case 6:
ratingCompat = newPercentageRating(rating.getPercentRating());
break;
default:
return null;
}
} else {
ratingCompat = newUnratedRating(ratingStyle);
}
ratingCompat.mRatingObj = obj;
}
return ratingCompat;
}
public Object getRating() {
if (this.mRatingObj == null) {
if (isRated()) {
int i = this.mRatingStyle;
switch (i) {
case 1:
this.mRatingObj = Rating.newHeartRating(hasHeart());
break;
case 2:
this.mRatingObj = Rating.newThumbRating(isThumbUp());
break;
case 3:
case 4:
case 5:
this.mRatingObj = Rating.newStarRating(i, getStarRating());
break;
case 6:
this.mRatingObj = Rating.newPercentageRating(getPercentRating());
break;
default:
return null;
}
} else {
this.mRatingObj = Rating.newUnratedRating(this.mRatingStyle);
}
}
return this.mRatingObj;
}
}

View File

@@ -0,0 +1,477 @@
package android.support.v4.media.session;
import android.os.Binder;
import android.os.Bundle;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
import android.support.v4.media.MediaMetadataCompat;
import android.support.v4.media.session.MediaSessionCompat;
import android.text.TextUtils;
import java.util.List;
/* loaded from: classes.dex */
public interface IMediaControllerCallback extends IInterface {
public static class Default implements IMediaControllerCallback {
@Override // android.os.IInterface
public IBinder asBinder() {
return null;
}
@Override // android.support.v4.media.session.IMediaControllerCallback
public void onCaptioningEnabledChanged(boolean z) throws RemoteException {
}
@Override // android.support.v4.media.session.IMediaControllerCallback
public void onEvent(String str, Bundle bundle) throws RemoteException {
}
@Override // android.support.v4.media.session.IMediaControllerCallback
public void onExtrasChanged(Bundle bundle) throws RemoteException {
}
@Override // android.support.v4.media.session.IMediaControllerCallback
public void onMetadataChanged(MediaMetadataCompat mediaMetadataCompat) throws RemoteException {
}
@Override // android.support.v4.media.session.IMediaControllerCallback
public void onPlaybackStateChanged(PlaybackStateCompat playbackStateCompat) throws RemoteException {
}
@Override // android.support.v4.media.session.IMediaControllerCallback
public void onQueueChanged(List<MediaSessionCompat.QueueItem> list) throws RemoteException {
}
@Override // android.support.v4.media.session.IMediaControllerCallback
public void onQueueTitleChanged(CharSequence charSequence) throws RemoteException {
}
@Override // android.support.v4.media.session.IMediaControllerCallback
public void onRepeatModeChanged(int i) throws RemoteException {
}
@Override // android.support.v4.media.session.IMediaControllerCallback
public void onSessionDestroyed() throws RemoteException {
}
@Override // android.support.v4.media.session.IMediaControllerCallback
public void onSessionReady() throws RemoteException {
}
@Override // android.support.v4.media.session.IMediaControllerCallback
public void onShuffleModeChanged(int i) throws RemoteException {
}
@Override // android.support.v4.media.session.IMediaControllerCallback
public void onShuffleModeChangedRemoved(boolean z) throws RemoteException {
}
@Override // android.support.v4.media.session.IMediaControllerCallback
public void onVolumeInfoChanged(ParcelableVolumeInfo parcelableVolumeInfo) throws RemoteException {
}
}
void onCaptioningEnabledChanged(boolean z) throws RemoteException;
void onEvent(String str, Bundle bundle) throws RemoteException;
void onExtrasChanged(Bundle bundle) throws RemoteException;
void onMetadataChanged(MediaMetadataCompat mediaMetadataCompat) throws RemoteException;
void onPlaybackStateChanged(PlaybackStateCompat playbackStateCompat) throws RemoteException;
void onQueueChanged(List<MediaSessionCompat.QueueItem> list) throws RemoteException;
void onQueueTitleChanged(CharSequence charSequence) throws RemoteException;
void onRepeatModeChanged(int i) throws RemoteException;
void onSessionDestroyed() throws RemoteException;
void onSessionReady() throws RemoteException;
void onShuffleModeChanged(int i) throws RemoteException;
void onShuffleModeChangedRemoved(boolean z) throws RemoteException;
void onVolumeInfoChanged(ParcelableVolumeInfo parcelableVolumeInfo) throws RemoteException;
public static abstract class Stub extends Binder implements IMediaControllerCallback {
private static final String DESCRIPTOR = "android.support.v4.media.session.IMediaControllerCallback";
static final int TRANSACTION_onCaptioningEnabledChanged = 11;
static final int TRANSACTION_onEvent = 1;
static final int TRANSACTION_onExtrasChanged = 7;
static final int TRANSACTION_onMetadataChanged = 4;
static final int TRANSACTION_onPlaybackStateChanged = 3;
static final int TRANSACTION_onQueueChanged = 5;
static final int TRANSACTION_onQueueTitleChanged = 6;
static final int TRANSACTION_onRepeatModeChanged = 9;
static final int TRANSACTION_onSessionDestroyed = 2;
static final int TRANSACTION_onSessionReady = 13;
static final int TRANSACTION_onShuffleModeChanged = 12;
static final int TRANSACTION_onShuffleModeChangedRemoved = 10;
static final int TRANSACTION_onVolumeInfoChanged = 8;
public static IMediaControllerCallback getDefaultImpl() {
return Proxy.sDefaultImpl;
}
@Override // android.os.IInterface
public IBinder asBinder() {
return this;
}
public Stub() {
attachInterface(this, DESCRIPTOR);
}
public static IMediaControllerCallback asInterface(IBinder iBinder) {
if (iBinder == null) {
return null;
}
IInterface queryLocalInterface = iBinder.queryLocalInterface(DESCRIPTOR);
if (queryLocalInterface != null && (queryLocalInterface instanceof IMediaControllerCallback)) {
return (IMediaControllerCallback) queryLocalInterface;
}
return new Proxy(iBinder);
}
@Override // android.os.Binder
public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
if (i == 1598968902) {
parcel2.writeString(DESCRIPTOR);
return true;
}
switch (i) {
case 1:
parcel.enforceInterface(DESCRIPTOR);
onEvent(parcel.readString(), parcel.readInt() != 0 ? (Bundle) Bundle.CREATOR.createFromParcel(parcel) : null);
return true;
case 2:
parcel.enforceInterface(DESCRIPTOR);
onSessionDestroyed();
return true;
case 3:
parcel.enforceInterface(DESCRIPTOR);
onPlaybackStateChanged(parcel.readInt() != 0 ? PlaybackStateCompat.CREATOR.createFromParcel(parcel) : null);
return true;
case 4:
parcel.enforceInterface(DESCRIPTOR);
onMetadataChanged(parcel.readInt() != 0 ? MediaMetadataCompat.CREATOR.createFromParcel(parcel) : null);
return true;
case 5:
parcel.enforceInterface(DESCRIPTOR);
onQueueChanged(parcel.createTypedArrayList(MediaSessionCompat.QueueItem.CREATOR));
return true;
case 6:
parcel.enforceInterface(DESCRIPTOR);
onQueueTitleChanged(parcel.readInt() != 0 ? (CharSequence) TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(parcel) : null);
return true;
case 7:
parcel.enforceInterface(DESCRIPTOR);
onExtrasChanged(parcel.readInt() != 0 ? (Bundle) Bundle.CREATOR.createFromParcel(parcel) : null);
return true;
case 8:
parcel.enforceInterface(DESCRIPTOR);
onVolumeInfoChanged(parcel.readInt() != 0 ? ParcelableVolumeInfo.CREATOR.createFromParcel(parcel) : null);
return true;
case 9:
parcel.enforceInterface(DESCRIPTOR);
onRepeatModeChanged(parcel.readInt());
return true;
case 10:
parcel.enforceInterface(DESCRIPTOR);
onShuffleModeChangedRemoved(parcel.readInt() != 0);
return true;
case 11:
parcel.enforceInterface(DESCRIPTOR);
onCaptioningEnabledChanged(parcel.readInt() != 0);
return true;
case 12:
parcel.enforceInterface(DESCRIPTOR);
onShuffleModeChanged(parcel.readInt());
return true;
case 13:
parcel.enforceInterface(DESCRIPTOR);
onSessionReady();
return true;
default:
return super.onTransact(i, parcel, parcel2, i2);
}
}
public static class Proxy implements IMediaControllerCallback {
public static IMediaControllerCallback 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 // android.support.v4.media.session.IMediaControllerCallback
public void onEvent(String str, Bundle bundle) throws RemoteException {
Parcel obtain = Parcel.obtain();
try {
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
obtain.writeString(str);
if (bundle != null) {
obtain.writeInt(1);
bundle.writeToParcel(obtain, 0);
} else {
obtain.writeInt(0);
}
if (this.mRemote.transact(1, obtain, null, 1) || Stub.getDefaultImpl() == null) {
obtain.recycle();
} else {
Stub.getDefaultImpl().onEvent(str, bundle);
obtain.recycle();
}
} catch (Throwable th) {
obtain.recycle();
throw th;
}
}
@Override // android.support.v4.media.session.IMediaControllerCallback
public void onSessionDestroyed() throws RemoteException {
Parcel obtain = Parcel.obtain();
try {
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
if (this.mRemote.transact(2, obtain, null, 1) || Stub.getDefaultImpl() == null) {
return;
}
Stub.getDefaultImpl().onSessionDestroyed();
} finally {
obtain.recycle();
}
}
@Override // android.support.v4.media.session.IMediaControllerCallback
public void onPlaybackStateChanged(PlaybackStateCompat playbackStateCompat) throws RemoteException {
Parcel obtain = Parcel.obtain();
try {
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
if (playbackStateCompat != null) {
obtain.writeInt(1);
playbackStateCompat.writeToParcel(obtain, 0);
} else {
obtain.writeInt(0);
}
if (this.mRemote.transact(3, obtain, null, 1) || Stub.getDefaultImpl() == null) {
obtain.recycle();
} else {
Stub.getDefaultImpl().onPlaybackStateChanged(playbackStateCompat);
obtain.recycle();
}
} catch (Throwable th) {
obtain.recycle();
throw th;
}
}
@Override // android.support.v4.media.session.IMediaControllerCallback
public void onMetadataChanged(MediaMetadataCompat mediaMetadataCompat) throws RemoteException {
Parcel obtain = Parcel.obtain();
try {
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
if (mediaMetadataCompat != null) {
obtain.writeInt(1);
mediaMetadataCompat.writeToParcel(obtain, 0);
} else {
obtain.writeInt(0);
}
if (this.mRemote.transact(4, obtain, null, 1) || Stub.getDefaultImpl() == null) {
obtain.recycle();
} else {
Stub.getDefaultImpl().onMetadataChanged(mediaMetadataCompat);
obtain.recycle();
}
} catch (Throwable th) {
obtain.recycle();
throw th;
}
}
@Override // android.support.v4.media.session.IMediaControllerCallback
public void onQueueChanged(List<MediaSessionCompat.QueueItem> list) throws RemoteException {
Parcel obtain = Parcel.obtain();
try {
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
obtain.writeTypedList(list);
if (this.mRemote.transact(5, obtain, null, 1) || Stub.getDefaultImpl() == null) {
return;
}
Stub.getDefaultImpl().onQueueChanged(list);
} finally {
obtain.recycle();
}
}
@Override // android.support.v4.media.session.IMediaControllerCallback
public void onQueueTitleChanged(CharSequence charSequence) throws RemoteException {
Parcel obtain = Parcel.obtain();
try {
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
if (charSequence != null) {
obtain.writeInt(1);
TextUtils.writeToParcel(charSequence, obtain, 0);
} else {
obtain.writeInt(0);
}
if (this.mRemote.transact(6, obtain, null, 1) || Stub.getDefaultImpl() == null) {
obtain.recycle();
} else {
Stub.getDefaultImpl().onQueueTitleChanged(charSequence);
obtain.recycle();
}
} catch (Throwable th) {
obtain.recycle();
throw th;
}
}
@Override // android.support.v4.media.session.IMediaControllerCallback
public void onExtrasChanged(Bundle bundle) throws RemoteException {
Parcel obtain = 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(7, obtain, null, 1) || Stub.getDefaultImpl() == null) {
obtain.recycle();
} else {
Stub.getDefaultImpl().onExtrasChanged(bundle);
obtain.recycle();
}
} catch (Throwable th) {
obtain.recycle();
throw th;
}
}
@Override // android.support.v4.media.session.IMediaControllerCallback
public void onVolumeInfoChanged(ParcelableVolumeInfo parcelableVolumeInfo) throws RemoteException {
Parcel obtain = Parcel.obtain();
try {
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
if (parcelableVolumeInfo != null) {
obtain.writeInt(1);
parcelableVolumeInfo.writeToParcel(obtain, 0);
} else {
obtain.writeInt(0);
}
if (this.mRemote.transact(8, obtain, null, 1) || Stub.getDefaultImpl() == null) {
obtain.recycle();
} else {
Stub.getDefaultImpl().onVolumeInfoChanged(parcelableVolumeInfo);
obtain.recycle();
}
} catch (Throwable th) {
obtain.recycle();
throw th;
}
}
@Override // android.support.v4.media.session.IMediaControllerCallback
public void onRepeatModeChanged(int i) throws RemoteException {
Parcel obtain = Parcel.obtain();
try {
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
obtain.writeInt(i);
if (this.mRemote.transact(9, obtain, null, 1) || Stub.getDefaultImpl() == null) {
return;
}
Stub.getDefaultImpl().onRepeatModeChanged(i);
} finally {
obtain.recycle();
}
}
@Override // android.support.v4.media.session.IMediaControllerCallback
public void onShuffleModeChangedRemoved(boolean z) throws RemoteException {
Parcel obtain = Parcel.obtain();
try {
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
obtain.writeInt(z ? 1 : 0);
if (this.mRemote.transact(10, obtain, null, 1) || Stub.getDefaultImpl() == null) {
return;
}
Stub.getDefaultImpl().onShuffleModeChangedRemoved(z);
} finally {
obtain.recycle();
}
}
@Override // android.support.v4.media.session.IMediaControllerCallback
public void onCaptioningEnabledChanged(boolean z) throws RemoteException {
Parcel obtain = Parcel.obtain();
try {
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
obtain.writeInt(z ? 1 : 0);
if (this.mRemote.transact(11, obtain, null, 1) || Stub.getDefaultImpl() == null) {
return;
}
Stub.getDefaultImpl().onCaptioningEnabledChanged(z);
} finally {
obtain.recycle();
}
}
@Override // android.support.v4.media.session.IMediaControllerCallback
public void onShuffleModeChanged(int i) throws RemoteException {
Parcel obtain = Parcel.obtain();
try {
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
obtain.writeInt(i);
if (this.mRemote.transact(12, obtain, null, 1) || Stub.getDefaultImpl() == null) {
return;
}
Stub.getDefaultImpl().onShuffleModeChanged(i);
} finally {
obtain.recycle();
}
}
@Override // android.support.v4.media.session.IMediaControllerCallback
public void onSessionReady() throws RemoteException {
Parcel obtain = Parcel.obtain();
try {
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
if (this.mRemote.transact(13, obtain, null, 1) || Stub.getDefaultImpl() == null) {
return;
}
Stub.getDefaultImpl().onSessionReady();
} finally {
obtain.recycle();
}
}
}
public static boolean setDefaultImpl(IMediaControllerCallback iMediaControllerCallback) {
if (Proxy.sDefaultImpl != null) {
throw new IllegalStateException("setDefaultImpl() called twice");
}
if (iMediaControllerCallback == null) {
return false;
}
Proxy.sDefaultImpl = iMediaControllerCallback;
return true;
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,5 @@
package android.support.v4.media.session;
/* loaded from: classes.dex */
public abstract /* synthetic */ class MediaControllerCompat$MediaControllerImplApi21$$ExternalSyntheticApiModelOutline0 {
}

View File

@@ -0,0 +1,5 @@
package android.support.v4.media.session;
/* loaded from: classes.dex */
public abstract /* synthetic */ class MediaControllerCompat$TransportControlsApi21$$ExternalSyntheticApiModelOutline0 {
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,12 @@
package android.support.v4.media.session;
import android.content.Context;
import android.media.session.MediaSession;
import android.os.Bundle;
/* loaded from: classes.dex */
public abstract /* synthetic */ class MediaSessionCompat$$ExternalSyntheticApiModelOutline0 {
public static /* synthetic */ MediaSession m(Context context, String str, Bundle bundle) {
return new MediaSession(context, str, bundle);
}
}

View File

@@ -0,0 +1,5 @@
package android.support.v4.media.session;
/* loaded from: classes.dex */
public abstract /* synthetic */ class MediaSessionCompat$MediaSessionImplApi28$$ExternalSyntheticApiModelOutline0 {
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,58 @@
package android.support.v4.media.session;
import android.annotation.SuppressLint;
import android.os.Parcel;
import android.os.Parcelable;
@SuppressLint({"BanParcelableUsage"})
/* loaded from: classes.dex */
public class ParcelableVolumeInfo implements Parcelable {
public static final Parcelable.Creator<ParcelableVolumeInfo> CREATOR = new Parcelable.Creator<ParcelableVolumeInfo>() { // from class: android.support.v4.media.session.ParcelableVolumeInfo.1
/* JADX WARN: Can't rename method to resolve collision */
@Override // android.os.Parcelable.Creator
public ParcelableVolumeInfo createFromParcel(Parcel parcel) {
return new ParcelableVolumeInfo(parcel);
}
/* JADX WARN: Can't rename method to resolve collision */
@Override // android.os.Parcelable.Creator
public ParcelableVolumeInfo[] newArray(int i) {
return new ParcelableVolumeInfo[i];
}
};
public int audioStream;
public int controlType;
public int currentVolume;
public int maxVolume;
public int volumeType;
@Override // android.os.Parcelable
public int describeContents() {
return 0;
}
public ParcelableVolumeInfo(int i, int i2, int i3, int i4, int i5) {
this.volumeType = i;
this.audioStream = i2;
this.controlType = i3;
this.maxVolume = i4;
this.currentVolume = i5;
}
public ParcelableVolumeInfo(Parcel parcel) {
this.volumeType = parcel.readInt();
this.controlType = parcel.readInt();
this.maxVolume = parcel.readInt();
this.currentVolume = parcel.readInt();
this.audioStream = parcel.readInt();
}
@Override // android.os.Parcelable
public void writeToParcel(Parcel parcel, int i) {
parcel.writeInt(this.volumeType);
parcel.writeInt(this.controlType);
parcel.writeInt(this.maxVolume);
parcel.writeInt(this.currentVolume);
parcel.writeInt(this.audioStream);
}
}

View File

@@ -0,0 +1,518 @@
package android.support.v4.media.session;
import android.annotation.SuppressLint;
import android.media.session.PlaybackState;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.SystemClock;
import android.text.TextUtils;
import androidx.annotation.Nullable;
import androidx.annotation.RestrictTo;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
@SuppressLint({"BanParcelableUsage"})
/* loaded from: classes.dex */
public final class PlaybackStateCompat implements Parcelable {
public static final long ACTION_FAST_FORWARD = 64;
public static final long ACTION_PAUSE = 2;
public static final long ACTION_PLAY = 4;
public static final long ACTION_PLAY_FROM_MEDIA_ID = 1024;
public static final long ACTION_PLAY_FROM_SEARCH = 2048;
public static final long ACTION_PLAY_FROM_URI = 8192;
public static final long ACTION_PLAY_PAUSE = 512;
public static final long ACTION_PREPARE = 16384;
public static final long ACTION_PREPARE_FROM_MEDIA_ID = 32768;
public static final long ACTION_PREPARE_FROM_SEARCH = 65536;
public static final long ACTION_PREPARE_FROM_URI = 131072;
public static final long ACTION_REWIND = 8;
public static final long ACTION_SEEK_TO = 256;
public static final long ACTION_SET_CAPTIONING_ENABLED = 1048576;
public static final long ACTION_SET_PLAYBACK_SPEED = 4194304;
public static final long ACTION_SET_RATING = 128;
public static final long ACTION_SET_REPEAT_MODE = 262144;
public static final long ACTION_SET_SHUFFLE_MODE = 2097152;
@Deprecated
public static final long ACTION_SET_SHUFFLE_MODE_ENABLED = 524288;
public static final long ACTION_SKIP_TO_NEXT = 32;
public static final long ACTION_SKIP_TO_PREVIOUS = 16;
public static final long ACTION_SKIP_TO_QUEUE_ITEM = 4096;
public static final long ACTION_STOP = 1;
public static final Parcelable.Creator<PlaybackStateCompat> CREATOR = new Parcelable.Creator<PlaybackStateCompat>() { // from class: android.support.v4.media.session.PlaybackStateCompat.1
/* JADX WARN: Can't rename method to resolve collision */
@Override // android.os.Parcelable.Creator
public PlaybackStateCompat createFromParcel(Parcel parcel) {
return new PlaybackStateCompat(parcel);
}
/* JADX WARN: Can't rename method to resolve collision */
@Override // android.os.Parcelable.Creator
public PlaybackStateCompat[] newArray(int i) {
return new PlaybackStateCompat[i];
}
};
public static final int ERROR_CODE_ACTION_ABORTED = 10;
public static final int ERROR_CODE_APP_ERROR = 1;
public static final int ERROR_CODE_AUTHENTICATION_EXPIRED = 3;
public static final int ERROR_CODE_CONCURRENT_STREAM_LIMIT = 5;
public static final int ERROR_CODE_CONTENT_ALREADY_PLAYING = 8;
public static final int ERROR_CODE_END_OF_QUEUE = 11;
public static final int ERROR_CODE_NOT_AVAILABLE_IN_REGION = 7;
public static final int ERROR_CODE_NOT_SUPPORTED = 2;
public static final int ERROR_CODE_PARENTAL_CONTROL_RESTRICTED = 6;
public static final int ERROR_CODE_PREMIUM_ACCOUNT_REQUIRED = 4;
public static final int ERROR_CODE_SKIP_LIMIT_REACHED = 9;
public static final int ERROR_CODE_UNKNOWN_ERROR = 0;
private static final int KEYCODE_MEDIA_PAUSE = 127;
private static final int KEYCODE_MEDIA_PLAY = 126;
public static final long PLAYBACK_POSITION_UNKNOWN = -1;
public static final int REPEAT_MODE_ALL = 2;
public static final int REPEAT_MODE_GROUP = 3;
public static final int REPEAT_MODE_INVALID = -1;
public static final int REPEAT_MODE_NONE = 0;
public static final int REPEAT_MODE_ONE = 1;
public static final int SHUFFLE_MODE_ALL = 1;
public static final int SHUFFLE_MODE_GROUP = 2;
public static final int SHUFFLE_MODE_INVALID = -1;
public static final int SHUFFLE_MODE_NONE = 0;
public static final int STATE_BUFFERING = 6;
public static final int STATE_CONNECTING = 8;
public static final int STATE_ERROR = 7;
public static final int STATE_FAST_FORWARDING = 4;
public static final int STATE_NONE = 0;
public static final int STATE_PAUSED = 2;
public static final int STATE_PLAYING = 3;
public static final int STATE_REWINDING = 5;
public static final int STATE_SKIPPING_TO_NEXT = 10;
public static final int STATE_SKIPPING_TO_PREVIOUS = 9;
public static final int STATE_SKIPPING_TO_QUEUE_ITEM = 11;
public static final int STATE_STOPPED = 1;
final long mActions;
final long mActiveItemId;
final long mBufferedPosition;
List<CustomAction> mCustomActions;
final int mErrorCode;
final CharSequence mErrorMessage;
final Bundle mExtras;
final long mPosition;
final float mSpeed;
final int mState;
private PlaybackState mStateFwk;
final long mUpdateTime;
@Retention(RetentionPolicy.SOURCE)
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX})
public @interface Actions {
}
@Retention(RetentionPolicy.SOURCE)
@RestrictTo({RestrictTo.Scope.LIBRARY})
public @interface MediaKeyAction {
}
@Retention(RetentionPolicy.SOURCE)
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX})
public @interface RepeatMode {
}
@Retention(RetentionPolicy.SOURCE)
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX})
public @interface ShuffleMode {
}
@Retention(RetentionPolicy.SOURCE)
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX})
public @interface State {
}
public static int toKeyCode(long j) {
if (j == 4) {
return 126;
}
if (j == 2) {
return 127;
}
if (j == 32) {
return 87;
}
if (j == 16) {
return 88;
}
if (j == 1) {
return 86;
}
if (j == 64) {
return 90;
}
if (j == 8) {
return 89;
}
return j == 512 ? 85 : 0;
}
@Override // android.os.Parcelable
public int describeContents() {
return 0;
}
public long getActions() {
return this.mActions;
}
public long getActiveQueueItemId() {
return this.mActiveItemId;
}
public long getBufferedPosition() {
return this.mBufferedPosition;
}
public List<CustomAction> getCustomActions() {
return this.mCustomActions;
}
public int getErrorCode() {
return this.mErrorCode;
}
public CharSequence getErrorMessage() {
return this.mErrorMessage;
}
@Nullable
public Bundle getExtras() {
return this.mExtras;
}
public long getLastPositionUpdateTime() {
return this.mUpdateTime;
}
public float getPlaybackSpeed() {
return this.mSpeed;
}
public long getPosition() {
return this.mPosition;
}
public int getState() {
return this.mState;
}
public PlaybackStateCompat(int i, long j, long j2, float f, long j3, int i2, CharSequence charSequence, long j4, List<CustomAction> list, long j5, Bundle bundle) {
this.mState = i;
this.mPosition = j;
this.mBufferedPosition = j2;
this.mSpeed = f;
this.mActions = j3;
this.mErrorCode = i2;
this.mErrorMessage = charSequence;
this.mUpdateTime = j4;
this.mCustomActions = new ArrayList(list);
this.mActiveItemId = j5;
this.mExtras = bundle;
}
public PlaybackStateCompat(Parcel parcel) {
this.mState = parcel.readInt();
this.mPosition = parcel.readLong();
this.mSpeed = parcel.readFloat();
this.mUpdateTime = parcel.readLong();
this.mBufferedPosition = parcel.readLong();
this.mActions = parcel.readLong();
this.mErrorMessage = (CharSequence) TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(parcel);
this.mCustomActions = parcel.createTypedArrayList(CustomAction.CREATOR);
this.mActiveItemId = parcel.readLong();
this.mExtras = parcel.readBundle(MediaSessionCompat.class.getClassLoader());
this.mErrorCode = parcel.readInt();
}
public String toString() {
return "PlaybackState {state=" + this.mState + ", position=" + this.mPosition + ", buffered position=" + this.mBufferedPosition + ", speed=" + this.mSpeed + ", updated=" + this.mUpdateTime + ", actions=" + this.mActions + ", error code=" + this.mErrorCode + ", error message=" + this.mErrorMessage + ", custom actions=" + this.mCustomActions + ", active item id=" + this.mActiveItemId + "}";
}
@Override // android.os.Parcelable
public void writeToParcel(Parcel parcel, int i) {
parcel.writeInt(this.mState);
parcel.writeLong(this.mPosition);
parcel.writeFloat(this.mSpeed);
parcel.writeLong(this.mUpdateTime);
parcel.writeLong(this.mBufferedPosition);
parcel.writeLong(this.mActions);
TextUtils.writeToParcel(this.mErrorMessage, parcel, i);
parcel.writeTypedList(this.mCustomActions);
parcel.writeLong(this.mActiveItemId);
parcel.writeBundle(this.mExtras);
parcel.writeInt(this.mErrorCode);
}
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX})
public long getCurrentPosition(Long l) {
return Math.max(0L, this.mPosition + ((long) (this.mSpeed * (l != null ? l.longValue() : SystemClock.elapsedRealtime() - this.mUpdateTime))));
}
public static PlaybackStateCompat fromPlaybackState(Object obj) {
ArrayList arrayList = null;
if (obj == null) {
return null;
}
PlaybackState playbackState = (PlaybackState) obj;
List<PlaybackState.CustomAction> customActions = playbackState.getCustomActions();
if (customActions != null) {
arrayList = new ArrayList(customActions.size());
Iterator<PlaybackState.CustomAction> it = customActions.iterator();
while (it.hasNext()) {
arrayList.add(CustomAction.fromCustomAction(it.next()));
}
}
Bundle extras = playbackState.getExtras();
MediaSessionCompat.ensureClassLoader(extras);
PlaybackStateCompat playbackStateCompat = new PlaybackStateCompat(playbackState.getState(), playbackState.getPosition(), playbackState.getBufferedPosition(), playbackState.getPlaybackSpeed(), playbackState.getActions(), 0, playbackState.getErrorMessage(), playbackState.getLastPositionUpdateTime(), arrayList, playbackState.getActiveQueueItemId(), extras);
playbackStateCompat.mStateFwk = playbackState;
return playbackStateCompat;
}
public Object getPlaybackState() {
if (this.mStateFwk == null) {
PlaybackState.Builder builder = new PlaybackState.Builder();
builder.setState(this.mState, this.mPosition, this.mSpeed, this.mUpdateTime);
builder.setBufferedPosition(this.mBufferedPosition);
builder.setActions(this.mActions);
builder.setErrorMessage(this.mErrorMessage);
Iterator<CustomAction> it = this.mCustomActions.iterator();
while (it.hasNext()) {
builder.addCustomAction((PlaybackState.CustomAction) it.next().getCustomAction());
}
builder.setActiveQueueItemId(this.mActiveItemId);
builder.setExtras(this.mExtras);
this.mStateFwk = builder.build();
}
return this.mStateFwk;
}
public static final class CustomAction implements Parcelable {
public static final Parcelable.Creator<CustomAction> CREATOR = new Parcelable.Creator<CustomAction>() { // from class: android.support.v4.media.session.PlaybackStateCompat.CustomAction.1
/* JADX WARN: Can't rename method to resolve collision */
@Override // android.os.Parcelable.Creator
public CustomAction createFromParcel(Parcel parcel) {
return new CustomAction(parcel);
}
/* JADX WARN: Can't rename method to resolve collision */
@Override // android.os.Parcelable.Creator
public CustomAction[] newArray(int i) {
return new CustomAction[i];
}
};
private final String mAction;
private PlaybackState.CustomAction mCustomActionFwk;
private final Bundle mExtras;
private final int mIcon;
private final CharSequence mName;
@Override // android.os.Parcelable
public int describeContents() {
return 0;
}
public String getAction() {
return this.mAction;
}
public Bundle getExtras() {
return this.mExtras;
}
public int getIcon() {
return this.mIcon;
}
public CharSequence getName() {
return this.mName;
}
public CustomAction(String str, CharSequence charSequence, int i, Bundle bundle) {
this.mAction = str;
this.mName = charSequence;
this.mIcon = i;
this.mExtras = bundle;
}
public CustomAction(Parcel parcel) {
this.mAction = parcel.readString();
this.mName = (CharSequence) TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(parcel);
this.mIcon = parcel.readInt();
this.mExtras = parcel.readBundle(MediaSessionCompat.class.getClassLoader());
}
@Override // android.os.Parcelable
public void writeToParcel(Parcel parcel, int i) {
parcel.writeString(this.mAction);
TextUtils.writeToParcel(this.mName, parcel, i);
parcel.writeInt(this.mIcon);
parcel.writeBundle(this.mExtras);
}
public static CustomAction fromCustomAction(Object obj) {
if (obj == null) {
return null;
}
PlaybackState.CustomAction customAction = (PlaybackState.CustomAction) obj;
Bundle extras = customAction.getExtras();
MediaSessionCompat.ensureClassLoader(extras);
CustomAction customAction2 = new CustomAction(customAction.getAction(), customAction.getName(), customAction.getIcon(), extras);
customAction2.mCustomActionFwk = customAction;
return customAction2;
}
public Object getCustomAction() {
PlaybackState.CustomAction customAction = this.mCustomActionFwk;
if (customAction != null) {
return customAction;
}
PlaybackState.CustomAction.Builder builder = new PlaybackState.CustomAction.Builder(this.mAction, this.mName, this.mIcon);
builder.setExtras(this.mExtras);
return builder.build();
}
public String toString() {
return "Action:mName='" + ((Object) this.mName) + ", mIcon=" + this.mIcon + ", mExtras=" + this.mExtras;
}
public static final class Builder {
private final String mAction;
private Bundle mExtras;
private final int mIcon;
private final CharSequence mName;
public Builder setExtras(Bundle bundle) {
this.mExtras = bundle;
return this;
}
public Builder(String str, CharSequence charSequence, int i) {
if (TextUtils.isEmpty(str)) {
throw new IllegalArgumentException("You must specify an action to build a CustomAction");
}
if (TextUtils.isEmpty(charSequence)) {
throw new IllegalArgumentException("You must specify a name to build a CustomAction");
}
if (i == 0) {
throw new IllegalArgumentException("You must specify an icon resource id to build a CustomAction");
}
this.mAction = str;
this.mName = charSequence;
this.mIcon = i;
}
public CustomAction build() {
return new CustomAction(this.mAction, this.mName, this.mIcon, this.mExtras);
}
}
}
public static final class Builder {
private long mActions;
private long mActiveItemId;
private long mBufferedPosition;
private final List<CustomAction> mCustomActions;
private int mErrorCode;
private CharSequence mErrorMessage;
private Bundle mExtras;
private long mPosition;
private float mRate;
private int mState;
private long mUpdateTime;
public Builder setActions(long j) {
this.mActions = j;
return this;
}
public Builder setActiveQueueItemId(long j) {
this.mActiveItemId = j;
return this;
}
public Builder setBufferedPosition(long j) {
this.mBufferedPosition = j;
return this;
}
public Builder setErrorMessage(int i, CharSequence charSequence) {
this.mErrorCode = i;
this.mErrorMessage = charSequence;
return this;
}
@Deprecated
public Builder setErrorMessage(CharSequence charSequence) {
this.mErrorMessage = charSequence;
return this;
}
public Builder setExtras(Bundle bundle) {
this.mExtras = bundle;
return this;
}
public Builder setState(int i, long j, float f, long j2) {
this.mState = i;
this.mPosition = j;
this.mUpdateTime = j2;
this.mRate = f;
return this;
}
public Builder() {
this.mCustomActions = new ArrayList();
this.mActiveItemId = -1L;
}
public Builder(PlaybackStateCompat playbackStateCompat) {
ArrayList arrayList = new ArrayList();
this.mCustomActions = arrayList;
this.mActiveItemId = -1L;
this.mState = playbackStateCompat.mState;
this.mPosition = playbackStateCompat.mPosition;
this.mRate = playbackStateCompat.mSpeed;
this.mUpdateTime = playbackStateCompat.mUpdateTime;
this.mBufferedPosition = playbackStateCompat.mBufferedPosition;
this.mActions = playbackStateCompat.mActions;
this.mErrorCode = playbackStateCompat.mErrorCode;
this.mErrorMessage = playbackStateCompat.mErrorMessage;
List<CustomAction> list = playbackStateCompat.mCustomActions;
if (list != null) {
arrayList.addAll(list);
}
this.mActiveItemId = playbackStateCompat.mActiveItemId;
this.mExtras = playbackStateCompat.mExtras;
}
public Builder setState(int i, long j, float f) {
return setState(i, j, f, SystemClock.elapsedRealtime());
}
public Builder addCustomAction(String str, String str2, int i) {
return addCustomAction(new CustomAction(str, str2, i, null));
}
public Builder addCustomAction(CustomAction customAction) {
if (customAction == null) {
throw new IllegalArgumentException("You may not add a null CustomAction to PlaybackStateCompat");
}
this.mCustomActions.add(customAction);
return this;
}
public PlaybackStateCompat build() {
return new PlaybackStateCompat(this.mState, this.mPosition, this.mBufferedPosition, this.mRate, this.mActions, this.mErrorCode, this.mErrorMessage, this.mUpdateTime, this.mCustomActions, this.mActiveItemId, this.mExtras);
}
}
}

View File

@@ -0,0 +1,120 @@
package android.support.v4.os;
import android.os.Binder;
import android.os.Bundle;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.RemoteException;
import androidx.annotation.RestrictTo;
@RestrictTo({RestrictTo.Scope.LIBRARY})
/* loaded from: classes.dex */
public interface IResultReceiver extends IInterface {
public static final String DESCRIPTOR = "android$support$v4$os$IResultReceiver".replace('$', '.');
public static class Default implements IResultReceiver {
@Override // android.os.IInterface
public IBinder asBinder() {
return null;
}
@Override // android.support.v4.os.IResultReceiver
public void send(int i, Bundle bundle) throws RemoteException {
}
}
void send(int i, Bundle bundle) throws RemoteException;
public static abstract class Stub extends Binder implements IResultReceiver {
static final int TRANSACTION_send = 1;
@Override // android.os.IInterface
public IBinder asBinder() {
return this;
}
public Stub() {
attachInterface(this, IResultReceiver.DESCRIPTOR);
}
public static IResultReceiver asInterface(IBinder iBinder) {
if (iBinder == null) {
return null;
}
IInterface queryLocalInterface = iBinder.queryLocalInterface(IResultReceiver.DESCRIPTOR);
if (queryLocalInterface != null && (queryLocalInterface instanceof IResultReceiver)) {
return (IResultReceiver) queryLocalInterface;
}
return new Proxy(iBinder);
}
@Override // android.os.Binder
public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
String str = IResultReceiver.DESCRIPTOR;
if (i >= 1 && i <= 16777215) {
parcel.enforceInterface(str);
}
if (i == 1598968902) {
parcel2.writeString(str);
return true;
}
if (i == 1) {
send(parcel.readInt(), (Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR));
return true;
}
return super.onTransact(i, parcel, parcel2, i2);
}
public static class Proxy implements IResultReceiver {
private IBinder mRemote;
@Override // android.os.IInterface
public IBinder asBinder() {
return this.mRemote;
}
public String getInterfaceDescriptor() {
return IResultReceiver.DESCRIPTOR;
}
public Proxy(IBinder iBinder) {
this.mRemote = iBinder;
}
@Override // android.support.v4.os.IResultReceiver
public void send(int i, Bundle bundle) throws RemoteException {
Parcel obtain = Parcel.obtain();
try {
obtain.writeInterfaceToken(IResultReceiver.DESCRIPTOR);
obtain.writeInt(i);
_Parcel.writeTypedObject(obtain, bundle, 0);
this.mRemote.transact(1, 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,120 @@
package android.support.v4.os;
import android.os.Binder;
import android.os.Bundle;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.RemoteException;
import androidx.annotation.RestrictTo;
@RestrictTo({RestrictTo.Scope.LIBRARY})
/* loaded from: classes.dex */
public interface IResultReceiver2 extends IInterface {
public static final String DESCRIPTOR = "android$support$v4$os$IResultReceiver2".replace('$', '.');
public static class Default implements IResultReceiver2 {
@Override // android.os.IInterface
public IBinder asBinder() {
return null;
}
@Override // android.support.v4.os.IResultReceiver2
public void send(int i, Bundle bundle) throws RemoteException {
}
}
void send(int i, Bundle bundle) throws RemoteException;
public static abstract class Stub extends Binder implements IResultReceiver2 {
static final int TRANSACTION_send = 1;
@Override // android.os.IInterface
public IBinder asBinder() {
return this;
}
public Stub() {
attachInterface(this, IResultReceiver2.DESCRIPTOR);
}
public static IResultReceiver2 asInterface(IBinder iBinder) {
if (iBinder == null) {
return null;
}
IInterface queryLocalInterface = iBinder.queryLocalInterface(IResultReceiver2.DESCRIPTOR);
if (queryLocalInterface != null && (queryLocalInterface instanceof IResultReceiver2)) {
return (IResultReceiver2) queryLocalInterface;
}
return new Proxy(iBinder);
}
@Override // android.os.Binder
public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
String str = IResultReceiver2.DESCRIPTOR;
if (i >= 1 && i <= 16777215) {
parcel.enforceInterface(str);
}
if (i == 1598968902) {
parcel2.writeString(str);
return true;
}
if (i == 1) {
send(parcel.readInt(), (Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR));
return true;
}
return super.onTransact(i, parcel, parcel2, i2);
}
public static class Proxy implements IResultReceiver2 {
private IBinder mRemote;
@Override // android.os.IInterface
public IBinder asBinder() {
return this.mRemote;
}
public String getInterfaceDescriptor() {
return IResultReceiver2.DESCRIPTOR;
}
public Proxy(IBinder iBinder) {
this.mRemote = iBinder;
}
@Override // android.support.v4.os.IResultReceiver2
public void send(int i, Bundle bundle) throws RemoteException {
Parcel obtain = Parcel.obtain();
try {
obtain.writeInterfaceToken(IResultReceiver2.DESCRIPTOR);
obtain.writeInt(i);
_Parcel.writeTypedObject(obtain, bundle, 0);
this.mRemote.transact(1, 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,117 @@
package android.support.v4.os;
import android.annotation.SuppressLint;
import android.os.Bundle;
import android.os.Handler;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.RemoteException;
import android.support.v4.os.IResultReceiver;
import androidx.annotation.NonNull;
import androidx.annotation.RestrictTo;
@SuppressLint({"BanParcelableUsage"})
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX})
/* loaded from: classes.dex */
public class ResultReceiver implements Parcelable {
public static final Parcelable.Creator<ResultReceiver> CREATOR = new Parcelable.Creator<ResultReceiver>() { // from class: android.support.v4.os.ResultReceiver.1
/* JADX WARN: Can't rename method to resolve collision */
@Override // android.os.Parcelable.Creator
public ResultReceiver createFromParcel(Parcel parcel) {
return new ResultReceiver(parcel);
}
/* JADX WARN: Can't rename method to resolve collision */
@Override // android.os.Parcelable.Creator
public ResultReceiver[] newArray(int i) {
return new ResultReceiver[i];
}
};
final Handler mHandler;
final boolean mLocal;
IResultReceiver mReceiver;
@Override // android.os.Parcelable
public int describeContents() {
return 0;
}
public void onReceiveResult(int i, Bundle bundle) {
}
public class MyRunnable implements Runnable {
final int mResultCode;
final Bundle mResultData;
public MyRunnable(int i, Bundle bundle) {
this.mResultCode = i;
this.mResultData = bundle;
}
@Override // java.lang.Runnable
public void run() {
ResultReceiver.this.onReceiveResult(this.mResultCode, this.mResultData);
}
}
public class MyResultReceiver extends IResultReceiver.Stub {
public MyResultReceiver() {
}
@Override // android.support.v4.os.IResultReceiver
public void send(int i, Bundle bundle) {
ResultReceiver resultReceiver = ResultReceiver.this;
Handler handler = resultReceiver.mHandler;
if (handler != null) {
handler.post(resultReceiver.new MyRunnable(i, bundle));
} else {
resultReceiver.onReceiveResult(i, bundle);
}
}
}
public ResultReceiver(Handler handler) {
this.mLocal = true;
this.mHandler = handler;
}
public void send(int i, Bundle bundle) {
if (this.mLocal) {
Handler handler = this.mHandler;
if (handler != null) {
handler.post(new MyRunnable(i, bundle));
return;
} else {
onReceiveResult(i, bundle);
return;
}
}
IResultReceiver iResultReceiver = this.mReceiver;
if (iResultReceiver != null) {
try {
iResultReceiver.send(i, bundle);
} catch (RemoteException unused) {
}
}
}
@Override // android.os.Parcelable
public void writeToParcel(@NonNull Parcel parcel, int i) {
synchronized (this) {
try {
if (this.mReceiver == null) {
this.mReceiver = new MyResultReceiver();
}
parcel.writeStrongBinder(this.mReceiver.asBinder());
} catch (Throwable th) {
throw th;
}
}
}
public ResultReceiver(Parcel parcel) {
this.mLocal = false;
this.mHandler = null;
this.mReceiver = IResultReceiver.Stub.asInterface(parcel.readStrongBinder());
}
}