Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/power/stats/
DBatteryExternalStatsWorker.java262 public Future<?> scheduleSyncDueToScreenStateChange(int flags, boolean onBattery, in scheduleSyncDueToScreenStateChange() argument
266 mOnBattery = onBattery; in scheduleSyncDueToScreenStateChange()
456 final boolean onBattery;
464 onBattery = mOnBattery;
490 updateExternalStatsLocked(reason, updateFlags, onBattery,
534 private void updateExternalStatsLocked(final String reason, int updateFlags, boolean onBattery,
703 onBattery = mStats.isOnBatteryLocked();
713 mStats.updateCpuTimeLocked(onBattery, onBatteryScreenOff, cpuClusterChargeUC);
DBatteryStatsImpl.java466 public void batteryPowerChanged(boolean onBattery); in batteryPowerChanged() argument
862 Future<?> scheduleSyncDueToScreenStateChange(int flags, boolean onBattery, in scheduleSyncDueToScreenStateChange() argument
14081 public void updateCpuTimeLocked(boolean onBattery, boolean onBatteryScreenOff,
14109 if (!onBattery) {
14156 readKernelUidCpuTimesLocked(partialTimersToConsider, updatedUids, onBattery);
14160 updateClusterSpeedTimes(updatedUids, onBattery, powerAccumulator);
14162 readKernelUidCpuFreqTimesLocked(partialTimersToConsider, onBattery, onBatteryScreenOff,
14168 readKernelUidCpuActiveTimesLocked(onBattery);
14169 readKernelUidCpuClusterTimesLocked(onBattery, powerAccumulator);
14272 public void updateClusterSpeedTimes(@NonNull SparseLongArray updatedUids, boolean onBattery,
[all …]
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DMockBatteryStatsImpl.java306 public Future<?> scheduleSyncDueToScreenStateChange(int flag, boolean onBattery, in scheduleSyncDueToScreenStateChange() argument
DBatteryStatsNoteTest.java1358 if (!state.onBattery) return; in testGetPerStateActiveRadioDurationMs_noModemActivity()
1656 if (!state.onBattery) return; in testGetPerStateActiveRadioDurationMs_withModemActivity()
1940 if (!state.onBattery) return; in testGetPerStateActiveRadioDurationMs_withSpecificInfoModemActivity()
2438 public boolean onBattery = false; field in BatteryStatsNoteTest.ModemAndBatteryState
2462 void setOnBattery(boolean onBattery) { in setOnBattery() argument
2463 this.onBattery = onBattery; in setOnBattery()
2464 mBsi.updateTimeBasesLocked(onBattery, Display.STATE_OFF, currentTimeMs * 1000, in setOnBattery()
2466 mBsi.setOnBatteryInternal(onBattery); in setOnBattery()
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java2664 final boolean onBattery = BatteryStatsImpl.isOnBattery(plugType, status); in setBatteryState()
2665 if (mStats.isOnBattery() == onBattery) { in setBatteryState()