History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/power/PowerUI.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
919a68083bc0663fb908517434a42859871d0b51 18-Mar-2016 Jason Monk <jmonk@google.com> Don't show low battery notification if bat saver

Bug: 27383575
Change-Id: I5e6b1cd6aafc4fa462b130f7f96ab2291ba7d7a5
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/PowerUI.java
c06fbb12984a3d3e4c80ab9f819841acae5b0133 08-Jan-2016 Jason Monk <jmonk@google.com> Move battery saver notification to QS

Remove the battery saver notification and instead create a detail
panel within QS that allows it to be turned on and off.

Change-Id: I54654d26183586fa171fda04877a840701f8ef33
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/PowerUI.java
ecbc5e828abaf2b10dd7a746ecff9bcfae2b0f7f 22-Oct-2014 John Spurlock <jspurlock@google.com> PowerUI: Post/cancel notification as UserHandle.ALL.

- Post power-related notifications for all users.
- Update the pending intent actions on user switch.
- Listen for the intent actions for all users.

Bug: 17300571
Change-Id: I956f09ecf5395f31ae1c1ec0409ee251839fcef4
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/PowerUI.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/PowerUI.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/PowerUI.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/PowerUI.java
14272302a8b635bd8e9267c1411d0a7ef11bff45 11-Jun-2014 Dianne Hackborn <hackbod@google.com> Implement control of auto power save mode.

Follow the setting for auto power save mode in both
battery service and battery UI. Default level is 15 when
setting is not set; otherwise it is whatever the setting
gives, with 0 meaning auto battery save is off.

Change how we define the "turn off warn" level to be
an adjustment from the warn level, so we can have a good
value for whatever auto setting is set.

Fix power manager to never go in to power save mode when
plugged in, even if the user has manually turned it on.

Add new delete option to settings command, because I needed
it for testing.

Change-Id: I512b691df84399d50b8e751fd50732c6093ebe85
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/PowerUI.java
ed452c5f84c2c12059a247523d768f1eb280934b 06-Mar-2014 John Spurlock <jspurlock@google.com> Separate power warnings UI from state calculation.

Move the existing dialog-based implementation into another class.

Bug:13329308
Change-Id: I87beac1593fd4eea2ea8a498381f7fcc289e0bc0
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/PowerUI.java
dea6462aab31049d1f1055314491bc33a6f16b0d 23-Sep-2013 Daniel Sandler <dsandler@android.com> Don't wake users up with low battery sounds.

Battery sounds will always play when the screen is on, and
then for Settings.Global.LOW_BATTERY_SOUND_TIMEOUT
milliseconds after the screen goes off. After that, low
battery alerts will be pushed out the airlock until the
screen comes back on again.

If battery sounds are suppressed via this mechanism you'll
see a log line like:

V/PowerUI ( 3161): screen off too long (5779ms, limit
5000ms): not waking up the user with low battery sound

The default value of LOW_BATTERY_SOUND_TIMEOUT is a settings
provider resource: R.integer.def_low_battery_sound_timeout.

Bug: 10487557
Change-Id: Iddd42038aa630631dc8f1833f20fcc5a0c646681
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/PowerUI.java
209bede6b9edb9171e5bee4077b48e35004a37b4 17-Jul-2013 John Spurlock <jspurlock@google.com> Remove trailing whitespace from system ui.

Baseline existing .java files, no excuses going forward.

Change-Id: I4bd0f25bbda6f2ec832e34ef5c70d4830bf07f99
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/PowerUI.java
de84f0e77ea2bf713d15c290264059a413c2486a 12-Jun-2013 John Spurlock <jspurlock@google.com> Organize the imports in systemui.

To follow android conventions, more importantly to remove the
unused.

Change-Id: I75881718e84360a579a3b02c26489ad250bc9227
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/PowerUI.java
cd686b5b6d4166b510df8e32138479a9559bc117 05-Jun-2013 John Spurlock <jspurlock@google.com> Migrate systemui Slog calls to Log

Change-Id: Ib6734c85960f06fed646599565b8eeba26b9e98e
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/PowerUI.java
f55769fefaeda9b3892c44262ca328f36505b919 07-Nov-2012 John Spurlock <jspurlock@google.com> Low battery dialog should use UserHandle.CURRENT.

Bug:7493313
Change-Id: Ie753633c550e4ce679fbb6f9e0c6adf56392ec87
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/PowerUI.java
8d9a1f66d9d3dbbd45a56d441a746ec11dba7645 19-Oct-2012 Jeff Sharkey <jsharkey@android.com> More migration to Global settings.

Bug: 7375796
Change-Id: I3954ce141ad30073896090a28eee743ba15fd736
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/PowerUI.java
88400d3a31139c40c4014faf86c243647087ef6c 30-Sep-2012 Craig Mautner <cmautner@google.com> Add flag for displaying non-user's Windows to user.

Created a new flag that indicates that a window should be shown
to all users. For the flag to be valid the owner of the window
must have system permissions.

Also separated system window types into those that show to all
users (e.g. StatusBar, Keyguard, ....) and those that appear only
to the owning users (e.g. Drag, ANR, TOAST, ...). Those that appear
only to their owner can override their default behavior using
the new flag (e.g. LowBattery).

