📄 imediaplaybackservice.java
字号:
/* * This file is auto-generated. DO NOT MODIFY. * Original file: /work/android-src/myandroid/packages/apps/Music/src/com.android.imusic/IMediaPlaybackService.aidl */package com.android.imusic;import java.lang.String;import android.os.RemoteException;import android.os.IBinder;import android.os.IInterface;import android.os.Binder;import android.os.Parcel;public interface IMediaPlaybackService extends android.os.IInterface{/** Local-side IPC implementation stub class. */public static abstract class Stub extends android.os.Binder implements com.android.imusic.IMediaPlaybackService{private static final java.lang.String DESCRIPTOR = "com.android.imusic.IMediaPlaybackService";/** Construct the stub at attach it to the interface. */public Stub(){this.attachInterface(this, DESCRIPTOR);}/** * Cast an IBinder object into an IMediaPlaybackService interface, * generating a proxy if needed. */public static com.android.imusic.IMediaPlaybackService asInterface(android.os.IBinder obj){if ((obj==null)) {return null;}com.android.imusic.IMediaPlaybackService in = (com.android.imusic.IMediaPlaybackService)obj.queryLocalInterface(DESCRIPTOR);if ((in!=null)) {return in;}return new com.android.imusic.IMediaPlaybackService.Stub.Proxy(obj);}public android.os.IBinder asBinder(){return this;}public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException{switch (code){case INTERFACE_TRANSACTION:{reply.writeString(DESCRIPTOR);return true;}case TRANSACTION_openfile:{data.enforceInterface(DESCRIPTOR);java.lang.String _arg0;_arg0 = data.readString();this.openfile(_arg0);reply.writeNoException();return true;}case TRANSACTION_openfileAsync:{data.enforceInterface(DESCRIPTOR);java.lang.String _arg0;_arg0 = data.readString();this.openfileAsync(_arg0);reply.writeNoException();return true;}case TRANSACTION_open:{data.enforceInterface(DESCRIPTOR);int[] _arg0;_arg0 = data.createIntArray();int _arg1;_arg1 = data.readInt();this.open(_arg0, _arg1);reply.writeNoException();return true;}case TRANSACTION_getQueuePosition:{data.enforceInterface(DESCRIPTOR);int _result = this.getQueuePosition();reply.writeNoException();reply.writeInt(_result);return true;}case TRANSACTION_isPlaying:{data.enforceInterface(DESCRIPTOR);boolean _result = this.isPlaying();reply.writeNoException();reply.writeInt(((_result)?(1):(0)));return true;}case TRANSACTION_stop:{data.enforceInterface(DESCRIPTOR);this.stop();reply.writeNoException();return true;}case TRANSACTION_pause:{data.enforceInterface(DESCRIPTOR);this.pause();reply.writeNoException();return true;}case TRANSACTION_play:{data.enforceInterface(DESCRIPTOR);this.play();reply.writeNoException();return true;}case TRANSACTION_prev:{data.enforceInterface(DESCRIPTOR);this.prev();reply.writeNoException();return true;}case TRANSACTION_next:{data.enforceInterface(DESCRIPTOR);this.next();reply.writeNoException();return true;}case TRANSACTION_duration:{data.enforceInterface(DESCRIPTOR);long _result = this.duration();reply.writeNoException();reply.writeLong(_result);return true;}case TRANSACTION_position:{data.enforceInterface(DESCRIPTOR);long _result = this.position();reply.writeNoException();reply.writeLong(_result);return true;}case TRANSACTION_seek:{data.enforceInterface(DESCRIPTOR);long _arg0;_arg0 = data.readLong();long _result = this.seek(_arg0);reply.writeNoException();reply.writeLong(_result);return true;}case TRANSACTION_getTrackName:{data.enforceInterface(DESCRIPTOR);java.lang.String _result = this.getTrackName();reply.writeNoException();reply.writeString(_result);return true;}case TRANSACTION_getAlbumName:{data.enforceInterface(DESCRIPTOR);java.lang.String _result = this.getAlbumName();reply.writeNoException();reply.writeString(_result);return true;}case TRANSACTION_getAlbumId:{data.enforceInterface(DESCRIPTOR);int _result = this.getAlbumId();reply.writeNoException();reply.writeInt(_result);return true;}case TRANSACTION_getArtistName:{data.enforceInterface(DESCRIPTOR);java.lang.String _result = this.getArtistName();reply.writeNoException();reply.writeString(_result);return true;}case TRANSACTION_getArtistId:{data.enforceInterface(DESCRIPTOR);int _result = this.getArtistId();reply.writeNoException();reply.writeInt(_result);return true;}case TRANSACTION_enqueue:{data.enforceInterface(DESCRIPTOR);int[] _arg0;_arg0 = data.createIntArray();int _arg1;_arg1 = data.readInt();this.enqueue(_arg0, _arg1);reply.writeNoException();return true;}case TRANSACTION_getQueue:{data.enforceInterface(DESCRIPTOR);int[] _result = this.getQueue();reply.writeNoException();reply.writeIntArray(_result);return true;}case TRANSACTION_moveQueueItem:{data.enforceInterface(DESCRIPTOR);int _arg0;_arg0 = data.readInt();int _arg1;_arg1 = data.readInt();this.moveQueueItem(_arg0, _arg1);reply.writeNoException();return true;}case TRANSACTION_setQueuePosition:{data.enforceInterface(DESCRIPTOR);int _arg0;_arg0 = data.readInt();this.setQueuePosition(_arg0);reply.writeNoException();return true;}case TRANSACTION_getPath:{data.enforceInterface(DESCRIPTOR);java.lang.String _result = this.getPath();reply.writeNoException();reply.writeString(_result);return true;}case TRANSACTION_getAudioId:{data.enforceInterface(DESCRIPTOR);int _result = this.getAudioId();reply.writeNoException();reply.writeInt(_result);return true;}case TRANSACTION_setShuffleMode:{data.enforceInterface(DESCRIPTOR);int _arg0;_arg0 = data.readInt();this.setShuffleMode(_arg0);reply.writeNoException();return true;}case TRANSACTION_getShuffleMode:{data.enforceInterface(DESCRIPTOR);int _result = this.getShuffleMode();reply.writeNoException();reply.writeInt(_result);return true;}case TRANSACTION_removeTracks:{data.enforceInterface(DESCRIPTOR);int _arg0;_arg0 = data.readInt();int _arg1;_arg1 = data.readInt();int _result = this.removeTracks(_arg0, _arg1);reply.writeNoException();reply.writeInt(_result);return true;}case TRANSACTION_removeTrack:{data.enforceInterface(DESCRIPTOR);int _arg0;_arg0 = data.readInt();int _result = this.removeTrack(_arg0);reply.writeNoException();reply.writeInt(_result);return true;}case TRANSACTION_setRepeatMode:{data.enforceInterface(DESCRIPTOR);int _arg0;_arg0 = data.readInt();this.setRepeatMode(_arg0);reply.writeNoException();return true;}case TRANSACTION_getRepeatMode:{data.enforceInterface(DESCRIPTOR);int _result = this.getRepeatMode();reply.writeNoException();reply.writeInt(_result);return true;}case TRANSACTION_getMediaMountedCount:{data.enforceInterface(DESCRIPTOR);int _result = this.getMediaMountedCount();reply.writeNoException();reply.writeInt(_result);return true;}}return super.onTransact(code, data, reply, flags);}private static class Proxy implements com.android.imusic.IMediaPlaybackService{private android.os.IBinder mRemote;Proxy(android.os.IBinder remote){mRemote = remote;}public android.os.IBinder asBinder(){return mRemote;}public java.lang.String getInterfaceDescriptor(){return DESCRIPTOR;}public void openfile(java.lang.String path) 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(path);mRemote.transact(Stub.TRANSACTION_openfile, _data, _reply, 0);_reply.readException();}finally {_reply.recycle();_data.recycle();}}public void openfileAsync(java.lang.String path) 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(path);mRemote.transact(Stub.TRANSACTION_openfileAsync, _data, _reply, 0);_reply.readException();}finally {_reply.recycle();_data.recycle();}}public void open(int[] list, int position) 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.writeIntArray(list);_data.writeInt(position);mRemote.transact(Stub.TRANSACTION_open, _data, _reply, 0);_reply.readException();}finally {_reply.recycle();_data.recycle();}}public int getQueuePosition() throws android.os.RemoteException{android.os.Parcel _data = android.os.Parcel.obtain();android.os.Parcel _reply = android.os.Parcel.obtain();int _result;try {_data.writeInterfaceToken(DESCRIPTOR);mRemote.transact(Stub.TRANSACTION_getQueuePosition, _data, _reply, 0);_reply.readException();_result = _reply.readInt();}finally {_reply.recycle();_data.recycle();}return _result;}public boolean isPlaying() 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_isPlaying, _data, _reply, 0);_reply.readException();_result = (0!=_reply.readInt());}finally {_reply.recycle();_data.recycle();}return _result;}public void stop() throws android.os.RemoteException{android.os.Parcel _data = android.os.Parcel.obtain();android.os.Parcel _reply = android.os.Parcel.obtain();try {_data.writeInterfaceToken(DESCRIPTOR);mRemote.transact(Stub.TRANSACTION_stop, _data, _reply, 0);_reply.readException();}finally {_reply.recycle();_data.recycle();}}public void pause() throws android.os.RemoteException{android.os.Parcel _data = android.os.Parcel.obtain();android.os.Parcel _reply = android.os.Parcel.obtain();try {_data.writeInterfaceToken(DESCRIPTOR);mRemote.transact(Stub.TRANSACTION_pause, _data, _reply, 0);_reply.readException();}finally {_reply.recycle();_data.recycle();}}public void play() throws android.os.RemoteException{android.os.Parcel _data = android.os.Parcel.obtain();android.os.Parcel _reply = android.os.Parcel.obtain();try {_data.writeInterfaceToken(DESCRIPTOR);mRemote.transact(Stub.TRANSACTION_play, _data, _reply, 0);_reply.readException();}finally {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -