Searched refs:BatteryStateSnapshot (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/ |
D | PowerUI.java | 100 @VisibleForTesting BatteryStateSnapshot mCurrentBatteryStateSnapshot; 101 @VisibleForTesting BatteryStateSnapshot mLastBatteryStateSnapshot; 345 mCurrentBatteryStateSnapshot = new BatteryStateSnapshot(mBatteryLevel, isPowerSaverMode, in maybeShowBatteryWarningV2() 356 mCurrentBatteryStateSnapshot = new BatteryStateSnapshot(mBatteryLevel, isPowerSaverMode, in maybeShowBatteryWarningV2() 387 void maybeShowHybridWarning(BatteryStateSnapshot currentSnapshot, in maybeShowHybridWarning() 388 BatteryStateSnapshot lastSnapshot) { in maybeShowHybridWarning() 436 boolean shouldShowHybridWarning(BatteryStateSnapshot snapshot) { in shouldShowHybridWarning() 471 boolean shouldDismissHybridWarning(BatteryStateSnapshot snapshot) { in shouldDismissHybridWarning() 477 BatteryStateSnapshot currentSnapshot, in maybeShowBatteryWarning() 478 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 | 350 BatteryStateSnapshot lastState = state.get(); in testMaybeShowHybridWarning() 541 BatteryStateSnapshot snapshot = new BatteryStateSnapshot( in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull() 551 snapshot = new BatteryStateSnapshot( in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull() 573 BatteryStateSnapshot lastState = state.get(); in testShouldShowStandardWarning() 643 BatteryStateSnapshot lastState = state.get(); in testShouldDismissStandardWarning() 715 public BatteryStateSnapshot get() { in get() 717 return new BatteryStateSnapshot(mBatteryLevel, mIsPowerSaver, mPlugged, mBucket, in get() 722 return new BatteryStateSnapshot(mBatteryLevel, mIsPowerSaver, mPlugged, mBucket, in get()
|
D | PowerNotificationWarningsTest.java | 63 BatteryStateSnapshot snapshot = new BatteryStateSnapshot(100, false, false, 1, in setUp()
|