History log of /packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryInfoLoader.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
433288a76ef45a73e98453814b4d24cf30e44f83 12-Jul-2017 Salvador Martinez <dehboxturtle@google.com> Fix mistake in conditional + test

This CL fixes a mixup that was in a conditional that determined
what was shown on the battery settings page. Additionally, it adds
a simple test to help ensure that this does not regress in the
future.

Test: Robotest
Bug: 63158794
Change-Id: I8af4843ef6d798b5114c97b2f1b99dd29fa5f412
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryInfoLoader.java
43d4fefb36f1c14fdf2ac6e5ae3bff108b09df52 05-Jul-2017 Alex Kulesza <kulesza@google.com> Make utility methods static.

BatteryUtils.convertUsToMs and .convertMsToUs should be static, and now
they are.

Bug: 63347148
Test: make RunSettingsRoboTests
Change-Id: If652e2d3e1260df9a933805d7da670fbb26b2c25
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryInfoLoader.java
cc7c9603db4cf5fbf3acf297add5bfde7760ca5d 27-Jun-2017 Salvador Martinez <dehboxturtle@google.com> Add BatteryInfo logging to settings

This Cl adds a few log statements to BatteryInfo to try
and determine what the bottleneck in the Battery Settings
Advanced page could be.

Test: robotests still pass
Bug: 62959645
Change-Id: I1ff712d97bc8be78873c63e187edbffa8e10cd21
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryInfoLoader.java
cb9c53dd7c6846655021d827beaaf76563c980b6 20-Jun-2017 Salvador Martinez <dehboxturtle@google.com> Fix BatteryInfo using enhanced estimate for charge time

Due to a typo in BatteryEstimates the enhanced estimate we use
for discharging would also be used for charging. This CL corrects
the typo and adds a simple test to catch a similar mistake in the
future. We were also always loading the enhanced estimate even when
we were not using it. As a ~*bonus*~ it should also help improve
the speed of the charging use case for this screen and fixes an
issue with the battery not switching to the charging icon in the
main battery page.

Test: robotest
Bug: 62738028
Bug: 62873396
Bug: 62784575
Bug: 62736144
Change-Id: Ib2cbdeea22afb7da590b701b84f526bdac243410
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryInfoLoader.java
9cfa7720f4273cfc299af4175eb20b3ef4650b4e 30-May-2017 Salvador Martinez <dehboxturtle@google.com> Make BatterySettings Asynchronous and use enhanced estimate

this CL changes BatteryInfo methods to all use the async style
callback approach it had for one of the methods. Non-async methods
are now annotated to only be used in worker threads. BatteryInfo
can now be obtained via callback by calling one of the async
methods. Alternatively if there is a worker thread available
the synchronous methods similar to the old ones can be used.

The callback methods have all been changed so that they cascade to a
async method that takes all the required info as paremeters. This
will minimize the amount of churn in files that currently use
BatteryInfo.

A new loader was created that can be used to get BatteryInfo in
places that wish to get it. This loader is used in
PowerUsageSummary to get the BatteryInfo.

Test: Robotests
Bug: 38399275
Bug: 38398949
Bug: 38399654
Change-Id: Ic5a82d8ca4c85fad1b883226327ec083badf861d
/packages/apps/Settings/src/com/android/settings/fuelgauge/BatteryInfoLoader.java