Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/am/
DOomAdjProfiler.java73 void batteryPowerChanged(boolean onBattery) { in batteryPowerChanged() argument
76 mOnBattery = onBattery; in batteryPowerChanged()
123 private void updateSystemServerCpuTime(boolean onBattery, boolean screenOff, in updateSystemServerCpuTime() argument
131 cpuTimeMs - mLastSystemServerCpuTimeMs, onBattery, screenOff); in updateSystemServerCpuTime()
200 public void addCpuTimeMs(long cpuTimeMs, boolean onBattery, boolean screenOff) { in addCpuTimeMs() argument
201 addCpuTimeUs(cpuTimeMs * 1000, onBattery, screenOff); in addCpuTimeMs()
208 public void addCpuTimeUs(long cpuTimeUs, boolean onBattery, boolean screenOff) { in addCpuTimeUs() argument
209 if (onBattery) { in addCpuTimeUs()
DBatteryExternalStatsWorker.java258 boolean onBattery, boolean onBatteryScreenOff, long delayMillis) { in scheduleReadProcStateCpuTimes() argument
268 mStats, onBattery, onBatteryScreenOff).recycleOnUse(), in scheduleReadProcStateCpuTimes()
277 boolean onBattery, boolean onBatteryScreenOff) { in scheduleCopyFromAllUidsCpuTimes() argument
287 mStats, onBattery, onBatteryScreenOff).recycleOnUse()); in scheduleCopyFromAllUidsCpuTimes()
295 int flags, boolean onBattery, boolean onBatteryScreenOff, int screenState) { in scheduleSyncDueToScreenStateChange() argument
298 mOnBattery = onBattery; in scheduleSyncDueToScreenStateChange()
432 final boolean onBattery;
440 onBattery = mOnBattery;
463 updateExternalStatsLocked(reason, updateFlags, onBattery,
508 private void updateExternalStatsLocked(final String reason, int updateFlags, boolean onBattery, in updateExternalStatsLocked() argument
[all …]
DBatteryStatsService.java2094 final boolean onBattery = BatteryStatsImpl.isOnBattery(plugType, status); in setBatteryState()
2095 if (mStats.isOnBattery() == onBattery) { in setBatteryState()
DActivityManagerService.java2528 public void batteryPowerChanged(boolean onBattery) { in batteryPowerChanged() argument
2533 mOnBattery = DEBUG_POWER ? true : onBattery; in batteryPowerChanged()
2534 mOomAdjProfiler.batteryPowerChanged(onBattery); in batteryPowerChanged()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DMockBatteryStatsImpl.java203 public Future<?> scheduleReadProcStateCpuTimes(boolean onBattery, in scheduleReadProcStateCpuTimes() argument
210 boolean onBattery, boolean onBatteryScreenOff) { in scheduleCopyFromAllUidsCpuTimes() argument
216 int flag, boolean onBattery, boolean onBatteryScreenOff, int screenState) { in scheduleSyncDueToScreenStateChange() argument
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java365 public void batteryPowerChanged(boolean onBattery); in batteryPowerChanged() argument
469 public void updateProcStateCpuTimes(boolean onBattery, boolean onBatteryScreenOff) { in updateProcStateCpuTimes() argument
520 if (onBattery && cpuTimesMs != null) { in updateProcStateCpuTimes()
522 u.addProcStateTimesMs(procState, cpuTimesMs, onBattery); in updateProcStateCpuTimes()
550 public void copyFromAllUidsCpuTimes(boolean onBattery, boolean onBatteryScreenOff) { in copyFromAllUidsCpuTimes() argument
581 if (onBattery && deltaTimesMs != null) { in copyFromAllUidsCpuTimes()
591 u.addProcStateTimesMs(procState, deltaTimesMs, onBattery); in copyFromAllUidsCpuTimes()
685 Future<?> scheduleReadProcStateCpuTimes(boolean onBattery, boolean onBatteryScreenOff, in scheduleReadProcStateCpuTimes() argument
687 Future<?> scheduleCopyFromAllUidsCpuTimes(boolean onBattery, boolean onBatteryScreenOff); in scheduleCopyFromAllUidsCpuTimes() argument
692 Future<?> scheduleSyncDueToScreenStateChange(int flags, boolean onBattery, in scheduleSyncDueToScreenStateChange() argument
[all …]