Bug 3352047 Wrong message when adjusting volume
Add hidden AudioManager.getDevicesForStream and output device codes. Change-Id: I4d1c1d3b6a077cd117720817d1f733dda557b947
This commit is contained in:
@@ -18,7 +18,8 @@ package android.media;
|
||||
|
||||
|
||||
/* IF YOU CHANGE ANY OF THE CONSTANTS IN THIS FILE, DO NOT FORGET
|
||||
* TO UPDATE THE CORRESPONDING NATIVE GLUE. THANK YOU FOR YOUR COOPERATION
|
||||
* TO UPDATE THE CORRESPONDING NATIVE GLUE AND AudioManager.java.
|
||||
* THANK YOU FOR YOUR COOPERATION.
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -29,7 +30,7 @@ public class AudioSystem
|
||||
/* FIXME: Need to finalize this and correlate with native layer */
|
||||
/*
|
||||
* If these are modified, please also update Settings.System.VOLUME_SETTINGS
|
||||
* and attrs.xml
|
||||
* and attrs.xml and AudioManager.java.
|
||||
*/
|
||||
/* The audio stream for phone calls */
|
||||
public static final int STREAM_VOICE_CALL = 0;
|
||||
@@ -232,7 +233,7 @@ public class AudioSystem
|
||||
* AudioPolicyService methods
|
||||
*/
|
||||
|
||||
// output devices
|
||||
// output devices, be sure to update AudioManager.java also
|
||||
public static final int DEVICE_OUT_EARPIECE = 0x1;
|
||||
public static final int DEVICE_OUT_SPEAKER = 0x2;
|
||||
public static final int DEVICE_OUT_WIRED_HEADSET = 0x4;
|
||||
@@ -295,4 +296,5 @@ public class AudioSystem
|
||||
public static native int initStreamVolume(int stream, int indexMin, int indexMax);
|
||||
public static native int setStreamVolumeIndex(int stream, int index);
|
||||
public static native int getStreamVolumeIndex(int stream);
|
||||
public static native int getDevicesForStream(int stream);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user