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 
18 package com.android.music;
19 
20 import android.graphics.Bitmap;
21 
22 interface IMediaPlaybackService
23 {
openFile(String path)24     void openFile(String path);
open(in long [] list, int position)25     void open(in long [] list, int position);
getQueuePosition()26     int getQueuePosition();
isPlaying()27     boolean isPlaying();
stop()28     void stop();
pause()29     void pause();
play()30     void play();
prev()31     void prev();
next()32     void next();
duration()33     long duration();
position()34     long position();
seek(long pos)35     long seek(long pos);
getTrackName()36     String getTrackName();
getAlbumName()37     String getAlbumName();
getAlbumId()38     long getAlbumId();
getArtistName()39     String getArtistName();
getArtistId()40     long getArtistId();
enqueue(in long [] list, int action)41     void enqueue(in long [] list, int action);
getQueue()42     long [] getQueue();
moveQueueItem(int from, int to)43     void moveQueueItem(int from, int to);
setQueuePosition(int index)44     void setQueuePosition(int index);
getPath()45     String getPath();
getAudioId()46     long getAudioId();
setShuffleMode(int shufflemode)47     void setShuffleMode(int shufflemode);
getShuffleMode()48     int getShuffleMode();
removeTracks(int first, int last)49     int removeTracks(int first, int last);
removeTrack(long id)50     int removeTrack(long id);
setRepeatMode(int repeatmode)51     void setRepeatMode(int repeatmode);
getRepeatMode()52     int getRepeatMode();
getMediaMountedCount()53     int getMediaMountedCount();
getAudioSessionId()54     int getAudioSessionId();
55 }
56 
57