History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
8d4e6cb06005a2ce994360340a6191f0690db8f4 14-Sep-2014 John Spurlock <jspurlock@google.com> Saver: PowerManager call to set low power mode.

- Add an explicit power manager call to set the low power mode state,
instead of trying manage everything around a single setting.
- When low-power mode is triggered by falling below the configured
threshold, it does not update the setting.
- The "is-enabled" api returns setting || below configured trigger.
- Move the snooze management into the new api call.
- Callers (sysui + settings) updated to use the api instead of the
setting.
- Handles the case where the level does an unpowered leap out of the
low battery level. (Possible if powered in-between while the device
is off)

Bug:17460535
Change-Id: Ic030504c9cad9868a7137abbe837b170da37852b
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java
7290d192c8a0c1a19ef3c298f2eeab63e82190a8 25-Aug-2014 John Spurlock <jspurlock@google.com> PowerUI: Don't play sound on every update below level.

There are many paths to update the power notification. Use
PowerUI's playSound as a tripwire, and reset the value once applied.

Bug:17253062
Change-Id: Ica6a4c621f7047f8b52dee82cbfe1db5bc08247e
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java
86c3de81ea324c5d2ebb2e0c396bba1c0250d4ee 19-Aug-2014 John Spurlock <jspurlock@google.com> PowerUI: Remove the fallback dialogs.

- Low battery notifications are now always notifications, even
if not HUNs.
- Remove obsolete dialogs used only as HUN fallbacks.
- Extend the default HUN timeout to 10 seconds and remove the
ongoing hack for the warning notification.

Bug:17070231
Change-Id: I29069c3d90dcca6f9bce512e5a0ccbd983704de5
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java
255dd04271088590fedc46c8e22b2fd4ab142d39 19-Aug-2014 Selim Cinek <cinek@google.com> Added notification color to all system notifications

Bug: 17128331
Change-Id: I81a94510ef51b99916f314c0dd65852426a1fbeb
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java
8de4311c51229efbe2f2d0afbf298982c5cadd96 11-Aug-2014 Jorim Jaggi <jjaggi@google.com> Lockscreen launch animations

- Get rid of ActivityManager.dismissKeyguardOnNextActivity, which was
used for two different things: Dismiss keyguard from somewhere else
(not really necessary anymore), wait to actually dismiss keyguard
after the window behind is drawn. Instead, introduce
keyguardWaitingForActivityDrawn(), and change the semantics where
necessary.
- Make wallpaper_close_enter consistent with task_open_enter and the
Keyguard launch animation.
- Close the panel even on lockscreen when launching a notification.
- Block notification shade updates during the collapsing motion so
notification don't play the disappear animation immediately after
having launched a notification.

Bug: 15991916

Change-Id: I133c177b84e926c87c1a404ba93d633593fec3ab
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java
04c8fd33669cd54a97e488ee9737153e54692096 06-Aug-2014 John Spurlock <jspurlock@google.com> PowerUI: Remove notification action icons.

Bug:16839950
Change-Id: I1f8c1c80a2c849e115396e1e22d344a52a2dbe3f
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java
1bb480a3a4ce2ce63c5d09fa7f5cc38ec160ebf4 02-Aug-2014 John Spurlock <jspurlock@google.com> Battery saver: new policy changes + SystemUI tweaks.

- Service policy changes: allow the user to turn off (snooze)
saver mode below the auto-trigger level. Plugging in the
device always exits saver mode.
- Default trigger level is now 0 (never) instead of 15.
- SystemUI now also listens to a new POWER_SAVE_MODE_CHANGING,
since waiting for _CHANGED can take seconds.
- Move shared feature description text into the framework so it
can be shared.
- Tweak dialog title + action strings.
- Remove trigger-level from SystemUI, it no longer needs it.
- Add the ability to turn off saver mode directly from the
notification.
- Migrate saver confirmation dialog to common system UI dialog
helper, and add a few convenience methods.
- Fix bug where the status bar area would be orange over the keyguard
in SHADE_LOCKED mode.

Bug:16214395
Change-Id: I3d1ded1eec9e63e7d97469486f6a320e1bebbccd
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java
65fa0a923c2613cc2a10a97b9eee4d21ed744e0b 26-Jun-2014 Christoph Studer <chstuder@google.com> Avoid upranking battery level/saver notifications

Bug: 15884933
Change-Id: Ia1a61c8b3d3f70feaa0a68702c1a8902b0c15bb7
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java
a0388bb6ffaf22e4996081b4969dcc9d4056580b 18-Jun-2014 John Spurlock <jspurlock@google.com> Battery saver notifications should be public.

Bug:15713445
Change-Id: I2ed0e47bcc3120baf85c8529b7ef15756e215ea7
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java
3ff2de64f4b84ef60eba4fb3b23eef80ea841cdd 16-Jun-2014 John Spurlock <jspurlock@google.com> PowerUI: Dial down logging.

Only log notification dismissals on state changes.

Bug:15611493
Change-Id: Id304f7aed58e3584235513677abe97dd85595009
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java
0c377a902490239b310cbdcd1e6aad504a0e8845 12-Jun-2014 John Spurlock <jspurlock@google.com> Merge "PowerUI: dismiss warning notifications when falling back." into lmp-preview-dev
eb44a7de47a994f93398b5880cd9f2d6badc6e3a 12-Jun-2014 John Spurlock <jspurlock@google.com> PowerUI: dismiss warning notifications when falling back.

The full-screen intents simply fire broadcasts to open fallback
dialogs. This means the warning notifications are left visible
under the dialog on the lockscreen, or after the dialog is
quickly dismissed.

Once we launch the fallback dialogs, there is no reason for the
notification form to exist.

Bug:13329308
Change-Id: I5735c65d7e8eb620493d3ef3a2cfc27f75cecbb5
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java
0bd2f266a5086a0a37a594e50fd2b198753e5d47 12-Jun-2014 John Spurlock <jspurlock@google.com> PowerUI: Remove obsolete workaround.

No longer need to cancel and repost notifications when
transitioning from/to heads-up.

Bug:15534198
Change-Id: I93e5433e51410c80c2e183976e0041ca1bfeb3c7
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java
3332ba54ae85df14d761447d86d2aa19d448ce11 10-Mar-2014 John Spurlock <jspurlock@google.com> Heads-up notifications for low battery warnings.

Falls back to dialogs when heads-up are N/A.

Add new ongoing notification if battery saver mode
is active. Offer to start battery saver on warnings,
if not already started.

True up BatteryMeterView's levels to the latest threshold
levels. 15% for first warning.

Bug:13329308
Change-Id: Id8ad11a1997079ee7165ae003a8fa1c744462ab3
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java