The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 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 | { |
Marco Nelissen | b7841ac | 2009-05-05 14:36:25 -0700 | [diff] [blame] | 24 | void openFile(String path, boolean oneShot); |
| 25 | void openFileAsync(String path); |
Marco Nelissen | bd447b6 | 2009-06-29 14:52:05 -0700 | [diff] [blame] | 26 | void open(in long [] list, int position); |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 27 | int getQueuePosition(); |
| 28 | boolean isPlaying(); |
| 29 | void stop(); |
| 30 | void pause(); |
| 31 | void play(); |
| 32 | void prev(); |
| 33 | void next(); |
| 34 | long duration(); |
| 35 | long position(); |
| 36 | long seek(long pos); |
| 37 | String getTrackName(); |
| 38 | String getAlbumName(); |
Marco Nelissen | bd447b6 | 2009-06-29 14:52:05 -0700 | [diff] [blame] | 39 | long getAlbumId(); |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 40 | String getArtistName(); |
Marco Nelissen | bd447b6 | 2009-06-29 14:52:05 -0700 | [diff] [blame] | 41 | long getArtistId(); |
| 42 | void enqueue(in long [] list, int action); |
| 43 | long [] getQueue(); |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 44 | void moveQueueItem(int from, int to); |
| 45 | void setQueuePosition(int index); |
| 46 | String getPath(); |
Marco Nelissen | bd447b6 | 2009-06-29 14:52:05 -0700 | [diff] [blame] | 47 | long getAudioId(); |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 48 | void setShuffleMode(int shufflemode); |
| 49 | int getShuffleMode(); |
| 50 | int removeTracks(int first, int last); |
Marco Nelissen | bd447b6 | 2009-06-29 14:52:05 -0700 | [diff] [blame] | 51 | int removeTrack(long id); |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 52 | void setRepeatMode(int repeatmode); |
| 53 | int getRepeatMode(); |
| 54 | int getMediaMountedCount(); |
| 55 | } |
| 56 | |