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