50ced3f3231a26ddcafbc84600d7cf3f5a2a40d5 |
|
11-May-2015 |
John Spurlock <jspurlock@google.com> |
Zen: Ringer mode integration fixes. - Properly mute media + alarm streams in total silence. - Allow system components to update the "ringer mode affected" streams dynamically. - Improve dumpsys output for ringer mode streams (include names). - Remember last ringer mode properly when entering dnd via a volume down (so we can restore it properly when exiting). Bug: 20854925 Bug: 20950463 Bug: 20756527 Change-Id: I80afc1f639ff802c541020e25ade1b23e9997ef9
/frameworks/base/media/java/android/media/AudioManagerInternal.java
|
d9c75dba75ad4742dbaadc34db99d2b76cebca91 |
|
28-Apr-2015 |
John Spurlock <jspurlock@google.com> |
Volume: Simple dialog footer, DND in quick settings. - Show DND tile by default, this is now the only place to manage DND modes / end conditions. - Remove super footer from volume dialog, replace with a simplified version that displays the current mode and allows ending DND. - Remove obsolete text-only footer from codebase. - Migrate remaining volume items into main resource files. - Rename "No interruptions" to "Total silence". - Add new user information banner for "Total silence" - Crude media filtering for Total Silence. (deeper muting changes will be done as a followup) - Disable volume dialog sliders completely if muted due to zen. - Cleanup ZenModePanel: assume embedded mode, remove expandable subhead - Remember "favorite" DND mode inside the DND config panel. - AudioService: consult ringer-mode-delegate before voluming down into silent. - Add new hour options to time-based exit conditions. - Volume dialog visual updates to move closer to final visuals. - Unify ringer=silent with DND. Bug: 19260237 Change-Id: I05d7e001eca3b5125418ec3bc4087d0cb8866717
/frameworks/base/media/java/android/media/AudioManagerInternal.java
|
a48d779dad4c48aa2f97ad021ae3a5649c058312 |
|
03-Mar-2015 |
John Spurlock <jspurlock@google.com> |
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
/frameworks/base/media/java/android/media/AudioManagerInternal.java
|
9087433753a5068819dcd3e86bdc2cce82bb8040 |
|
10-Mar-2015 |
John Spurlock <jspurlock@google.com> |
AudioService: Write base stream volume changes to the event log. - Add a new volume_changed event, reported at the stream level. - Only include changes to base streams (no aliases). - Include the caller for each change. A caller is either: - a pkg name (for external calls or known media sessions) - a system server class's log tag (for internal calls, disambiguates "android") Bug: 19599935 Change-Id: Ia61b68ff1e7e2907a24972790ec052bfe099e665
/frameworks/base/media/java/android/media/AudioManagerInternal.java
|
ee5ad729b90deff435f9875337cbc434be4f8fe7 |
|
03-Mar-2015 |
John Spurlock <jspurlock@google.com> |
Audio: Remove the concept of master volume. - Remove two config resources (use master volume, and volume ramp). - Remove master volume adjustments / getters / intents. - Retain @hidden setMasterMute, needed for device admin - Remove master volume logic in AudioService. - Remove master volume logic in VolumePanel. - Rename "getMasterStreamType" to "getUiSoundsStreamType" to avoid confusion. Bug: 19582978 Change-Id: Id02c8fa4898cff3b913147f5ac1b4038e2e7cc24
/frameworks/base/media/java/android/media/AudioManagerInternal.java
|
cdb57aeb0e2c83a887c86da0ca2a890df7f02f41 |
|
12-Feb-2015 |
John Spurlock <jspurlock@google.com> |
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
/frameworks/base/media/java/android/media/AudioManagerInternal.java
|
4197cb60bc74629fe4c04ab10cb3b1c9a7427d24 |
|
22-Jan-2015 |
RoboErik <epastern@google.com> |
Move mute/unmute handling to adjust volume paths This deprecates the setStreamMute and setStreamSolo APIs. Soloing is no longer supported and muting is redirected through the adjust volume APIs. Also updates the hidden master versions of these APIs. Change-Id: I65d2a5d5fc15b386bd497abf8ca6869fec75a26a
/frameworks/base/media/java/android/media/AudioManagerInternal.java
|
7c82ced4fc5b66c09a19eed9a5499039530142fb |
|
05-Dec-2014 |
RoboErik <epastern@google.com> |
Route mute key events through MediaSessionService This sends mute keys to the MediaSessionService and handles them by toggling the appropriate stream. Muting remote playback is still not supported. bug:17501993 Change-Id: I18c5b037cde2175acbb64b118dd708514acfd8c9
/frameworks/base/media/java/android/media/AudioManagerInternal.java
|
661f2cf45860d2e10924e6b69966a9afe255f28b |
|
17-Nov-2014 |
John Spurlock <jspurlock@google.com> |
VolumeZen: Introduce internal vs external ringer mode. Stabilize mapping between ringer-mode=silent and zen=priority by keeping track of two ringer modes: - Internal ringer mode: Used for underlying stream muting - External ringer mode: Reported to clients The mapping between external ringer mode + zen is: - normal = all - vibrate = all - silent = priority (read-write) or none (read) Changes include: - Remove "zen check" from audio service, back to audio service having no knowledge of zen. - Maintain a new external ringer mode in audio service, this is the ringer mode reported through AudioManager to callers, also mapped to the change intent. - Introduce a "ringer mode delegate" to the local audio manager interface, responsible for observing external / internal mode changes, and making changes if necessary. - Internal ringer mode changes are still interesting to the volume dialog, wire up a callback through the existing IVolumeController interface. - On devices without vibration, the mapping is the same but since no ringer mode change is possible, disable the icon toggle and remove the mute icon when volume=0. - On devices with vibration, volume down presses should pulse the vibrate icon (and vibrate) as a hint that this is as low as the device can go using the keys. Since the mechanics are similar to the existing zen=none hint, pull into shared helper. - Log ringer mode changes to the zen log, include calling package information for issue diagnosis. - Include whether vibration is supported in the audio service dump. - Update the status bar icon policy to use the internal ringer mode, not the external mode (for vibrate icon). - Update the "Muted by <x>" logic, include current suppressor in dumpsys, ensure suppression icon is enabled & !clickable, regardless of zen mode. Bug: 17884168 Bug: 15471679 Bug: 16824970 Change-Id: Ia7d3bb23ce6d1e37b24fb6521d1c1ab9bb8f60c0
/frameworks/base/media/java/android/media/AudioManagerInternal.java
|
519c7744b522aa07e12bc3244ac3de14aa2a4ad0 |
|
18-Nov-2014 |
RoboErik <epastern@google.com> |
Handle volume events on master volume devices correctly We weren't passing volume events to the master volume correctly on devices that only use a master volume. This fix checks if the device only has a master volume and adjusts the master volume instead of the stream's volume if that's the case. bug:18305790 Change-Id: Iec35e0a7dc59e6d73c9dfc88da324660bb15b1f3
/frameworks/base/media/java/android/media/AudioManagerInternal.java
|
272e161c1a200900cb10b5b0cdab8ae1f123cabd |
|
05-Sep-2014 |
RoboErik <epastern@google.com> |
send volume button events to adjustSuggestedStream instead of adjustStream This way the audio system can route the adjustments correctly when a bt headset is connected. bug:17281977 Change-Id: Ic41d038e47179baffc86e539562da285446148c7
/frameworks/base/media/java/android/media/AudioManagerInternal.java
|
0dac35af2c6aa42bcd181981b041747cfd1afa5f |
|
13-Aug-2014 |
RoboErik <epastern@google.com> |
Pipe caller's identity through volume methods setStreamVolume and adjustStreamVolume were always being called from the session service's uid/package. This adds the plumbing to allow the original app's info to be passed in to the audio service when volume is changed. Change-Id: Ib36639dab1e518b435161dc453c8ba9351df3e9b
/frameworks/base/media/java/android/media/AudioManagerInternal.java
|