History log of /packages/apps/Settings/src/com/android/settings/fuelgauge/PowerUsageFeatureProviderImpl.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
12540490389edfba297b859c8862edd7a2bdaf8d 15-May-2018 Lei Yu <jackqdyulei@google.com> Update method isSmartBatteryEnabled()

Check the config value from framework.

Bug: 79698191
Test: RunSettingsRoboTests
Change-Id: I14424e2a96fb3ef3bb7d0f10218266d53e86370d
/packages/apps/Settings/src/com/android/settings/fuelgauge/PowerUsageFeatureProviderImpl.java
68ffee1a7db43fdf3aca16323a727f4a30db7280 26-Mar-2018 Lei Yu <jackqdyulei@google.com> Remove the old battery page

This CL removes PowerUsageSummaryLegacy and PowerUsageAdvancedLegacy
and their related layouts and strigns.

Also remove the isBatteryV2Enabled method in feature provider.

Change-Id: I1ec30f713d733ed24335a3e698fb515751232948
Fixes: 76027338
Test: robo test still pass
/packages/apps/Settings/src/com/android/settings/fuelgauge/PowerUsageFeatureProviderImpl.java
155c1785e19be5b1d3054bfae6f0312e273cc482 06-Mar-2018 jackqdyulei <jackqdyulei@jackqdyulei2.mtv.corp.google.com> Add auto restriction preference

1. Add method in feature provider to check whether smart battery
is supported
2. Hook up above method to controllers
3. Add auto restriction preference
4. Add tests

Bug: 73002171
Test: RunSettingsRoboTests
Change-Id: Ic314f61ad52e9bedb629b308731cb968bb4b1773
Merged-In: Ic314f61ad52e9bedb629b308731cb968bb4b1773
(cherry picked from commit ab0b0add0a9b7409db016b0f1561612c16173fbd)
/packages/apps/Settings/src/com/android/settings/fuelgauge/PowerUsageFeatureProviderImpl.java
86a9be347c9662b9fde320993917e63b7de6846b 11-Jan-2018 Salvador Martinez <dehboxturtle@google.com> Add support for early warning query

This CL adds the necessary code to enable the early warning query
from the provider.

Test: robotests in topic
Bug: 71593245
Bug: 71812931
Change-Id: I32e10d1b9f752af672b5d1c6ccb8ba9f2f9cc387
/packages/apps/Settings/src/com/android/settings/fuelgauge/PowerUsageFeatureProviderImpl.java
12e327608b96a54084fcb317d076c9f7d605998f 05-Jan-2018 Salvador Martinez <dehboxturtle@google.com> Improve messaging for enhanced notifications

The message displayed in battery settings will now more accurately
reflect when an estimate is enhanced based on our updated
definition of what that means.

Test: robotests
Bug: 64833846
Change-Id: Id635d78d8f56d10253e22df2705af93f2693db70
/packages/apps/Settings/src/com/android/settings/fuelgauge/PowerUsageFeatureProviderImpl.java
166102c3c01dfb2f7c5d65be9a48d7cc271a937b 27-Nov-2017 jackqdyulei <jackqdyulei@google.com> Add feature flag for battery settings page.

Create PowerUsageSummaryLegacy and power_usage_summary_legacy, which
contains the old implementaion.

Bug: 69797586
Test: RunSettingsRoboTests
Change-Id: Icb9c25f06889462a6eedea48ae166043a6636848
/packages/apps/Settings/src/com/android/settings/fuelgauge/PowerUsageFeatureProviderImpl.java
82dbcd973dc8b3aa73c877cc53ef538c62cb8c75 29-Jun-2017 Alex Kulesza <kulesza@google.com> Render enhanced battery projection curves.

BatteryInfo now supplies standard linear or enhanced projection curves,
depending on the provider.

Note that the semantics of parsing have changed slightly in that the
value of endTime supplied to onParsingStarted is now the end time of the
historical data and does not include the projection. However, as far as
I can see there is no existing code that depends on the parsing
functionality besides BatteryInfo itself.

Also slightly optimizes the updating behavior of the UsageGraph, since
we are now reconfiguring it multiple times.

