Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerUI.java432 void maybeShowHybridWarning(BatteryStateSnapshot currentSnapshot, in maybeShowHybridWarning() argument
435 if (currentSnapshot.getBatteryLevel() >= CHARGE_CYCLE_PERCENT_RESET) { in maybeShowHybridWarning()
443 final boolean playSound = currentSnapshot.getBucket() != lastSnapshot.getBucket() in maybeShowHybridWarning()
446 if (shouldShowHybridWarning(currentSnapshot)) { in maybeShowHybridWarning()
450 if (currentSnapshot.getBatteryLevel() <= currentSnapshot.getSevereLevelThreshold()) { in maybeShowHybridWarning()
460 } else if (shouldDismissHybridWarning(currentSnapshot)) { in maybeShowHybridWarning()
510 BatteryStateSnapshot currentSnapshot, in maybeShowBatteryWarning() argument
512 final boolean playSound = currentSnapshot.getBucket() != lastSnapshot.getBucket() in maybeShowBatteryWarning()
515 if (shouldShowLowBatteryWarning(currentSnapshot, lastSnapshot)) { in maybeShowBatteryWarning()
517 } else if (shouldDismissLowBatteryWarning(currentSnapshot, lastSnapshot)) { in maybeShowBatteryWarning()
[all …]
/frameworks/base/services/core/java/com/android/server/cpu/
DCpuMonitorService.java535 Snapshot currentSnapshot = mSnapshotsByUptime.get(uptimeMillis); in appendCpuInfo() local
536 if (currentSnapshot == null) { in appendCpuInfo()
537 currentSnapshot = new Snapshot(uptimeMillis); in appendCpuInfo()
538 mSnapshotsByUptime.append(uptimeMillis, currentSnapshot); in appendCpuInfo()
545 currentSnapshot.appendCpuInfo(cpuInfo); in appendCpuInfo()