Searched refs:BatteryStateSnapshot (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/ |
D | PowerUI.java | 91 @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 …]
|
D | BatteryStateSnapshot.kt | 9 data class BatteryStateSnapshot( class
|
D | PowerNotificationWarnings.java | 156 private BatteryStateSnapshot mCurrentBatterySnapshot; 205 public void updateSnapshot(BatteryStateSnapshot snapshot) { in updateSnapshot()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/ |
D | PowerUITest.java | 329 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()
|
D | PowerNotificationWarningsTest.java | 63 BatteryStateSnapshot snapshot = new BatteryStateSnapshot(100, false, false, 1, in setUp()
|