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