History log of /packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryStatsHelperLoader.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
114cf2a1a75a4e46243aa2b27e007add7899d08f 15-Jul-2017 jackqdyulei <jackqdyulei@google.com> Never store battery stats for cache

In PowerUsageBase, it will store battery stats if it has a configuration
change, which will make BatteryStatsLoaderHelper never get the correct
battery stats because it uses Bundle.EMPTY as the bundle message.

This cl:
1. Remove the store action even though it is configuration change.
2. Always use null to get battery stats
3. Always start a battery status check in register()

Bug: 63658232
Test: RunSettingsRoboTests
Change-Id: Ifbf970c63378ed66dddcdae4d952b7d1fd84216a
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryStatsHelperLoader.java
bfe82cab893b85412bda9aeb7149179a57956873 23-Jun-2017 Matthew Fritze <mfritze@google.com> Add util method to get battery stats

Bug:62271803
Test: make RunSettingsRoboTests
Change-Id: I91089c24c7cd5f7329be052c50859e049e70e9b1
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryStatsHelperLoader.java
106dc459e0e89132cd39125d281b1c3ef8b26267 13-Apr-2017 jackqdyulei <jackqdyulei@google.com> Move battery stats loading to AsyncLoader.

It takes 3-4 seconds to load the battery settings page in Ryu. Main
reason is that it takes too long to init BatteryStatsHelper.

This cl moves loading code to AsyncLoader, and we will refresh ui once
the loading part is finished.

Following cl will add animation for the battery header to make it not
so janky

Bug: 37196170
Test: RunSettingsRoboTest
Change-Id: I40dfdde4a072e28a56c8fdf0ec6d671b5109fc6d
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryStatsHelperLoader.java