Merge "Fix BstatsCpuTimesValidationTest.testCpuFreqTimes_trackingDisabled" into sc-dev am: f7aca0513d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15277354 Change-Id: I3e1ff9bea9b3bbaebb6988e0ed5321a79627e19e
This commit is contained in:
@@ -580,11 +580,11 @@ public class BstatsCpuTimesValidationTest {
|
|||||||
final long[] cpuTimesMs4 = getAllCpuFreqTimes(sTestPkgUid, PROCESS_STATE_TOP);
|
final long[] cpuTimesMs4 = getAllCpuFreqTimes(sTestPkgUid, PROCESS_STATE_TOP);
|
||||||
assertCpuTimesValid(cpuTimesMs4);
|
assertCpuTimesValid(cpuTimesMs4);
|
||||||
actualCpuTimeMs = 0;
|
actualCpuTimeMs = 0;
|
||||||
for (int i = 0; i < cpuTimesMs.length / 2; ++i) {
|
for (int i = 0; i < cpuTimesMs4.length / 2; ++i) {
|
||||||
actualCpuTimeMs += cpuTimesMs[i];
|
actualCpuTimeMs += cpuTimesMs4[i];
|
||||||
}
|
}
|
||||||
assertApproximateValue("Incorrect total cpu time, " + msgCpuTimes,
|
assertApproximateValue("Incorrect total cpu time, " + msgCpuTimes,
|
||||||
WORK_DURATION_MS, actualCpuTimeMs);
|
2 * WORK_DURATION_MS, actualCpuTimeMs);
|
||||||
|
|
||||||
batteryOffScreenOn();
|
batteryOffScreenOn();
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
Reference in New Issue
Block a user