- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
1862 lines
80 KiB
Java
1862 lines
80 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.RemoteException;
|
|
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 java.util.List;
|
|
|
|
/* loaded from: classes.dex */
|
|
public interface IMediaSession extends IInterface {
|
|
|
|
public static class Default implements IMediaSession {
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void addQueueItem(MediaDescriptionCompat mediaDescriptionCompat) throws RemoteException {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void addQueueItemAt(MediaDescriptionCompat mediaDescriptionCompat, int i) throws RemoteException {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void adjustVolume(int i, int i2, String str) throws RemoteException {
|
|
}
|
|
|
|
@Override // android.os.IInterface
|
|
public IBinder asBinder() {
|
|
return null;
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void fastForward() throws RemoteException {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public Bundle getExtras() throws RemoteException {
|
|
return null;
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public long getFlags() throws RemoteException {
|
|
return 0L;
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public PendingIntent getLaunchPendingIntent() throws RemoteException {
|
|
return null;
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public MediaMetadataCompat getMetadata() throws RemoteException {
|
|
return null;
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public String getPackageName() throws RemoteException {
|
|
return null;
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public PlaybackStateCompat getPlaybackState() throws RemoteException {
|
|
return null;
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public List<MediaSessionCompat.QueueItem> getQueue() throws RemoteException {
|
|
return null;
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public CharSequence getQueueTitle() throws RemoteException {
|
|
return null;
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public int getRatingType() throws RemoteException {
|
|
return 0;
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public int getRepeatMode() throws RemoteException {
|
|
return 0;
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public Bundle getSessionInfo() throws RemoteException {
|
|
return null;
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public int getShuffleMode() throws RemoteException {
|
|
return 0;
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public String getTag() throws RemoteException {
|
|
return null;
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public ParcelableVolumeInfo getVolumeAttributes() throws RemoteException {
|
|
return null;
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public boolean isCaptioningEnabled() throws RemoteException {
|
|
return false;
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public boolean isShuffleModeEnabledRemoved() throws RemoteException {
|
|
return false;
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public boolean isTransportControlEnabled() throws RemoteException {
|
|
return false;
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void next() throws RemoteException {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void pause() throws RemoteException {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void play() throws RemoteException {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void playFromMediaId(String str, Bundle bundle) throws RemoteException {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void playFromSearch(String str, Bundle bundle) throws RemoteException {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void playFromUri(Uri uri, Bundle bundle) throws RemoteException {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void prepare() throws RemoteException {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void prepareFromMediaId(String str, Bundle bundle) throws RemoteException {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void prepareFromSearch(String str, Bundle bundle) throws RemoteException {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void prepareFromUri(Uri uri, Bundle bundle) throws RemoteException {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void previous() throws RemoteException {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void rate(RatingCompat ratingCompat) throws RemoteException {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void rateWithExtras(RatingCompat ratingCompat, Bundle bundle) throws RemoteException {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void registerCallbackListener(IMediaControllerCallback iMediaControllerCallback) throws RemoteException {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void removeQueueItem(MediaDescriptionCompat mediaDescriptionCompat) throws RemoteException {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void removeQueueItemAt(int i) throws RemoteException {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void rewind() throws RemoteException {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void seekTo(long j) throws RemoteException {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void sendCommand(String str, Bundle bundle, MediaSessionCompat.ResultReceiverWrapper resultReceiverWrapper) throws RemoteException {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void sendCustomAction(String str, Bundle bundle) throws RemoteException {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public boolean sendMediaButton(KeyEvent keyEvent) throws RemoteException {
|
|
return false;
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void setCaptioningEnabled(boolean z) throws RemoteException {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void setPlaybackSpeed(float f) throws RemoteException {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void setRepeatMode(int i) throws RemoteException {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void setShuffleMode(int i) throws RemoteException {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void setShuffleModeEnabledRemoved(boolean z) throws RemoteException {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void setVolumeTo(int i, int i2, String str) throws RemoteException {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void skipToQueueItem(long j) throws RemoteException {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void stop() throws RemoteException {
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void unregisterCallbackListener(IMediaControllerCallback iMediaControllerCallback) throws RemoteException {
|
|
}
|
|
}
|
|
|
|
void addQueueItem(MediaDescriptionCompat mediaDescriptionCompat) throws RemoteException;
|
|
|
|
void addQueueItemAt(MediaDescriptionCompat mediaDescriptionCompat, int i) throws RemoteException;
|
|
|
|
void adjustVolume(int i, int i2, String str) throws RemoteException;
|
|
|
|
void fastForward() throws RemoteException;
|
|
|
|
Bundle getExtras() throws RemoteException;
|
|
|
|
long getFlags() throws RemoteException;
|
|
|
|
PendingIntent getLaunchPendingIntent() throws RemoteException;
|
|
|
|
MediaMetadataCompat getMetadata() throws RemoteException;
|
|
|
|
String getPackageName() throws RemoteException;
|
|
|
|
PlaybackStateCompat getPlaybackState() throws RemoteException;
|
|
|
|
List<MediaSessionCompat.QueueItem> getQueue() throws RemoteException;
|
|
|
|
CharSequence getQueueTitle() throws RemoteException;
|
|
|
|
int getRatingType() throws RemoteException;
|
|
|
|
int getRepeatMode() throws RemoteException;
|
|
|
|
Bundle getSessionInfo() throws RemoteException;
|
|
|
|
int getShuffleMode() throws RemoteException;
|
|
|
|
String getTag() throws RemoteException;
|
|
|
|
ParcelableVolumeInfo getVolumeAttributes() throws RemoteException;
|
|
|
|
boolean isCaptioningEnabled() throws RemoteException;
|
|
|
|
boolean isShuffleModeEnabledRemoved() throws RemoteException;
|
|
|
|
boolean isTransportControlEnabled() throws RemoteException;
|
|
|
|
void next() throws RemoteException;
|
|
|
|
void pause() throws RemoteException;
|
|
|
|
void play() throws RemoteException;
|
|
|
|
void playFromMediaId(String str, Bundle bundle) throws RemoteException;
|
|
|
|
void playFromSearch(String str, Bundle bundle) throws RemoteException;
|
|
|
|
void playFromUri(Uri uri, Bundle bundle) throws RemoteException;
|
|
|
|
void prepare() throws RemoteException;
|
|
|
|
void prepareFromMediaId(String str, Bundle bundle) throws RemoteException;
|
|
|
|
void prepareFromSearch(String str, Bundle bundle) throws RemoteException;
|
|
|
|
void prepareFromUri(Uri uri, Bundle bundle) throws RemoteException;
|
|
|
|
void previous() throws RemoteException;
|
|
|
|
void rate(RatingCompat ratingCompat) throws RemoteException;
|
|
|
|
void rateWithExtras(RatingCompat ratingCompat, Bundle bundle) throws RemoteException;
|
|
|
|
void registerCallbackListener(IMediaControllerCallback iMediaControllerCallback) throws RemoteException;
|
|
|
|
void removeQueueItem(MediaDescriptionCompat mediaDescriptionCompat) throws RemoteException;
|
|
|
|
void removeQueueItemAt(int i) throws RemoteException;
|
|
|
|
void rewind() throws RemoteException;
|
|
|
|
void seekTo(long j) throws RemoteException;
|
|
|
|
void sendCommand(String str, Bundle bundle, MediaSessionCompat.ResultReceiverWrapper resultReceiverWrapper) throws RemoteException;
|
|
|
|
void sendCustomAction(String str, Bundle bundle) throws RemoteException;
|
|
|
|
boolean sendMediaButton(KeyEvent keyEvent) throws RemoteException;
|
|
|
|
void setCaptioningEnabled(boolean z) throws RemoteException;
|
|
|
|
void setPlaybackSpeed(float f) throws RemoteException;
|
|
|
|
void setRepeatMode(int i) throws RemoteException;
|
|
|
|
void setShuffleMode(int i) throws RemoteException;
|
|
|
|
void setShuffleModeEnabledRemoved(boolean z) throws RemoteException;
|
|
|
|
void setVolumeTo(int i, int i2, String str) throws RemoteException;
|
|
|
|
void skipToQueueItem(long j) throws RemoteException;
|
|
|
|
void stop() throws RemoteException;
|
|
|
|
void unregisterCallbackListener(IMediaControllerCallback iMediaControllerCallback) throws RemoteException;
|
|
|
|
public static abstract class Stub extends Binder implements IMediaSession {
|
|
private static final String DESCRIPTOR = "android.support.v4.media.session.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;
|
|
|
|
public static IMediaSession getDefaultImpl() {
|
|
return Proxy.sDefaultImpl;
|
|
}
|
|
|
|
@Override // android.os.IInterface
|
|
public IBinder asBinder() {
|
|
return this;
|
|
}
|
|
|
|
public Stub() {
|
|
attachInterface(this, DESCRIPTOR);
|
|
}
|
|
|
|
public static IMediaSession asInterface(IBinder iBinder) {
|
|
if (iBinder == null) {
|
|
return null;
|
|
}
|
|
IInterface queryLocalInterface = iBinder.queryLocalInterface(DESCRIPTOR);
|
|
if (queryLocalInterface != null && (queryLocalInterface instanceof IMediaSession)) {
|
|
return (IMediaSession) 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);
|
|
sendCommand(parcel.readString(), parcel.readInt() != 0 ? (Bundle) Bundle.CREATOR.createFromParcel(parcel) : null, parcel.readInt() != 0 ? MediaSessionCompat.ResultReceiverWrapper.CREATOR.createFromParcel(parcel) : null);
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 2:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
boolean sendMediaButton = sendMediaButton(parcel.readInt() != 0 ? (KeyEvent) KeyEvent.CREATOR.createFromParcel(parcel) : null);
|
|
parcel2.writeNoException();
|
|
parcel2.writeInt(sendMediaButton ? 1 : 0);
|
|
return true;
|
|
case 3:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
registerCallbackListener(IMediaControllerCallback.Stub.asInterface(parcel.readStrongBinder()));
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 4:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
unregisterCallbackListener(IMediaControllerCallback.Stub.asInterface(parcel.readStrongBinder()));
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 5:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
boolean isTransportControlEnabled = isTransportControlEnabled();
|
|
parcel2.writeNoException();
|
|
parcel2.writeInt(isTransportControlEnabled ? 1 : 0);
|
|
return true;
|
|
case 6:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
String packageName = getPackageName();
|
|
parcel2.writeNoException();
|
|
parcel2.writeString(packageName);
|
|
return true;
|
|
case 7:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
String tag = getTag();
|
|
parcel2.writeNoException();
|
|
parcel2.writeString(tag);
|
|
return true;
|
|
case 8:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
PendingIntent launchPendingIntent = getLaunchPendingIntent();
|
|
parcel2.writeNoException();
|
|
if (launchPendingIntent != null) {
|
|
parcel2.writeInt(1);
|
|
launchPendingIntent.writeToParcel(parcel2, 1);
|
|
} else {
|
|
parcel2.writeInt(0);
|
|
}
|
|
return true;
|
|
case 9:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
long flags = getFlags();
|
|
parcel2.writeNoException();
|
|
parcel2.writeLong(flags);
|
|
return true;
|
|
case 10:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
ParcelableVolumeInfo volumeAttributes = getVolumeAttributes();
|
|
parcel2.writeNoException();
|
|
if (volumeAttributes != null) {
|
|
parcel2.writeInt(1);
|
|
volumeAttributes.writeToParcel(parcel2, 1);
|
|
} else {
|
|
parcel2.writeInt(0);
|
|
}
|
|
return true;
|
|
case 11:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
adjustVolume(parcel.readInt(), parcel.readInt(), parcel.readString());
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 12:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
setVolumeTo(parcel.readInt(), parcel.readInt(), parcel.readString());
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 13:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
play();
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 14:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
playFromMediaId(parcel.readString(), parcel.readInt() != 0 ? (Bundle) Bundle.CREATOR.createFromParcel(parcel) : null);
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 15:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
playFromSearch(parcel.readString(), parcel.readInt() != 0 ? (Bundle) Bundle.CREATOR.createFromParcel(parcel) : null);
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 16:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
playFromUri(parcel.readInt() != 0 ? (Uri) Uri.CREATOR.createFromParcel(parcel) : null, parcel.readInt() != 0 ? (Bundle) Bundle.CREATOR.createFromParcel(parcel) : null);
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 17:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
skipToQueueItem(parcel.readLong());
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 18:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
pause();
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 19:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
stop();
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 20:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
next();
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 21:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
previous();
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 22:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
fastForward();
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 23:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
rewind();
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 24:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
seekTo(parcel.readLong());
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 25:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
rate(parcel.readInt() != 0 ? RatingCompat.CREATOR.createFromParcel(parcel) : null);
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 26:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
sendCustomAction(parcel.readString(), parcel.readInt() != 0 ? (Bundle) Bundle.CREATOR.createFromParcel(parcel) : null);
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 27:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
MediaMetadataCompat metadata = getMetadata();
|
|
parcel2.writeNoException();
|
|
if (metadata != null) {
|
|
parcel2.writeInt(1);
|
|
metadata.writeToParcel(parcel2, 1);
|
|
} else {
|
|
parcel2.writeInt(0);
|
|
}
|
|
return true;
|
|
case 28:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
PlaybackStateCompat playbackState = getPlaybackState();
|
|
parcel2.writeNoException();
|
|
if (playbackState != null) {
|
|
parcel2.writeInt(1);
|
|
playbackState.writeToParcel(parcel2, 1);
|
|
} else {
|
|
parcel2.writeInt(0);
|
|
}
|
|
return true;
|
|
case 29:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
List<MediaSessionCompat.QueueItem> queue = getQueue();
|
|
parcel2.writeNoException();
|
|
parcel2.writeTypedList(queue);
|
|
return true;
|
|
case 30:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
CharSequence queueTitle = getQueueTitle();
|
|
parcel2.writeNoException();
|
|
if (queueTitle != null) {
|
|
parcel2.writeInt(1);
|
|
TextUtils.writeToParcel(queueTitle, parcel2, 1);
|
|
} else {
|
|
parcel2.writeInt(0);
|
|
}
|
|
return true;
|
|
case 31:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
Bundle extras = getExtras();
|
|
parcel2.writeNoException();
|
|
if (extras != null) {
|
|
parcel2.writeInt(1);
|
|
extras.writeToParcel(parcel2, 1);
|
|
} else {
|
|
parcel2.writeInt(0);
|
|
}
|
|
return true;
|
|
case 32:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
int ratingType = getRatingType();
|
|
parcel2.writeNoException();
|
|
parcel2.writeInt(ratingType);
|
|
return true;
|
|
case 33:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
prepare();
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 34:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
prepareFromMediaId(parcel.readString(), parcel.readInt() != 0 ? (Bundle) Bundle.CREATOR.createFromParcel(parcel) : null);
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 35:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
prepareFromSearch(parcel.readString(), parcel.readInt() != 0 ? (Bundle) Bundle.CREATOR.createFromParcel(parcel) : null);
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 36:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
prepareFromUri(parcel.readInt() != 0 ? (Uri) Uri.CREATOR.createFromParcel(parcel) : null, parcel.readInt() != 0 ? (Bundle) Bundle.CREATOR.createFromParcel(parcel) : null);
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 37:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
int repeatMode = getRepeatMode();
|
|
parcel2.writeNoException();
|
|
parcel2.writeInt(repeatMode);
|
|
return true;
|
|
case 38:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
boolean isShuffleModeEnabledRemoved = isShuffleModeEnabledRemoved();
|
|
parcel2.writeNoException();
|
|
parcel2.writeInt(isShuffleModeEnabledRemoved ? 1 : 0);
|
|
return true;
|
|
case 39:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
setRepeatMode(parcel.readInt());
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 40:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
setShuffleModeEnabledRemoved(parcel.readInt() != 0);
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 41:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
addQueueItem(parcel.readInt() != 0 ? MediaDescriptionCompat.CREATOR.createFromParcel(parcel) : null);
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 42:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
addQueueItemAt(parcel.readInt() != 0 ? MediaDescriptionCompat.CREATOR.createFromParcel(parcel) : null, parcel.readInt());
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 43:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
removeQueueItem(parcel.readInt() != 0 ? MediaDescriptionCompat.CREATOR.createFromParcel(parcel) : null);
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 44:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
removeQueueItemAt(parcel.readInt());
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 45:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
boolean isCaptioningEnabled = isCaptioningEnabled();
|
|
parcel2.writeNoException();
|
|
parcel2.writeInt(isCaptioningEnabled ? 1 : 0);
|
|
return true;
|
|
case 46:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
setCaptioningEnabled(parcel.readInt() != 0);
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 47:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
int shuffleMode = getShuffleMode();
|
|
parcel2.writeNoException();
|
|
parcel2.writeInt(shuffleMode);
|
|
return true;
|
|
case 48:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
setShuffleMode(parcel.readInt());
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 49:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
setPlaybackSpeed(parcel.readFloat());
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 50:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
Bundle sessionInfo = getSessionInfo();
|
|
parcel2.writeNoException();
|
|
if (sessionInfo != null) {
|
|
parcel2.writeInt(1);
|
|
sessionInfo.writeToParcel(parcel2, 1);
|
|
} else {
|
|
parcel2.writeInt(0);
|
|
}
|
|
return true;
|
|
case 51:
|
|
parcel.enforceInterface(DESCRIPTOR);
|
|
rateWithExtras(parcel.readInt() != 0 ? RatingCompat.CREATOR.createFromParcel(parcel) : null, parcel.readInt() != 0 ? (Bundle) Bundle.CREATOR.createFromParcel(parcel) : null);
|
|
parcel2.writeNoException();
|
|
return true;
|
|
default:
|
|
return super.onTransact(i, parcel, parcel2, i2);
|
|
}
|
|
}
|
|
|
|
public static class Proxy implements IMediaSession {
|
|
public static IMediaSession 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.IMediaSession
|
|
public void sendCommand(String str, Bundle bundle, MediaSessionCompat.ResultReceiverWrapper resultReceiverWrapper) throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = 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 (resultReceiverWrapper != null) {
|
|
obtain.writeInt(1);
|
|
resultReceiverWrapper.writeToParcel(obtain, 0);
|
|
} else {
|
|
obtain.writeInt(0);
|
|
}
|
|
if (!this.mRemote.transact(1, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
Stub.getDefaultImpl().sendCommand(str, bundle, resultReceiverWrapper);
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
} else {
|
|
obtain2.readException();
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
} catch (Throwable th) {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
throw th;
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public boolean sendMediaButton(KeyEvent keyEvent) throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
if (keyEvent != null) {
|
|
obtain.writeInt(1);
|
|
keyEvent.writeToParcel(obtain, 0);
|
|
} else {
|
|
obtain.writeInt(0);
|
|
}
|
|
if (!this.mRemote.transact(2, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
boolean sendMediaButton = Stub.getDefaultImpl().sendMediaButton(keyEvent);
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
return sendMediaButton;
|
|
}
|
|
obtain2.readException();
|
|
boolean z = obtain2.readInt() != 0;
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
return z;
|
|
} catch (Throwable th) {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
throw th;
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void registerCallbackListener(IMediaControllerCallback iMediaControllerCallback) throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
obtain.writeStrongBinder(iMediaControllerCallback != null ? iMediaControllerCallback.asBinder() : null);
|
|
if (!this.mRemote.transact(3, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
Stub.getDefaultImpl().registerCallbackListener(iMediaControllerCallback);
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
} else {
|
|
obtain2.readException();
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
} catch (Throwable th) {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
throw th;
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void unregisterCallbackListener(IMediaControllerCallback iMediaControllerCallback) throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
obtain.writeStrongBinder(iMediaControllerCallback != null ? iMediaControllerCallback.asBinder() : null);
|
|
if (!this.mRemote.transact(4, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
Stub.getDefaultImpl().unregisterCallbackListener(iMediaControllerCallback);
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
} else {
|
|
obtain2.readException();
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
} catch (Throwable th) {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
throw th;
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public boolean isTransportControlEnabled() throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
if (!this.mRemote.transact(5, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
return Stub.getDefaultImpl().isTransportControlEnabled();
|
|
}
|
|
obtain2.readException();
|
|
return obtain2.readInt() != 0;
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public String getPackageName() throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
if (!this.mRemote.transact(6, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
return Stub.getDefaultImpl().getPackageName();
|
|
}
|
|
obtain2.readException();
|
|
return obtain2.readString();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public String getTag() throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
if (!this.mRemote.transact(7, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
return Stub.getDefaultImpl().getTag();
|
|
}
|
|
obtain2.readException();
|
|
return obtain2.readString();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public PendingIntent getLaunchPendingIntent() throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
if (!this.mRemote.transact(8, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
return Stub.getDefaultImpl().getLaunchPendingIntent();
|
|
}
|
|
obtain2.readException();
|
|
return obtain2.readInt() != 0 ? (PendingIntent) PendingIntent.CREATOR.createFromParcel(obtain2) : null;
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public long getFlags() throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
if (!this.mRemote.transact(9, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
return Stub.getDefaultImpl().getFlags();
|
|
}
|
|
obtain2.readException();
|
|
return obtain2.readLong();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public ParcelableVolumeInfo getVolumeAttributes() throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
if (!this.mRemote.transact(10, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
return Stub.getDefaultImpl().getVolumeAttributes();
|
|
}
|
|
obtain2.readException();
|
|
return obtain2.readInt() != 0 ? ParcelableVolumeInfo.CREATOR.createFromParcel(obtain2) : null;
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void adjustVolume(int i, int i2, String str) throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
obtain.writeInt(i);
|
|
obtain.writeInt(i2);
|
|
obtain.writeString(str);
|
|
if (!this.mRemote.transact(11, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
Stub.getDefaultImpl().adjustVolume(i, i2, str);
|
|
} else {
|
|
obtain2.readException();
|
|
}
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void setVolumeTo(int i, int i2, String str) throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
obtain.writeInt(i);
|
|
obtain.writeInt(i2);
|
|
obtain.writeString(str);
|
|
if (!this.mRemote.transact(12, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
Stub.getDefaultImpl().setVolumeTo(i, i2, str);
|
|
} else {
|
|
obtain2.readException();
|
|
}
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public MediaMetadataCompat getMetadata() throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
if (!this.mRemote.transact(27, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
return Stub.getDefaultImpl().getMetadata();
|
|
}
|
|
obtain2.readException();
|
|
return obtain2.readInt() != 0 ? MediaMetadataCompat.CREATOR.createFromParcel(obtain2) : null;
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public PlaybackStateCompat getPlaybackState() throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
if (!this.mRemote.transact(28, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
return Stub.getDefaultImpl().getPlaybackState();
|
|
}
|
|
obtain2.readException();
|
|
return obtain2.readInt() != 0 ? PlaybackStateCompat.CREATOR.createFromParcel(obtain2) : null;
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public List<MediaSessionCompat.QueueItem> getQueue() throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
if (!this.mRemote.transact(29, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
return Stub.getDefaultImpl().getQueue();
|
|
}
|
|
obtain2.readException();
|
|
return obtain2.createTypedArrayList(MediaSessionCompat.QueueItem.CREATOR);
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public CharSequence getQueueTitle() throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
if (!this.mRemote.transact(30, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
return Stub.getDefaultImpl().getQueueTitle();
|
|
}
|
|
obtain2.readException();
|
|
return obtain2.readInt() != 0 ? (CharSequence) TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(obtain2) : null;
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public Bundle getExtras() throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
if (!this.mRemote.transact(31, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
return Stub.getDefaultImpl().getExtras();
|
|
}
|
|
obtain2.readException();
|
|
return obtain2.readInt() != 0 ? (Bundle) Bundle.CREATOR.createFromParcel(obtain2) : null;
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public int getRatingType() throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
if (!this.mRemote.transact(32, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
return Stub.getDefaultImpl().getRatingType();
|
|
}
|
|
obtain2.readException();
|
|
return obtain2.readInt();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public boolean isCaptioningEnabled() throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
if (!this.mRemote.transact(45, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
return Stub.getDefaultImpl().isCaptioningEnabled();
|
|
}
|
|
obtain2.readException();
|
|
return obtain2.readInt() != 0;
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public int getRepeatMode() throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
if (!this.mRemote.transact(37, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
return Stub.getDefaultImpl().getRepeatMode();
|
|
}
|
|
obtain2.readException();
|
|
return obtain2.readInt();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public boolean isShuffleModeEnabledRemoved() throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
if (!this.mRemote.transact(38, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
return Stub.getDefaultImpl().isShuffleModeEnabledRemoved();
|
|
}
|
|
obtain2.readException();
|
|
return obtain2.readInt() != 0;
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public int getShuffleMode() throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
if (!this.mRemote.transact(47, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
return Stub.getDefaultImpl().getShuffleMode();
|
|
}
|
|
obtain2.readException();
|
|
return obtain2.readInt();
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void addQueueItem(MediaDescriptionCompat mediaDescriptionCompat) throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
if (mediaDescriptionCompat != null) {
|
|
obtain.writeInt(1);
|
|
mediaDescriptionCompat.writeToParcel(obtain, 0);
|
|
} else {
|
|
obtain.writeInt(0);
|
|
}
|
|
if (!this.mRemote.transact(41, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
Stub.getDefaultImpl().addQueueItem(mediaDescriptionCompat);
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
} else {
|
|
obtain2.readException();
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
} catch (Throwable th) {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
throw th;
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void addQueueItemAt(MediaDescriptionCompat mediaDescriptionCompat, int i) throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
if (mediaDescriptionCompat != null) {
|
|
obtain.writeInt(1);
|
|
mediaDescriptionCompat.writeToParcel(obtain, 0);
|
|
} else {
|
|
obtain.writeInt(0);
|
|
}
|
|
obtain.writeInt(i);
|
|
if (!this.mRemote.transact(42, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
Stub.getDefaultImpl().addQueueItemAt(mediaDescriptionCompat, i);
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
} else {
|
|
obtain2.readException();
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
} catch (Throwable th) {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
throw th;
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void removeQueueItem(MediaDescriptionCompat mediaDescriptionCompat) throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
if (mediaDescriptionCompat != null) {
|
|
obtain.writeInt(1);
|
|
mediaDescriptionCompat.writeToParcel(obtain, 0);
|
|
} else {
|
|
obtain.writeInt(0);
|
|
}
|
|
if (!this.mRemote.transact(43, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
Stub.getDefaultImpl().removeQueueItem(mediaDescriptionCompat);
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
} else {
|
|
obtain2.readException();
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
} catch (Throwable th) {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
throw th;
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void removeQueueItemAt(int i) throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
obtain.writeInt(i);
|
|
if (!this.mRemote.transact(44, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
Stub.getDefaultImpl().removeQueueItemAt(i);
|
|
} else {
|
|
obtain2.readException();
|
|
}
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public Bundle getSessionInfo() throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
if (!this.mRemote.transact(50, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
return Stub.getDefaultImpl().getSessionInfo();
|
|
}
|
|
obtain2.readException();
|
|
return obtain2.readInt() != 0 ? (Bundle) Bundle.CREATOR.createFromParcel(obtain2) : null;
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void prepare() throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
if (!this.mRemote.transact(33, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
Stub.getDefaultImpl().prepare();
|
|
} else {
|
|
obtain2.readException();
|
|
}
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void prepareFromMediaId(String str, Bundle bundle) throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = 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(34, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
Stub.getDefaultImpl().prepareFromMediaId(str, bundle);
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
} else {
|
|
obtain2.readException();
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
} catch (Throwable th) {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
throw th;
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void prepareFromSearch(String str, Bundle bundle) throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = 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(35, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
Stub.getDefaultImpl().prepareFromSearch(str, bundle);
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
} else {
|
|
obtain2.readException();
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
} catch (Throwable th) {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
throw th;
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void prepareFromUri(Uri uri, Bundle bundle) throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
if (uri != null) {
|
|
obtain.writeInt(1);
|
|
uri.writeToParcel(obtain, 0);
|
|
} else {
|
|
obtain.writeInt(0);
|
|
}
|
|
if (bundle != null) {
|
|
obtain.writeInt(1);
|
|
bundle.writeToParcel(obtain, 0);
|
|
} else {
|
|
obtain.writeInt(0);
|
|
}
|
|
if (!this.mRemote.transact(36, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
Stub.getDefaultImpl().prepareFromUri(uri, bundle);
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
} else {
|
|
obtain2.readException();
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
} catch (Throwable th) {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
throw th;
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void play() throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
if (!this.mRemote.transact(13, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
Stub.getDefaultImpl().play();
|
|
} else {
|
|
obtain2.readException();
|
|
}
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void playFromMediaId(String str, Bundle bundle) throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = 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(14, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
Stub.getDefaultImpl().playFromMediaId(str, bundle);
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
} else {
|
|
obtain2.readException();
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
} catch (Throwable th) {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
throw th;
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void playFromSearch(String str, Bundle bundle) throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = 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(15, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
Stub.getDefaultImpl().playFromSearch(str, bundle);
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
} else {
|
|
obtain2.readException();
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
} catch (Throwable th) {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
throw th;
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void playFromUri(Uri uri, Bundle bundle) throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
if (uri != null) {
|
|
obtain.writeInt(1);
|
|
uri.writeToParcel(obtain, 0);
|
|
} else {
|
|
obtain.writeInt(0);
|
|
}
|
|
if (bundle != null) {
|
|
obtain.writeInt(1);
|
|
bundle.writeToParcel(obtain, 0);
|
|
} else {
|
|
obtain.writeInt(0);
|
|
}
|
|
if (!this.mRemote.transact(16, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
Stub.getDefaultImpl().playFromUri(uri, bundle);
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
} else {
|
|
obtain2.readException();
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
} catch (Throwable th) {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
throw th;
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void skipToQueueItem(long j) throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
obtain.writeLong(j);
|
|
if (!this.mRemote.transact(17, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
Stub.getDefaultImpl().skipToQueueItem(j);
|
|
} else {
|
|
obtain2.readException();
|
|
}
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void pause() throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
if (!this.mRemote.transact(18, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
Stub.getDefaultImpl().pause();
|
|
} else {
|
|
obtain2.readException();
|
|
}
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void stop() throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
if (!this.mRemote.transact(19, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
Stub.getDefaultImpl().stop();
|
|
} else {
|
|
obtain2.readException();
|
|
}
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void next() throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
if (!this.mRemote.transact(20, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
Stub.getDefaultImpl().next();
|
|
} else {
|
|
obtain2.readException();
|
|
}
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void previous() throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
if (!this.mRemote.transact(21, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
Stub.getDefaultImpl().previous();
|
|
} else {
|
|
obtain2.readException();
|
|
}
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void fastForward() throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
if (!this.mRemote.transact(22, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
Stub.getDefaultImpl().fastForward();
|
|
} else {
|
|
obtain2.readException();
|
|
}
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void rewind() throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
if (!this.mRemote.transact(23, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
Stub.getDefaultImpl().rewind();
|
|
} else {
|
|
obtain2.readException();
|
|
}
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void seekTo(long j) throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
obtain.writeLong(j);
|
|
if (!this.mRemote.transact(24, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
Stub.getDefaultImpl().seekTo(j);
|
|
} else {
|
|
obtain2.readException();
|
|
}
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void rate(RatingCompat ratingCompat) throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
if (ratingCompat != null) {
|
|
obtain.writeInt(1);
|
|
ratingCompat.writeToParcel(obtain, 0);
|
|
} else {
|
|
obtain.writeInt(0);
|
|
}
|
|
if (!this.mRemote.transact(25, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
Stub.getDefaultImpl().rate(ratingCompat);
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
} else {
|
|
obtain2.readException();
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
} catch (Throwable th) {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
throw th;
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void rateWithExtras(RatingCompat ratingCompat, Bundle bundle) throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
if (ratingCompat != null) {
|
|
obtain.writeInt(1);
|
|
ratingCompat.writeToParcel(obtain, 0);
|
|
} else {
|
|
obtain.writeInt(0);
|
|
}
|
|
if (bundle != null) {
|
|
obtain.writeInt(1);
|
|
bundle.writeToParcel(obtain, 0);
|
|
} else {
|
|
obtain.writeInt(0);
|
|
}
|
|
if (!this.mRemote.transact(51, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
Stub.getDefaultImpl().rateWithExtras(ratingCompat, bundle);
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
} else {
|
|
obtain2.readException();
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
} catch (Throwable th) {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
throw th;
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void setPlaybackSpeed(float f) throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
obtain.writeFloat(f);
|
|
if (!this.mRemote.transact(49, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
Stub.getDefaultImpl().setPlaybackSpeed(f);
|
|
} else {
|
|
obtain2.readException();
|
|
}
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void setCaptioningEnabled(boolean z) throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
obtain.writeInt(z ? 1 : 0);
|
|
if (!this.mRemote.transact(46, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
Stub.getDefaultImpl().setCaptioningEnabled(z);
|
|
} else {
|
|
obtain2.readException();
|
|
}
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void setRepeatMode(int i) throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
obtain.writeInt(i);
|
|
if (!this.mRemote.transact(39, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
Stub.getDefaultImpl().setRepeatMode(i);
|
|
} else {
|
|
obtain2.readException();
|
|
}
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void setShuffleModeEnabledRemoved(boolean z) throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
obtain.writeInt(z ? 1 : 0);
|
|
if (!this.mRemote.transact(40, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
Stub.getDefaultImpl().setShuffleModeEnabledRemoved(z);
|
|
} else {
|
|
obtain2.readException();
|
|
}
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void setShuffleMode(int i) throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = Parcel.obtain();
|
|
try {
|
|
obtain.writeInterfaceToken(Stub.DESCRIPTOR);
|
|
obtain.writeInt(i);
|
|
if (!this.mRemote.transact(48, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
Stub.getDefaultImpl().setShuffleMode(i);
|
|
} else {
|
|
obtain2.readException();
|
|
}
|
|
} finally {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
}
|
|
|
|
@Override // android.support.v4.media.session.IMediaSession
|
|
public void sendCustomAction(String str, Bundle bundle) throws RemoteException {
|
|
Parcel obtain = Parcel.obtain();
|
|
Parcel obtain2 = 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(26, obtain, obtain2, 0) && Stub.getDefaultImpl() != null) {
|
|
Stub.getDefaultImpl().sendCustomAction(str, bundle);
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
} else {
|
|
obtain2.readException();
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
}
|
|
} catch (Throwable th) {
|
|
obtain2.recycle();
|
|
obtain.recycle();
|
|
throw th;
|
|
}
|
|
}
|
|
}
|
|
|
|
public static boolean setDefaultImpl(IMediaSession iMediaSession) {
|
|
if (Proxy.sDefaultImpl != null) {
|
|
throw new IllegalStateException("setDefaultImpl() called twice");
|
|
}
|
|
if (iMediaSession == null) {
|
|
return false;
|
|
}
|
|
Proxy.sDefaultImpl = iMediaSession;
|
|
return true;
|
|
}
|
|
}
|
|
}
|