Searched refs:discharging (Results 1 – 15 of 15) sorted by relevance
66 mBatteryInfo.discharging = true; in setUp()106 mBatteryInfo.discharging = false; in detect_charging_tipInvisible()
55 public boolean discharging = true; field in BatteryInfo236 final boolean discharging = in getBatteryInfo()239 if (discharging && provider.isEnhancedBatteryPredictionEnabled(context)) { in getBatteryInfo()253 final long prediction = discharging ? batteryUsageStats.getBatteryTimeRemainingMs() : 0; in getBatteryInfo()382 info.discharging = false; in updateBatteryInfoCharging()
106 if (info.statusLabel != null && !info.discharging) { in generateLabel()156 final boolean discharging = in quickUpdateHeaderPreference()
170 } else if (!info.discharging && info.chargeLabel != null) { in generateLabel()
320 return batteryInfo.isBatteryDefender && !batteryInfo.discharging; in isBatteryDefenderOn()
456 mBatteryInfo.discharging = false; in testIsBatteryDefenderOn_isDefenderAndIsCharging_returnTrue()464 mBatteryInfo.discharging = true; in testIsBatteryDefenderOn_isDefenderAndDischarging_returnFalse()472 mBatteryInfo.discharging = true; in testIsBatteryDefenderOn_notDefenderAndDischarging_returnFalse()480 mBatteryInfo.discharging = false; in testIsBatteryDefenderOn_notDefenderAndIsCharging_returnFalse()
402 mBatteryInfo.discharging = false; in arrangeUpdateBatteryStatusTestWithRemainingLabel()510 mBatteryInfo.discharging = isDischarging; in setChargingState()
122 info.discharging = false; in getDashboardLabel_returnsChargeLabel()
67 mBatteryInfo.discharging = false; in setUp()
194 assertThat(info.discharging).isEqualTo(false); in getBatteryInfo_pluggedInUsingShortString_usesCorrectData()
49 mBatteryTipPolicy.testLowBatteryTip || (mBatteryInfo.discharging && lowBattery); in detect()
68 mDischarging = batteryInfo.discharging; in HighUsageDetector()