summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/volume/Events.java
Commit message (Collapse)AuthorAgeFilesLines
* Rename "Westworld" to "Statsd"Muhammad Qureshi2020-06-161-1/+1
| | | | | | Bug: 158725651 Test: N/A; trivial name change Change-Id: I1bac4ad010ff7fea62a9d9564ba981d74b206aff
* Fix UIEvent ID collision.Will Brockman2020-03-191-2/+2
| | | | | | | | | | An accidental ID collision in volume dialog logging had RINGER_MODE_NORMAL and ZEN_MODE_OFF both on ID 156. Move both to new IDs (334, 335). Fixes: 151632114 Test: atest SystemUITests Change-Id: Ic24fd3ac30721c93eae9f0b164c8a2a7d3aee118
* Add UiEvent logging to volume dialog Events.Will Brockman2019-12-111-86/+350
| | | | | | | | | | | Minor refactoring of Events.writeEvent() for testability. Also added unit test for Events class, covering all 3 types of logging it does. Test: atest SystemUITests Test: mp droid + statsd_testdrive verify UiEvent logging. Change-Id: Id1cd0e0f5aa9082dab5d85144ea62ed77a36eacd
* De-contextify volume/Events MetricsLogger calls.Will Brockman2019-12-021-15/+20
| | | | | | | | | | | | A small cleanup - replace calls to MetricsLogger's deprecated static methods with calls to the member functions of the logger instance that the code was already constructing. This makes the Context argument of Events.writeEvent() unnecessary, so removed that as well. Test: atest SystemUITests Test: mp droid + manually verify MetricsLogger logging. Change-Id: I8ca380ca56f51c414c17858dfd5b932ba02d4df0
* Remove dismiss action and associated event tag. Users expect the volumeAnthony Tripaldi2019-04-101-3/+1
| | | | | | | | | dialog to stay on screen after a press, like when interacting with the rest of the dialog. Bug:129977566 Test: manual Change-Id: Ibafbfa91e54e375bb7f3ac17e85d2bb94a284e95
* Add tool tip view for first run of volume dialog to notify users of odiAnthony Tripaldi2019-03-211-1/+3
| | | | | | | | captions functionality. Bug:128970574 Change-Id: I4710fd1d84f4116e003c14720a2ce55c5b3ff899 Test: manual
* Adding the on-device captions service toggle into the volume rocker.Anthony Tripaldi2019-03-111-2/+6
| | | | | | Change-Id: Iec78b07a7df0c22f7f505cab7910315b7ea07d6b Bug: 126956988 Test: manually
* Implement USB-C overheat warningSherry Huang2019-02-211-3/+24
| | | | | | | | | | | | | | | When device USB-C port is susceptible to short circuits and overheating, pop up a warning dialog and keep showing until user clicks OK button or see care steps. Test: manually set the emulated temperature to trigger warning Test: atest SystemUITests Change-Id: I4f6080187196a9716f12a9817dc10d3265dc202b Bug: 110134720 Bug: 116866524 Bug: 77790357 Bug: 117178820
* Update volume loggingJulia Reynolds2018-04-111-20/+29
| | | | | | | | | - Log settings click and ringer toggle - Log stream for volume change and mute instead of value Test: manual Change-Id: Id72e4b79ca9875b7c80b58527c303d3af0af9492 Fixes: 74201925
* Alarms and Media visibly muted in PriorityOnly dndBeverly2018-01-261-0/+2
| | | | | | | | | | | | | | | | | | | - if alarms and/or media cannot pass dnd and the phone is currently in priority only dnd, then the alarm and/or media volume stream will appear muted in the volume dialog and sound settings (Settings > Sound) - if all behavior for priority only dnd is not allowed to bypass dnd (discluding alarms and media), then ringer is muted when priority-only dnd mode is on. If a user clicks this ringer in the volume dialog, then dnd ends - Updated default zen config to version 3 (added alarms and media) Test: manually toggle alarms + media in Settings > Sound > DND > Behavior, toggle on/off dnd and then look at volume dialog and volume bars in Settings > Sound Test: runtest --path cts/tests/tests/media/src/android/media/cts/AudioManagerTest.java Fixes: 72052742 Change-Id: Ia9e809ec2be93cb5a9ba6518dce04bf3ce45110b
* Add an output chooser dialog to volume panelJulia Reynolds2017-12-131-1/+3
| | | | | | | | | It shows paired bluetooth devices, filtered on major type audio_video and uncategorized. Test: manual Bug: 63096355 Change-Id: I606cbd581f382752a05b4ffec7707427252ac788
* dismiss the volume shade if the a11y stream goes awayJulia Reynolds2017-08-081-7/+9
| | | | | | | | | | ... if the active stream was the a11y stream Test: turn talkback on, change volume, turn talkback off before the volume panel goes away Fixes: 63252708 Change-Id: I5e03b17fd7408d28471919c45c910e634b415bbc
* Create plugin interface for volume dialogJason Monk2017-03-241-1/+1
| | | | | | | | Very few logic changes, mostly just breaking out certain interfaces and classes to the plugin lib. Test: make + volume keys Change-Id: Ieabc6d35f6ef980842849236a0b8ffd5543b3a2c
* Update package names to work with the proto3 compilerTamas Berghammer2016-11-081-1/+1
| | | | | Bug: b/28974522 Change-Id: I5f3adf4946ee4ba1e09e4f40afe83c151405972a
* move framework metrics over to new protoChris Wren2016-01-271-8/+9
| | | | Change-Id: Ie46e946dc787350c15c10aa4385a6b7df7e181a8
* instrument volume controlsChris Wren2015-06-171-2/+29
| | | | | Bug: 21474639 Change-Id: I48641ae778f4e274c0f67ca6491102d978d3cd5f
* Zen: Add a new level: alarms-only.John Spurlock2015-04-021-0/+1
| | | | | | | Like no-interruptions, but allows alarms. Bug: 19260237 Change-Id: I36bf0a333362256c8e54cd83992cb46c3bcb7f69
* Introduce new volume dialog.John Spurlock2015-04-021-0/+189
- New VolumeDialog (presentation) + VolumeDialogController (state) to implement a volume dialog that keeps track of multiple audio streams, including all remote streams. - The dialog starts out with a single stream, with more detail available behind an expand chevron. - Existing zen options reorganized under a master switch bar named "Block interruptions", with "None" renamed to "No interruptions" and "Priority" renamed to "Priority only". - Combined "Block interruptions" icon replaces the now-obsolete star/no-smoking icons in the status bar. - New icons for all sliders. - All sliders present a continuous facade, mapped to discrete integer units under the hood. - All interesting volume events and state changes piped through one central helper for future routing. - VolumePanel is obsolete, still accessible via a sysprop if needed. Complete removal / garbage collection deferred until all needed functionality is ported over. Bug: 19260237 Change-Id: I6689de3e4d14ae666d3e8da302cc9da2d4d77b9b