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.java352 BatteryStateSnapshot lastSnapshot) { in maybeShowHybridWarning() argument
364 final boolean playSound = currentSnapshot.getBucket() != lastSnapshot.getBucket() in maybeShowHybridWarning()
365 || lastSnapshot.getPlugged(); in maybeShowHybridWarning()
437 BatteryStateSnapshot lastSnapshot) { in maybeShowBatteryWarning() argument
438 final boolean playSound = currentSnapshot.getBucket() != lastSnapshot.getBucket() in maybeShowBatteryWarning()
439 || lastSnapshot.getPlugged(); in maybeShowBatteryWarning()
441 if (shouldShowLowBatteryWarning(currentSnapshot, lastSnapshot)) { in maybeShowBatteryWarning()
443 } else if (shouldDismissLowBatteryWarning(currentSnapshot, lastSnapshot)) { in maybeShowBatteryWarning()
453 BatteryStateSnapshot lastSnapshot) { in shouldShowLowBatteryWarning() argument
456 && (((currentSnapshot.getBucket() < lastSnapshot.getBucket() in shouldShowLowBatteryWarning()
[all …]