Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerUI.java388 BatteryStateSnapshot lastSnapshot) { in maybeShowHybridWarning() argument
402 final boolean playSound = currentSnapshot.getBucket() != lastSnapshot.getBucket() in maybeShowHybridWarning()
403 || lastSnapshot.getPlugged(); in maybeShowHybridWarning()
478 BatteryStateSnapshot lastSnapshot) { in maybeShowBatteryWarning() argument
479 final boolean playSound = currentSnapshot.getBucket() != lastSnapshot.getBucket() in maybeShowBatteryWarning()
480 || lastSnapshot.getPlugged(); in maybeShowBatteryWarning()
482 if (shouldShowLowBatteryWarning(currentSnapshot, lastSnapshot)) { in maybeShowBatteryWarning()
484 } else if (shouldDismissLowBatteryWarning(currentSnapshot, lastSnapshot)) { in maybeShowBatteryWarning()
494 BatteryStateSnapshot lastSnapshot) { in shouldShowLowBatteryWarning() argument
497 && (((currentSnapshot.getBucket() < lastSnapshot.getBucket() in shouldShowLowBatteryWarning()
[all …]