commit | a69a89d73940745a170f477393c874390848d78b | [log] [tgz] |
---|---|---|
author | John Reck <jreck@google.com> | Thu Nov 16 15:24:35 2017 -0800 |
committer | John Reck <jreck@google.com> | Thu Nov 16 15:24:35 2017 -0800 |
tree | e0c1f2f119ee280007a588c762b49a7b947efc64 | |
parent | df21bf0d6e6e044c4f7525be7c41971c36efaaaa [diff] |
Fix flags assert in validateProfileData Bug: 68957292 Test: this Change-Id: I9f9a39c25a2ab751d37f7b8b5eb299a0e0b9755f
diff --git a/hostsidetests/dumpsys/src/android/dumpsys/cts/BatteryStatsDumpsysTest.java b/hostsidetests/dumpsys/src/android/dumpsys/cts/BatteryStatsDumpsysTest.java index 4d51330..6d341c8 100644 --- a/hostsidetests/dumpsys/src/android/dumpsys/cts/BatteryStatsDumpsysTest.java +++ b/hostsidetests/dumpsys/src/android/dumpsys/cts/BatteryStatsDumpsysTest.java
@@ -723,7 +723,8 @@ for (int i = 0; i < TIMESTAMP_COUNT; i++) { numparts[i] = assertInteger(parts[i]); } - if (numparts[0] != 0) { + // Flags = 1 just means the first frame of the window + if (numparts[0] != 0 && numparts[0] != 1) { continue; } // assert VSYNC >= INTENDED_VSYNC