Home
last modified time | relevance | path

Searched refs:chargingStatus (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/packages/SettingsLib/tests/unit/src/com/android/settingslib/fuelgague/
DBatteryStatusTest.kt119 val chargingStatus = CHARGING_POLICY_ADAPTIVE_LONGLIFE in isBatteryDefender_chargingLongLife_returnsTrue() constant
120 val batteryChangedIntent = createIntent(chargingStatus = chargingStatus) in isBatteryDefender_chargingLongLife_returnsTrue()
122 assertIsBatteryDefender(chargingStatus, batteryChangedIntent).isTrue() in isBatteryDefender_chargingLongLife_returnsTrue()
127 val chargingStatus = CHARGING_POLICY_DEFAULT in isBatteryDefender_nonChargingLongLife_returnsFalse() constant
128 val batteryChangedIntent = createIntent(chargingStatus = chargingStatus) in isBatteryDefender_nonChargingLongLife_returnsFalse()
130 assertIsBatteryDefender(chargingStatus, batteryChangedIntent).isFalse() in isBatteryDefender_nonChargingLongLife_returnsFalse()
133 private fun assertIsBatteryDefender(chargingStatus: Int, batteryChangedIntent: Intent) = in assertIsBatteryDefender()
137 "failed by isBatteryDefender(Intent), chargingStatus=$chargingStatus".let { in assertIsBatteryDefender()
140 "failed by isBatteryDefender($chargingStatus)".let { in assertIsBatteryDefender()
141 assertWithMessage(it).that(isBatteryDefender(chargingStatus)) in assertIsBatteryDefender()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
DBatteryStatus.java58 public final int chargingStatus; field in BatteryStatus
69 public BatteryStatus(int status, int level, int plugged, int chargingStatus, in BatteryStatus() argument
74 this.chargingStatus = chargingStatus; in BatteryStatus()
93 chargingStatus = batteryChangedIntent.getIntExtra(EXTRA_CHARGING_STATUS, in BatteryStatus()
140 return isBatteryDefender(chargingStatus); in isBatteryDefender()
159 + ",chargingStatus=" + chargingStatus + ",maxChargingWattage=" + maxChargingWattage in toString()
330 int chargingStatus = in isBatteryDefender() local
332 return isBatteryDefender(chargingStatus); in isBatteryDefender()
343 public static boolean isBatteryDefender(int chargingStatus) { in isBatteryDefender() argument
344 return chargingStatus == CHARGING_POLICY_ADAPTIVE_LONGLIFE; in isBatteryDefender()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBatteryControllerImpl.java273 int chargingStatus = intent.getIntExtra(EXTRA_CHARGING_STATUS, CHARGING_POLICY_DEFAULT); in onReceive() local
274 boolean isBatteryDefender = chargingStatus == CHARGING_POLICY_ADAPTIVE_LONGLIFE; in onReceive()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/logging/
DKeyguardUpdateMonitorLogger.kt581 int2 = batteryStatus?.chargingStatus ?: -1 in logHandleBatteryUpdate()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardUpdateMonitor.java3524 return current.chargingStatus != old.chargingStatus; in isBatteryUpdateInteresting()