History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/BatteryMeterView.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a0221f3a9fb8014b24954a5a59e1e001e4a2619f 03-Sep-2014 Jorim Jaggi <jjaggi@google.com> Improve subpixel rendering of battery icon on all densities

Bug: 16161255
Change-Id: I97abc6a7a5cafb581e3f7c3d7509fdbf6d8542d5
/frameworks/base/packages/SystemUI/src/com/android/systemui/BatteryMeterView.java
5172dc2f36f9c417befd0957ce2ae20f9d083a88 02-Sep-2014 Jorim Jaggi <jjaggi@google.com> Status bar iconography updates

- Use new assets for location, flightmode and "more" notifications
icon.
- Update icon size and clock to spec.
- Change from fixed width of the icons to WRAP_CONTENT, so they look
more evenly distributed.
- Adjust subpixel rendering of battery icon to match other vector
icons.

Bug: 16161255
Change-Id: I0a80f223b7d532bc53a201cff37b8f1cb09f08c2
/frameworks/base/packages/SystemUI/src/com/android/systemui/BatteryMeterView.java
708f7721e910d2c1fe984d2b8a6bf10565a00a61 20-Aug-2014 Jorim Jaggi <jjaggi@google.com> Remove battery color when in power save

Also changes to color to our consistent warning color.

Bug: 16849393
Change-Id: I71737c1b7c18af569b5f4e957b006db579266cd1
/frameworks/base/packages/SystemUI/src/com/android/systemui/BatteryMeterView.java
0d266899da8f612194a8393ec69c4fd870f2f45c 28-Jul-2014 Jorim Jaggi <jjaggi@google.com> Fix status icon reappearing for legacy activities

When closing the shade, and underneath was an activity without
colored status bars, the animation for letting the status icons
reappear was strange and the icons faded from 0% alpha. The cause was
possibly that we set hasOverlappingRendering on the whole group but
but inner views used layers for setting the alpha value which
violated the contract in the documentation of
hasOverlappingRendering: "The current implementation of the saveLayer
and saveLayerAlpha methods in Canvas necessitates that a View return
true if it uses the methods internally without passing the
CLIP_TO_LAYER_SAVE_FLAG."

Change-Id: I4b0accc8ec3fb8cb553c6860eb7dba8a12d04364
/frameworks/base/packages/SystemUI/src/com/android/systemui/BatteryMeterView.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/BatteryMeterView.java
876e359b4863ea41f08fe0e49551ad4ac3fa98af 07-Feb-2014 John Spurlock <jspurlock@google.com> Merge "Make QS battery composite color match others."
1fd0b933b86bbb20bad278de5c5c3fd268b4645b 05-Feb-2014 John Spurlock <jspurlock@google.com> Remove need for software layer drawing percentage text.

When the text is transparent, use the same approach as the bolt
to punch it through the rest of the shape - by first rendering the
text into a path.

When the text is opaque, draw the text on top as before.

Change-Id: I50f201b1bf0f92164728e3237ec45e22eb788d52
/frameworks/base/packages/SystemUI/src/com/android/systemui/BatteryMeterView.java
29786fc72d071335c49f7b768a25071846a968fe 04-Feb-2014 John Spurlock <jspurlock@google.com> Make QS battery composite color match others.

Change-Id: I2a906cd997d2372f5740532a159f04ad857d393d
/frameworks/base/packages/SystemUI/src/com/android/systemui/BatteryMeterView.java
4b786ff4b519b4537adb5da7113fb7797c67e385 17-Dec-2013 John Spurlock <jspurlock@google.com> Battery meter: remove bolt color compromise & improve pct.

- Bolt remains opaque (white) below a threshold level, otherwise
transparent.
- Draw the entire shape using a path, removing the need for a
software layer.
- Use a similar approach to make the percentage text readable,
but this still requires a software layer (since text is involved).

Bug: 12131168
Change-Id: Ifde5e99121155bf1be171f44b2c80c116b17c9e7
/frameworks/base/packages/SystemUI/src/com/android/systemui/BatteryMeterView.java
6090995951c6e2e4dcf38102f01793f8a94166e1 19-Nov-2013 John Spurlock <jspurlock@google.com> Remove unused imports from frameworks/base.

Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
/frameworks/base/packages/SystemUI/src/com/android/systemui/BatteryMeterView.java
d8595fd8feca567d48c4e271070a75c576a7dfbf 05-Nov-2013 John Spurlock <jspurlock@google.com> Battery icon tweaks.

Fix bottom padding, better bolt placement on non-HH devices.

