diff options
author | John Spurlock <jspurlock@google.com> | 2015-03-03 17:35:57 -0500 |
---|---|---|
committer | John Spurlock <jspurlock@google.com> | 2015-03-12 13:57:08 -0400 |
commit | a48d779dad4c48aa2f97ad021ae3a5649c058312 (patch) | |
tree | cb1bc381bdd1716ee4606aaadca4695af5a8c491 /packages/SystemUI/src/com/android/systemui/volume | |
parent | 80c24d4a27573b90368e78a155abe90849db1b06 (diff) | |
download | frameworks_base-a48d779dad4c48aa2f97ad021ae3a5649c058312.zip frameworks_base-a48d779dad4c48aa2f97ad021ae3a5649c058312.tar.gz frameworks_base-a48d779dad4c48aa2f97ad021ae3a5649c058312.tar.bz2 |
Volume policy updates.
- Make volume policy settable by the volume UI instead
of hardcoded in AudioService.
- Add status bar icon for silent mode.
- Limit unmute-on-volume-adjust behavior to tvs.
- Ensure all changes to device volume are sent through
setIndex so no change events are missed.
Bug: 19260237
Change-Id: Iea070a7a6f90ff620e39629f2da3f33f87223d72
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/volume')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java b/packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java index 7603c7d..687452d 100644 --- a/packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java +++ b/packages/SystemUI/src/com/android/systemui/volume/VolumeUI.java @@ -31,6 +31,7 @@ import android.content.res.Configuration; import android.media.AudioManager; import android.media.IRemoteVolumeController; import android.media.IVolumeController; +import android.media.VolumePolicy; import android.media.session.ISessionController; import android.media.session.MediaController; import android.media.session.MediaSessionManager; @@ -114,6 +115,7 @@ public class VolumeUI extends SystemUI { if (register) { if (LOGD) Log.d(TAG, "Registering default volume controller"); mAudioManager.setVolumeController(mVolumeController); + mAudioManager.setVolumePolicy(VolumePolicy.DEFAULT); mMediaSessionManager.setRemoteVolumeController(mRemoteVolumeController); DndTile.setVisible(mContext, false); } else { |