package android.media.session;
public interface ISessionManager extends android.os.IInterface
{
public static abstract class Stub extends android.os.Binder implements android.media.session.ISessionManager
{
private static final java.lang.String DESCRIPTOR = "android.media.session.ISessionManager";
public Stub()
{
this.attachInterface(this, DESCRIPTOR);
}
public static android.media.session.ISessionManager asInterface(android.os.IBinder obj)
{
if ((obj==null)) {
return null;
}
android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);
if (((iin!=null)&&(iin instanceof android.media.session.ISessionManager))) {
return ((android.media.session.ISessionManager)iin);
}
return new android.media.session.ISessionManager.Stub.Proxy(obj);
}
@Override public android.os.IBinder asBinder()
{
return this;
}
@Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException
{
java.lang.String descriptor = DESCRIPTOR;
switch (code)
{
case INTERFACE_TRANSACTION:
{
reply.writeString(descriptor);
return true;
}
case TRANSACTION_createSession:
{
data.enforceInterface(descriptor);
java.lang.String _arg0;
_arg0 = data.readString();
android.media.session.ISessionCallback _arg1;
_arg1 = android.media.session.ISessionCallback.Stub.asInterface(data.readStrongBinder());
java.lang.String _arg2;
_arg2 = data.readString();
int _arg3;
_arg3 = data.readInt();
android.media.session.ISession _result = this.createSession(_arg0, _arg1, _arg2, _arg3);
reply.writeNoException();
reply.writeStrongBinder((((_result!=null))?(_result.asBinder()):(null)));
return true;
}
case TRANSACTION_getSessions:
{
data.enforceInterface(descriptor);
android.content.ComponentName _arg0;
if ((0!=data.readInt())) {
_arg0 = android.content.ComponentName.CREATOR.createFromParcel(data);
}
else {
_arg0 = null;
}
int _arg1;
_arg1 = data.readInt();
java.util.List<android.os.IBinder> _result = this.getSessions(_arg0, _arg1);
reply.writeNoException();
reply.writeBinderList(_result);
return true;
}
case TRANSACTION_dispatchMediaKeyEvent:
{
data.enforceInterface(descriptor);
java.lang.String _arg0;
_arg0 = data.readString();
boolean _arg1;
_arg1 = (0!=data.readInt());
android.view.KeyEvent _arg2;
if ((0!=data.readInt())) {
_arg2 = android.view.KeyEvent.CREATOR.createFromParcel(data);
}
else {
_arg2 = null;
}
boolean _arg3;
_arg3 = (0!=data.readInt());
this.dispatchMediaKeyEvent(_arg0, _arg1, _arg2, _arg3);
reply.writeNoException();
return true;
}
case TRANSACTION_dispatchVolumeKeyEvent:
{
data.enforceInterface(descriptor);
java.lang.String _arg0;
_arg0 = data.readString();
boolean _arg1;
_arg1 = (0!=data.readInt());
android.view.KeyEvent _arg2;
if ((0!=data.readInt())) {
_arg2 = android.view.KeyEvent.CREATOR.createFromParcel(data);
}
else {
_arg2 = null;
}
int _arg3;
_arg3 = data.readInt();
boolean _arg4;
_arg4 = (0!=data.readInt());
this.dispatchVolumeKeyEvent(_arg0, _arg1, _arg2, _arg3, _arg4);
reply.writeNoException();
return true;
}
case TRANSACTION_dispatchAdjustVolume:
{
data.enforceInterface(descriptor);
java.lang.String _arg0;
_arg0 = data.readString();
int _arg1;
_arg1 = data.readInt();
int _arg2;
_arg2 = data.readInt();
int _arg3;
_arg3 = data.readInt();
this.dispatchAdjustVolume(_arg0, _arg1, _arg2, _arg3);
reply.writeNoException();
return true;
}
case TRANSACTION_addSessionsListener:
{
data.enforceInterface(descriptor);
android.media.session.IActiveSessionsListener _arg0;
_arg0 = android.media.session.IActiveSessionsListener.Stub.asInterface(data.readStrongBinder());
android.content.ComponentName _arg1;
if ((0!=data.readInt())) {
_arg1 = android.content.ComponentName.CREATOR.createFromParcel(data);
}
else {
_arg1 = null;
}
int _arg2;
_arg2 = data.readInt();
this.addSessionsListener(_arg0, _arg1, _arg2);
reply.writeNoException();
return true;
}
case TRANSACTION_removeSessionsListener:
{
data.enforceInterface(descriptor);
android.media.session.IActiveSessionsListener _arg0;
_arg0 = android.media.session.IActiveSessionsListener.Stub.asInterface(data.readStrongBinder());
this.removeSessionsListener(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_setRemoteVolumeController:
{
data.enforceInterface(descriptor);
android.media.IRemoteVolumeController _arg0;
_arg0 = android.media.IRemoteVolumeController.Stub.asInterface(data.readStrongBinder());
this.setRemoteVolumeController(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_isGlobalPriorityActive:
{
data.enforceInterface(descriptor);
boolean _result = this.isGlobalPriorityActive();
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_setCallback:
{
data.enforceInterface(descriptor);
android.media.session.ICallback _arg0;
_arg0 = android.media.session.ICallback.Stub.asInterface(data.readStrongBinder());
this.setCallback(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_setOnVolumeKeyLongPressListener:
{
data.enforceInterface(descriptor);
android.media.session.IOnVolumeKeyLongPressListener _arg0;
_arg0 = android.media.session.IOnVolumeKeyLongPressListener.Stub.asInterface(data.readStrongBinder());
this.setOnVolumeKeyLongPressListener(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_setOnMediaKeyListener:
{
data.enforceInterface(descriptor);
android.media.session.IOnMediaKeyListener _arg0;
_arg0 = android.media.session.IOnMediaKeyListener.Stub.asInterface(data.readStrongBinder());
this.setOnMediaKeyListener(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_isTrusted:
{
data.enforceInterface(descriptor);
java.lang.String _arg0;
_arg0 = data.readString();
int _arg1;
_arg1 = data.readInt();
int _arg2;
_arg2 = data.readInt();
boolean _result = this.isTrusted(_arg0, _arg1, _arg2);
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_createSession2:
{
data.enforceInterface(descriptor);
android.os.Bundle _arg0;
if ((0!=data.readInt())) {
_arg0 = android.os.Bundle.CREATOR.createFromParcel(data);
}
else {
_arg0 = null;
}
boolean _result = this.createSession2(_arg0);
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_destroySession2:
{
data.enforceInterface(descriptor);
android.os.Bundle _arg0;
if ((0!=data.readInt())) {
_arg0 = android.os.Bundle.CREATOR.createFromParcel(data);
}
else {
_arg0 = null;
}
this.destroySession2(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_getSessionTokens:
{
data.enforceInterface(descriptor);
boolean _arg0;
_arg0 = (0!=data.readInt());
boolean _arg1;
_arg1 = (0!=data.readInt());
java.lang.String _arg2;
_arg2 = data.readString();
java.util.List<android.os.Bundle> _result = this.getSessionTokens(_arg0, _arg1, _arg2);
reply.writeNoException();
reply.writeTypedList(_result);
return true;
}
case TRANSACTION_addSessionTokensListener:
{
data.enforceInterface(descriptor);
android.media.ISessionTokensListener _arg0;
_arg0 = android.media.ISessionTokensListener.Stub.asInterface(data.readStrongBinder());
int _arg1;
_arg1 = data.readInt();
java.lang.String _arg2;
_arg2 = data.readString();
this.addSessionTokensListener(_arg0, _arg1, _arg2);
reply.writeNoException();
return true;
}
case TRANSACTION_removeSessionTokensListener:
{
data.enforceInterface(descriptor);
android.media.ISessionTokensListener _arg0;
_arg0 = android.media.ISessionTokensListener.Stub.asInterface(data.readStrongBinder());
java.lang.String _arg1;
_arg1 = data.readString();
this.removeSessionTokensListener(_arg0, _arg1);
reply.writeNoException();
return true;
}
default:
{
return super.onTransact(code, data, reply, flags);
}
}
}
private static class Proxy implements android.media.session.ISessionManager
{
private android.os.IBinder mRemote;
Proxy(android.os.IBinder remote)
{
mRemote = remote;
}
@Override public android.os.IBinder asBinder()
{
return mRemote;
}
public java.lang.String getInterfaceDescriptor()
{
return DESCRIPTOR;
}
@Override public android.media.session.ISession createSession(java.lang.String packageName, android.media.session.ISessionCallback cb, java.lang.String tag, int userId) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
android.media.session.ISession _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeString(packageName);
_data.writeStrongBinder((((cb!=null))?(cb.asBinder()):(null)));
_data.writeString(tag);
_data.writeInt(userId);
mRemote.transact(Stub.TRANSACTION_createSession, _data, _reply, 0);
_reply.readException();
_result = android.media.session.ISession.Stub.asInterface(_reply.readStrongBinder());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public java.util.List<android.os.IBinder> getSessions(android.content.ComponentName compName, int userId) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
java.util.List<android.os.IBinder> _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
if ((compName!=null)) {
_data.writeInt(1);
compName.writeToParcel(_data, 0);
}
else {
_data.writeInt(0);
}
_data.writeInt(userId);
mRemote.transact(Stub.TRANSACTION_getSessions, _data, _reply, 0);
_reply.readException();
_result = _reply.createBinderArrayList();
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public void dispatchMediaKeyEvent(java.lang.String packageName, boolean asSystemService, android.view.KeyEvent keyEvent, boolean needWakeLock) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeString(packageName);
_data.writeInt(((asSystemService)?(1):(0)));
if ((keyEvent!=null)) {
_data.writeInt(1);
keyEvent.writeToParcel(_data, 0);
}
else {
_data.writeInt(0);
}
_data.writeInt(((needWakeLock)?(1):(0)));
mRemote.transact(Stub.TRANSACTION_dispatchMediaKeyEvent, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void dispatchVolumeKeyEvent(java.lang.String packageName, boolean asSystemService, android.view.KeyEvent keyEvent, int stream, boolean musicOnly) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeString(packageName);
_data.writeInt(((asSystemService)?(1):(0)));
if ((keyEvent!=null)) {
_data.writeInt(1);
keyEvent.writeToParcel(_data, 0);
}
else {
_data.writeInt(0);
}
_data.writeInt(stream);
_data.writeInt(((musicOnly)?(1):(0)));
mRemote.transact(Stub.TRANSACTION_dispatchVolumeKeyEvent, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void dispatchAdjustVolume(java.lang.String packageName, int suggestedStream, int delta, int flags) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeString(packageName);
_data.writeInt(suggestedStream);
_data.writeInt(delta);
_data.writeInt(flags);
mRemote.transact(Stub.TRANSACTION_dispatchAdjustVolume, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void addSessionsListener(android.media.session.IActiveSessionsListener listener, android.content.ComponentName compName, int userId) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeStrongBinder((((listener!=null))?(listener.asBinder()):(null)));
if ((compName!=null)) {
_data.writeInt(1);
compName.writeToParcel(_data, 0);
}
else {
_data.writeInt(0);
}
_data.writeInt(userId);
mRemote.transact(Stub.TRANSACTION_addSessionsListener, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void removeSessionsListener(android.media.session.IActiveSessionsListener listener) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeStrongBinder((((listener!=null))?(listener.asBinder()):(null)));
mRemote.transact(Stub.TRANSACTION_removeSessionsListener, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void setRemoteVolumeController(android.media.IRemoteVolumeController rvc) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeStrongBinder((((rvc!=null))?(rvc.asBinder()):(null)));
mRemote.transact(Stub.TRANSACTION_setRemoteVolumeController, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public boolean isGlobalPriorityActive() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
boolean _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_isGlobalPriorityActive, _data, _reply, 0);
_reply.readException();
_result = (0!=_reply.readInt());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public void setCallback(android.media.session.ICallback callback) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeStrongBinder((((callback!=null))?(callback.asBinder()):(null)));
mRemote.transact(Stub.TRANSACTION_setCallback, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void setOnVolumeKeyLongPressListener(android.media.session.IOnVolumeKeyLongPressListener listener) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeStrongBinder((((listener!=null))?(listener.asBinder()):(null)));
mRemote.transact(Stub.TRANSACTION_setOnVolumeKeyLongPressListener, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void setOnMediaKeyListener(android.media.session.IOnMediaKeyListener listener) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeStrongBinder((((listener!=null))?(listener.asBinder()):(null)));
mRemote.transact(Stub.TRANSACTION_setOnMediaKeyListener, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public boolean isTrusted(java.lang.String controllerPackageName, int controllerPid, int controllerUid) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
boolean _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeString(controllerPackageName);
_data.writeInt(controllerPid);
_data.writeInt(controllerUid);
mRemote.transact(Stub.TRANSACTION_isTrusted, _data, _reply, 0);
_reply.readException();
_result = (0!=_reply.readInt());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public boolean createSession2(android.os.Bundle sessionToken) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
boolean _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
if ((sessionToken!=null)) {
_data.writeInt(1);
sessionToken.writeToParcel(_data, 0);
}
else {
_data.writeInt(0);
}
mRemote.transact(Stub.TRANSACTION_createSession2, _data, _reply, 0);
_reply.readException();
_result = (0!=_reply.readInt());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public void destroySession2(android.os.Bundle sessionToken) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
if ((sessionToken!=null)) {
_data.writeInt(1);
sessionToken.writeToParcel(_data, 0);
}
else {
_data.writeInt(0);
}
mRemote.transact(Stub.TRANSACTION_destroySession2, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public java.util.List<android.os.Bundle> getSessionTokens(boolean activeSessionOnly, boolean sessionServiceOnly, java.lang.String packageName) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
java.util.List<android.os.Bundle> _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(((activeSessionOnly)?(1):(0)));
_data.writeInt(((sessionServiceOnly)?(1):(0)));
_data.writeString(packageName);
mRemote.transact(Stub.TRANSACTION_getSessionTokens, _data, _reply, 0);
_reply.readException();
_result = _reply.createTypedArrayList(android.os.Bundle.CREATOR);
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public void addSessionTokensListener(android.media.ISessionTokensListener listener, int userId, java.lang.String packageName) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeStrongBinder((((listener!=null))?(listener.asBinder()):(null)));
_data.writeInt(userId);
_data.writeString(packageName);
mRemote.transact(Stub.TRANSACTION_addSessionTokensListener, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void removeSessionTokensListener(android.media.ISessionTokensListener listener, java.lang.String packageName) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeStrongBinder((((listener!=null))?(listener.asBinder()):(null)));
_data.writeString(packageName);
mRemote.transact(Stub.TRANSACTION_removeSessionTokensListener, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
}
static final int TRANSACTION_createSession = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
static final int TRANSACTION_getSessions = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1);
static final int TRANSACTION_dispatchMediaKeyEvent = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2);
static final int TRANSACTION_dispatchVolumeKeyEvent = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3);
static final int TRANSACTION_dispatchAdjustVolume = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4);
static final int TRANSACTION_addSessionsListener = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5);
static final int TRANSACTION_removeSessionsListener = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6);
static final int TRANSACTION_setRemoteVolumeController = (android.os.IBinder.FIRST_CALL_TRANSACTION + 7);
static final int TRANSACTION_isGlobalPriorityActive = (android.os.IBinder.FIRST_CALL_TRANSACTION + 8);
static final int TRANSACTION_setCallback = (android.os.IBinder.FIRST_CALL_TRANSACTION + 9);
static final int TRANSACTION_setOnVolumeKeyLongPressListener = (android.os.IBinder.FIRST_CALL_TRANSACTION + 10);
static final int TRANSACTION_setOnMediaKeyListener = (android.os.IBinder.FIRST_CALL_TRANSACTION + 11);
static final int TRANSACTION_isTrusted = (android.os.IBinder.FIRST_CALL_TRANSACTION + 12);
static final int TRANSACTION_createSession2 = (android.os.IBinder.FIRST_CALL_TRANSACTION + 13);
static final int TRANSACTION_destroySession2 = (android.os.IBinder.FIRST_CALL_TRANSACTION + 14);
static final int TRANSACTION_getSessionTokens = (android.os.IBinder.FIRST_CALL_TRANSACTION + 15);
static final int TRANSACTION_addSessionTokensListener = (android.os.IBinder.FIRST_CALL_TRANSACTION + 16);
static final int TRANSACTION_removeSessionTokensListener = (android.os.IBinder.FIRST_CALL_TRANSACTION + 17);
}
public android.media.session.ISession createSession(java.lang.String packageName, android.media.session.ISessionCallback cb, java.lang.String tag, int userId) throws android.os.RemoteException;
public java.util.List<android.os.IBinder> getSessions(android.content.ComponentName compName, int userId) throws android.os.RemoteException;
public void dispatchMediaKeyEvent(java.lang.String packageName, boolean asSystemService, android.view.KeyEvent keyEvent, boolean needWakeLock) throws android.os.RemoteException;
public void dispatchVolumeKeyEvent(java.lang.String packageName, boolean asSystemService, android.view.KeyEvent keyEvent, int stream, boolean musicOnly) throws android.os.RemoteException;
public void dispatchAdjustVolume(java.lang.String packageName, int suggestedStream, int delta, int flags) throws android.os.RemoteException;
public void addSessionsListener(android.media.session.IActiveSessionsListener listener, android.content.ComponentName compName, int userId) throws android.os.RemoteException;
public void removeSessionsListener(android.media.session.IActiveSessionsListener listener) throws android.os.RemoteException;
public void setRemoteVolumeController(android.media.IRemoteVolumeController rvc) throws android.os.RemoteException;
public boolean isGlobalPriorityActive() throws android.os.RemoteException;
public void setCallback(android.media.session.ICallback callback) throws android.os.RemoteException;
public void setOnVolumeKeyLongPressListener(android.media.session.IOnVolumeKeyLongPressListener listener) throws android.os.RemoteException;
public void setOnMediaKeyListener(android.media.session.IOnMediaKeyListener listener) throws android.os.RemoteException;
public boolean isTrusted(java.lang.String controllerPackageName, int controllerPid, int controllerUid) throws android.os.RemoteException;
public boolean createSession2(android.os.Bundle sessionToken) throws android.os.RemoteException;
public void destroySession2(android.os.Bundle sessionToken) throws android.os.RemoteException;
public java.util.List<android.os.Bundle> getSessionTokens(boolean activeSessionOnly, boolean sessionServiceOnly, java.lang.String packageName) throws android.os.RemoteException;
public void addSessionTokensListener(android.media.ISessionTokensListener listener, int userId, java.lang.String packageName) throws android.os.RemoteException;
public void removeSessionTokensListener(android.media.ISessionTokensListener listener, java.lang.String packageName) throws android.os.RemoteException;
}