Bug: 38400320
Test: make RunSettingsRoboTests, manual on device
Change-Id: Ieff26d31356b34bb38e49f54f979fd80549864b2
/packages/apps/Settings/src/com/android/settings/fuelgauge/PowerUsageFeatureProviderImpl.java
466a3f6faa8a8e6e5798b9cb2e3f269bb944018a 23-Jun-2017 Andrew Sapperstein <asapperstein@google.com> Remove PowerUsageFeatureProvider.isAnomalyDetectionEnabled

Instead, this decision is being handled via AnomalyDetectionPolicy.

Change-Id: I5b1831c78e31e3be984dda07bcea9f0b0a25d52f
Fixes: 62871629
Test: robotests
/packages/apps/Settings/src/com/android/settings/fuelgauge/PowerUsageFeatureProviderImpl.java
cbefbc261f7f1f9d6a12909e66d1764a3c1031a9 19-Jun-2017 Salvador Martinez <dehboxturtle@google.com> Add info string to advanced battery usage page

This CL adds an FYI string under the battery graph to let users
know that their current estimate is coming from the enhanced
estimate provider when it is enabled.

Test: Robotests
Bug: 38399654
Change-Id: If5cd622ef0251a5a483cef870fc2261369e14845
/packages/apps/Settings/src/com/android/settings/fuelgauge/PowerUsageFeatureProviderImpl.java
f4727ea07fe5613d81a91080353bd3a02dd71388 23-May-2017 Salvador Martinez <dehboxturtle@google.com> Add ability to see both battery estimates on long press

If the enhanced estimate is being used in battery settings
it is now possible to long press on the text to have it display
both instead of the string that is normally used.

Adds another loader to enable this since it needs both the old
and the new estimates simultaneously.

Feature is hidden behind a feature flag that only googlers will
have enabled.

Test: robotests
Bug: 38399275
Change-Id: I5caf26513baada27efd50ddb0e72d3868da47150
/packages/apps/Settings/src/com/android/settings/fuelgauge/PowerUsageFeatureProviderImpl.java
0658dcd6fad02cf859469c3024c7ba7384b5a96a 25-May-2017 jackqdyulei <jackqdyulei@google.com> Merge "Turn on power accounting in AOSP" into oc-dev am: 0a6d61883c
am: db42779cf1

Change-Id: Ie4db806a166c45a14cd3b8ed69be6405befcb64b
1d51b3cc15125354d0ba803f21506b7f3f2c7c42 24-May-2017 jackqdyulei <jackqdyulei@google.com> Turn on power accounting in AOSP

Bug: 38328724
Test: RunSettingsRoboTests
Change-Id: Ibb2691ffdf8581549a1e99f94a8dbaa849453742
/packages/apps/Settings/src/com/android/settings/fuelgauge/PowerUsageFeatureProviderImpl.java
0dce3c076410e7a14b236a8bbd74083c01325e92 04-May-2017 jackqdyulei <jackqdyulei@google.com> Add framework for anomaly detection flags

This cl adds isAnomalyDetectorEnabled(type), which decides whether
to turn on specific check with that type.

Added method is used in AnomalyLoader.

Bug: 36924669
Test: RunSettingsRoboTests
Change-Id: I71c6acb1c58c24453a1936c5c36f59fe4e86cfd4
/packages/apps/Settings/src/com/android/settings/fuelgauge/PowerUsageFeatureProviderImpl.java
126c032afaa523bb27dc09a45215bb3d0b0f9196 04-May-2017 Salvador Martinez <dehboxturtle@google.com> Add ability to speak to provider for enhanced estimate

Added code that checks if the provider for the enhanced battery
drain estimate is available. If it is available we use that
value instead of the one computed by BatteryStats.

Test: Robotests
Bug: 37753227
Change-Id: I7eae01b56f85d33eafc42ee0f18bb752779581b2
/packages/apps/Settings/src/com/android/settings/fuelgauge/PowerUsageFeatureProviderImpl.java
d1a1fede6f6e96ecd64455efe12631b39c138f3a 26-Apr-2017 jackqdyulei <jackqdyulei@google.com> Add method to check whether to enable anomaly detection

Bug: 37709022
Test: RunSettingsGoogleRoboTests
Change-Id: Ie95b8899f0201d392ba06e4747a0d926d7474d68
/packages/apps/Settings/src/com/android/settings/fuelgauge/PowerUsageFeatureProviderImpl.java
c577ef0a7524eacefc09b7eafa0c58b4f7f4f6c2 28-Mar-2017 jackqdyulei <jackqdyulei@google.com> Hide Wifi and Systemui in settings main page

