summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorJohn Spurlock <jspurlock@google.com>2015-02-11 19:04:11 -0500
committerJohn Spurlock <jspurlock@google.com>2015-02-12 22:48:37 -0500
commitcdb57aeb0e2c83a887c86da0ca2a890df7f02f41 (patch)
treecd58462862527b7eb432d1749e5752745f1b8889 /media
parentad680d46be19cbee16d42cbed4d2ed250648ac0b (diff)
downloadframeworks_base-cdb57aeb0e2c83a887c86da0ca2a890df7f02f41.zip
frameworks_base-cdb57aeb0e2c83a887c86da0ca2a890df7f02f41.tar.gz
frameworks_base-cdb57aeb0e2c83a887c86da0ca2a890df7f02f41.tar.bz2
Allow sysui-managed remote volume controllers.
- Relax restriction on audio service calls that assume the volume ui is systemui, allow calls from a blessed component app. - Blessed component app service saved in secure settings. - SystemUI mediates requests to replace the volume dialog, prompts the user on activation. - Show a low pri ongoing notification when the volume dialog is being replaced, to allow user restoration at any time. - Replace the controller management code in VolumeUI to use a ServiceMonitor, backed by the new blessed app component setting. - Add proper zen-related noman client wrappers, make avail to the registered volume controller. - Everything is still @hidden, no api impact. Bug: 19260237 Change-Id: Ie1383f57659090318a7eda737fdad5b8f88737d4
Diffstat (limited to 'media')
-rw-r--r--media/java/android/media/AudioManagerInternal.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/media/java/android/media/AudioManagerInternal.java b/media/java/android/media/AudioManagerInternal.java
index 873c142..ef5710c 100644
--- a/media/java/android/media/AudioManagerInternal.java
+++ b/media/java/android/media/AudioManagerInternal.java
@@ -15,8 +15,6 @@
*/
package android.media;
-import android.os.IBinder;
-
import com.android.server.LocalServices;
/**
@@ -47,6 +45,8 @@ public abstract class AudioManagerInternal {
public abstract void setRingerModeInternal(int ringerMode, String caller);
+ public abstract int getVolumeControllerUid();
+
public interface RingerModeDelegate {
/** Called when external ringer mode is evaluated, returns the new internal ringer mode */
int onSetRingerModeExternal(int ringerModeOld, int ringerModeNew, String caller,