Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsCpuTimesTest.java465 final int[] partialTimerUids = { in testReadKernelUidCpuTimesLocked_withPartialTimers() local
470 = getPartialTimers(partialTimerUids); in testReadKernelUidCpuTimesLocked_withPartialTimers()
509 for (int i = 0; i < partialTimerUids.length; ++i) { in testReadKernelUidCpuTimesLocked_withPartialTimers()
510 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStats().get(partialTimerUids[i]); in testReadKernelUidCpuTimesLocked_withPartialTimers()
511 assertNotNull("No entry for partial timer uid=" + partialTimerUids[i], u); in testReadKernelUidCpuTimesLocked_withPartialTimers()
512 final long expectedUserTimeUs = totalUserTimeUs / (partialTimerUids.length - i); in testReadKernelUidCpuTimesLocked_withPartialTimers()
513 final long expectedSystemTimeUs = totalSystemTimeUs / (partialTimerUids.length - i); in testReadKernelUidCpuTimesLocked_withPartialTimers()
514 assertEquals("Unexpected user cpu time for partial timer uid=" + partialTimerUids[i], in testReadKernelUidCpuTimesLocked_withPartialTimers()
516 assertEquals("Unexpected system cpu time for partial timer uid=" + partialTimerUids[i], in testReadKernelUidCpuTimesLocked_withPartialTimers()
519 + partialTimerUids[i], in testReadKernelUidCpuTimesLocked_withPartialTimers()
[all …]