Home
last modified time | relevance | path

Searched refs:WithMotionAction (Results 1 – 13 of 13) sorted by relevance

/frameworks/native/services/inputflinger/tests/
DGestureConverter_test.cpp102 AllOf(WithMotionAction(AMOTION_EVENT_ACTION_HOVER_ENTER), in TEST_F()
105 AllOf(WithMotionAction(AMOTION_EVENT_ACTION_HOVER_MOVE), in TEST_F()
117 AllOf(WithMotionAction(AMOTION_EVENT_ACTION_HOVER_MOVE), WithCoords(0, 0), in TEST_F()
134 AllOf(WithMotionAction(AMOTION_EVENT_ACTION_HOVER_ENTER), in TEST_F()
137 AllOf(WithMotionAction(AMOTION_EVENT_ACTION_HOVER_MOVE), in TEST_F()
159 AllOf(WithMotionAction(AMOTION_EVENT_ACTION_DOWN), in TEST_F()
163 AllOf(WithMotionAction(AMOTION_EVENT_ACTION_BUTTON_PRESS), in TEST_F()
167 AllOf(WithMotionAction(AMOTION_EVENT_ACTION_BUTTON_PRESS), in TEST_F()
183 AllOf(WithMotionAction(AMOTION_EVENT_ACTION_BUTTON_RELEASE), in TEST_F()
196 AllOf(WithMotionAction(AMOTION_EVENT_ACTION_BUTTON_RELEASE), in TEST_F()
[all …]
DCursorInputMapper_test.cpp187 AllOf(WithMotionAction(ACTION_MOVE), in testMotionRotation()
227 ASSERT_THAT(args, ElementsAre(VariantWith<NotifyMotionArgs>(WithMotionAction(HOVER_MOVE)))); in TEST_F()
234 ElementsAre(VariantWith<NotifyMotionArgs>(WithMotionAction(ACTION_DOWN)), in TEST_F()
235 VariantWith<NotifyMotionArgs>(WithMotionAction(BUTTON_PRESS)))); in TEST_F()
242 ASSERT_THAT(args, ElementsAre(VariantWith<NotifyMotionArgs>(WithMotionAction(ACTION_MOVE)))); in TEST_F()
249 ElementsAre(VariantWith<NotifyMotionArgs>(WithMotionAction(BUTTON_RELEASE)), in TEST_F()
250 VariantWith<NotifyMotionArgs>(WithMotionAction(ACTION_UP)), in TEST_F()
251 VariantWith<NotifyMotionArgs>(WithMotionAction(HOVER_MOVE)))); in TEST_F()
275 AllOf(WithMotionAction(ACTION_MOVE), in TEST_F()
287 AllOf(WithMotionAction(ACTION_DOWN), in TEST_F()
[all …]
DCapturedTouchpadEventConverter_test.cpp234 AllOf(WithMotionAction(AMOTION_EVENT_ACTION_DOWN), WithPointerCount(1u), in TEST_F()
241 AllOf(WithMotionAction(AMOTION_EVENT_ACTION_MOVE), WithPointerCount(1u), in TEST_F()
251 AllOf(WithMotionAction(AMOTION_EVENT_ACTION_MOVE), WithPointerCount(1u), in TEST_F()
255 AllOf(WithMotionAction(AMOTION_EVENT_ACTION_UP), WithPointerCount(1u), in TEST_F()
277 AllOf(WithMotionAction(AMOTION_EVENT_ACTION_DOWN), WithPointerCount(1u), in TEST_F()
461 AllOf(WithMotionAction(AMOTION_EVENT_ACTION_DOWN), WithToolType(ToolType::FINGER), in TEST_F()
470 AllOf(WithMotionAction(AMOTION_EVENT_ACTION_MOVE), WithPointerCount(1u))); in TEST_F()
473 AllOf(WithMotionAction(AMOTION_EVENT_ACTION_CANCEL), WithPointerCount(1u))); in TEST_F()
506 AllOf(WithMotionAction(AMOTION_EVENT_ACTION_DOWN), WithPointerCount(1u), in TEST_F()
512 AllOf(WithMotionAction(AMOTION_EVENT_ACTION_MOVE), WithPointerCount(1u), in TEST_F()
[all …]
DInputDispatcher_test.cpp476 AllOf(WithMotionAction(AMOTION_EVENT_ACTION_CANCEL), in consumeMotionCancel()
835 foregroundWindow->consumeMotionEvent(WithMotionAction(ACTION_MOVE)); in TEST_F()
870 window->consumeMotionEvent(WithMotionAction(ACTION_DOWN)); in TEST_F()
871 window->consumeMotionEvent(WithMotionAction(POINTER_1_DOWN)); in TEST_F()
872 window->consumeMotionEvent(WithMotionAction(POINTER_0_UP)); in TEST_F()
878 AllOf(WithMotionAction(ACTION_CANCEL), WithPointers(expectedPointers))); in TEST_F()
973 AllOf(WithMotionAction(ACTION_DOWN), WithDeviceId(deviceA))); in TEST_F()
974 leftWallpaperWindow->consumeMotionEvent(AllOf(WithMotionAction(ACTION_DOWN), in TEST_F()
983 AllOf(WithMotionAction(ACTION_DOWN), WithDeviceId(deviceB))); in TEST_F()
984 rightWallpaperWindow->consumeMotionEvent(AllOf(WithMotionAction(ACTION_DOWN), in TEST_F()
[all …]
DTouchpadInputMapper_test.cpp159 ElementsAre(VariantWith<NotifyMotionArgs>(WithMotionAction(HOVER_ENTER)), in TEST_F()
160 VariantWith<NotifyMotionArgs>(WithMotionAction(HOVER_MOVE)), in TEST_F()
161 VariantWith<NotifyMotionArgs>(WithMotionAction(HOVER_EXIT)), in TEST_F()
162 VariantWith<NotifyMotionArgs>(WithMotionAction(ACTION_DOWN)), in TEST_F()
163 VariantWith<NotifyMotionArgs>(WithMotionAction(BUTTON_PRESS)), in TEST_F()
164 VariantWith<NotifyMotionArgs>(WithMotionAction(BUTTON_RELEASE)), in TEST_F()
165 VariantWith<NotifyMotionArgs>(WithMotionAction(ACTION_UP)), in TEST_F()
166 VariantWith<NotifyMotionArgs>(WithMotionAction(HOVER_ENTER)))); in TEST_F()
DMultiTouchInputMapper_test.cpp192 WithMotionAction(AMOTION_EVENT_ACTION_DOWN)), in TEST_F()
194 WithMotionAction(ACTION_POINTER_1_DOWN)))); in TEST_F()
210 WithMotionAction(AMOTION_EVENT_ACTION_MOVE)))); in TEST_F()
228 WithMotionAction(AMOTION_EVENT_ACTION_CANCEL)))); in TEST_F()
234 WithMotionAction(AMOTION_EVENT_ACTION_DOWN)), in TEST_F()
236 WithMotionAction(ACTION_POINTER_1_DOWN)))); in TEST_F()
253 WithMotionAction(AMOTION_EVENT_ACTION_MOVE)))); in TEST_F()
262 ElementsAre(VariantWith<NotifyMotionArgs>(WithMotionAction(ACTION_POINTER_0_UP)))); in TEST_F()
273 VariantWith<NotifyMotionArgs>(WithMotionAction(AMOTION_EVENT_ACTION_UP)))); in TEST_F()
DFakeWindows.h266 consumeMotionEvent(testing::AllOf(WithMotionAction(AMOTION_EVENT_ACTION_CANCEL),
274 consumeMotionEvent(testing::AllOf(WithMotionAction(AMOTION_EVENT_ACTION_MOVE),
289 testing::AllOf(WithMotionAction(AMOTION_EVENT_ACTION_DOWN),
302 consumeMotionEvent(testing::AllOf(WithMotionAction(action),
311 consumeMotionEvent(testing::AllOf(WithMotionAction(action), matcher)); in consumeMotionPointerUp()
317 consumeMotionEvent(testing::AllOf(WithMotionAction(AMOTION_EVENT_ACTION_UP),
325 consumeMotionEvent(testing::AllOf(WithMotionAction(AMOTION_EVENT_ACTION_OUTSIDE),
331 consumeMotionEvent(testing::AllOf(WithMotionAction(AMOTION_EVENT_ACTION_OUTSIDE), in consumeMotionOutsideWithZeroedCoords()
DUnwantedInteractionBlocker_test.cpp574 mTestListener.assertNotifyMotionWasCalled(WithMotionAction(DOWN)); in TEST_F()
579 mTestListener.assertNotifyMotionWasCalled(WithMotionAction(MOVE)); in TEST_F()
584 mTestListener.assertNotifyMotionWasCalled(WithMotionAction(CANCEL)); in TEST_F()
600 mTestListener.assertNotifyMotionWasCalled(WithMotionAction(DOWN)); in TEST_F()
607 mTestListener.assertNotifyMotionWasCalled(WithMotionAction(MOVE)); in TEST_F()
615 mTestListener.assertNotifyMotionWasCalled(WithMotionAction(UP)); in TEST_F()
631 mTestListener.assertNotifyMotionWasCalled(WithMotionAction(DOWN)); in TEST_F()
638 mTestListener.assertNotifyMotionWasCalled(WithMotionAction(POINTER_1_DOWN)); in TEST_F()
645 mTestListener.assertNotifyMotionWasCalled(WithMotionAction(MOVE)); in TEST_F()
653 AllOf(WithMotionAction(POINTER_0_UP), WithFlags(FLAG_CANCELED))); in TEST_F()
[all …]
DInputTracingTest.cpp144 auto consumed = window->consumeMotionEvent(WithMotionAction(ACTION_DOWN)); in tapAndExpect()
154 auto consumed = window->consumeMotionEvent(WithMotionAction(ACTION_UP)); in tapAndExpect()
601 auto consumed = window->consumeMotionEvent(WithMotionAction(ACTION_DOWN)); in TEST_F()
607 consumed = window->consumeMotionEvent(WithMotionAction(ACTION_CANCEL)); in TEST_F()
637 auto consumed = window->consumeMotionEvent(WithMotionAction(ACTION_DOWN)); in TEST_F()
642 consumed = window->consumeMotionEvent(WithMotionAction(ACTION_CANCEL)); in TEST_F()
690 auto consumed = window->consumeMotionEvent(WithMotionAction(ACTION_DOWN)); in TEST_F()
704 consumed = window->consumeMotionEvent(WithMotionAction(ACTION_MOVE)); in TEST_F()
720 consumed = window->consumeMotionEvent(WithMotionAction(ACTION_MOVE)); in TEST_F()
737 consumed = window->consumeMotionEvent(WithMotionAction(ACTION_UP)); in TEST_F()
DInputReader_test.cpp1986 WithMotionAction(AMOTION_EVENT_ACTION_DOWN))); in TEST_P()
1992 WithMotionAction(AMOTION_EVENT_ACTION_MOVE))); in TEST_P()
1998 mTestListener->assertNotifyMotionWasCalled(WithMotionAction(AMOTION_EVENT_ACTION_UP))); in TEST_P()
2011 AllOf(WithMotionAction(AMOTION_EVENT_ACTION_DOWN), in TEST_P()
2020 mTestListener->assertNotifyMotionWasCalled(WithMotionAction(AMOTION_EVENT_ACTION_UP))); in TEST_P()
2030 AllOf(WithMotionAction(AMOTION_EVENT_ACTION_DOWN), in TEST_P()
2038 mTestListener->assertNotifyMotionWasCalled(WithMotionAction(AMOTION_EVENT_ACTION_UP))); in TEST_P()
2047 AllOf(WithMotionAction(AMOTION_EVENT_ACTION_HOVER_ENTER), in TEST_P()
2062 WithMotionAction(AMOTION_EVENT_ACTION_DOWN))); in TEST_P()
2068 WithMotionAction(AMOTION_EVENT_ACTION_MOVE))); in TEST_P()
[all …]
DFakeWindows.cpp108 ASSERT_THAT(motionEvent, WithMotionAction(expectedAction)); in consumeEvent()
DPointerChoreographer_test.cpp1432 AllOf(WithMotionAction(AMOTION_EVENT_ACTION_DOWN), in TEST_F()
1446 AllOf(WithMotionAction(AMOTION_EVENT_ACTION_POINTER_DOWN | in TEST_F()
1463 AllOf(WithMotionAction(AMOTION_EVENT_ACTION_POINTER_DOWN | in TEST_F()
1478 AllOf(WithMotionAction(AMOTION_EVENT_ACTION_MOVE), in TEST_F()
DTestEventMatchers.h140 inline WithMotionActionMatcher WithMotionAction(int32_t action) { in WithMotionAction() function