• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2015 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 
17 package android.car.media;
18 
19 import android.car.media.ICarAudioCallback;
20 import android.media.AudioAttributes;
21 import android.media.IVolumeController;
22 
23 /**
24  * Binder interface for {@link android.car.media.CarAudioManager}.
25  * Check {@link android.car.media.CarAudioManager} APIs for expected behavior of each calls.
26  *
27  * @hide
28  */
29 interface ICarAudio {
getAudioAttributesForCarUsage(int carUsage)30     AudioAttributes getAudioAttributesForCarUsage(int carUsage) = 0;
setStreamVolume(int streamType, int index, int flags)31     void setStreamVolume(int streamType, int index, int flags) = 1;
32     void setVolumeController(IVolumeController controller) = 2;
getStreamMaxVolume(int streamType)33     int getStreamMaxVolume(int streamType) = 3;
getStreamMinVolume(int streamType)34     int getStreamMinVolume(int streamType) = 4;
getStreamVolume(int streamType)35     int getStreamVolume(int streamType) = 5;
isMediaMuted()36     boolean isMediaMuted() = 6;
setMediaMute(boolean mute)37     boolean setMediaMute(boolean mute) = 7;
38     AudioAttributes getAudioAttributesForRadio(in String radioType) = 8;
39     AudioAttributes getAudioAttributesForExternalSource(in String externalSourceType) = 9;
getSupportedExternalSourceTypes()40     String[] getSupportedExternalSourceTypes() = 10;
getSupportedRadioTypes()41     String[] getSupportedRadioTypes() = 11;
getParameterKeys()42     String[] getParameterKeys() = 12;
43     void setParameters(in String parameters) = 13;
44     String getParameters(in String keys) = 14;
45     void registerOnParameterChangeListener(in ICarAudioCallback callback) = 15;
46     void unregisterOnParameterChangeListener(in ICarAudioCallback callback) = 16;
47 }
48