Searched refs:drainType (Results 1 – 14 of 14) sorted by relevance
106 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 …]
36 public DrainType drainType; field in BatterySipper175 public BatterySipper(DrainType drainType, Uid uid, double value) { in BatterySipper() argument177 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()
478 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() local595 return drainType == DrainType.IDLE in shouldHideSipper()[all …]
140 if (app.drainType == BatterySipper.DrainType.APP) { in calculate()158 if (app.drainType == BatterySipper.DrainType.APP) { in calculate()
59 if (app.drainType == BatterySipper.DrainType.APP) { in calculate()
104 if (app.drainType == BatterySipper.DrainType.APP) { in calculate()
113 if (app.drainType == BatterySipper.DrainType.APP) { in calculate()
124 if (app.drainType == BatterySipper.DrainType.APP) { in calculate()
125 if (app.drainType == BatterySipper.DrainType.APP) { in calculate()
142 if (app.drainType == BatterySipper.DrainType.APP) { in calculate()
149 if (app.drainType == BatterySipper.DrainType.APP) { in calculate()
140 if (app.drainType == BatterySipper.DrainType.APP) { in calculate()
3073 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)));
4154 switch (bs.drainType) { in dumpCheckinLocked()7338 if (bs.drainType != BatterySipper.DrainType.APP) { in dumpProtoAppsLocked()8113 switch (bs.drainType) { in dumpProtoSystemLocked()