History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryController.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
5602189a6dec401bfa2e22247a23fb25dd3393f8 27-Feb-2017 Adrian Roos <roosa@google.com> AOD: Show charging status on AOD1

- Change PowerManager to not turn on display when on AOD
- Add charging icon to AOD1
- Add transient charging indication when plugged in

Bug: 30876804
Bug: 35850304
Test: runtest systemui; enable AOD, plug in phone, verify charging indicator shows, verify charging text shows and goes away after a few seconds
Change-Id: Icb80843a12c56c7e2abeca78115a366b4d508d4f
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryController.java
9c7844cb91b43929d0a86b1c90aa1efb37f5463a 18-Jan-2017 Jason Monk <jmonk@google.com> Work on sysui dependencies

One of the many problems with PhoneStatusBar is that it holds
dependencies for many other parts of SysUI. Fix this by creating
a static method of grabbing dependencies that are global to sysui
this cleans up a lot of chains of interdependence.

Also add easy way to inject mocks of these dependencies for the
purpose of testing.

Test: runtest systemui
Change-Id: Ia0e947faea62d15b665facada47ac9916c99f895
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryController.java
8852905b0b3837e326127c6dfef6f699124ce715 04-Nov-2016 Jason Monk <jmonk@google.com> Unit testing for fragments.

Set up a base class for testing fragments that will generate the host
and run the fragment through some lifecycle checks to make sure it
does ok with standard lifecycle.

Fragment tests will also automatically check for any sort of leaks
related to bindings, receivers, or other callbacks in sysui. This
requires changing the statusbar.policy classes with callbacks to
have a common interface.

Lastly also fixes a few lifecycle bugs in QS found from the above
tests.

Bug: 32609190
Test: runtest systemui
Change-Id: I52007c696c2fd41914bba4ba9d8055f2b564a7d8
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryController.java
98d7c7a84d007d3de0c3394d8a93253a313eda27 12-Apr-2016 Jason Monk <jmonk@google.com> The return and fixing of demo mode

Change-Id: I2bcf3435b92c80b4ab3c46cba02902820c942c7c
Fixes: 27919212
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryController.java
da62fdcd502e772546bd98c016ab20fff6ee62e7 07-Apr-2016 Anthony Chen <ajchen@google.com> For Auto, display battery status as that of a connected device.

For Android Auto Embedded, we would like to display the battery status
of a device that is connected via Bluetooth and not the battery status
of the device itself (which would not make sense in Auto).

To accomplish this, introduce a new CarBatteryController that only
monitors the status of battery via Bluetooth. Note that AAE is not
explicitly handling the battery icon that appears in the quick settings
because this will be hidden for Auto.

This CarBatteryController implements a new BatteryController interface.
What used to be the BatteryController has been moved to the
BatteryControllerImpl class.

Bug: 28002775
Change-Id: I2285bcbd3d207cdcc1ac5a98ec3685d4fff0f0d9
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryController.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/statusbar/policy/BatteryController.java
abe1974a11364b577e94966ca87047d7889c8edf 29-Sep-2015 Jason Monk <jmonk@google.com> Add more QS tiles

(only for paging prototype)

Change-Id: Ifb09e3262540a486c9ee7e83a904f96cc4e33fec
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryController.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/statusbar/policy/BatteryController.java
0ff62e09116dd125fc36f7af5de7a0b60aaa789b 22-Jul-2014 John Spurlock <jspurlock@google.com> BatterySaver: Make the bars orange.

Bug:16203820
Change-Id: I85f700d30a90212202626fc10fb289aca7f2b688
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryController.java
853b070f19801058182ac1172d7c21c7651253c8 05-Jul-2014 Jorim Jaggi <jjaggi@google.com> Add % for battery in expanded QS; make it clickable

Also removes the "xx minutes until full" label in expanded QS.

Bug: 15392950
Bug: 15863237
Change-Id: I41e85a9ffeb3cba31b58769f8faee9147a3b031e
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryController.java
59a6127551650e7307fd6e6e1b72c1c2377fac80 06-Jun-2014 Adrian Roos <roosa@google.com> Add Emergency Calls Only and Charging State to Status Bar Header

Bug: 15393101
Change-Id: If1dc300d843fb5f694ef57714225f43924dbb2b8
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryController.java
641ac6429ac6bdd6748b84eb7a7b5ade95f854fb 04-Oct-2013 Chris Craik <ccraik@google.com> Clean up unused resources

bug:10641374

Additionally, fixes incorrect getColor use

Change-Id: Ie56ad5baa099cc421629a5dcc8ef9de14e44079a
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryController.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/statusbar/policy/BatteryController.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/statusbar/policy/BatteryController.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/statusbar/policy/BatteryController.java
fe0e1e445fe697d59baf5736da20356a4e548fc9 29-Nov-2012 Daniel Sandler <dsandler@android.com> Only show "charging" if the battery is really charging.

If there's a charge problem (battery health/temperature out
of spec, or low charging current), the lockscreen and status
bar should not indicate that charging is occurring.

(Previously we showed "Charging" and a lightning bolt any
time the device was plugged in.)

Bug: 7509976
Change-Id: I27ec0e2cec1307fbc6ef262dd5181a4db6d3bed0
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryController.java
d63c59786509aadd6a8d0c5cb45ed696339f16b7 06-Sep-2012 Winson Chung <winsonc@google.com> Initial changes to add QuickSettings.

Change-Id: If510f74d6046929e5e8a794c6dc2fddb15a03d6b
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryController.java
2b69735e014872ca2183b4a39a8381daa337e146 22-Jul-2011 Daniel Sandler <dsandler@google.com> New stacked RSSI icons.

The signal strength, network type & flow indicator, and
battery have all been moved out of the policy and into the
status bar implementation itself, mirroring the change on
tablets. This means that they no longer use status bar icon
slots but instead are bespoke layouts and views.

GPS has also been removed and will return as a notification
(again, as was done in the Honeycomb tablet UI).

Bug: 4691638
Change-Id: I60df4871209b64209bfc5b3bf398651cc2e77b24
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryController.java
6179ea3196e9306d3f14361fe9ef14191b1edba6 28-Jun-2011 Svetoslav Ganov <svetoslavganov@google.com> Adding accessibility support to the Status Bar.

1. Added content description to pretty much all animals
in the zoo including buttons in the navigation bar,
notifications and status icons for battery, signal,
data, etc.

2. Rectored to avoid ovelaying views since they block
touch exploratino. In general overlaying views
cause trouble for touch exploration and accessibility
in general.

3. Avoid sending accessibility events in case the user is
touching outside of the StatauBAr panels to avoid
confusion.

4. Added records to accessibility events in the places where
this would help the presentation. So the event comes from
a given "leaf" view and its predecessor is adding a record
to the event for itself to provide more cotext. It is up
to the accessiiblity service to choose how to present that.

bug:4686943

Change-Id: I1c1bd123d828fb10911bca92130e9a05c1f020b3
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryController.java
dff2e9a4582e400e4935608ef5c744680990c335 28-Nov-2010 Joe Onorato <joeo@google.com> Rename strings.

Change-Id: I0a9d016aa5864e5d64e9cab6b0e720daaa816537
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryController.java
fd52b18d9bf3cd62c7a07058536e9f97db65beea 11-Nov-2010 Joe Onorato <joeo@google.com> The beginnings of the new status bar.

There is a lot of rough stuff still, but most of the functionality is here again.

Change-Id: I4b1241e61270f1434e798481afa83634233ee670
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryController.java