Home
last modified time | relevance | path

Searched refs:isBatteryDefender (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
DBatteryStatus.java139 public boolean isBatteryDefender() { in isBatteryDefender() method in BatteryStatus
140 return isBatteryDefender(chargingStatus); in isBatteryDefender()
329 public static boolean isBatteryDefender(Intent batteryChangedIntent) { in isBatteryDefender() method in BatteryStatus
332 return isBatteryDefender(chargingStatus); in isBatteryDefender()
343 public static boolean isBatteryDefender(int chargingStatus) { in isBatteryDefender() method in BatteryStatus
/frameworks/base/packages/SettingsLib/tests/unit/src/com/android/settingslib/fuelgague/
DBatteryStatusTest.kt40 import com.android.settingslib.fuelgauge.BatteryStatus.isBatteryDefender
138 assertWithMessage(it).that(isBatteryDefender(batteryChangedIntent)) in assertIsBatteryDefender()
141 assertWithMessage(it).that(isBatteryDefender(chargingStatus)) in assertIsBatteryDefender()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBatteryControllerTest.java247 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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/battery/
DBatteryMeterView.java299 boolean isBatteryDefender, in getColorProfile() argument
305 if (isBatteryDefender) return ColorProfile.None; in getColorProfile()
330 void onIsBatteryDefenderChanged(boolean isBatteryDefender) { in onIsBatteryDefenderChanged() argument
331 boolean valueChanged = mIsBatteryDefender != isBatteryDefender; in onIsBatteryDefenderChanged()
332 mIsBatteryDefender = isBatteryDefender; in onIsBatteryDefenderChanged()
DBatteryMeterViewController.java101 public void onIsBatteryDefenderChanged(boolean isBatteryDefender) {
102 mView.onIsBatteryDefenderChanged(isBatteryDefender);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBatteryControllerImpl.java274 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
DBatteryController.java162 default void onIsBatteryDefenderChanged(boolean isBatteryDefender) { in onIsBatteryDefenderChanged() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DKeyguardIndicationController.java1280 mBatteryDefender = isBatteryDefender(status); in onRefreshBatteryInfo()
1556 protected boolean isBatteryDefender(BatteryStatus status) { in isBatteryDefender() method in KeyguardIndicationController
1557 return status.isBatteryDefender(); in isBatteryDefender()