summaryrefslogtreecommitdiffstats
path: root/policy
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2013-04-30 15:04:46 -0700
committerDianne Hackborn <hackbod@google.com>2013-05-06 16:12:12 -0700
commitba50b97cff80e73620a0e3d13cae169e095974a7 (patch)
treef75f981f8a40486a479f224a0afc16e1babce775 /policy
parent72bd95b8feb7ef41eb5dd00003b1aed8f30f4abe (diff)
downloadframeworks_base-ba50b97cff80e73620a0e3d13cae169e095974a7.zip
frameworks_base-ba50b97cff80e73620a0e3d13cae169e095974a7.tar.gz
frameworks_base-ba50b97cff80e73620a0e3d13cae169e095974a7.tar.bz2
Add new app ops for various interesting audio service things.
Media buttons: note when an application tries to take ownership of the media buttons. Audio focus: note when an application tries to take audio focus. Volume levels: note changes to the volume level of the various streams. Maybe we should also have some ops for muting streams, soloing streams, etc? Change-Id: I79a5d477b0bad4ff61486cdb73ffb1196a674964
Diffstat (limited to 'policy')
-rw-r--r--policy/src/com/android/internal/policy/impl/PhoneWindowManager.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
index a093630..2b0e27a 100644
--- a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
+++ b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
@@ -3567,7 +3567,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
keycode == KeyEvent.KEYCODE_VOLUME_UP
? AudioManager.ADJUST_RAISE
: AudioManager.ADJUST_LOWER,
- 0);
+ 0,
+ mContext.getBasePackageName());
} catch (RemoteException e) {
Log.w(TAG, "IAudioService.adjustStreamVolume() threw RemoteException " + e);
} finally {