Searched refs:currentSnapshot (Results 1 – 1 of 1) sorted by relevance
351 void maybeShowHybridWarning(BatteryStateSnapshot currentSnapshot, in maybeShowHybridWarning() argument355 if (currentSnapshot.getBatteryLevel() >= CHARGE_CYCLE_PERCENT_RESET in maybeShowHybridWarning()356 && currentSnapshot.getTimeRemainingMillis() > SIX_HOURS_MILLIS) { in maybeShowHybridWarning()364 final boolean playSound = currentSnapshot.getBucket() != lastSnapshot.getBucket() in maybeShowHybridWarning()367 if (shouldShowHybridWarning(currentSnapshot)) { in maybeShowHybridWarning()371 if (currentSnapshot.getTimeRemainingMillis() in maybeShowHybridWarning()372 <= currentSnapshot.getSevereThresholdMillis() in maybeShowHybridWarning()373 || currentSnapshot.getBatteryLevel() in maybeShowHybridWarning()374 <= currentSnapshot.getSevereLevelThreshold()) { in maybeShowHybridWarning()384 } else if (shouldDismissHybridWarning(currentSnapshot)) { in maybeShowHybridWarning()[all …]