Searched refs:times2 (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | KernelCpuUidClusterTimeReaderTest.java | 118 final long[][] times2 = increaseTime(times1); in testReadDelta() local 119 setCoresAndData(times2); in testReadDelta() 122 mCallback.verify(mUids[i], subtract(clusterTime(times2[i]), clusterTime(times1[i]))); in testReadDelta() 133 final long[][] times3 = increaseTime(times2); in testReadDelta() 163 final long[][] times2 = increaseTime(times1); in testReadAbsolute() local 164 setCoresAndData(times2); in testReadAbsolute() 167 mCallback.verify(mUids[i], clusterTime(times2[i])); in testReadAbsolute() 181 final long[][] times2 = increaseTime(times1); in testReadDeltaDecreasedTime() local 182 System.arraycopy(times1[0], 0, times2[0], 0, mCpus); in testReadDeltaDecreasedTime() 183 times2[0][0] = 100; in testReadDeltaDecreasedTime() [all …]
|
D | KernelCpuUidActiveTimeReaderTest.java | 161 final long[][] times2 = increaseTime(times1); in testReadAbsolute() local 162 setCpusAndData(times2); in testReadAbsolute() 165 mCallback.verify(mUids[i], getActiveTime(times2[i])); in testReadAbsolute() 179 final long[][] times2 = increaseTime(times1); in testReadDeltaDecreasedTime() local 180 System.arraycopy(times1[0], 0, times2[0], 0, mCpus); in testReadDeltaDecreasedTime() 181 times2[0][0] = 100; in testReadDeltaDecreasedTime() 182 setCpusAndData(times2); in testReadDeltaDecreasedTime() 185 mCallback.verify(mUids[i], getActiveTime(times2[i]) - getActiveTime(times1[i])); in testReadDeltaDecreasedTime() 192 final long[][] times3 = increaseTime(times2); in testReadDeltaDecreasedTime() 198 mCallback.verify(mUids[i], getActiveTime(times3[i]) - getActiveTime(times2[i])); in testReadDeltaDecreasedTime() [all …]
|
D | KernelCpuUidUserSysTimeReaderTest.java | 120 long[][] times2 = increaseTime(times1); in testThrottler() local 121 writeToFile(uidLines(mUids, times2)); in testThrottler() 126 long[][] times3 = increaseTime(times2); in testThrottler() 171 final long[][] times2 = increaseTime(times1); in testReadDelta() local 172 writeToFile(uidLines(mUids, times2)); in testReadDelta() 175 mCallback.verify(mUids[i], subtract(times2[i], times1[i])); in testReadDelta() 186 final long[][] times3 = increaseTime(times2); in testReadDelta() 215 final long[][] times2 = increaseTime(times1); in testReadDeltaWrongData() local 216 times2[0][0] = 1000; in testReadDeltaWrongData() 217 writeToFile(uidLines(mUids, times2)); in testReadDeltaWrongData() [all …]
|
D | KernelCpuUidFreqTimeReaderTest.java | 175 final long[][] times2 = increaseTime(times1); in testReadAbsolute() local 176 setFreqsAndData(freqs, times2); in testReadAbsolute() 179 mCallback.verify(mUids[i], times2[i]); in testReadAbsolute() 195 final long[][] times2 = increaseTime(times1); in testReadDeltaWrongData() local 196 times2[0][0] = 1000; in testReadDeltaWrongData() 197 setFreqsAndData(freqs, times2); in testReadDeltaWrongData() 200 mCallback.verify(mUids[i], subtract(times2[i], times1[i])); in testReadDeltaWrongData() 206 final long[][] times3 = increaseTime(times2); in testReadDeltaWrongData() 212 mCallback.verify(mUids[i], subtract(times3[i], times2[i])); in testReadDeltaWrongData()
|
/frameworks/native/libs/cputimeinstate/ |
D | testtimeinstate.cpp | 248 auto times2 = getUidCpuFreqTimes(uid); in TEST_F() local 249 ASSERT_TRUE(times2.has_value()); in TEST_F() 251 ASSERT_EQ(times1.size(), times2->size()); in TEST_F() 253 ASSERT_EQ(times1[i].size(), (*times2)[i].size()); in TEST_F() 255 ASSERT_LE((*times2)[i][j] - times1[i][j], NSEC_PER_SEC); in TEST_F() 323 auto times2 = getUidConcurrentTimes(uid); in TEST_F() local 324 ASSERT_TRUE(times2.has_value()); in TEST_F() 326 ASSERT_LE(times2->active[i] - times1.active[i], NSEC_PER_SEC); in TEST_F() 330 ASSERT_LE(times2->policy[i][j] - times1.policy[i][j], NSEC_PER_SEC); in TEST_F()
|