Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerUI.java91 @VisibleForTesting BatteryStateSnapshot mCurrentBatteryStateSnapshot;
92 @VisibleForTesting BatteryStateSnapshot mLastBatteryStateSnapshot;
309 mCurrentBatteryStateSnapshot = new BatteryStateSnapshot(mBatteryLevel, isPowerSaverMode, in maybeShowBatteryWarningV2()
320 mCurrentBatteryStateSnapshot = new BatteryStateSnapshot(mBatteryLevel, isPowerSaverMode, in maybeShowBatteryWarningV2()
351 void maybeShowHybridWarning(BatteryStateSnapshot currentSnapshot, in maybeShowHybridWarning()
352 BatteryStateSnapshot lastSnapshot) { in maybeShowHybridWarning()
398 boolean shouldShowHybridWarning(BatteryStateSnapshot snapshot) { in shouldShowHybridWarning()
430 boolean shouldDismissHybridWarning(BatteryStateSnapshot snapshot) { in shouldDismissHybridWarning()
436 BatteryStateSnapshot currentSnapshot, in maybeShowBatteryWarning()
437 BatteryStateSnapshot lastSnapshot) { in maybeShowBatteryWarning()
[all …]
DBatteryStateSnapshot.kt9 data class BatteryStateSnapshot( class
DPowerNotificationWarnings.java156 private BatteryStateSnapshot mCurrentBatterySnapshot;
205 public void updateSnapshot(BatteryStateSnapshot snapshot) { in updateSnapshot()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/
DPowerUITest.java329 BatteryStateSnapshot lastState = state.get(); in testMaybeShowHybridWarning()
520 BatteryStateSnapshot snapshot = new BatteryStateSnapshot( in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull()
530 snapshot = new BatteryStateSnapshot( in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull()
552 BatteryStateSnapshot lastState = state.get(); in testShouldShowStandardWarning()
622 BatteryStateSnapshot lastState = state.get(); in testShouldDismissStandardWarning()
696 public BatteryStateSnapshot get() { in get()
698 return new BatteryStateSnapshot(mBatteryLevel, mIsPowerSaver, mPlugged, mBucket, in get()
703 return new BatteryStateSnapshot(mBatteryLevel, mIsPowerSaver, mPlugged, mBucket, in get()
DPowerNotificationWarningsTest.java63 BatteryStateSnapshot snapshot = new BatteryStateSnapshot(100, false, false, 1, in setUp()