Searched refs:isBatteryDefender (Results 1 – 8 of 8) sorted by relevance
139 public boolean isBatteryDefender() { in isBatteryDefender() method in BatteryStatus140 return isBatteryDefender(chargingStatus); in isBatteryDefender()329 public static boolean isBatteryDefender(Intent batteryChangedIntent) { in isBatteryDefender() method in BatteryStatus332 return isBatteryDefender(chargingStatus); in isBatteryDefender()343 public static boolean isBatteryDefender(int chargingStatus) { in isBatteryDefender() method in BatteryStatus
40 import com.android.settingslib.fuelgauge.BatteryStatus.isBatteryDefender138 assertWithMessage(it).that(isBatteryDefender(batteryChangedIntent)) in assertIsBatteryDefender()141 assertWithMessage(it).that(isBatteryDefender(chargingStatus)) in assertIsBatteryDefender()
247 Assert.assertFalse(mBatteryController.isBatteryDefender()); in batteryStateChanged_chargingStatusNotLongLife_outputsFalse()258 Assert.assertTrue(mBatteryController.isBatteryDefender()); in batteryStateChanged_chargingStatusLongLife_outputsTrue()267 Assert.assertFalse(mBatteryController.isBatteryDefender()); in batteryStateChanged_noChargingStatusGiven_outputsFalse()
299 boolean isBatteryDefender, in getColorProfile() argument305 if (isBatteryDefender) return ColorProfile.None; in getColorProfile()330 void onIsBatteryDefenderChanged(boolean isBatteryDefender) { in onIsBatteryDefenderChanged() argument331 boolean valueChanged = mIsBatteryDefender != isBatteryDefender; in onIsBatteryDefenderChanged()332 mIsBatteryDefender = isBatteryDefender; in onIsBatteryDefenderChanged()
101 public void onIsBatteryDefenderChanged(boolean isBatteryDefender) {102 mView.onIsBatteryDefenderChanged(isBatteryDefender);
274 boolean isBatteryDefender = chargingStatus == CHARGING_POLICY_ADAPTIVE_LONGLIFE; in onReceive()275 if (isBatteryDefender != mIsBatteryDefender) { in onReceive()276 mIsBatteryDefender = isBatteryDefender; in onReceive()359 public boolean isBatteryDefender() { in isBatteryDefender() method in BatteryControllerImpl
162 default void onIsBatteryDefenderChanged(boolean isBatteryDefender) { in onIsBatteryDefenderChanged() argument
1280 mBatteryDefender = isBatteryDefender(status); in onRefreshBatteryInfo()1556 protected boolean isBatteryDefender(BatteryStatus status) { in isBatteryDefender() method in KeyguardIndicationController1557 return status.isBatteryDefender(); in isBatteryDefender()