Also move the systemui to category system

Fix: 36644740
Fix: 36645264
Test: RunSettingsRoboTests

Change-Id: I6b64a7dca58091f3a1d8b7d99c8bae7ddf9169f9
(cherry picked from commit 1e95b74f774b2b8b97b8f512451313696ed97c50)
/packages/apps/Settings/src/com/android/settings/fuelgauge/PowerUsageFeatureProviderImpl.java
1e95b74f774b2b8b97b8f512451313696ed97c50 28-Mar-2017 jackqdyulei <jackqdyulei@google.com> Hide Wifi and Systemui in settings main page

Also move the systemui to category system

Fix: 36644740
Fix: 36645264
Test: RunSettingsRoboTests

Change-Id: I6b64a7dca58091f3a1d8b7d99c8bae7ddf9169f9
/packages/apps/Settings/src/com/android/settings/fuelgauge/PowerUsageFeatureProviderImpl.java
44e8968662f8ab47fab355ee27c19e0a4012068d 28-Feb-2017 jackqdyulei <jackqdyulei@google.com> Hide bluetooth and media in battery settings page.

Media is a bundled process which contains the following packages:

com.android.providers.downloads
com.android.mtp
com.android.providers.media
com.android.providers.downloads.ui

This cl moves them to advanced battery page.
1. Bluetooth lives in category bluetooth
2. Media lives in category system

Bug: 35811926
Test: RunSettingsRoboTests
Change-Id: Ie229fa15e2e62b67d571988f7f4e7788a665bcdd
/packages/apps/Settings/src/com/android/settings/fuelgauge/PowerUsageFeatureProviderImpl.java
238c1c000bac1fbe20b3dd56692d2989e79bef21 24-Feb-2017 jackqdyulei <jackqdyulei@google.com> Add batterysipper type check in PowerUsageFeatureProvider

This cl adds isTypeSystem to PowerUsageFeatureProvider and
changes isTypeService. After this cl, the following items will
be moved to advanced battery page:
1. Calendar Storage(Move to System)
2. MediaServer(Move to System)

Create this check in FeatureProvider to make sure this check
is flexible in different cases. Also refactor the PowerUsageSummary
to use same test fragment

Bug: 35629871
Bug: 35628690
Bug: 35317876
Test: RunSettingsRoboTest
Change-Id: I8c083cb2557a7e900aea01e682c13a000bacb7a9
/packages/apps/Settings/src/com/android/settings/fuelgauge/PowerUsageFeatureProviderImpl.java
5115265a50c1f600ccc1cc4a82db9527513be8a8 16-Feb-2017 jackqdyulei <jackqdyulei@google.com> Add toggle in menu to show/hide hidden apps

In the previous cl we hide unrelated apps and distribute hidden
battery usage among other apps. Now we add a toggle in menu to
show old power accounting as well.

Bug: 35366708
Test: RunSettingsRoboTests
Change-Id: I6918b7095cf84d9756ad3972ff50a62aeae1de0e
/packages/apps/Settings/src/com/android/settings/fuelgauge/PowerUsageFeatureProviderImpl.java
acc195fddea98b47375f15ca1f8e79cfa30ef878 14-Feb-2017 jackqdyulei <jackqdyulei@google.com> Add type service in settings advanced page.

Currently it only includes the gms service

Bug: 35317876
Test: RunSettingsRoboTests
Change-Id: I20a2a9d320efe4aed036552d450f59c89e81584a
/packages/apps/Settings/src/com/android/settings/fuelgauge/PowerUsageFeatureProviderImpl.java
a224b010b9f43a5b90fa0757c1ded5c99fd20935 28-Jan-2017 jackqdyulei <jackqdyulei@google.com> Create Advanced battery page

The advanced page shows two major parts, one is the battery usage
graph and the other is battery usage list. In usage list, each item
shows basic info of battery usage of one type(e.g. Apps, System)

Bug: 34385770
Test: RunSettingsRoboTests

Change-Id: I22475a489285787afa775af8d5ae3340eff1eed9
/packages/apps/Settings/src/com/android/settings/fuelgauge/PowerUsageFeatureProviderImpl.java