History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0b688503754737a20165f0cff1833e714a5c4164 22-Dec-2014 John Spurlock <jspurlock@google.com> Zen: Fix selection logic for "Indefinitely".

Use a signal condition value for the forever condition in the panel
to ease the distinction between no selection + selecting indef.

Bug: 18810529
Change-Id: I2590899ab43734708c72aad066653ef27f89d760
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java
530052a2fe3b6a6a4246ce28ab0ced647fe7f470 30-Nov-2014 John Spurlock <jspurlock@google.com> Zen: New behavior for built-in downtime + nextalarm conditions.

- Downtime: Allow user to enter downtime early, offer as an end
condition four hours before downtime starts. Available in
either none or priority, regardless of settings configuration.
- Downtime: Always exit before next alarm if zen=none.
- Downtime: Make more like any other condition provider, remove
special status (mostly).
- Downtime: New auto-triggering rules, allow triggering after a
manual condition ends, once.
- Decouple NextAlarm + Downtime providers, allow them to offer
their conditions at the same time.
- Downtime/NextAlarm: Update conditions if they change while being
requested, even if unsubscribed.
- Make all three built-in condition providers optional, via config.
- New internal helper for runtime config.
- Don't follow changes to next alarm, consider the condition false.
- Isolate downtime calendar logic into separate class (for testing).
- Allow a:bb -> a:bb as a valid downtime range (all day).
- Volume dialog: configuration establishes maximum number of visible
conditions, including built-ins.
- Zen mode panel: avoid widget updates during layout transition.
- Zen mode panel: move controller callers to background thread.
- Zen mode panel: hide/show/rebind rows instead of adding/removing.
- ZenLog: Add downtime autotrigger results.
- Volume panel: Smarter refresh on ringer/zen changes.

Bug: 16373455

Change-Id: I4f801018ddb0beb6eb9fa03a81c79f7949888a3f
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java
3e0770163686c1be83959d681976dafaf25272e1 29-Nov-2014 John Spurlock <jspurlock@google.com> Zen: Improve zen mode panel condition selection.

- Decouple condition requests from expansion, now
pre-request when zen panel unhidden.
- Animate zen mode panel expansion.
- Improve default selection logic, ensure something
is selected as soon as we are in the expanded state.
- Tweak visual spacing.
- Map null condition to Indef properly when we start
out in zen.
- Avoid unnecessary condition teardown when the conditions
are updated but unchanged from current.
- Cap number of optional conditions to display, default=3.

Bug: 18335618

Change-Id: I007b7c3b2e75e2b42805af240684aa8581e9951a
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.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/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java
9c4a707912da2c954b2d3d1311b8a691ded8aa16 21-Nov-2014 Selim Cinek <cinek@google.com> Fixed several time related states for secondary users

The 24 hour setting was not respected correctly. Also
fixed a bug where the next alarm would not display itself
in the QS panel.

Bug: 16239208
Change-Id: I89734f783912dead5831db49db53fba04dbf54ee
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java
25c3421c5e65ddc7f2b2bf1b1208f3634e6f5256 12-Nov-2014 John Spurlock <jspurlock@google.com> Zen: Update condition text for current condition.

If the provider sends us an updated summary (or other text)
for the currently selected exit condition, update the UI and
persisted condition.

Update the downtime condition text (end time/line2 + summary)
when the next alarm changes (if downtime = none).

Also, clear the fired-alarm cache on time or time-zone resets.

Bug: 16373455
Change-Id: Ib38c52104a281fcc04a89612b643a219fd82b40b
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.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/ZenModePanel.java
37bc92cc2332eb6f864977381135c19d6a081a92 03-Nov-2014 John Spurlock <jspurlock@google.com> Zen: Create a new exit condition for "next alarm".

- If the user's next alarm is in the next 12 hrs, provide
this as an exit condition trigger for leaving none/priority.
- Don't display the next alarm condition when downtime is active.
- When the next-alarm exit condition is active, follow changes
to the next alarm, assuming it remains within the 12-hr window.
- Tweak the downtime condition strings to be consistent.

Bug: 16373455
Change-Id: I4020b91d323dead998e62d655132eca07438b148
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java
c90e6fe863bb5ac84612bd777d3b352f69265950 28-Oct-2014 John Spurlock <jspurlock@google.com> Zen: Show "(until 4:56 PM)" in exit conditions.

Implement two-line exit conditions, display the duration + end
time on separate lines.

Bug: 16824863
Change-Id: I8dabc83042fce604ccb86b463b9bb547c7903c64
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java
1a3f7db001a75770d888866a760e1308bb1f25fd 21-Oct-2014 John Spurlock <jspurlock@google.com> VolumeDialog: Restore default-selection logic.

Bug: 18066513
Change-Id: Ie72189edf9b59fd8d192d882aaadf1ac05dcb359
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java
7bbb9f64103c297d1b9738339f3bfeed0f41030e 21-Oct-2014 John Spurlock <jspurlock@google.com> Sysui: Include shared prefs in service dump.

Also:
- Remove obsolete Prefs helper.
- Use common file for zen-mode prefs.

