Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsCpuTimesTest.java23 import static com.android.internal.os.BatteryStatsImpl.WAKE_LOCK_WEIGHT;
481 final long expectedUserTimeUs = uidTimesUs[i][0] * WAKE_LOCK_WEIGHT / 100; in testReadKernelUidCpuTimesLocked_withPartialTimers()
482 final long expectedSystemTimeUs = uidTimesUs[i][1] * WAKE_LOCK_WEIGHT / 100; in testReadKernelUidCpuTimesLocked_withPartialTimers()
494 totalUserTimeUs = totalUserTimeUs * (100 - WAKE_LOCK_WEIGHT) / 100; in testReadKernelUidCpuTimesLocked_withPartialTimers()
495 totalSystemTimeUs = totalSystemTimeUs * (100 - WAKE_LOCK_WEIGHT) / 100; in testReadKernelUidCpuTimesLocked_withPartialTimers()
766 (uidTimesMs[i][idx] * 1000 * WAKE_LOCK_WEIGHT) / 100; in testReadKernelUidCpuFreqTimesLocked_partialTimers()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java188 public static final int WAKE_LOCK_WEIGHT = 50; field in BatteryStatsImpl
12109 userTimeUs = (userTimeUs * WAKE_LOCK_WEIGHT) / 100; in readKernelUidCpuTimesLocked()
12110 systemTimeUs = (systemTimeUs * WAKE_LOCK_WEIGHT) / 100; in readKernelUidCpuTimesLocked()
12135 mTempTotalCpuUserTimeUs = (mTempTotalCpuUserTimeUs * (100 - WAKE_LOCK_WEIGHT)) / 100; in readKernelUidCpuTimesLocked()
12137 (mTempTotalCpuSystemTimeUs * (100 - WAKE_LOCK_WEIGHT)) / 100; in readKernelUidCpuTimesLocked()
12237 (cpuFreqTimeMs[freqIndex] * 1000 * WAKE_LOCK_WEIGHT) / 100; in readKernelUidCpuFreqTimesLocked()