Home
last modified time | relevance | path

Searched refs:createMotionEvent (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/phone/
DPipTouchStateTest.java69 mTouchState.onTouchEvent(createMotionEvent(ACTION_DOWN, currentTime, 0, 0)); in testDoubleTapLongSingleTap_notDoubleTapAndNotWaiting()
70 mTouchState.onTouchEvent(createMotionEvent(ACTION_UP, in testDoubleTapLongSingleTap_notDoubleTapAndNotWaiting()
81 mTouchState.onTouchEvent(createMotionEvent(ACTION_DOWN, currentTime, 0, 0)); in testDoubleTapTimeout_timeoutCallbackCalled()
82 mTouchState.onTouchEvent(createMotionEvent(ACTION_UP, in testDoubleTapTimeout_timeoutCallbackCalled()
98 mTouchState.onTouchEvent(createMotionEvent(ACTION_DOWN, currentTime, 0, 0)); in testDoubleTapDrag_doubleTapCanceled()
99 mTouchState.onTouchEvent(createMotionEvent(ACTION_MOVE, currentTime + 10, 500, 500)); in testDoubleTapDrag_doubleTapCanceled()
100 mTouchState.onTouchEvent(createMotionEvent(ACTION_UP, currentTime + 20, 500, 500)); in testDoubleTapDrag_doubleTapCanceled()
111 mTouchState.onTouchEvent(createMotionEvent(ACTION_DOWN, currentTime, 0, 0)); in testDoubleTap_doubleTapRegistered()
112 mTouchState.onTouchEvent(createMotionEvent(ACTION_UP, currentTime + 10, 0, 0)); in testDoubleTap_doubleTapRegistered()
113 mTouchState.onTouchEvent(createMotionEvent(ACTION_DOWN, in testDoubleTap_doubleTapRegistered()
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/view/
DHandwritingInitiatorPerfTest.java72 createMotionEvent(ACTION_DOWN, TOOL_TYPE_STYLUS, 10, 10, 0); in onTouchEvent_actionDown_toolTypeStylus()
74 createMotionEvent(ACTION_UP, TOOL_TYPE_STYLUS, 11, 11, 1); in onTouchEvent_actionDown_toolTypeStylus()
88 createMotionEvent(ACTION_DOWN, TOOL_TYPE_STYLUS, 10, 10, 0); in onTouchEvent_actionUp_toolTypeStylus()
90 createMotionEvent(ACTION_UP, TOOL_TYPE_STYLUS, 11, 11, 1); in onTouchEvent_actionUp_toolTypeStylus()
106 createMotionEvent(ACTION_DOWN, TOOL_TYPE_STYLUS, initX, initY, 0); in onTouchEvent_actionMove_toolTypeStylus()
111 createMotionEvent(ACTION_MOVE, TOOL_TYPE_STYLUS, x, y, 1); in onTouchEvent_actionMove_toolTypeStylus()
113 createMotionEvent(ACTION_UP, TOOL_TYPE_STYLUS, x, y, 1); in onTouchEvent_actionMove_toolTypeStylus()
132 createMotionEvent(ACTION_DOWN, TOOL_TYPE_FINGER, 10, 10, 0); in onTouchEvent_actionDown_toolTypeFinger()
134 createMotionEvent(ACTION_UP, TOOL_TYPE_FINGER, 11, 11, 1); in onTouchEvent_actionDown_toolTypeFinger()
146 createMotionEvent(ACTION_DOWN, TOOL_TYPE_FINGER, 10, 10, 0); in onTouchEvent_actionUp_toolTypeFinger()
[all …]
/frameworks/base/tests/Input/src/com/android/test/input/
DInputEventAssignerTest.kt30 fun createMotionEvent(action: Int, eventTime: Long, source: Int): MotionEvent { in createMotionEvent() method
63 val event = createMotionEvent(MotionEvent.ACTION_MOVE, 10, SOURCE_TOUCHSCREEN) in testTouchGesture()
75 val down = createMotionEvent(MotionEvent.ACTION_DOWN, 10, SOURCE_TOUCHSCREEN) in testTouchDownWithMove()
76 val move1 = createMotionEvent(MotionEvent.ACTION_MOVE, 12, SOURCE_TOUCHSCREEN) in testTouchDownWithMove()
77 val move2 = createMotionEvent(MotionEvent.ACTION_MOVE, 13, SOURCE_TOUCHSCREEN) in testTouchDownWithMove()
78 val move3 = createMotionEvent(MotionEvent.ACTION_MOVE, 14, SOURCE_TOUCHSCREEN) in testTouchDownWithMove()
79 val move4 = createMotionEvent(MotionEvent.ACTION_MOVE, 15, SOURCE_TOUCHSCREEN) in testTouchDownWithMove()
104 val down = createMotionEvent(MotionEvent.ACTION_DOWN, 10, SOURCE_MOUSE) in testMouseDownWithMove()
105 val move1 = createMotionEvent(MotionEvent.ACTION_MOVE, 12, SOURCE_MOUSE) in testMouseDownWithMove()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/
DDragDetectorTest.kt74 assertTrue(dragDetector.onMotionEvent(createMotionEvent(MotionEvent.ACTION_DOWN))) in testNoMove_passesDownAndUp()
80 assertTrue(dragDetector.onMotionEvent(createMotionEvent(MotionEvent.ACTION_UP))) in testNoMove_passesDownAndUp()
93 assertFalse(dragDetector.onMotionEvent(createMotionEvent(MotionEvent.ACTION_DOWN))) in testMoveInSlop_touch_passesDownAndUp()
101 dragDetector.onMotionEvent(createMotionEvent(MotionEvent.ACTION_MOVE, newX, Y))) in testMoveInSlop_touch_passesDownAndUp()
106 assertTrue(dragDetector.onMotionEvent(createMotionEvent(MotionEvent.ACTION_UP, newX, Y))) in testMoveInSlop_touch_passesDownAndUp()
120 createMotionEvent(MotionEvent.ACTION_DOWN, isTouch = false))) in testMoveInSlop_mouse_passesDownMoveAndUp()
128 createMotionEvent(MotionEvent.ACTION_MOVE, newX, Y, isTouch = false))) in testMoveInSlop_mouse_passesDownMoveAndUp()
135 createMotionEvent(MotionEvent.ACTION_UP, newX, Y, isTouch = false))) in testMoveInSlop_mouse_passesDownMoveAndUp()
148 assertFalse(dragDetector.onMotionEvent(createMotionEvent(MotionEvent.ACTION_DOWN))) in testMoveBeyondSlop_passesDownMoveAndUp()
155 assertTrue(dragDetector.onMotionEvent(createMotionEvent(MotionEvent.ACTION_MOVE, newX, Y))) in testMoveBeyondSlop_passesDownMoveAndUp()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/temporarydisplay/chipbar/
DSwipeChipbarAwayGestureHandlerTest.kt45 assertThat(underTest.startOfGestureIsWithinBounds(createMotionEvent())).isFalse() in <lambda>()
54 val motionEvent = createMotionEvent(y = VIEW_BOTTOM - 100f) in <lambda>()
64 val motionEvent = createMotionEvent(y = VIEW_BOTTOM + 20f) in <lambda>()
74 val motionEvent = createMotionEvent(y = VIEW_BOTTOM * 4f) in <lambda>()
84 val motionEvent = createMotionEvent(y = VIEW_BOTTOM - 100f) in <lambda>()
91 private fun createMotionEvent(y: Float = 0f): MotionEvent { in <lambda>() method
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/
DQuickSettingsControllerTest.java292 createMotionEvent(0, 0, ACTION_DOWN)); in interceptTouchEvent_withinQs_shadeExpanded_startsQsTracking()
294 createMotionEvent(0, 500, ACTION_MOVE)); in interceptTouchEvent_withinQs_shadeExpanded_startsQsTracking()
306 createMotionEvent(0, 0, ACTION_DOWN)); in interceptTouchEvent_withinQs_shadeExpanded_inSplitShade_doesNotStartQsTracking()
308 createMotionEvent(0, 500, ACTION_MOVE)); in interceptTouchEvent_withinQs_shadeExpanded_inSplitShade_doesNotStartQsTracking()
321 createMotionEvent(0, QS_FRAME_BOTTOM / 2, ACTION_DOWN))).isTrue(); in interceptTouch_downBetweenFullyCollapsedAndExpanded()
331 createMotionEvent(0, QS_FRAME_BOTTOM / 4, ACTION_DOWN), false, false); in onTouch_moveActionSetsCorrectExpansionHeight()
334 createMotionEvent(0, QS_FRAME_BOTTOM / 4 + 1, ACTION_MOVE), false, false); in onTouch_moveActionSetsCorrectExpansionHeight()
346 createMotionEvent(QS_FRAME_WIDTH / 2, QS_FRAME_BOTTOM / 2, ACTION_DOWN); in handleTouch_downActionInQsArea()
356 createMotionEvent(0, QS_FRAME_BOTTOM, ACTION_DOWN), false, false); in handleTouch_qsTouchedWhileCollapsingDisablesTracking()
359 createMotionEvent(0, QS_FRAME_BOTTOM / 2, ACTION_MOVE), false, true); in handleTouch_qsTouchedWhileCollapsingDisablesTracking()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/gestural/
DBackPanelControllerTest.kt144 mBackPanelController.onMotionEvent(createMotionEvent(ACTION_DOWN, START_X, 0f)) in startTouch()
148 mBackPanelController.onMotionEvent(createMotionEvent(ACTION_MOVE, x, 0f)) in continueTouch()
152 mBackPanelController.onMotionEvent(createMotionEvent(ACTION_UP, x, 0f)) in finishTouchActionUp()
155 private fun createMotionEvent(action: Int, x: Float, y: Float): MotionEvent { in createMotionEvent() method
/frameworks/base/core/jni/
Dandroid_view_InputQueue.cpp172 MotionEvent* InputQueue::createMotionEvent() { in createMotionEvent() function in android::InputQueue
173 return mPooledInputEventFactory.createMotionEvent(); in createMotionEvent()
246 MotionEvent* event = queue->createMotionEvent(); in nativeSendMotionEvent()
/frameworks/base/core/jni/include/android_runtime/
Dandroid_view_InputQueue.h53 MotionEvent* createMotionEvent();
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/
DNotificationStackScrollLayoutTest.java720 MotionEvent event1 = transformEventForView(createMotionEvent(100f, 100f), mStackScroller); in testInsideQSHeader_noOffset()
723 MotionEvent event2 = transformEventForView(createMotionEvent(1100f, 100f), mStackScroller); in testInsideQSHeader_noOffset()
736 MotionEvent event1 = transformEventForView(createMotionEvent(50f, 50f), mStackScroller); in testInsideQSHeader_Offset()
739 MotionEvent event2 = transformEventForView(createMotionEvent(150f, 150f), mStackScroller); in testInsideQSHeader_Offset()
742 MotionEvent event3 = transformEventForView(createMotionEvent(250f, 250f), mStackScroller); in testInsideQSHeader_Offset()
893 private static MotionEvent createMotionEvent(float x, float y) { in createMotionEvent() method in NotificationStackScrollLayoutTest
/frameworks/native/include/input/
DInput.h985 virtual MotionEvent* createMotionEvent() = 0;
1002 virtual MotionEvent* createMotionEvent() override { return &mMotionEvent; } in createMotionEvent() function
1026 virtual MotionEvent* createMotionEvent() override;
/frameworks/native/libs/input/tests/
DInputEvent_test.cpp650 MotionEvent createMotionEvent(int32_t source, uint32_t action, float x, float y, float dx, float dy, in createMotionEvent() function
675 return createMotionEvent(AINPUT_SOURCE_TOUCHSCREEN, AMOTION_EVENT_ACTION_DOWN, x, y, dx, dy, in createTouchDownEvent()
728 createMotionEvent(source, action, 60, 100, 0, 0, transform, transform); in TEST_F()
749 createMotionEvent(source, action, 60, 100, 42, 96, transform, transform); in TEST_F()
/frameworks/native/libs/input/
DInputTransport.cpp840 MotionEvent* motionEvent = factory->createMotionEvent(); in consume()
947 MotionEvent* motionEvent = factory->createMotionEvent(); in consumeSamples()
DInput.cpp1067 MotionEvent* PooledInputEventFactory::createMotionEvent() { in createMotionEvent() function in android::PooledInputEventFactory