/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
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/services/tests/timetests/src/com/android/server/timezonedetector/ |
D | TestStateChangeListener.java | 31 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()
|
D | TestState.java | 79 public void assertChangeCount(int expectedCount) { in assertChangeCount() argument 80 assertEquals(expectedCount, getChangeCount()); in assertChangeCount()
|
D | TimeZoneDetectorStrategyImplTest.java | 1801 TestStateChangeListener stateChangeListener, int expectedCount) { in assertStateChangeNotificationsSent() argument 1805 stateChangeListener.assertNotificationsReceivedAndReset(expectedCount); in assertStateChangeNotificationsSent()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | GraphicsStatsServiceTests.cpp | 95 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/ |
D | CloseGuardTest.java | 72 private void assertUnreleasedResources(ResourceOwner owner, int expectedCount) in assertUnreleasedResources() argument 75 CloseGuardSupport.getFinalizerChecker().accept(owner, expectedCount); in assertUnreleasedResources()
|
/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/view/accessibility/ |
D | AccessibilityEventTest.java | 113 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/ |
D | PersistAtomsStorageTest.java | 5691 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/ |
D | HapticScrollFeedbackProviderTest.java | 442 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/ |
D | EventThreadTest.cpp | 100 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/ |
D | MediaTranscoderTests.cpp | 158 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/ |
D | CallbackRegistryTest.java | 224 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/ |
D | RadialTimePickerView.java | 252 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/ |
D | ProtoOutputStream.java | 2212 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/ |
D | NitzStateMachineImplTest.java | 880 void assertChangeCount(int expectedCount) { in assertChangeCount() argument 881 assertEquals(expectedCount, mValues.size()); in assertChangeCount()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/job/ |
D | JobStoreTest.java | 408 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/ |
D | LetterboxUiControllerTest.java | 302 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/ |
D | TimeDetectorStrategyImplTest.java | 2469 TestStateChangeListener stateChangeListener, int expectedCount) { in assertStateChangeNotificationsSent() argument 2473 stateChangeListener.assertNotificationsReceivedAndReset(expectedCount); in assertStateChangeNotificationsSent()
|