/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsStopwatchTimerTest.java | 39 int expectedCount = 0; in testCount() local 47 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCount() 49 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCount() 51 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCount() 53 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCount() 58 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCount() 65 expectedCount = 0; // count will be reset by reset() in testCount() 66 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCount() 69 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCount() 74 expectedCount = 0; // count will be reset by reset() in testCount() [all …]
|
/frameworks/base/libs/hwui/tests/unit/ |
D | GraphicsStatsServiceTests.cpp | 92 int expectedCount, expectedBucket; in TEST() local 94 expectedCount = ((i % 10) + 1) * 2; in TEST() 98 expectedCount = (temp % 5) + 1; in TEST() 101 EXPECT_EQ(expectedCount, loadedProto.histogram().Get(i).frame_count()); in TEST() 148 int expectedCount, expectedBucket; in TEST() local 150 expectedCount = ((i % 10) + 1) * 2; in TEST() 151 expectedCount += (i % 5) + 1; in TEST() 155 expectedCount = (temp % 5) + 1; in TEST() 156 expectedCount += ((temp % 10) + 1) * 2; in TEST() 159 EXPECT_EQ(expectedCount, loadedProto.histogram().Get(i).frame_count()); in TEST()
|
/frameworks/native/libs/ui/tests/ |
D | Region_test.cpp | 48 void checkTJunctionFreeFromRegion(const Region& original, int expectedCount = -1) { in checkTJunctionFreeFromRegion() argument 51 if (expectedCount != -1) { in checkTJunctionFreeFromRegion() 52 EXPECT_EQ(modified.end() - modified.begin(), expectedCount); in checkTJunctionFreeFromRegion()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | CloseGuardTest.java | 58 private void assertUnreleasedResources(ResourceOwner owner, int expectedCount) in assertUnreleasedResources() argument 61 CloseGuardSupport.getFinalizerChecker().accept(owner, expectedCount); in assertUnreleasedResources()
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | EventThreadTest.cpp | 80 nsecs_t expectedTimestamp, unsigned expectedCount); 81 void expectVsyncEventReceivedByConnection(nsecs_t expectedTimestamp, unsigned expectedCount); 177 nsecs_t expectedTimestamp, unsigned expectedCount) { in expectVsyncEventReceivedByConnection() argument 186 EXPECT_EQ(expectedCount, event.vsync.count) in expectVsyncEventReceivedByConnection() 191 unsigned expectedCount) { in expectVsyncEventReceivedByConnection() argument 194 expectedCount); in expectVsyncEventReceivedByConnection()
|
/frameworks/base/core/tests/coretests/src/android/view/accessibility/ |
D | AccessibilityEventTest.java | 104 static void assertNoNewNonStaticFieldsAdded(Class<?> clazz, int expectedCount) { in assertNoNewNonStaticFieldsAdded() argument 117 assertEquals(message, expectedCount, nonStaticFieldCount); in assertNoNewNonStaticFieldsAdded()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | IntHistogramTest.java | 56 private void incrementValueAndVerify(int value, int expectedBucketIndex, int expectedCount) { in incrementValueAndVerify() argument 59 mHistogram.getBucketByIndex(expectedBucketIndex).count, equalTo(expectedCount)); in incrementValueAndVerify()
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | CallbackRegistryTest.java | 215 int expectedCount = Math.min(i + 1, deepNotifyCount.length - i); in testVeryDeepRemoveWhileNotifying() local 216 assertEquals(expectedCount, deepNotifyCount[i]); in testVeryDeepRemoveWhileNotifying()
|
/frameworks/base/core/java/android/widget/ |
D | RadialTimePickerView.java | 247 int expectedCount = 8; in preparePrefer30sMap() local 254 if (count == expectedCount) { in preparePrefer30sMap() 257 expectedCount = 7; in preparePrefer30sMap() 259 expectedCount = 14; in preparePrefer30sMap() 261 expectedCount = 4; in preparePrefer30sMap()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/timezonedetector/ |
D | TimeZoneDetectorStrategyImplTest.java | 569 void assertChangeCount(int expectedCount) { in assertChangeCount() argument 570 assertEquals(expectedCount, mValues.size()); in assertChangeCount()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/nitz/ |
D | NitzStateMachineImplTest.java | 633 void assertChangeCount(int expectedCount) { in assertChangeCount() argument 634 assertEquals(expectedCount, mValues.size()); in assertChangeCount()
|
/frameworks/base/core/java/android/util/proto/ |
D | ProtoOutputStream.java | 2209 final long expectedCount = expectedFlags & FIELD_COUNT_MASK; in checkFieldId() local 2216 || !((fieldCount == expectedCount) in checkFieldId() 2218 && expectedCount == FIELD_COUNT_REPEATED))) { in checkFieldId() 2228 sb.append(getFieldCountString(expectedCount)); in checkFieldId() 2253 sb.append(getFieldCountString(expectedCount)); in checkFieldId()
|
/frameworks/base/core/tests/coretests/src/android/content/ |
D | ContentProviderOperationTest.java | 432 ContentProviderOperation.Builder builder, Integer expectedCount) in builderSetExpectedCount() argument 437 field.set(builder, expectedCount); in builderSetExpectedCount()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/ |
D | PersistAtomsStorageTest.java | 761 VoiceCallSession[] calls, @Nullable VoiceCallSession expectedCall, int expectedCount) { in assertHasCall() argument 771 assertEquals(expectedCount, actualCount); in assertHasCall()
|