/frameworks/base/services/core/java/com/android/server/am/ |
D | OomAdjProfiler.java | 73 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()
|
D | BatteryExternalStatsWorker.java | 258 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 …]
|
D | BatteryStatsService.java | 2094 final boolean onBattery = BatteryStatsImpl.isOnBattery(plugType, status); in setBatteryState() 2095 if (mStats.isOnBattery() == onBattery) { in setBatteryState()
|
D | ActivityManagerService.java | 2528 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/ |
D | MockBatteryStatsImpl.java | 203 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/ |
D | BatteryStatsImpl.java | 365 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 …]
|