Home
last modified time | relevance | path

Searched refs:drainType (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsHelperTest.java106 mNormalBatterySipper.drainType = BatterySipper.DrainType.APP; in setUp()
112 mScreenBatterySipper.drainType = BatterySipper.DrainType.SCREEN; in setUp()
115 mSystemBatterySipper.drainType = BatterySipper.DrainType.APP; in setUp()
120 mOvercountedBatterySipper.drainType = BatterySipper.DrainType.OVERCOUNTED; in setUp()
123 mUnaccountedBatterySipper.drainType = BatterySipper.DrainType.UNACCOUNTED; in setUp()
126 mWifiBatterySipper.drainType = BatterySipper.DrainType.WIFI; in setUp()
129 mBluetoothBatterySipper.drainType = BatterySipper.DrainType.BLUETOOTH; in setUp()
132 mIdleBatterySipper.drainType = BatterySipper.DrainType.IDLE; in setUp()
142 mNormalBatterySipper.drainType = BatterySipper.DrainType.UNACCOUNTED; in testShouldHideSipper_TypeUnAccounted_ReturnTrue()
148 mNormalBatterySipper.drainType = BatterySipper.DrainType.OVERCOUNTED; in testShouldHideSipper_TypeOverAccounted_ReturnTrue()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DBatterySipper.java36 public DrainType drainType; field in BatterySipper
175 public BatterySipper(DrainType drainType, Uid uid, double value) { in BatterySipper() argument
177 this.drainType = drainType; in BatterySipper()
189 if (drainType != other.drainType) { in compareTo()
190 if (drainType == DrainType.OVERCOUNTED) { in compareTo()
193 } else if (other.drainType == DrainType.OVERCOUNTED) { in compareTo()
DBatteryStatsHelper.java478 if (sipper.drainType == DrainType.APP) { in processAppUsage()
574 if (sipper.drainType != DrainType.OVERCOUNTED in removeHiddenBatterySippers()
575 && sipper.drainType != DrainType.SCREEN in removeHiddenBatterySippers()
576 && sipper.drainType != DrainType.AMBIENT_DISPLAY in removeHiddenBatterySippers()
577 && sipper.drainType != DrainType.UNACCOUNTED in removeHiddenBatterySippers()
578 && sipper.drainType != DrainType.BLUETOOTH in removeHiddenBatterySippers()
579 && sipper.drainType != DrainType.WIFI in removeHiddenBatterySippers()
580 && sipper.drainType != DrainType.IDLE) { in removeHiddenBatterySippers()
593 final DrainType drainType = sipper.drainType; in shouldHideSipper() local
595 return drainType == DrainType.IDLE in shouldHideSipper()
[all …]
DSystemServicePowerCalculator.java140 if (app.drainType == BatterySipper.DrainType.APP) { in calculate()
158 if (app.drainType == BatterySipper.DrainType.APP) { in calculate()
DPowerCalculator.java59 if (app.drainType == BatterySipper.DrainType.APP) { in calculate()
DGnssPowerCalculator.java104 if (app.drainType == BatterySipper.DrainType.APP) { in calculate()
DWakelockPowerCalculator.java113 if (app.drainType == BatterySipper.DrainType.APP) { in calculate()
DBluetoothPowerCalculator.java124 if (app.drainType == BatterySipper.DrainType.APP) { in calculate()
DCpuPowerCalculator.java125 if (app.drainType == BatterySipper.DrainType.APP) { in calculate()
DScreenPowerCalculator.java142 if (app.drainType == BatterySipper.DrainType.APP) { in calculate()
DMobileRadioPowerCalculator.java149 if (app.drainType == BatterySipper.DrainType.APP) { in calculate()
DWifiPowerCalculator.java140 if (app.drainType == BatterySipper.DrainType.APP) { in calculate()
/frameworks/base/services/core/java/com/android/server/stats/pull/
DStatsPullAtomService.java3073 if (bs.drainType != bs.drainType.APP) {
3099 if (bs.drainType == bs.drainType.APP) {
3102 if (bs.drainType == bs.drainType.USER) {
3106 atomTag, bs.drainType.ordinal(), milliAmpHrsToNanoAmpSecs(bs.totalPowerMah)));
/frameworks/base/core/java/android/os/
DBatteryStats.java4154 switch (bs.drainType) { in dumpCheckinLocked()
7338 if (bs.drainType != BatterySipper.DrainType.APP) { in dumpProtoAppsLocked()
8113 switch (bs.drainType) { in dumpProtoSystemLocked()