1 /* //device/samples/SampleCode/src/com/android/samples/app/RemoteServiceInterface.java
3 ** Copyright 2007, The Android Open Source Project
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
9 ** http://www.apache.org/licenses/LICENSE-2.0
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.
18 package com.android.music;
20 import android.graphics.Bitmap;
22 interface IMediaPlaybackService
24 void openFile(String path, boolean oneShot);
25 void openFileAsync(String path);
26 void open(in int [] list, int position);
27 int getQueuePosition();
37 String getTrackName();
38 String getAlbumName();
40 String getArtistName();
42 void enqueue(in int [] list, int action);
44 void moveQueueItem(int from, int to);
45 void setQueuePosition(int index);
48 void setShuffleMode(int shufflemode);
50 int removeTracks(int first, int last);
51 int removeTrack(int id);
52 void setRepeatMode(int repeatmode);
54 int getMediaMountedCount();