Bug: 18062541
Change-Id: I9a6a4733eac0ec1c55da5d359c996cb5fe3bb8af
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.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/ZenModePanel.java
27c7b9295d0ebb0223bd10eb582d171ade870c7e 23-Sep-2014 John Spurlock <jspurlock@google.com> Supertoast when user changes zen mode.

If the user selects a new zen mode, display a quick toast
with the mode icon + text to aid in association.

Also fix a recent regression in the zen subhead alignment.

Bug:16215680
Bug:17641211
Change-Id: I4ead88d81be4d9c26459aed82c47b8c2fb32eafa
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.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/ZenModePanel.java
0875a782ad6688407050592dd32169d7a8f0716a 10-Sep-2014 Jason Monk <jmonk@google.com> Merge "Update zen mode and qs strings on locale change" into lmp-dev
4dd81467e33a694138da6916fc68ca79501a9429 08-Sep-2014 Jason Monk <jmonk@google.com> Move zen mode constants and code to framework

This allows the strings and code to be shared with settings.

Bug: 15454830
Change-Id: I9300af4f8b6d80042452b75db3418b20c5c5cc81
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java
e2f4771a0105ad6a94ff759353ca00c3a5fba72a 09-Sep-2014 Jason Monk <jmonk@google.com> Update zen mode and qs strings on locale change

Bug: 17288370
Change-Id: Ic6191d5c16687cd760b4a0656d6ee4dbb4c53c45
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java
8f8ecd620c796834a1048ec98f0e8072f5ad926c 27-Aug-2014 John Spurlock <jspurlock@google.com> Zen: Remove alarm warnings, color the subhead instead.

- When selecting "None" in the dialog, remove the footer warnings
about alarms, and associated bits.
- Update subhead text for "None".
- Keep track of how often "None" is used (defined as a user change
during a visible dialog session) and color the subhead text
with the warning color until it's been used five times.

Bug:17283115
Change-Id: Ief8a1c557716ec2f581b8338511432d17ac0d371
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java
4db0d98b42a723f2e16c6595e85e866fd26c6d98 13-Aug-2014 John Spurlock <jspurlock@google.com> Zen: Downtime now a condition provider, persist conditions.

- Persist the entire exit condition instead of only the id.
- Make downtime a proper condition provider (similar to the
existing countdown provider for time-based conditions)
- Move all downtime-related items out of ZenModeHelper and
into the new condition provider.
- Reevaluate downtime more often, when any of its inputs change.
- Make sure downtime appears as an available condition in the
condition panel when applicable.

Bug:16296125
Bug:16211189
Bug:17031767
Change-Id: I1d8269a4e6fe170ce776bf932dbbdfb29dd25dd7
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java
89fe1cb9debbfd629f1467b2a3d957e6dc1a8507 06-Aug-2014 John Spurlock <jspurlock@google.com> Zen: Show subhead for Indefinitely.

Bug:16824870
Change-Id: Ic10d68df39c5afe06503d3b37a960c9319f84056
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.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/ZenModePanel.java
b71e68f9aa44b220cabaace70493751538d94dc0 18-Jul-2014 John Spurlock <jspurlock@google.com> Volume: Rocker animation + style updates.

- Add more spacing at the top
- Update window animations to fades
- Improve style for alarm warnings

Bug:16200897
Change-Id: I7a64e235eff1f9a77fc697a98a4440bc69043386
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java
969265af3131f7213cab50c08e09700ed6af4a88 17-Jul-2014 John Spurlock <jspurlock@google.com> Merge "Zen: Maintain selection throughout rocker session." into lmp-dev
fbb3d6ff392e9cd13fea49f85f12efd0a304d448 17-Jul-2014 John Spurlock <jspurlock@google.com> Zen: Maintain selection throughout rocker session.

While the panel is visible, allow toggling between
none + priority (and even 'all') without resetting
the exit condition.

Bug:16350606
Change-Id: I830be8ccad1ba95a64239f00a72f773c4fe739f2
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java
89f060a1e0fa48c497855d061b5c9ec44bb576c8 17-Jul-2014 John Spurlock <jspurlock@google.com> Zen: Return of the alarm warning.

- Remove the term timers from subtitle, the term "alarms"
is now inclusive of timers.
- Resurrect the alarm warning, give it a more prominent
appearance if we can detect an overlap in a time-based
exit condition and the next alarm time.

Change-Id: I5d6d67694c7acc9e2a5a7c63e647069744a22cec
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java
50806fc4ceff4bb093a18bdecb506163e68b9cbb 15-Jul-2014 John Spurlock <jspurlock@google.com> Zen: handle exit conditions across reboots.

- Use the persisted exit condition (and a new
persisted exit component) to immediately resubscribe
to the manual exit condition (if present)
- Fire false immediately for old countdown conditions.
- Add a new zen lens to noman dump, and a bit more info.
- Refresh the current exit condition when reopening the panel.

Bug:15844990
Bug:16212455
Change-Id: I8bfaf1b2a6cf3d8818002a9db5c527ad3aa4c05c
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java
bc5858f4893558ae6fee24c14489be56e6c3f528 11-Jul-2014 John Spurlock <jspurlock@google.com> Zen: Be more defensive against old time conditions.

