Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerUI.java387 void maybeShowHybridWarning(BatteryStateSnapshot currentSnapshot, in maybeShowHybridWarning() argument
391 final long timeRemainingMillis = currentSnapshot.getTimeRemainingMillis(); in maybeShowHybridWarning()
392 if (currentSnapshot.getBatteryLevel() >= CHARGE_CYCLE_PERCENT_RESET in maybeShowHybridWarning()
402 final boolean playSound = currentSnapshot.getBucket() != lastSnapshot.getBucket() in maybeShowHybridWarning()
405 if (shouldShowHybridWarning(currentSnapshot)) { in maybeShowHybridWarning()
410 && timeRemainingMillis <= currentSnapshot.getSevereThresholdMillis()) in maybeShowHybridWarning()
411 || currentSnapshot.getBatteryLevel() in maybeShowHybridWarning()
412 <= currentSnapshot.getSevereLevelThreshold()) { in maybeShowHybridWarning()
422 } else if (shouldDismissHybridWarning(currentSnapshot)) { in maybeShowHybridWarning()
477 BatteryStateSnapshot currentSnapshot, in maybeShowBatteryWarning() argument
[all …]