Searched refs:times1 (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | KernelCpuUidClusterTimeReaderTest.java | 108 final long[][] times1 = increaseTime(new long[mUids.length][mCpus]); in testReadDelta() local 109 setCoresAndData(times1); in testReadDelta() 112 mCallback.verify(mUids[i], clusterTime(times1[i])); in testReadDelta() 118 final long[][] times2 = increaseTime(times1); in testReadDelta() 122 mCallback.verify(mUids[i], subtract(clusterTime(times2[i]), clusterTime(times1[i]))); in testReadDelta() 153 final long[][] times1 = increaseTime(new long[mUids.length][mCpus]); in testReadAbsolute() local 154 setCoresAndData(times1); in testReadAbsolute() 157 mCallback.verify(mUids[i], clusterTime(times1[i])); in testReadAbsolute() 163 final long[][] times2 = increaseTime(times1); in testReadAbsolute() 175 final long[][] times1 = increaseTime(new long[mUids.length][mCpus]); in testReadDeltaDecreasedTime() local [all …]
|
D | KernelCpuUidUserSysTimeReaderTest.java | 112 long[][] times1 = increaseTime(mInitialTimes); in testThrottler() local 113 writeToFile(uidLines(mUids, times1)); in testThrottler() 120 long[][] times2 = increaseTime(times1); in testThrottler() 161 final long[][] times1 = mInitialTimes; in testReadDelta() local 162 writeToFile(uidLines(mUids, times1)); in testReadDelta() 165 mCallback.verify(mUids[i], times1[i]); in testReadDelta() 171 final long[][] times2 = increaseTime(times1); in testReadDelta() 175 mCallback.verify(mUids[i], subtract(times2[i], times1[i])); in testReadDelta() 205 final long[][] times1 = mInitialTimes; in testReadDeltaWrongData() local 206 writeToFile(uidLines(mUids, times1)); in testReadDeltaWrongData() [all …]
|
D | KernelCpuUidActiveTimeReaderTest.java | 151 final long[][] times1 = increaseTime(new long[mUids.length][mCpus]); in testReadAbsolute() local 152 setCpusAndData(times1); in testReadAbsolute() 155 mCallback.verify(mUids[i], getActiveTime(times1[i])); in testReadAbsolute() 161 final long[][] times2 = increaseTime(times1); in testReadAbsolute() 173 final long[][] times1 = increaseTime(new long[mUids.length][mCpus]); in testReadDeltaDecreasedTime() local 174 setCpusAndData(times1); in testReadDeltaDecreasedTime() 179 final long[][] times2 = increaseTime(times1); in testReadDeltaDecreasedTime() 180 System.arraycopy(times1[0], 0, times2[0], 0, mCpus); in testReadDeltaDecreasedTime() 185 mCallback.verify(mUids[i], getActiveTime(times2[i]) - getActiveTime(times1[i])); in testReadDeltaDecreasedTime() 193 times3[0] = increaseTime(times1)[0]; in testReadDeltaDecreasedTime() [all …]
|
D | KernelCpuUidFreqTimeReaderTest.java | 161 final long[][] times1 = increaseTime(new long[mUids.length][freqs.length]); in testReadAbsolute() local 163 setFreqsAndData(freqs, times1); in testReadAbsolute() 166 mCallback.verify(mUids[i], times1[i]); in testReadAbsolute() 175 final long[][] times2 = increaseTime(times1); in testReadAbsolute() 188 final long[][] times1 = increaseTime(new long[mUids.length][freqs.length]); in testReadDeltaWrongData() local 190 setFreqsAndData(freqs, times1); in testReadDeltaWrongData() 195 final long[][] times2 = increaseTime(times1); in testReadDeltaWrongData() 200 mCallback.verify(mUids[i], subtract(times2[i], times1[i])); in testReadDeltaWrongData() 207 times3[0] = increaseTime(times1)[0]; in testReadDeltaWrongData() 210 mCallback.verify(mUids[0], subtract(times3[0], times1[0])); in testReadDeltaWrongData()
|
/frameworks/native/libs/cputimeinstate/ |
D | testtimeinstate.cpp | 247 auto times1 = kv.second; in TEST_F() local 251 ASSERT_EQ(times1.size(), times2->size()); in TEST_F() 252 for (uint32_t i = 0; i < times1.size(); ++i) { in TEST_F() 253 ASSERT_EQ(times1[i].size(), (*times2)[i].size()); in TEST_F() 254 for (uint32_t j = 0; j < times1[i].size(); ++j) { in TEST_F() 255 ASSERT_LE((*times2)[i][j] - times1[i][j], NSEC_PER_SEC); in TEST_F() 322 auto times1 = kv.second; in TEST_F() local 325 for (uint32_t i = 0; i < times1.active.size(); ++i) { in TEST_F() 326 ASSERT_LE(times2->active[i] - times1.active[i], NSEC_PER_SEC); in TEST_F() 328 for (uint32_t i = 0; i < times1.policy.size(); ++i) { in TEST_F() [all …]
|