IAudioService.aidl revision 9066cfe9886ac131c34d59ed0e2d287b0e3c0087
1/* 2 * Copyright (C) 2007 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17package android.media; 18 19/** 20 * {@hide} 21 */ 22interface IAudioService { 23 24 void adjustVolume(int direction, int flags); 25 26 void adjustSuggestedStreamVolume(int direction, int suggestedStreamType, int flags); 27 28 void adjustStreamVolume(int streamType, int direction, int flags); 29 30 void setStreamVolume(int streamType, int index, int flags); 31 32 void setStreamSolo(int streamType, boolean state, IBinder cb); 33 34 void setStreamMute(int streamType, boolean state, IBinder cb); 35 36 int getStreamVolume(int streamType); 37 38 int getStreamMaxVolume(int streamType); 39 40 void setRingerMode(int ringerMode); 41 42 int getRingerMode(); 43 44 void setVibrateSetting(int vibrateType, int vibrateSetting); 45 46 int getVibrateSetting(int vibrateType); 47 48 boolean shouldVibrate(int vibrateType); 49 50 void setMicrophoneMute(boolean on); 51 52 boolean isMicrophoneMute(); 53 54 void setMode(int mode); 55 56 int getMode(); 57 58 void setRouting(int mode, int routes, int mask); 59 60 int getRouting(int mode); 61 62 boolean isMusicActive(); 63 64 void setParameter(String key, String value); 65 66 oneway void playSoundEffect(int effectType); 67 68 oneway void playSoundEffectVolume(int effectType, float volume); 69 70 boolean loadSoundEffects(); 71 72 oneway void unloadSoundEffects(); 73 74} 75