Searched refs:testUids (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsCpuTimesTest.java | 216 final int[] testUids = {10012, 10014, 10016}; in testUpdateClusterSpeedTimes() local 218 for (int i = 0; i < testUids.length; ++i) { in testUpdateClusterSpeedTimes() 219 updatedUids.put(testUids[i], cpuTimeUs[i]); in testUpdateClusterSpeedTimes() 232 for (int i = 0; i < testUids.length; ++i) { in testUpdateClusterSpeedTimes() 233 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStats().get(testUids[i]); in testUpdateClusterSpeedTimes() 234 assertNotNull("No entry for uid=" + testUids[i], u); in testUpdateClusterSpeedTimes() 237 assertEquals("Uid=" + testUids[i] + ", cluster=" + cluster + ", speed=" + speed, in testUpdateClusterSpeedTimes() 252 final int[] testUids = getUids(testUserId, new int[]{ in testReadKernelUidCpuTimesLocked() local 263 for (int i = 0; i < testUids.length; ++i) { in testReadKernelUidCpuTimesLocked() 264 callback.onUidCpuTime(testUids[i], uidTimesUs[i]); in testReadKernelUidCpuTimesLocked() [all …]
|
D | BatteryStatsImplTest.java | 80 final int[] testUids = {10032, 10048, 10145, 10139}; in testUpdateProcStateCpuTimes() local 87 addPendingUids(testUids, testProcStates); in testUpdateProcStateCpuTimes() 94 for (int i = 0; i < testUids.length; ++i) { in testUpdateProcStateCpuTimes() 95 when(mKernelSingleUidTimeReader.readDeltaMs(testUids[i])).thenReturn(cpuTimes[i]); in testUpdateProcStateCpuTimes() 98 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStatsLocked(testUids[i]); in testUpdateProcStateCpuTimes() 108 for (int i = 0; i < testUids.length; ++i) { in testUpdateProcStateCpuTimes() 109 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStats().get(testUids[i]); in testUpdateProcStateCpuTimes() 112 assertArrayEquals("Uid=" + testUids[i], cpuTimes[i], in testUpdateProcStateCpuTimes() 127 for (int i = 0; i < testUids.length; ++i) { in testUpdateProcStateCpuTimes() 128 when(mKernelSingleUidTimeReader.readDeltaMs(testUids[i])).thenReturn(delta1[i]); in testUpdateProcStateCpuTimes() [all …]
|