aboutsummaryrefslogtreecommitdiff
path: root/car-lib/api/current.txt
diff options
context:
space:
mode:
authorYao Chen <yaochen@google.com>2016-04-08 11:33:47 -0700
committerYao Chen <yaochen@google.com>2016-04-18 16:58:14 -0700
commitc4d442f4a0d3acf90b1c7a1dd7c222a8f32a193f (patch)
tree9a4681b75173c143dbd2cf94fda4521bbbcea7a1 /car-lib/api/current.txt
parent57708444f4bdc623339227766335f56ed666f85a (diff)
downloadCar-c4d442f4a0d3acf90b1c7a1dd7c222a8f32a193f.tar.gz
Add CarVolumeService
Things added in this cl: + Hook up hardware volume keys to CarVolumeService to directly update volume for current audio context. + Added volume control apis in AudioManager, and the real implementation is done in CarVolumeService + The volume updates from car is broadcast to listeners through IVolumeController api which is already in framework. SystemUI is using this api to listen to volume changes (through AudioManager). + Added new permission for volume controls Main TODOs left: + Multi stream playing at the same time. This can be done through adjustign software mixer gain on Android side. Utility functions to compute the gain is added in VolumeUtils, but it's not used yet in CarVolumeService. + Hook up with Settings so per stream volume can be persisted across multiple boots. Bug: 27595951 Change-Id: I3a63e423d4e0a347215af65e79926212e4503d1b
Diffstat (limited to 'car-lib/api/current.txt')
-rw-r--r--car-lib/api/current.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/car-lib/api/current.txt b/car-lib/api/current.txt
index a24febf091..56705c7353 100644
--- a/car-lib/api/current.txt
+++ b/car-lib/api/current.txt
@@ -14,6 +14,7 @@ package android.car {
field public static final int CONNECTION_TYPE_EMBEDDED = 5; // 0x5
field public static final java.lang.String INFO_SERVICE = "info";
field public static final java.lang.String PACKAGE_SERVICE = "package";
+ field public static final java.lang.String PERMISSION_CAR_CONTROL_AUDIO_VOLUME = "android.car.permission.CAR_CONTROL_AUDIO_VOLUME";
field public static final java.lang.String PERMISSION_FUEL = "android.car.permission.CAR_FUEL";
field public static final java.lang.String PERMISSION_MILEAGE = "android.car.permission.CAR_MILEAGE";
field public static final java.lang.String PERMISSION_SPEED = "android.car.permission.CAR_SPEED";
@@ -329,8 +330,12 @@ package android.car.media {
public class CarAudioManager {
method public int abandonAudioFocus(android.media.AudioManager.OnAudioFocusChangeListener, android.media.AudioAttributes);
method public android.media.AudioAttributes getAudioAttributesForCarUsage(int);
+ method public int getStreamMaxVolume(int) throws android.car.CarNotConnectedException;
+ method public int getStreamMinVolume(int) throws android.car.CarNotConnectedException;
+ method public int getStreamVolume(int) throws android.car.CarNotConnectedException;
method public void onCarDisconnected();
method public int requestAudioFocus(android.media.AudioManager.OnAudioFocusChangeListener, android.media.AudioAttributes, int, int) throws java.lang.IllegalArgumentException;
+ method public void setStreamVolume(int, int, int) throws android.car.CarNotConnectedException;
field public static final int CAR_AUDIO_USAGE_ALARM = 6; // 0x6
field public static final int CAR_AUDIO_USAGE_DEFAULT = 0; // 0x0
field public static final int CAR_AUDIO_USAGE_MUSIC = 1; // 0x1