Home
last modified time | relevance | path

Searched refs:expectedCount (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBatteryStatsStopwatchTimerTest.java39 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/services/tests/timetests/src/com/android/server/timezonedetector/
DTestStateChangeListener.java31 public void assertNotificationsReceivedAndReset(int expectedCount) { in assertNotificationsReceivedAndReset() argument
32 assertNotificationsReceived(expectedCount); in assertNotificationsReceivedAndReset()
40 private void assertNotificationsReceived(int expectedCount) { in assertNotificationsReceived() argument
41 assertEquals(expectedCount, mNotificationsReceived); in assertNotificationsReceived()
DTestState.java79 public void assertChangeCount(int expectedCount) { in assertChangeCount() argument
80 assertEquals(expectedCount, getChangeCount()); in assertChangeCount()
DTimeZoneDetectorStrategyImplTest.java1801 TestStateChangeListener stateChangeListener, int expectedCount) { in assertStateChangeNotificationsSent() argument
1805 stateChangeListener.assertNotificationsReceivedAndReset(expectedCount); in assertStateChangeNotificationsSent()
/frameworks/base/libs/hwui/tests/unit/
DGraphicsStatsServiceTests.cpp95 int expectedCount, expectedBucket; in TEST() local
97 expectedCount = ((i % 10) + 1) * 2; in TEST()
101 expectedCount = (temp % 5) + 1; in TEST()
104 EXPECT_EQ(expectedCount, loadedProto.histogram().Get(i).frame_count()); in TEST()
151 int expectedCount, expectedBucket; in TEST() local
153 expectedCount = ((i % 10) + 1) * 2; in TEST()
154 expectedCount += (i % 5) + 1; in TEST()
158 expectedCount = (temp % 5) + 1; in TEST()
159 expectedCount += ((temp % 10) + 1) * 2; in TEST()
162 EXPECT_EQ(expectedCount, loadedProto.histogram().Get(i).frame_count()); in TEST()
/frameworks/base/core/tests/coretests/src/android/util/
DCloseGuardTest.java72 private void assertUnreleasedResources(ResourceOwner owner, int expectedCount) in assertUnreleasedResources() argument
75 CloseGuardSupport.getFinalizerChecker().accept(owner, expectedCount); in assertUnreleasedResources()
/frameworks/native/libs/ui/tests/
DRegion_test.cpp48 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/view/accessibility/
DAccessibilityEventTest.java113 static void assertNoNewNonStaticFieldsAdded(Class<?> clazz, int expectedCount) { in assertNoNewNonStaticFieldsAdded() argument
126 assertEquals(message, expectedCount, nonStaticFieldCount); in assertNoNewNonStaticFieldsAdded()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/
DPersistAtomsStorageTest.java5691 VoiceCallSession[] calls, @Nullable VoiceCallSession expectedCall, int expectedCount) { in assertHasCall() argument
5701 assertEquals(expectedCount, actualCount); in assertHasCall()
5715 int expectedCount, long expectedTime) { in assertHasStatsCountTime() argument
5730 assertEquals(expectedCount, actualCount); in assertHasStatsCountTime()
5736 @Nullable RcsClientProvisioningStats expectedStats, int expectedCount) { in assertHasStatsAndCount() argument
5746 assertEquals(expectedCount, actualCount); in assertHasStatsAndCount()
5751 @Nullable ImsDedicatedBearerListenerEvent expectedStats, int expectedCount) { in assertHasStats() argument
5761 assertEquals(expectedCount, actualCount); in assertHasStats()
5766 @Nullable ImsDedicatedBearerEvent expectedStats, int expectedCount) { in assertHasStatsAndCount() argument
5783 assertEquals(expectedCount, actualCount); in assertHasStatsAndCount()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DHapticScrollFeedbackProviderTest.java442 private void assertOnlyFeedback(TestView view, int expectedFeedback, int expectedCount) { in assertOnlyFeedback() argument
444 assertFeedbackCount(view, feedback, (feedback == expectedFeedback) ? expectedCount : 0); in assertOnlyFeedback()
448 private void assertFeedbackCount(TestView view, int feedback, int expectedCount) { in assertFeedbackCount() argument
450 assertThat(count).isEqualTo(expectedCount); in assertFeedbackCount()
/frameworks/native/services/surfaceflinger/tests/unittests/
DEventThreadTest.cpp100 nsecs_t expectedTimestamp, unsigned expectedCount);
101 void expectVsyncEventReceivedByConnection(nsecs_t expectedTimestamp, unsigned expectedCount);
264 nsecs_t expectedTimestamp, unsigned expectedCount) { in expectVsyncEventReceivedByConnection() argument
273 EXPECT_EQ(expectedCount, event.vsync.count) in expectVsyncEventReceivedByConnection()
278 unsigned expectedCount) { in expectVsyncEventReceivedByConnection() argument
281 expectedCount); in expectVsyncEventReceivedByConnection()
/frameworks/av/media/module/libmediatranscoding/transcoder/tests/
DMediaTranscoderTests.cpp158 int32_t expectedCount = in transcodeHelper() local
162 EXPECT_GE(mCallbacks->mHeartBeatCount, expectedCount - 1); in transcodeHelper()
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DCallbackRegistryTest.java224 int expectedCount = Math.min(i + 1, deepNotifyCount.length - i); in testVeryDeepRemoveWhileNotifying() local
225 assertEquals(expectedCount, deepNotifyCount[i]); in testVeryDeepRemoveWhileNotifying()
/frameworks/base/core/java/android/widget/
DRadialTimePickerView.java252 int expectedCount = 8; in preparePrefer30sMap() local
259 if (count == expectedCount) { in preparePrefer30sMap()
262 expectedCount = 7; in preparePrefer30sMap()
264 expectedCount = 14; in preparePrefer30sMap()
266 expectedCount = 4; in preparePrefer30sMap()
/frameworks/base/core/java/android/util/proto/
DProtoOutputStream.java2212 final long expectedCount = expectedFlags & FIELD_COUNT_MASK; in checkFieldId() local
2219 || !((fieldCount == expectedCount) in checkFieldId()
2221 && expectedCount == FIELD_COUNT_REPEATED))) { in checkFieldId()
2231 sb.append(getFieldCountString(expectedCount)); in checkFieldId()
2256 sb.append(getFieldCountString(expectedCount)); in checkFieldId()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/nitz/
DNitzStateMachineImplTest.java880 void assertChangeCount(int expectedCount) { in assertChangeCount() argument
881 assertEquals(expectedCount, mValues.size()); in assertChangeCount()
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DJobStoreTest.java408 final int expectedCount = expectedJobs.size(); in runWritingJobsToDisk() local
423 assertEquals("Loaded more jobs than expected", expectedCount, count); in runWritingJobsToDisk()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DLetterboxUiControllerTest.java302 private void assertShouldIgnoreOrientationRequestLoop(boolean shouldIgnore, int expectedCount) { in assertShouldIgnoreOrientationRequestLoop() argument
308 assertEquals(expectedCount, mController.getSetOrientationRequestCounter()); in assertShouldIgnoreOrientationRequestLoop()
/frameworks/base/services/tests/timetests/src/com/android/server/timedetector/
DTimeDetectorStrategyImplTest.java2469 TestStateChangeListener stateChangeListener, int expectedCount) { in assertStateChangeNotificationsSent() argument
2473 stateChangeListener.assertNotificationsReceivedAndReset(expectedCount); in assertStateChangeNotificationsSent()