OSDN Git Service

theme engine fixes
[android-x86/packages-apps-Eleven.git] / src / com / android / music / IMediaPlaybackService.aidl
1 /* //device/samples/SampleCode/src/com/android/samples/app/RemoteServiceInterface.java\r
2 **\r
3 ** Copyright 2007, The Android Open Source Project\r
4 **\r
5 ** Licensed under the Apache License, Version 2.0 (the "License"); \r
6 ** you may not use this file except in compliance with the License. \r
7 ** You may obtain a copy of the License at \r
8 **\r
9 **     http://www.apache.org/licenses/LICENSE-2.0 \r
10 **\r
11 ** Unless required by applicable law or agreed to in writing, software \r
12 ** distributed under the License is distributed on an "AS IS" BASIS, \r
13 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. \r
14 ** See the License for the specific language governing permissions and \r
15 ** limitations under the License.\r
16 */\r
17 \r
18 package com.android.music;\r
19 \r
20 import android.graphics.Bitmap;\r
21 \r
22 interface IMediaPlaybackService\r
23 {\r
24     void openFile(String path);\r
25     void open(in long [] list, int position);\r
26     int getQueuePosition();\r
27     boolean isPlaying();\r
28     void stop();\r
29     void pause();\r
30     void play();\r
31     void prev();\r
32     void next();\r
33     void cycleRepeat();\r
34     void toggleShuffle();\r
35     long duration();\r
36     long position();\r
37     long seek(long pos);\r
38     String getTrackName();\r
39     String getAlbumName();\r
40     long getAlbumId();\r
41     String getArtistName();\r
42     long getArtistId();\r
43     String getAlbumartistName();\r
44     long getAlbumartistId();\r
45     void enqueue(in long [] list, int action);\r
46     long [] getQueue();\r
47     void moveQueueItem(int from, int to);\r
48     void setQueuePosition(int index);\r
49     String getPath();\r
50     long getAudioId();\r
51     void setShuffleMode(int shufflemode);\r
52     int getShuffleMode();\r
53     int removeTracks(int first, int last);\r
54     int removeTrack(long id);\r
55     void setRepeatMode(int repeatmode);\r
56     int getRepeatMode();\r
57     int getMediaMountedCount();\r
58     int getAudioSessionId();\r
59 }\r
60 \r