Fixes bug 7211965.

Change-Id: I1fdca25d57b7b523f0c7f8bceb819af656c388d4
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/PowerUI.java
6d5176638c2189595cede38fb92c3e7e8700e221 24-Apr-2012 Eric Laurent <elaurent@google.com> system and UI sounds volume policy

Implement a more consistent policy for system and UI sounds (key clicks, lock/unlock,
camera shutter, DTMF, low battery...):
- All system sounds are played over STREAM_SYSTEM stream type.
- The STREAM_SYSTEM volume that was previously fixed now tracks the volume of a "master"
stream type. This "master" stream type is STREAM_RING for phones and STREAM_MUSIC for
tablets which corresponds to the stream whose volume is modified by default by the volume
keys.
- The STREAM_SYSTEM volume ranges from -24dB to -6dB (-24dB to -12dB over headphones) when the
"master" stream volume ranges from its min to its max.
- DTMF tones are played over STREAM_DTMF that tracks the "master" stream volume in the same
manner with the following exception: when in call, DTMF stream tracks STREAM_VOICE_CALL volume.
- Camera shutter sound is played over STREAM_SYSTEM_ENFORCED stream that tracks the "master"
stream volume except in countries where regulation enforces this sound. In this case
its volume is fixed and cannot be muted.
- Low battery sound is played over STREAM_SYSTEM and therefore has a tunable volume and is
heard while in call.

Issue 6344620.
Issue 6069229.
Issue 6213100.

Change-Id: I53a237878ead596e706c5dbbb1420e62cde32bd7
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/PowerUI.java
7198662bb3c81a761fdfa3038d90df68d22c0b97 26-Jul-2011 Daniel Sandler <dsandler@google.com> Play the low-battery sound only at certain discharge events.

That is, only play it when the device is running on battery
and the remaining charge level descends into a new
low-battery regime:

* when the device hits the first threshold, for example 15%
(the dialog is first shown at this time)
* when the device hits the second threshold, e.g. 4% (the
dialog will be redisplayed if necessary)
* when the device has been charging but AC power is removed,
returning the device to a low-battery regime (the dialog
will be redisplayed if necessary)

The sound will no longer be replayed as the battery level
descends within these regimes (say, 4% --> 3%).

Bug: 4981280
Change-Id: I049d60f39ae556241a23f8664e61be3d70d937e5
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/PowerUI.java
f4a9e7d97ee68fe74d6cae06f49b51730428941f 06-Apr-2011 Joe Onorato <joeo@google.com> more targeted logging

Change-Id: Id440a0f20ae360cd6863aa198d82b5ff2dd2f3b7
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/PowerUI.java
d57c8d93c0fe353cdb2de183f4df834b8c1829c3 03-Feb-2011 Daniel Sandler <dsandler@google.com> Move the low battery sound to the notification stream.

This will allow its volume to be governed by the user's chosen
notification volume.

Bug: 3409396
Change-Id: I1bc59fd76f4b5250beac530b2711dd59d79b5384
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/PowerUI.java
e797b82c767a68cddbe90555426116a669a2f7d9 27-Jan-2011 Mike Lockwood <lockwood@android.com> Revert "getRingtone is causing an anr. Turn it off for now."

ANR doesn't seem to be happening any more.

BUG: 3142881

This reverts commit c597ba8e9ad08ac628271b4498c27eda74c6c86c.

Change-Id: Ib6eb407c700bc9a8460f49394ec71d75d14588e2
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/PowerUI.java
947f7824118f0e9b642df8760a8725a7eda59318 08-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3245465 - Themed dialog icons

Added light/dark versions of holo dialog icons. Apps using
AlertDialogs that wish to use the system dialog icon should use
setIconAttribute(android.R.attr.alertDialogIcon) instead of
setIcon(android.R.drawable.ic_alert_dialog).

Change-Id: I40793a3164478be5ffa045ededfcab8210753a4b
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/PowerUI.java
a9ad6b818f6514af3ae583da650d64043764a124 30-Oct-2010 Joe Onorato <joeo@google.com> Slightly easier to read

Change-Id: I818d885999150333ec326a283f4574571c09add1
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/PowerUI.java
4ca7f1e2811dc889e526de6c3d30bac8501c23d2 28-Oct-2010 Joe Onorato <joeo@google.com> Implement reminder power dialog and invalid charger dialog.

Bug: 2510318
Bug: 2974431
Change-Id: I92eb419eeffb657e5572a35a490735a96b303d6b
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/PowerUI.java
c597ba8e9ad08ac628271b4498c27eda74c6c86c 27-Oct-2010 Joe Onorato <joeo@google.com> getRingtone is causing an anr. Turn it off for now.

Change-Id: Ia002c9be1cd203e5e989f2a9e49c49b97778ec1b
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/PowerUI.java
10523b4d0c99cec86647130426d470a1e02a44f6 25-Oct-2010 Joe Onorato <joeo@google.com> Make the low battery dialog work again.

Change-Id: I97232a3645e6a817c9c5f5f90b88a7e925d36d13
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/PowerUI.java