Searched refs:expectedEvents (Results 1 – 8 of 8) sorted by relevance
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/ |
D | AsyncUserVisibilityListener.java | 60 List<UserVisibilityChangedEvent> expectedEvents) { in AsyncUserVisibilityListener() argument 63 mExpectedEvents = expectedEvents; in AsyncUserVisibilityListener() 64 mLatch = new CountDownLatch(expectedEvents.size()); in AsyncUserVisibilityListener() 170 public AsyncUserVisibilityListener forEvents(UserVisibilityChangedEvent...expectedEvents) { in forEvents() argument 172 Arrays.asList(expectedEvents)); in forEvents()
|
/frameworks/native/services/inputflinger/tests/ |
D | EventHub_test.cpp | 104 std::vector<RawEvent> getEvents(std::optional<size_t> expectedEvents = std::nullopt); 107 std::vector<RawEvent> EventHubTest::getEvents(std::optional<size_t> expectedEvents) { in getEvents() argument 112 if (expectedEvents) { in getEvents() 121 if (expectedEvents && events.size() >= *expectedEvents) { in getEvents()
|
D | InputTraceSession.cpp | 158 void verifyExpectedEventsTraced(const ExpectedEvents& expectedEvents, in verifyExpectedEventsTraced() argument 162 for (const auto& [expectedEvent, expectedLevel] : expectedEvents) { in verifyExpectedEventsTraced()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/ |
D | MagnificationGesturesObserverTest.java | 152 MotionEvent... expectedEvents) { in verifyCacheMotionEvents() argument 153 Assert.assertEquals("events size doesn't match", expectedEvents.length, in verifyCacheMotionEvents() 156 Assert.assertTrue(compareMotionEvent(expectedEvents[i], actualEvents.get(i).mEvent)); in verifyCacheMotionEvents()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/utils/ |
D | EventLoggerTest.java | 126 EventLogger.Event[] expectedEvents) { in LoggingOperationTest() argument 130 mExpectedEvents = expectedEvents; in LoggingOperationTest()
|
/frameworks/base/core/tests/coretests/src/android/view/contentprotection/ |
D | ContentProtectionEventProcessorTest.java | 145 List<ContentCaptureEvent> expectedEvents = new ArrayList<>(); in processEvent_buffer_storesOnlySubsetOfEventTypes() local 149 expectedEvents.add(event); in processEvent_buffer_storesOnlySubsetOfEventTypes() 155 assertThat(expectedEvents).hasSize(EVENT_TYPES_TO_STORE.size()); in processEvent_buffer_storesOnlySubsetOfEventTypes() 156 expectedEvents.forEach((expectedEvent) -> verify(mMockEventBuffer).append(expectedEvent)); in processEvent_buffer_storesOnlySubsetOfEventTypes()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/utils/quota/ |
D | CountQuotaTrackerTest.java | 242 LongArrayQueue expectedEvents = new LongArrayQueue(); in testDeleteObsoleteEventsLocked() local 243 expectedEvents.addLast(now - HOUR_IN_MILLIS); in testDeleteObsoleteEventsLocked() 244 expectedEvents.addLast(now - 1); in testDeleteObsoleteEventsLocked() 250 assertTrue(longArrayQueueEquals(expectedEvents, remainingEvents)); in testDeleteObsoleteEventsLocked()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | BackgroundRestrictionTest.java | 2862 private void assertAppStateTimeSlotEvents(int[] expectedEvents, long[] timestamps, in assertAppStateTimeSlotEvents() argument 2867 assertListEquals(createIntLinkedList(expectedEvents), testObj.getRawEvents(0)); in assertAppStateTimeSlotEvents() 2870 private void assertMergeAppStateTimeSlotEvents(int[] expectedEvents, long[] timestamps1, in assertMergeAppStateTimeSlotEvents() argument 2878 assertListEquals(createIntLinkedList(expectedEvents), testObj1.getRawEvents(0)); in assertMergeAppStateTimeSlotEvents()
|