summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/volume/SegmentedButtons.java
Commit message (Collapse)AuthorAgeFilesLines
* base: Use font configs instead hardcoded fontsPranav Vashi2022-10-211-2/+8
| | | | | Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Change-Id: Ic206a6af61c1b028545f6464c8463893a04b36b6
* Volume header changesJulia Reynolds2016-12-151-9/+5
| | | | | | | | | | - Show always - Update locale immediately Bug: 31847162 Bug: 33277887 Test: manual Change-Id: I89c5cbddf08df3a9eba20f2fb3b76eec69926777
* sysui: refactored for extensibility.Muyuan Li2016-04-011-4/+12
| | | | | | | refactored button inflate code and add a logic to handle selected style update. Change-Id: I61f9c77396bea63a24fc78bf02ebad54a426a3ed (cherry picked from commit b865ae2a4c892e2ffd83947e40ebd27d35b18fa6)
* only count clicks on zen mode selectorChris Wren2015-06-301-6/+6
| | | | | | | | We were counting all changes of mode while the panel was visible, including the first initialization of the selector. Bug: 21196323 Change-Id: Icf2165056f03507b0b8c6a21ec1f07830c29173a
* Merge "QS: Handle font-size changes immediately in ZenModePanel." into mnc-devJohn Spurlock2015-06-081-0/+3
|\
| * QS: Handle font-size changes immediately in ZenModePanel.John Spurlock2015-06-081-0/+3
| | | | | | | | | | | | | | | | And make sure the condition row is tall enough to accomodate huge text. Bug: 20346315 Change-Id: I9346f80edd7f0069d6363fe5377b36b0bf5aca62
* | Zen QS: Use explicit content descriptions for zen buttons.John Spurlock2015-06-081-1/+2
|/ | | | | Bug: 21661136 Change-Id: I3a6f7d6deb29584e707c1deb771e3db660007529
* Volume: Simple dialog footer, DND in quick settings.John Spurlock2015-04-291-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
* Introduce new volume dialog.John Spurlock2015-04-021-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | - 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
* Replace usages of deprecated Resources.getColor() and getColorStateList()Alan Viverette2015-03-181-1/+1
| | | | Change-Id: I8f64fe6c4c44a92ff6d07250223ba590a1d691b0
* Volume dialog: Add zen mode icons and notification access.John Spurlock2014-11-101-5/+4
| | | | | | | | | | | | | | | | - Add icon above text to all three zen mode states, update text style. - Remove zentoast. - Update shared borderless rect background, masks now support shapes. - Update size of volume stream icons. - Ensure all volume icons are expressions of white. - Make volume icons testable via new demo mode command. - Add a divider + secondary icon to access the notification slider. - Animate the transition when accessing notification slider. Bug: 18206097 Bug: 16303068 Bug: 18102850 Change-Id: I5eb6f820dc317e89be272cc78f6c80ed969ad5e9
* Touch-exploration improvements to volume dialog.John Spurlock2014-09-261-1/+13
| | | | | | | | | | | | | | - Extend the dismiss timeout when interacting with various subcontrols. - Ensure "hover" events in touch exploration extend the timeout in addition to touch events. - Introduce new helper to standardize interaction callbacks. - Announce zen toasts. - Announce zen condition selections, and when existing countdown conditions are modified. Bug:17578434 Change-Id: I8a055b3455aa8d20ba93439bdec6cc75db97800e
* Zen: Fix recent regression in mode selection after reboot.John Spurlock2014-09-161-0/+10
| | | | | Bug:17509473 Change-Id: I761cd90384c490c7ab07fb633133535846701ce6
* Volume: new coat of paint.John Spurlock2014-07-201-2/+8
| | | | | | | | | | | | | - Two sections (lighter header, darker detail) like QS. - Fewer text variants. - Remove backgrounds for segmented buttons. - Remove alarm warning background. - Fix slider-only style. - Ensure all touch-targets are 48dp. Bug:16419191 Change-Id: I220f3a736eba3dd7a1b9ff58a8fe4bf3d21db61a
* Implement new volume UI design.John Spurlock2014-07-071-0/+93
- Add segmented zen-mode picker to the rocker UI. - Add a new "no interruptions" value to the zen setting. - Implement expandable condition subpanel on the rocker UI. - Remove the old circle&slash icons. - Suppress alarm sounds if in "no interruptions" mode. - Add warning re: alarms to the condition UI. - Allow rocker UI to display over the keyguard. - Remove Notifications QS tile. - Realign volume rocker to the top of the screen. - Add support for new "days" sleepMode. - New icon policy rules for "volume" slot. - New important icon (star). Associated Settings change: I6ed56791784968adfbd684f490dbbebed285a2dd Bug:15831713 Change-Id: I35afe38646f04d2ba0dbac11c2c6356120a33694