1 /* //device/samples/SampleCode/src/com/android/samples/app/RemoteServiceInterface.java
\r
3 ** Copyright 2007, The Android Open Source Project
\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
9 ** http://www.apache.org/licenses/LICENSE-2.0
\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
18 package com.android.music;
\r
20 import android.graphics.Bitmap;
\r
22 interface IMediaPlaybackService
\r
24 void openFile(String path);
\r
25 void open(in long [] list, int position);
\r
26 int getQueuePosition();
\r
27 boolean isPlaying();
\r
34 void toggleShuffle();
\r
37 long seek(long pos);
\r
38 String getTrackName();
\r
39 String getAlbumName();
\r
41 String getArtistName();
\r
43 String getAlbumartistName();
\r
44 long getAlbumartistId();
\r
45 void enqueue(in long [] list, int action);
\r
47 void moveQueueItem(int from, int to);
\r
48 void setQueuePosition(int index);
\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