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.java106 @VisibleForTesting BatteryStateSnapshot mCurrentBatteryStateSnapshot;
107 @VisibleForTesting BatteryStateSnapshot mLastBatteryStateSnapshot;
394 mCurrentBatteryStateSnapshot = new BatteryStateSnapshot(mBatteryLevel, isPowerSaverMode, in maybeShowBatteryWarningV2()
405 mCurrentBatteryStateSnapshot = new BatteryStateSnapshot(mBatteryLevel, isPowerSaverMode, in maybeShowBatteryWarningV2()
432 void maybeShowHybridWarning(BatteryStateSnapshot currentSnapshot, in maybeShowHybridWarning()
433 BatteryStateSnapshot lastSnapshot) { in maybeShowHybridWarning()
474 boolean shouldShowHybridWarning(BatteryStateSnapshot snapshot) { in shouldShowHybridWarning()
503 boolean shouldDismissHybridWarning(BatteryStateSnapshot snapshot) { in shouldDismissHybridWarning()
510 BatteryStateSnapshot currentSnapshot, in maybeShowBatteryWarning()
511 BatteryStateSnapshot lastSnapshot) { in maybeShowBatteryWarning()
[all …]
DBatteryStateSnapshot.kt9 data class BatteryStateSnapshot( class
DPowerNotificationWarnings.java179 private BatteryStateSnapshot mCurrentBatterySnapshot;
249 public void updateSnapshot(BatteryStateSnapshot snapshot) { in updateSnapshot()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/
DPowerUITest.java364 BatteryStateSnapshot lastState = state.get(); in testMaybeShowHybridWarning()
549 BatteryStateSnapshot snapshot = new BatteryStateSnapshot( in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull()
559 snapshot = new BatteryStateSnapshot( in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull()
581 BatteryStateSnapshot lastState = state.get(); in testShouldShowStandardWarning()
651 BatteryStateSnapshot lastState = state.get(); in testShouldDismissStandardWarning()
732 public BatteryStateSnapshot get() { in get()
734 return new BatteryStateSnapshot(mBatteryLevel, mIsPowerSaver, mPlugged, mBucket, in get()
739 return new BatteryStateSnapshot(mBatteryLevel, mIsPowerSaver, mPlugged, mBucket, in get()
DPowerNotificationWarningsTest.java131 BatteryStateSnapshot snapshot = new BatteryStateSnapshot(100, false, false, 1, in setUp()