From ba50b97cff80e73620a0e3d13cae169e095974a7 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Tue, 30 Apr 2013 15:04:46 -0700 Subject: 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 --- policy/src/com/android/internal/policy/impl/PhoneWindowManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'policy') 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 { -- cgit v1.1