OSDN Git Service

Distribute all the hidden items to apps
authorjackqdyulei <jackqdyulei@google.com>
Thu, 9 Feb 2017 00:01:13 +0000 (16:01 -0800)
committerjackqdyulei <jackqdyulei@google.com>
Thu, 9 Feb 2017 17:43:43 +0000 (09:43 -0800)
commitef48c131c73a35659375283b40f3343390b7b14a
treef0b62fb73fae8056f2252e564f4e8fa2d06fc900
parenta224b010b9f43a5b90fa0757c1ded5c99fd20935
Distribute all the hidden items to apps

1. Add screen check in the shouldHideSipper()
2. remove all the battery usage for hiddenSipper from
percentage calculation, in this way we can distribute
hidden sippers to all the apps

Bug: 35153599
Test: RunSettingsRoboTests
Change-Id: I82673b282c14c92269d7f8bc71e07de90a37720c
src/com/android/settings/fuelgauge/PowerUsageSummary.java
tests/robotests/src/com/android/settings/fuelgauge/PowerUsageSummaryTest.java