Searched refs:onBattery (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/services/core/java/com/android/server/am/ |
D | OomAdjProfiler.java | 61 void batteryPowerChanged(boolean onBattery) { in batteryPowerChanged() argument 67 mOnBattery = onBattery; in batteryPowerChanged() 118 private void updateSystemServerCpuTime(boolean onBattery, boolean screenOff) { in updateSystemServerCpuTime() argument 125 cpuTimeMs - mLastSystemServerCpuTimeMs, onBattery, screenOff); in updateSystemServerCpuTime() 192 public void addCpuTimeMs(long cpuTimeMs, boolean onBattery, boolean screenOff) { in addCpuTimeMs() argument 193 if (onBattery) { in addCpuTimeMs()
|
D | BatteryExternalStatsWorker.java | 161 boolean onBattery, boolean onBatteryScreenOff, long delayMillis) { in scheduleReadProcStateCpuTimes() argument 171 mStats, onBattery, onBatteryScreenOff).recycleOnUse(), in scheduleReadProcStateCpuTimes() 180 boolean onBattery, boolean onBatteryScreenOff) { in scheduleCopyFromAllUidsCpuTimes() argument 190 mStats, onBattery, onBatteryScreenOff).recycleOnUse()); in scheduleCopyFromAllUidsCpuTimes() 198 boolean onBattery, boolean onBatteryScreenOff) { in scheduleCpuSyncDueToScreenStateChange() argument 201 mOnBattery = onBattery; in scheduleCpuSyncDueToScreenStateChange() 333 final boolean onBattery; 340 onBattery = mOnBattery; 362 updateExternalStatsLocked(reason, updateFlags, onBattery, 405 boolean onBattery, boolean onBatteryScreenOff, boolean useLatestStates) { in updateExternalStatsLocked() argument [all …]
|
D | BatteryStatsService.java | 1143 final boolean onBattery = BatteryStatsImpl.isOnBattery(plugType, status); in setBatteryState() 1144 if (mStats.isOnBattery() == onBattery) { in setBatteryState()
|
D | ActivityManagerService.java | 2898 public void batteryPowerChanged(boolean onBattery) { in batteryPowerChanged() argument 2904 mOnBattery = DEBUG_POWER ? true : onBattery; in batteryPowerChanged() 2906 mOomAdjProfiler.batteryPowerChanged(onBattery); in batteryPowerChanged()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | MockBatteryStatsImpl.java | 177 public Future<?> scheduleReadProcStateCpuTimes(boolean onBattery, in scheduleReadProcStateCpuTimes() argument 184 boolean onBattery, boolean onBatteryScreenOff) { in scheduleCopyFromAllUidsCpuTimes() argument 190 boolean onBattery, boolean onBatteryScreenOff) { in scheduleCpuSyncDueToScreenStateChange() argument
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BatteryStatsImpl.java | 327 public void batteryPowerChanged(boolean onBattery); in batteryPowerChanged() argument 432 public void updateProcStateCpuTimes(boolean onBattery, boolean onBatteryScreenOff) { in updateProcStateCpuTimes() argument 483 if (onBattery && cpuTimesMs != null) { in updateProcStateCpuTimes() 485 u.addProcStateTimesMs(procState, cpuTimesMs, onBattery); in updateProcStateCpuTimes() 513 public void copyFromAllUidsCpuTimes(boolean onBattery, boolean onBatteryScreenOff) { in copyFromAllUidsCpuTimes() argument 544 if (onBattery && deltaTimesMs != null) { in copyFromAllUidsCpuTimes() 554 u.addProcStateTimesMs(procState, deltaTimesMs, onBattery); in copyFromAllUidsCpuTimes() 619 Future<?> scheduleReadProcStateCpuTimes(boolean onBattery, boolean onBatteryScreenOff, in scheduleReadProcStateCpuTimes() argument 621 Future<?> scheduleCopyFromAllUidsCpuTimes(boolean onBattery, boolean onBatteryScreenOff); in scheduleCopyFromAllUidsCpuTimes() argument 623 Future<?> scheduleCpuSyncDueToScreenStateChange(boolean onBattery, in scheduleCpuSyncDueToScreenStateChange() argument [all …]
|