History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/volume/SegmentedButtons.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
29cbe66c7d623a2bea7fb74474a1a8520cc5b809 30-Mar-2016 Muyuan Li <muyuanli@google.com> sysui: refactored for extensibility.

refactored button inflate code and add a logic to handle selected style update.

Change-Id: I61f9c77396bea63a24fc78bf02ebad54a426a3ed
(cherry picked from commit b865ae2a4c892e2ffd83947e40ebd27d35b18fa6)
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/SegmentedButtons.java
4572cbc917b62aeece4afcd73713eeabed2a5d92 29-Jun-2015 Chris Wren <cwren@android.com> only count clicks on zen mode selector

We were counting all changes of mode while the panel was visible, including the
first initialization of the selector.

Bug: 21196323
Change-Id: Icf2165056f03507b0b8c6a21ec1f07830c29173a
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/SegmentedButtons.java
e37cf3b8d614019c5570f945110bfbc5a8b09713 08-Jun-2015 John Spurlock <jspurlock@google.com> Merge "QS: Handle font-size changes immediately in ZenModePanel." into mnc-dev
d896323eab66be9394cd33d3b3bf16372cbbaa07 08-Jun-2015 John Spurlock <jspurlock@google.com> QS: Handle font-size changes immediately in ZenModePanel.

And make sure the condition row is tall enough to accomodate
huge text.

Bug: 20346315
Change-Id: I9346f80edd7f0069d6363fe5377b36b0bf5aca62
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/SegmentedButtons.java
a1c7ffe755d414a1082920ce1742a8ae82d81529 08-Jun-2015 John Spurlock <jspurlock@google.com> Zen QS: Use explicit content descriptions for zen buttons.

Bug: 21661136
Change-Id: I3a6f7d6deb29584e707c1deb771e3db660007529
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/SegmentedButtons.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/packages/SystemUI/src/com/android/systemui/volume/SegmentedButtons.java
f88d8082a86bee00c604cbbcfb5261f5573936fe 25-Mar-2015 John Spurlock <jspurlock@google.com> Introduce new volume dialog.

- 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
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/SegmentedButtons.java
4a357cd2e55293402d7172766f7f9419815fc1e8 19-Mar-2015 Alan Viverette <alanv@google.com> Replace usages of deprecated Resources.getColor() and getColorStateList()

Change-Id: I8f64fe6c4c44a92ff6d07250223ba590a1d691b0
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/SegmentedButtons.java
bb4a702e6fe44cb026097db13492f8345b38ee97 08-Nov-2014 John Spurlock <jspurlock@google.com> Volume dialog: Add zen mode icons and notification access.

- 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
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/SegmentedButtons.java
a0457c2e92fc85cfba9a52d502d5038ecc7920f4 26-Sep-2014 John Spurlock <jspurlock@google.com> Touch-exploration improvements to volume dialog.

- 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
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/SegmentedButtons.java
4291fb79c70ba77af4357d53dac2e5626eabba45 16-Sep-2014 John Spurlock <jspurlock@google.com> Zen: Fix recent regression in mode selection after reboot.

Bug:17509473
Change-Id: I761cd90384c490c7ab07fb633133535846701ce6
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/SegmentedButtons.java
eb2727bb2f0f32016ca7c4bdd2c0a79eec8cb80a 20-Jul-2014 John Spurlock <jspurlock@google.com> Volume: new coat of paint.

- 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
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/SegmentedButtons.java
ae641c9ccd3f81214cee54a5f13804f1765187ad 01-Jul-2014 John Spurlock <jspurlock@google.com> Implement new volume UI design.

- 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
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/SegmentedButtons.java