History log of /frameworks/base/media/java/android/media/VolumePolicy.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
863e277533dcf15e294a41dcf1f32cd7786a8d80 06-Feb-2018 Beverly <beverlyt@google.com> Silent does not put phone into DND by default

Change-Id: Idf9e2cfbe1404d5455c25f14b464f455bd74859c
Fixes:72869432
Test: manual (toggle ringer to silence, dnd is not triggered)
/frameworks/base/media/java/android/media/VolumePolicy.java
ac48767f919e2a641e4ff5597f7bc24c6d481d41 11-Nov-2016 Jean-Michel Trivi <jmtrivi@google.com> Conditional behavior for a11y stream volume

VolumePolicy: define two a11y modes: 1/ legacy where
a11y volume aliases to media volume, 2/ a11y where
the a11y volume is independent from any other stream
type volume.
Refactor accessibility service listening to accomodate
communicating to the volume controller when the
a11y service is running.
Make accessibility stream alias conditional on a11y
service running. Reflect the behavior in the
volume controller.

Test: enable Talkback and verify logs in Vol controller
Bug 30448020

Change-Id: I80535ba259a22b6d93e62a7b3ca462a19d4c84b7
/frameworks/base/media/java/android/media/VolumePolicy.java
b02c744f05b0cca05b77fcbaad4a546ad86081eb 14-Apr-2015 John Spurlock <jspurlock@google.com> Zen: Enter alarms only on volume down from vibrate.

And vice versa (when dialog is showing).

Also make alarms only the default mode when DND is switched on
via the switch.

Bug: 19260237
Change-Id: I16e4a27944bc8245bb2beed84c0421d493b0b876
/frameworks/base/media/java/android/media/VolumePolicy.java
07e72432ac4a83f428d7f9ccf1e11594c67c1993 13-Mar-2015 John Spurlock <jspurlock@google.com> VolumePolicy: Debounce adjustments from vibrate->silent.

Disallows volume adjustments (lower) from vibrate to silent
until a small period of time after an adjustment from normal
to vibrate.

This provides for enough time for the user to see the state change
to vibrate and feel the associated haptic feedback before yet
another state change to silent.

Bug: 19260237
Change-Id: I5843a1c144d56146a83db194f352832c8d85159d
/frameworks/base/media/java/android/media/VolumePolicy.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/VolumePolicy.java