Home
last modified time | relevance | path

Searched refs:expectedEvent (Results 1 – 7 of 7) sorted by relevance

/frameworks/native/services/inputflinger/tests/
DFakeInputTracingBackend.cpp83 for (const auto& [expectedEvent, windowId] : mExpectedEvents) { in verifyExpectedEventsTraced()
86 expectedEvent); in verifyExpectedEventsTraced()
107 base::Result<void> VerifyingTrace::verifyEventTraced(const Event& expectedEvent, in verifyEventTraced() argument
111 auto tracedEventsIt = mTracedEvents.find(expectedEvent.getId()); in verifyEventTraced()
113 msg << "Expected event with ID 0x" << std::hex << expectedEvent.getId() in verifyEventTraced()
115 << "Expected event: " << expectedEvent; in verifyEventTraced()
123 getId(args.eventEntry) == expectedEvent.getId(); in verifyEventTraced()
126 msg << "Expected dispatch of event with ID 0x" << std::hex << expectedEvent.getId() in verifyEventTraced()
128 << "Expected event: " << expectedEvent; in verifyEventTraced()
140 toInputEvent(traced, *tracedDispatchesIt, expectedEvent.getHmac()); in verifyEventTraced()
[all …]
DInputTraceSession.cpp162 for (const auto& [expectedEvent, expectedLevel] : expectedEvents) { in verifyExpectedEventsTraced()
166 if (eventMatches(expectedEvent, tracedEvent)) { in verifyExpectedEventsTraced()
176 << "\n\tExpected event: " << expectedEvent; in verifyExpectedEventsTraced()
182 << totalMatchCount << "\n\tExpected event: " << expectedEvent; in verifyExpectedEventsTraced()
/frameworks/libs/systemui/tracinglib/core/host/test/
DCoroutineTracingTest.kt554 private fun expect(expectedEvent: Int? = null, vararg expectedOpenTraceSections: String) { in <lambda>()
555 if (expectedEvent != null) { in <lambda>()
558 check(expectedEvent == currentEvent) { in <lambda>()
560 "Expected event=$expectedEvent, but finish() was already called" in <lambda>()
562 "Expected event=$expectedEvent," + in <lambda>()
573 private fun finish(expectedEvent: Int, vararg expectedOpenTraceSections: String) { in <lambda>()
576 check(expectedEvent == currentEvent) { in <lambda>()
580 "Finished with event=$expectedEvent," + in <lambda>()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
DMagnificationGesturesObserverTest.java144 private static boolean compareMotionEvent(MotionEvent expectedEvent, MotionEvent actualEvent) { in compareMotionEvent() argument
145 if (expectedEvent == null || actualEvent == null) { in compareMotionEvent()
148 return expectedEvent.toString().contentEquals(actualEvent.toString()); in compareMotionEvent()
/frameworks/base/core/tests/coretests/src/android/view/contentprotection/
DContentProtectionEventProcessorTest.java156 expectedEvents.forEach((expectedEvent) -> verify(mMockEventBuffer).append(expectedEvent)); in processEvent_buffer_storesOnlySubsetOfEventTypes()
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
DUsageStatsQueryHelperTest.java118 Event expectedEvent = new Event(100L, Event.TYPE_SHORTCUT_INVOCATION); in testQueryShortcutInvocationEvent() local
122 assertEquals(expectedEvent, events.get(0)); in testQueryShortcutInvocationEvent()
/frameworks/base/services/tests/timetests/src/com/android/server/timezonedetector/
DTimeZoneDetectorStrategyImplTest.java1953 Script verifyLatestLocationAlgorithmEventReceived(LocationAlgorithmEvent expectedEvent) { in verifyLatestLocationAlgorithmEventReceived() argument
1954 assertEquals(expectedEvent, in verifyLatestLocationAlgorithmEventReceived()