Bug:16192570
Change-Id: If5097174fac89c5d809271241645d1efca92476e
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java
8263c3e0647e0d9622585f1c196ceb8d2fde695e 11-Jul-2014 John Spurlock <jspurlock@google.com> Volume: Elide collapsed condition title if no end.

And make expanded title non-clickable.

Bug:16211705
Change-Id: I675b8ad8d08dca9a3f38292c45b771dc6532de77
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java
980f9925bb044bc87c1de1f0e21372f46d7d596d 11-Jul-2014 John Spurlock <jspurlock@google.com> Merge "Volume: Use accent color for selected radio button."
f7d22132c2c9b83134b05aaed63a89f61c639fd9 11-Jul-2014 John Spurlock <jspurlock@google.com> Volume: Use accent color for selected radio button.

Bug:16212456
Change-Id: Ic1badeaf6eec98cd2780592660a36d7087bb677b
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java
86d04fdaa1853cf7ff8ec9aba1dd925dd098167e 11-Jul-2014 John Spurlock <jspurlock@google.com> Volume: Promote alarm warning to title.

Bug:16211556
Change-Id: I839e08d1ba26ba825a9799f92c9b600feb91a81b
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java
d71517be7c73aa36b8c1b15fa2221b56e20c80ab 08-Jul-2014 John Spurlock <jspurlock@google.com> Include timers in no-interruptions warning, always show.

Bug:15831713
Change-Id: I83434d882ba1168bba4de8f1d58334742eb863a3
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.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/ZenModePanel.java
7f8f22a53005f776c8ee4d299e748e74b077ffd9 03-Jul-2014 John Spurlock <jspurlock@google.com> QS: Wifi control panel.

Create first example of an inline detail view with line
items, bind to new access-point controller.

Move the common bits of all control panels into a
common abstraction. Share common parts of layout
(More settings / done button).

Change-Id: I14a1bf548f3291dc628f97bf09dd4e38ac2fb2dc
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java
2769ac290784d2057f44589aeae5140102b21af3 06-Jun-2014 John Spurlock <jspurlock@google.com> VolumeZen: Only display active condition when entering.

Instead of always displaying the active condition, only
show it the first time (when turning zen on).

Bug:15455271
Change-Id: I89e8e2c09fa0d06a5e4c3174f825dfe5a452f06e
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java
856edebad73560e9b1cce021a7de9a0470d07176 02-Jun-2014 John Spurlock <jspurlock@google.com> Zen: Stateful condition panel.

When DND is on, expanded panel shows the current time
condition, or time remaining. The last time bucket
selected is remembered as the default option for the
next time.

Move the server-side countdown helper into a proper
condition provider, but register it in-process as a
system provider.

Move common countdown condition parsing into ZenModeConfig
to reuse from system components.

Keep the manual exit condition around in zen mode config
and add plumbing for getting / listening to the
controller.

Keep the last QS detail panel around instead of
recreating it every time.

Fix the time condition's plus and minus button
enabling logic, and enhance the click handler to
deal properly with the next or previous bucket.

Bug:15344758
Change-Id: Ie7018a1c20e20f6d7e5f9e7874188374e6f8e2ab
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java
7f1df5e98578f8532a5e009009e7c1f82ed5885c 01-Jun-2014 John Spurlock <jspurlock@google.com> VolumeZen: Slider icon as ringer-mode toggle.

- When manipulating the ringer/notification stream, the volume
slider icon on the left now serves as a toggle. Single-press
for vibrate, long-press for silent.
- Disable slider when silent.
- Add touch feedback to slider icon when clickable.
- Vibrate when toggling to vibrate.
- Play sound when toggling to audible.
- Adjust the slider icon padding so it appears to be square,
and the same size as the icon on the right.

Bug:15330217
Change-Id: Id7262d9315e6e761e1d5750714c356c3ac735951
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java
8600534df66c2ff5846ed230b50c56229322d48a 23-May-2014 John Spurlock <jspurlock@google.com> VolumeZen: combine ringer/notification volume and zen.

- Implement a new volume panel widget, combining volume and
zen mode + conditions.
- Show zen mode + conditions when modifying ringer or notification
streams.
- Host the volume panel widget in a dialog when being controlled
by the audio service / volume keys.
- Remove support for multiple sliders in the volume panel.
- Remove support for separate ringer + notification volumes
in the volume panel.
- Move volume panel resources up to SystemUI.
- Create a new combined Notifications quick settings tile.
- Host the volume panel widget in the quick settings panel under
Notifications.
- When the quick settings detail panel is visible, route the volume
keys to the embedded widget instead of showing a redundant dialog.
- Create common styles for quick settings text to be closer to spec.
- Update the framework resources for the ringer stream.
- Show the ringer icons in global actions.
- Add "until you turn this off" back as a separate zen condition.
- Disable time condition buttons when they are N/A.
- Don't allow volume changes to set ringer mode silent.

Bug:15186070
Change-Id: Id5e321dd1d5e7c4cf3917027ffbdf7e80d38b00d
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java