Bug:11412369
Change-Id: I102a5ece73b2fcb5f78305c925fc2ed5fe9b2884
/frameworks/base/packages/SystemUI/src/com/android/systemui/BatteryMeterView.java
05021e5e47132799efc3f8312fbca7cb20e6fc71 14-Oct-2013 Daniel Sandler <dsandler@android.com> Don't show [!] battery at boot.

Defense in depth:
1. If there's a sticky battery broadcast waiting around for
us, apply its information immediately.
2. If for some reason there is no battery information,
just don't draw anything.

Bug: 11208146
Change-Id: I43e4b55a90a4ca619816ad0315e329f88b529581
/frameworks/base/packages/SystemUI/src/com/android/systemui/BatteryMeterView.java
cfab99005360819294c65280d8b695ab50c1f0b3 26-Sep-2013 John Spurlock <jspurlock@google.com> New battery meter view bolt shape + color.

Bug:10785785
Change-Id: Ia122bcaec1137ba45648ab3c97d8ec832fd26c85
/frameworks/base/packages/SystemUI/src/com/android/systemui/BatteryMeterView.java
d19877f8a3557702d87bc9ed8c4be947e947b8b7 17-Sep-2013 John Spurlock <jspurlock@google.com> BatteryMeterView: Charging trumps empty.

Match the style implicit in the battery assets: if charging,
show the bolt, not the exclamation point.

Bug:10651062
Change-Id: I3edd822326ad611972e791cf4acc8c395e51a74d
/frameworks/base/packages/SystemUI/src/com/android/systemui/BatteryMeterView.java
fceb7edddeda6962212377cb88391d9affe5967a 07-Sep-2013 John Spurlock <jspurlock@google.com> Draw status bar battery icon bolt in code.

Use high-res polygon points, punching a hole in the rest of drawing
with PorterDuff.Mode.CLEAR.

Remove the now obsolete lightning.png and associated color filters.

Bug:10640891
Change-Id: I8f2d4dd157f9866f37ed9b3480bb79ee9f109975
/frameworks/base/packages/SystemUI/src/com/android/systemui/BatteryMeterView.java
21efa9ade3a5ff1854bf53a3fdf964d598ef9783 07-Sep-2013 John Spurlock <jspurlock@google.com> Update signal, wifi, battery assets + global dimming.

Global status bar dimming is now 75%.

Signal/wifi: use problem color if not fully connected.

Battery: frame 40% white, charge level = white, new hollow bolt.
(hollow bolt simulated for now until we can draw it in code)

Update ic_notification_overlay, all sizes.

Workaround animation bug on tablets.

Bug:10502089
Change-Id: I10f979b7a48ccb1bc94022d8c189ec216283dbe6
/frameworks/base/packages/SystemUI/src/com/android/systemui/BatteryMeterView.java
3c87566c115e1fce3fdc09a6fe40488bcdc04cde 31-Aug-2013 John Spurlock <jspurlock@google.com> SystemUI demo mode.

Control the status bar visuals via a simple intent protocol.
Useful for comprehensive visual testing reachable assets
and the various bar modes.

Protected behind a global system setting. To enable:
adb shell settings put global sysui_demo_allowed 1

Remove obsolete sync failing asset, and tighten up
BluetoothController to represent reality.

Bug:10502089
Change-Id: I28443af3d6b22fcb7b367ef70e1d95fc23ebd407
/frameworks/base/packages/SystemUI/src/com/android/systemui/BatteryMeterView.java
e189f662df446effc77560a64136652b16d9d54b 25-Aug-2013 John Spurlock <jspurlock@google.com> Update system bar assets to new style.

Update to new system bar assets (ic_*, stat_*).

Update color resources driving style for battery meter + clock.

Add new xxhdpi versions.

Bug:10502089
Change-Id: Ic957ad9886fbb05ed0ca1765fb9e324bfd8ab609
/frameworks/base/packages/SystemUI/src/com/android/systemui/BatteryMeterView.java
dfaf3bdeeb21c8421074c70d82642612bcdd8e98 12-Apr-2013 Daniel Sandler <dsandler@android.com> Toward regularizing color & level across battery indicators.

Each of our existing assets is slightly incorrect in some
way: inconsistent pixel jumps from one percent to the next,
inconsistent color change, etc. The only way to get it
perfectly right is to draw it programmatically.

Bug: 8504254 // inconsistent color change threshold
-- previously --
Bug: 3136046 // in Gingerbread
Bug: 3387973 // Honeycomb
Bug: 5070948 // ICS
Change-Id: I6a3e7409ecec55e10328541ecb1e9d54aebdbe96
/frameworks/base/packages/SystemUI/src/com/android/systemui/BatteryMeterView.java