* Decompile and recreate Soul Browser v1.4.85 with APK CI builds Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix CI build: include bundled google.jks and remove PR trigger The apktool build failed in CI because app/unknown/.../google.jks was excluded by the *.jks gitignore rule. Whitelist app-bundled JKS files and commit the missing resource. Also remove the redundant pull_request workflow trigger. Co-authored-by: KaKi87 <KaKi87@pm.me> * Change package ID to com.github.kaki87.soulbrowser Rename the application ID so the rebuilt APK can be installed alongside the original Soul Browser from Google Play. - Update AndroidManifest package, permissions, providers, and actions - Update R class references in smali (com/github/kaki87/soulbrowser/R) - Update shortcuts.xml targetPackage - Rename app label to "Soul Rebuild" for easy identification Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix install compatibility: remove split APK metadata and bundle native libs The rebuilt APK still declared requiredSplitTypes and Play Store split metadata, causing Android to reject standalone installs as incompatible. - Remove requiredSplitTypes and split-related manifest meta-data - Merge native libs from all ABI splits with uncompressed storage - Page-align before signing for extractNativeLibs=false - Add .so to apktool doNotCompress list Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix install failure: use apksigner v2/v3 and bundle arm64 native libs Target SDK 36 requires APK Signature Scheme v2+, but jarsigner only produces v1 signatures, causing Android to reject the install. - Sign with apksigner (v1+v2+v3) instead of jarsigner - Add arm64-v8a native libraries from universal Soul Browser 1.4.79 - Set extractNativeLibs=true for reliable sideload installs - Commit stable debug keystore for consistent signatures across builds Co-authored-by: KaKi87 <KaKi87@pm.me> * Add committed debug keystore for consistent APK signatures Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix startup crash: use original classes2.dex desugar libraries Apktool recompiles smali_classes2 into a broken classes2.dex, causing ClassNotFoundException for j$.com.android.tools.r8.a at ML Kit init. Inject the original classes2.dex (Java 8+ desugar libs) after apktool build instead of using the recompiled version. Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix missing drawable resources from density split APKs The base APK is an app bundle module; density-specific drawables like seek_thumb_nor_b live in config.xhdpi.apk and were missing after rebuild, causing Resources$NotFoundException at runtime. - Merge non-9-patch resources from split APKs before apktool build - Sync public.xml IDs from R smali only when backing files exist - Add 713 density-specific resource IDs to public.xml Co-authored-by: KaKi87 <KaKi87@pm.me> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
1522 lines
61 KiB
Java
1522 lines
61 KiB
Java
package android.support.v4.media.session;
|
|
|
|
import android.app.PendingIntent;
|
|
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.support.v4.media.MediaDescriptionCompat;
|
|
import android.support.v4.media.MediaMetadataCompat;
|
|
import android.support.v4.media.RatingCompat;
|
|
import android.support.v4.media.session.IMediaControllerCallback;
|
|
import android.support.v4.media.session.MediaSessionCompat;
|
|
import android.text.TextUtils;
|
|
import android.view.KeyEvent;
|
|
import androidx.annotation.RestrictTo;
|
|
import java.util.List;
|
|
|
|
@RestrictTo
|
|
/* loaded from: classes.dex */
|
|
public interface IMediaSession extends IInterface {
|
|
public static final String DESCRIPTOR = "android.support.v4.media.session.IMediaSession";
|
|
|
|
/* loaded from: classes.dex */
|
|
public static class Default implements IMediaSession {
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void addQueueItem(MediaDescriptionCompat mediaDescriptionCompat) {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void addQueueItemAt(MediaDescriptionCompat mediaDescriptionCompat, int i) {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void adjustVolume(int i, int i2, String str) {
|
|
}
|
|
|
|
@Override // android.os.IInterface
|
|
public IBinder asBinder() {
|
|
return null;
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void fastForward() {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public Bundle getExtras() {
|
|
return null;
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public long getFlags() {
|
|
return 0L;
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public PendingIntent getLaunchPendingIntent() {
|
|
return null;
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public MediaMetadataCompat getMetadata() {
|
|
return null;
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public String getPackageName() {
|
|
return null;
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public PlaybackStateCompat getPlaybackState() {
|
|
return null;
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public List<MediaSessionCompat.QueueItem> getQueue() {
|
|
return null;
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public CharSequence getQueueTitle() {
|
|
return null;
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public int getRatingType() {
|
|
return 0;
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public int getRepeatMode() {
|
|
return 0;
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public Bundle getSessionInfo() {
|
|
return null;
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public int getShuffleMode() {
|
|
return 0;
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public String getTag() {
|
|
return null;
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public ParcelableVolumeInfo getVolumeAttributes() {
|
|
return null;
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public boolean isCaptioningEnabled() {
|
|
return false;
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public boolean isShuffleModeEnabledRemoved() {
|
|
return false;
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public boolean isTransportControlEnabled() {
|
|
return false;
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void next() {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void pause() {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void play() {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void playFromMediaId(String str, Bundle bundle) {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void playFromSearch(String str, Bundle bundle) {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void playFromUri(Uri uri, Bundle bundle) {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void prepare() {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void prepareFromMediaId(String str, Bundle bundle) {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void prepareFromSearch(String str, Bundle bundle) {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void prepareFromUri(Uri uri, Bundle bundle) {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void previous() {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void rate(RatingCompat ratingCompat) {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void rateWithExtras(RatingCompat ratingCompat, Bundle bundle) {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void registerCallbackListener(IMediaControllerCallback iMediaControllerCallback) {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void removeQueueItem(MediaDescriptionCompat mediaDescriptionCompat) {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void removeQueueItemAt(int i) {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void rewind() {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void seekTo(long j) {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void sendCommand(String str, Bundle bundle, MediaSessionCompat.ResultReceiverWrapper resultReceiverWrapper) {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void sendCustomAction(String str, Bundle bundle) {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public boolean sendMediaButton(KeyEvent keyEvent) {
|
|
return false;
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void setCaptioningEnabled(boolean z) {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void setPlaybackSpeed(float f) {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void setRepeatMode(int i) {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void setShuffleMode(int i) {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void setShuffleModeEnabledRemoved(boolean z) {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void setVolumeTo(int i, int i2, String str) {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void skipToQueueItem(long j) {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void stop() {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void unregisterCallbackListener(IMediaControllerCallback iMediaControllerCallback) {
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
public static abstract class Stub extends Binder implements IMediaSession {
|
|
static final int TRANSACTION_addQueueItem = 41;
|
|
static final int TRANSACTION_addQueueItemAt = 42;
|
|
static final int TRANSACTION_adjustVolume = 11;
|
|
static final int TRANSACTION_fastForward = 22;
|
|
static final int TRANSACTION_getExtras = 31;
|
|
static final int TRANSACTION_getFlags = 9;
|
|
static final int TRANSACTION_getLaunchPendingIntent = 8;
|
|
static final int TRANSACTION_getMetadata = 27;
|
|
static final int TRANSACTION_getPackageName = 6;
|
|
static final int TRANSACTION_getPlaybackState = 28;
|
|
static final int TRANSACTION_getQueue = 29;
|
|
static final int TRANSACTION_getQueueTitle = 30;
|
|
static final int TRANSACTION_getRatingType = 32;
|
|
static final int TRANSACTION_getRepeatMode = 37;
|
|
static final int TRANSACTION_getSessionInfo = 50;
|
|
static final int TRANSACTION_getShuffleMode = 47;
|
|
static final int TRANSACTION_getTag = 7;
|
|
static final int TRANSACTION_getVolumeAttributes = 10;
|
|
static final int TRANSACTION_isCaptioningEnabled = 45;
|
|
static final int TRANSACTION_isShuffleModeEnabledRemoved = 38;
|
|
static final int TRANSACTION_isTransportControlEnabled = 5;
|
|
static final int TRANSACTION_next = 20;
|
|
static final int TRANSACTION_pause = 18;
|
|
static final int TRANSACTION_play = 13;
|
|
static final int TRANSACTION_playFromMediaId = 14;
|
|
static final int TRANSACTION_playFromSearch = 15;
|
|
static final int TRANSACTION_playFromUri = 16;
|
|
static final int TRANSACTION_prepare = 33;
|
|
static final int TRANSACTION_prepareFromMediaId = 34;
|
|
static final int TRANSACTION_prepareFromSearch = 35;
|
|
static final int TRANSACTION_prepareFromUri = 36;
|
|
static final int TRANSACTION_previous = 21;
|
|
static final int TRANSACTION_rate = 25;
|
|
static final int TRANSACTION_rateWithExtras = 51;
|
|
static final int TRANSACTION_registerCallbackListener = 3;
|
|
static final int TRANSACTION_removeQueueItem = 43;
|
|
static final int TRANSACTION_removeQueueItemAt = 44;
|
|
static final int TRANSACTION_rewind = 23;
|
|
static final int TRANSACTION_seekTo = 24;
|
|
static final int TRANSACTION_sendCommand = 1;
|
|
static final int TRANSACTION_sendCustomAction = 26;
|
|
static final int TRANSACTION_sendMediaButton = 2;
|
|
static final int TRANSACTION_setCaptioningEnabled = 46;
|
|
static final int TRANSACTION_setPlaybackSpeed = 49;
|
|
static final int TRANSACTION_setRepeatMode = 39;
|
|
static final int TRANSACTION_setShuffleMode = 48;
|
|
static final int TRANSACTION_setShuffleModeEnabledRemoved = 40;
|
|
static final int TRANSACTION_setVolumeTo = 12;
|
|
static final int TRANSACTION_skipToQueueItem = 17;
|
|
static final int TRANSACTION_stop = 19;
|
|
static final int TRANSACTION_unregisterCallbackListener = 4;
|
|
|
|
/* loaded from: classes.dex */
|
|
public static class Proxy implements IMediaSession {
|
|
private IBinder mRemote;
|
|
|
|
public Proxy(IBinder iBinder) {
|
|
this.mRemote = iBinder;
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void addQueueItem(MediaDescriptionCompat mediaDescriptionCompat) {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
_Parcel.writeTypedObject(obtain, mediaDescriptionCompat, 0);
|
|
this.mRemote.transact(Stub.TRANSACTION_addQueueItem, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void addQueueItemAt(MediaDescriptionCompat mediaDescriptionCompat, int i) {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
_Parcel.writeTypedObject(obtain, mediaDescriptionCompat, 0);
|
|
obtain.writeInt(i);
|
|
this.mRemote.transact(Stub.TRANSACTION_addQueueItemAt, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void adjustVolume(int i, int i2, String str) {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
obtain.writeInt(i);
|
|
obtain.writeInt(i2);
|
|
obtain.writeString(str);
|
|
this.mRemote.transact(11, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.os.IInterface
|
|
public IBinder asBinder() {
|
|
return this.mRemote;
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void fastForward() {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
this.mRemote.transact(22, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public Bundle getExtras() {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
this.mRemote.transact(Stub.TRANSACTION_getExtras, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
return (Bundle) _Parcel.readTypedObject(obtain2, Bundle.CREATOR);
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public long getFlags() {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
this.mRemote.transact(9, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
return obtain2.readLong();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
public String getInterfaceDescriptor() {
|
|
return IMediaSession.DESCRIPTOR;
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public PendingIntent getLaunchPendingIntent() {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
this.mRemote.transact(8, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
return (PendingIntent) _Parcel.readTypedObject(obtain2, PendingIntent.CREATOR);
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public MediaMetadataCompat getMetadata() {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
this.mRemote.transact(Stub.TRANSACTION_getMetadata, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
return (MediaMetadataCompat) _Parcel.readTypedObject(obtain2, MediaMetadataCompat.CREATOR);
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public String getPackageName() {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
this.mRemote.transact(6, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
return obtain2.readString();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public PlaybackStateCompat getPlaybackState() {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
this.mRemote.transact(Stub.TRANSACTION_getPlaybackState, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
return (PlaybackStateCompat) _Parcel.readTypedObject(obtain2, PlaybackStateCompat.CREATOR);
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public List<MediaSessionCompat.QueueItem> getQueue() {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
this.mRemote.transact(Stub.TRANSACTION_getQueue, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
return obtain2.createTypedArrayList(MediaSessionCompat.QueueItem.CREATOR);
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public CharSequence getQueueTitle() {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
this.mRemote.transact(Stub.TRANSACTION_getQueueTitle, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
return (CharSequence) _Parcel.readTypedObject(obtain2, TextUtils.CHAR_SEQUENCE_CREATOR);
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public int getRatingType() {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
this.mRemote.transact(32, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
return obtain2.readInt();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public int getRepeatMode() {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
this.mRemote.transact(Stub.TRANSACTION_getRepeatMode, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
return obtain2.readInt();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public Bundle getSessionInfo() {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
this.mRemote.transact(Stub.TRANSACTION_getSessionInfo, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
return (Bundle) _Parcel.readTypedObject(obtain2, Bundle.CREATOR);
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public int getShuffleMode() {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
this.mRemote.transact(Stub.TRANSACTION_getShuffleMode, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
return obtain2.readInt();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public String getTag() {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
this.mRemote.transact(7, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
return obtain2.readString();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public ParcelableVolumeInfo getVolumeAttributes() {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
this.mRemote.transact(10, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
return (ParcelableVolumeInfo) _Parcel.readTypedObject(obtain2, ParcelableVolumeInfo.CREATOR);
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public boolean isCaptioningEnabled() {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
boolean z = false;
|
|
this.mRemote.transact(Stub.TRANSACTION_isCaptioningEnabled, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
if (obtain2.readInt() != 0) {
|
|
z = true;
|
|
}
|
|
return z;
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public boolean isShuffleModeEnabledRemoved() {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
boolean z = false;
|
|
this.mRemote.transact(Stub.TRANSACTION_isShuffleModeEnabledRemoved, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
if (obtain2.readInt() != 0) {
|
|
z = true;
|
|
}
|
|
return z;
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public boolean isTransportControlEnabled() {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
boolean z = false;
|
|
this.mRemote.transact(5, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
if (obtain2.readInt() != 0) {
|
|
z = true;
|
|
}
|
|
return z;
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void next() {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
this.mRemote.transact(20, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void pause() {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
this.mRemote.transact(18, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void play() {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
this.mRemote.transact(13, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void playFromMediaId(String str, Bundle bundle) {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
obtain.writeString(str);
|
|
_Parcel.writeTypedObject(obtain, bundle, 0);
|
|
this.mRemote.transact(14, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void playFromSearch(String str, Bundle bundle) {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
obtain.writeString(str);
|
|
_Parcel.writeTypedObject(obtain, bundle, 0);
|
|
this.mRemote.transact(15, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void playFromUri(Uri uri, Bundle bundle) {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
_Parcel.writeTypedObject(obtain, uri, 0);
|
|
_Parcel.writeTypedObject(obtain, bundle, 0);
|
|
this.mRemote.transact(16, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void prepare() {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
this.mRemote.transact(Stub.TRANSACTION_prepare, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void prepareFromMediaId(String str, Bundle bundle) {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
obtain.writeString(str);
|
|
_Parcel.writeTypedObject(obtain, bundle, 0);
|
|
this.mRemote.transact(Stub.TRANSACTION_prepareFromMediaId, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void prepareFromSearch(String str, Bundle bundle) {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
obtain.writeString(str);
|
|
_Parcel.writeTypedObject(obtain, bundle, 0);
|
|
this.mRemote.transact(Stub.TRANSACTION_prepareFromSearch, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void prepareFromUri(Uri uri, Bundle bundle) {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
_Parcel.writeTypedObject(obtain, uri, 0);
|
|
_Parcel.writeTypedObject(obtain, bundle, 0);
|
|
this.mRemote.transact(Stub.TRANSACTION_prepareFromUri, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void previous() {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
this.mRemote.transact(21, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void rate(RatingCompat ratingCompat) {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
_Parcel.writeTypedObject(obtain, ratingCompat, 0);
|
|
this.mRemote.transact(Stub.TRANSACTION_rate, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void rateWithExtras(RatingCompat ratingCompat, Bundle bundle) {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
_Parcel.writeTypedObject(obtain, ratingCompat, 0);
|
|
_Parcel.writeTypedObject(obtain, bundle, 0);
|
|
this.mRemote.transact(Stub.TRANSACTION_rateWithExtras, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void registerCallbackListener(IMediaControllerCallback iMediaControllerCallback) {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
obtain.writeStrongInterface(iMediaControllerCallback);
|
|
this.mRemote.transact(3, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void removeQueueItem(MediaDescriptionCompat mediaDescriptionCompat) {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
_Parcel.writeTypedObject(obtain, mediaDescriptionCompat, 0);
|
|
this.mRemote.transact(Stub.TRANSACTION_removeQueueItem, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void removeQueueItemAt(int i) {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
obtain.writeInt(i);
|
|
this.mRemote.transact(Stub.TRANSACTION_removeQueueItemAt, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void rewind() {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
this.mRemote.transact(23, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void seekTo(long j) {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
obtain.writeLong(j);
|
|
this.mRemote.transact(24, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void sendCommand(String str, Bundle bundle, MediaSessionCompat.ResultReceiverWrapper resultReceiverWrapper) {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
obtain.writeString(str);
|
|
_Parcel.writeTypedObject(obtain, bundle, 0);
|
|
_Parcel.writeTypedObject(obtain, resultReceiverWrapper, 0);
|
|
this.mRemote.transact(1, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void sendCustomAction(String str, Bundle bundle) {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
obtain.writeString(str);
|
|
_Parcel.writeTypedObject(obtain, bundle, 0);
|
|
this.mRemote.transact(Stub.TRANSACTION_sendCustomAction, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public boolean sendMediaButton(KeyEvent keyEvent) {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
boolean z = false;
|
|
_Parcel.writeTypedObject(obtain, keyEvent, 0);
|
|
this.mRemote.transact(2, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
if (obtain2.readInt() != 0) {
|
|
z = true;
|
|
}
|
|
return z;
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void setCaptioningEnabled(boolean z) {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
obtain.writeInt(z ? 1 : 0);
|
|
this.mRemote.transact(Stub.TRANSACTION_setCaptioningEnabled, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void setPlaybackSpeed(float f) {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
obtain.writeFloat(f);
|
|
this.mRemote.transact(Stub.TRANSACTION_setPlaybackSpeed, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void setRepeatMode(int i) {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
obtain.writeInt(i);
|
|
this.mRemote.transact(Stub.TRANSACTION_setRepeatMode, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void setShuffleMode(int i) {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
obtain.writeInt(i);
|
|
this.mRemote.transact(Stub.TRANSACTION_setShuffleMode, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void setShuffleModeEnabledRemoved(boolean z) {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
obtain.writeInt(z ? 1 : 0);
|
|
this.mRemote.transact(Stub.TRANSACTION_setShuffleModeEnabledRemoved, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void setVolumeTo(int i, int i2, String str) {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
obtain.writeInt(i);
|
|
obtain.writeInt(i2);
|
|
obtain.writeString(str);
|
|
this.mRemote.transact(12, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void skipToQueueItem(long j) {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
obtain.writeLong(j);
|
|
this.mRemote.transact(17, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void stop() {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
this.mRemote.transact(19, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void unregisterCallbackListener(IMediaControllerCallback iMediaControllerCallback) {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(IMediaSession.DESCRIPTOR);
|
|
obtain.writeStrongInterface(iMediaControllerCallback);
|
|
this.mRemote.transact(4, obtain, obtain2, 0);
|
|
obtain2.readException();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
}
|
|
|
|
public Stub() {
|
|
attachInterface(this, IMediaSession.DESCRIPTOR);
|
|
}
|
|
|
|
public static IMediaSession asInterface(IBinder iBinder) {
|
|
if (iBinder == null) {
|
|
return null;
|
|
}
|
|
IInterface queryLocalInterface = iBinder.queryLocalInterface(IMediaSession.DESCRIPTOR);
|
|
if (queryLocalInterface != null && (queryLocalInterface instanceof IMediaSession)) {
|
|
return (IMediaSession) queryLocalInterface;
|
|
}
|
|
return new Proxy(iBinder);
|
|
}
|
|
|
|
@Override // android.os.IInterface
|
|
public IBinder asBinder() {
|
|
return this;
|
|
}
|
|
|
|
@Override // android.os.Binder
|
|
public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) {
|
|
if (i >= 1 && i <= 16777215) {
|
|
parcel.enforceInterface(IMediaSession.DESCRIPTOR);
|
|
}
|
|
if (i == 1598968902) {
|
|
parcel2.writeString(IMediaSession.DESCRIPTOR);
|
|
return true;
|
|
}
|
|
boolean z = false;
|
|
switch (i) {
|
|
case 1:
|
|
sendCommand(parcel.readString(), (Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR), (MediaSessionCompat.ResultReceiverWrapper) _Parcel.readTypedObject(parcel, MediaSessionCompat.ResultReceiverWrapper.CREATOR));
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 2:
|
|
boolean sendMediaButton = sendMediaButton((KeyEvent) _Parcel.readTypedObject(parcel, KeyEvent.CREATOR));
|
|
parcel2.writeNoException();
|
|
parcel2.writeInt(sendMediaButton ? 1 : 0);
|
|
return true;
|
|
case 3:
|
|
registerCallbackListener(IMediaControllerCallback.Stub.asInterface(parcel.readStrongBinder()));
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 4:
|
|
unregisterCallbackListener(IMediaControllerCallback.Stub.asInterface(parcel.readStrongBinder()));
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 5:
|
|
boolean isTransportControlEnabled = isTransportControlEnabled();
|
|
parcel2.writeNoException();
|
|
parcel2.writeInt(isTransportControlEnabled ? 1 : 0);
|
|
return true;
|
|
case 6:
|
|
String packageName = getPackageName();
|
|
parcel2.writeNoException();
|
|
parcel2.writeString(packageName);
|
|
return true;
|
|
case 7:
|
|
String tag = getTag();
|
|
parcel2.writeNoException();
|
|
parcel2.writeString(tag);
|
|
return true;
|
|
case 8:
|
|
PendingIntent launchPendingIntent = getLaunchPendingIntent();
|
|
parcel2.writeNoException();
|
|
_Parcel.writeTypedObject(parcel2, launchPendingIntent, 1);
|
|
return true;
|
|
case 9:
|
|
long flags = getFlags();
|
|
parcel2.writeNoException();
|
|
parcel2.writeLong(flags);
|
|
return true;
|
|
case 10:
|
|
ParcelableVolumeInfo volumeAttributes = getVolumeAttributes();
|
|
parcel2.writeNoException();
|
|
_Parcel.writeTypedObject(parcel2, volumeAttributes, 1);
|
|
return true;
|
|
case 11:
|
|
adjustVolume(parcel.readInt(), parcel.readInt(), parcel.readString());
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 12:
|
|
setVolumeTo(parcel.readInt(), parcel.readInt(), parcel.readString());
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 13:
|
|
play();
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 14:
|
|
playFromMediaId(parcel.readString(), (Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR));
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 15:
|
|
playFromSearch(parcel.readString(), (Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR));
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 16:
|
|
playFromUri((Uri) _Parcel.readTypedObject(parcel, Uri.CREATOR), (Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR));
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 17:
|
|
skipToQueueItem(parcel.readLong());
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 18:
|
|
pause();
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 19:
|
|
stop();
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 20:
|
|
next();
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 21:
|
|
previous();
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 22:
|
|
fastForward();
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 23:
|
|
rewind();
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 24:
|
|
seekTo(parcel.readLong());
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case TRANSACTION_rate /* 25 */:
|
|
rate((RatingCompat) _Parcel.readTypedObject(parcel, RatingCompat.CREATOR));
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case TRANSACTION_sendCustomAction /* 26 */:
|
|
sendCustomAction(parcel.readString(), (Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR));
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case TRANSACTION_getMetadata /* 27 */:
|
|
MediaMetadataCompat metadata = getMetadata();
|
|
parcel2.writeNoException();
|
|
_Parcel.writeTypedObject(parcel2, metadata, 1);
|
|
return true;
|
|
case TRANSACTION_getPlaybackState /* 28 */:
|
|
PlaybackStateCompat playbackState = getPlaybackState();
|
|
parcel2.writeNoException();
|
|
_Parcel.writeTypedObject(parcel2, playbackState, 1);
|
|
return true;
|
|
case TRANSACTION_getQueue /* 29 */:
|
|
List<MediaSessionCompat.QueueItem> queue = getQueue();
|
|
parcel2.writeNoException();
|
|
_Parcel.writeTypedList(parcel2, queue, 1);
|
|
return true;
|
|
case TRANSACTION_getQueueTitle /* 30 */:
|
|
CharSequence queueTitle = getQueueTitle();
|
|
parcel2.writeNoException();
|
|
if (queueTitle != null) {
|
|
parcel2.writeInt(1);
|
|
TextUtils.writeToParcel(queueTitle, parcel2, 1);
|
|
} else {
|
|
parcel2.writeInt(0);
|
|
}
|
|
return true;
|
|
case TRANSACTION_getExtras /* 31 */:
|
|
Bundle extras = getExtras();
|
|
parcel2.writeNoException();
|
|
_Parcel.writeTypedObject(parcel2, extras, 1);
|
|
return true;
|
|
case 32:
|
|
int ratingType = getRatingType();
|
|
parcel2.writeNoException();
|
|
parcel2.writeInt(ratingType);
|
|
return true;
|
|
case TRANSACTION_prepare /* 33 */:
|
|
prepare();
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case TRANSACTION_prepareFromMediaId /* 34 */:
|
|
prepareFromMediaId(parcel.readString(), (Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR));
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case TRANSACTION_prepareFromSearch /* 35 */:
|
|
prepareFromSearch(parcel.readString(), (Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR));
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case TRANSACTION_prepareFromUri /* 36 */:
|
|
prepareFromUri((Uri) _Parcel.readTypedObject(parcel, Uri.CREATOR), (Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR));
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case TRANSACTION_getRepeatMode /* 37 */:
|
|
int repeatMode = getRepeatMode();
|
|
parcel2.writeNoException();
|
|
parcel2.writeInt(repeatMode);
|
|
return true;
|
|
case TRANSACTION_isShuffleModeEnabledRemoved /* 38 */:
|
|
boolean isShuffleModeEnabledRemoved = isShuffleModeEnabledRemoved();
|
|
parcel2.writeNoException();
|
|
parcel2.writeInt(isShuffleModeEnabledRemoved ? 1 : 0);
|
|
return true;
|
|
case TRANSACTION_setRepeatMode /* 39 */:
|
|
setRepeatMode(parcel.readInt());
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case TRANSACTION_setShuffleModeEnabledRemoved /* 40 */:
|
|
if (parcel.readInt() != 0) {
|
|
z = true;
|
|
}
|
|
setShuffleModeEnabledRemoved(z);
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case TRANSACTION_addQueueItem /* 41 */:
|
|
addQueueItem((MediaDescriptionCompat) _Parcel.readTypedObject(parcel, MediaDescriptionCompat.CREATOR));
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case TRANSACTION_addQueueItemAt /* 42 */:
|
|
addQueueItemAt((MediaDescriptionCompat) _Parcel.readTypedObject(parcel, MediaDescriptionCompat.CREATOR), parcel.readInt());
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case TRANSACTION_removeQueueItem /* 43 */:
|
|
removeQueueItem((MediaDescriptionCompat) _Parcel.readTypedObject(parcel, MediaDescriptionCompat.CREATOR));
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case TRANSACTION_removeQueueItemAt /* 44 */:
|
|
removeQueueItemAt(parcel.readInt());
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case TRANSACTION_isCaptioningEnabled /* 45 */:
|
|
boolean isCaptioningEnabled = isCaptioningEnabled();
|
|
parcel2.writeNoException();
|
|
parcel2.writeInt(isCaptioningEnabled ? 1 : 0);
|
|
return true;
|
|
case TRANSACTION_setCaptioningEnabled /* 46 */:
|
|
if (parcel.readInt() != 0) {
|
|
z = true;
|
|
}
|
|
setCaptioningEnabled(z);
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case TRANSACTION_getShuffleMode /* 47 */:
|
|
int shuffleMode = getShuffleMode();
|
|
parcel2.writeNoException();
|
|
parcel2.writeInt(shuffleMode);
|
|
return true;
|
|
case TRANSACTION_setShuffleMode /* 48 */:
|
|
setShuffleMode(parcel.readInt());
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case TRANSACTION_setPlaybackSpeed /* 49 */:
|
|
setPlaybackSpeed(parcel.readFloat());
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case TRANSACTION_getSessionInfo /* 50 */:
|
|
Bundle sessionInfo = getSessionInfo();
|
|
parcel2.writeNoException();
|
|
_Parcel.writeTypedObject(parcel2, sessionInfo, 1);
|
|
return true;
|
|
case TRANSACTION_rateWithExtras /* 51 */:
|
|
rateWithExtras((RatingCompat) _Parcel.readTypedObject(parcel, RatingCompat.CREATOR), (Bundle) _Parcel.readTypedObject(parcel, Bundle.CREATOR));
|
|
parcel2.writeNoException();
|
|
return true;
|
|
default:
|
|
return super.onTransact(i, parcel, parcel2, i2);
|
|
}
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
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 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);
|
|
}
|
|
}
|
|
|
|
/* 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);
|
|
}
|
|
}
|
|
}
|
|
|
|
void addQueueItem(MediaDescriptionCompat mediaDescriptionCompat);
|
|
|
|
void addQueueItemAt(MediaDescriptionCompat mediaDescriptionCompat, int i);
|
|
|
|
void adjustVolume(int i, int i2, String str);
|
|
|
|
void fastForward();
|
|
|
|
Bundle getExtras();
|
|
|
|
long getFlags();
|
|
|
|
PendingIntent getLaunchPendingIntent();
|
|
|
|
MediaMetadataCompat getMetadata();
|
|
|
|
String getPackageName();
|
|
|
|
PlaybackStateCompat getPlaybackState();
|
|
|
|
List<MediaSessionCompat.QueueItem> getQueue();
|
|
|
|
CharSequence getQueueTitle();
|
|
|
|
int getRatingType();
|
|
|
|
int getRepeatMode();
|
|
|
|
Bundle getSessionInfo();
|
|
|
|
int getShuffleMode();
|
|
|
|
String getTag();
|
|
|
|
ParcelableVolumeInfo getVolumeAttributes();
|
|
|
|
boolean isCaptioningEnabled();
|
|
|
|
boolean isShuffleModeEnabledRemoved();
|
|
|
|
boolean isTransportControlEnabled();
|
|
|
|
void next();
|
|
|
|
void pause();
|
|
|
|
void play();
|
|
|
|
void playFromMediaId(String str, Bundle bundle);
|
|
|
|
void playFromSearch(String str, Bundle bundle);
|
|
|
|
void playFromUri(Uri uri, Bundle bundle);
|
|
|
|
void prepare();
|
|
|
|
void prepareFromMediaId(String str, Bundle bundle);
|
|
|
|
void prepareFromSearch(String str, Bundle bundle);
|
|
|
|
void prepareFromUri(Uri uri, Bundle bundle);
|
|
|
|
void previous();
|
|
|
|
void rate(RatingCompat ratingCompat);
|
|
|
|
void rateWithExtras(RatingCompat ratingCompat, Bundle bundle);
|
|
|
|
void registerCallbackListener(IMediaControllerCallback iMediaControllerCallback);
|
|
|
|
void removeQueueItem(MediaDescriptionCompat mediaDescriptionCompat);
|
|
|
|
void removeQueueItemAt(int i);
|
|
|
|
void rewind();
|
|
|
|
void seekTo(long j);
|
|
|
|
void sendCommand(String str, Bundle bundle, MediaSessionCompat.ResultReceiverWrapper resultReceiverWrapper);
|
|
|
|
void sendCustomAction(String str, Bundle bundle);
|
|
|
|
boolean sendMediaButton(KeyEvent keyEvent);
|
|
|
|
void setCaptioningEnabled(boolean z);
|
|
|
|
void setPlaybackSpeed(float f);
|
|
|
|
void setRepeatMode(int i);
|
|
|
|
void setShuffleMode(int i);
|
|
|
|
void setShuffleModeEnabledRemoved(boolean z);
|
|
|
|
void setVolumeTo(int i, int i2, String str);
|
|
|
|
void skipToQueueItem(long j);
|
|
|
|
void stop();
|
|
|
|
void unregisterCallbackListener(IMediaControllerCallback iMediaControllerCallback);
|
|
}
|