Home
last modified time | relevance | path

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

/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/phone/
H A 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()
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()
115 mTouchState.onTouchEvent(createMotionEvent(ACTION_UP, in testDoubleTap_doubleTapRegistered()
[all …]
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/view/
H A DHandwritingInitiatorPerfTest.java73 createMotionEvent(ACTION_DOWN, TOOL_TYPE_STYLUS, 10, 10, 0); in onTouchEvent_actionDown_toolTypeStylus()
75 createMotionEvent(ACTION_UP, TOOL_TYPE_STYLUS, 11, 11, 1); in onTouchEvent_actionDown_toolTypeStylus()
89 createMotionEvent(ACTION_DOWN, TOOL_TYPE_STYLUS, 10, 10, 0); in onTouchEvent_actionUp_toolTypeStylus()
91 createMotionEvent(ACTION_UP, TOOL_TYPE_STYLUS, 11, 11, 1); in onTouchEvent_actionUp_toolTypeStylus()
112 createMotionEvent(ACTION_MOVE, TOOL_TYPE_STYLUS, x, y, 1); in onTouchEvent_actionMove_toolTypeStylus()
114 createMotionEvent(ACTION_UP, TOOL_TYPE_STYLUS, x, y, 1); in onTouchEvent_actionMove_toolTypeStylus()
133 createMotionEvent(ACTION_DOWN, TOOL_TYPE_FINGER, 10, 10, 0); in onTouchEvent_actionDown_toolTypeFinger()
135 createMotionEvent(ACTION_UP, TOOL_TYPE_FINGER, 11, 11, 1); in onTouchEvent_actionDown_toolTypeFinger()
149 createMotionEvent(ACTION_UP, TOOL_TYPE_FINGER, 11, 11, 1); in onTouchEvent_actionUp_toolTypeFinger()
170 createMotionEvent(ACTION_MOVE, TOOL_TYPE_FINGER, x, y, 1); in onTouchEvent_actionMove_toolTypeFinger()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/
H A DQuickSettingsControllerTest.java97 createMotionEvent(0, 0, ACTION_DOWN)); in interceptTouchEvent_withinQs_shadeExpanded_startsQsTracking()
99 createMotionEvent(0, 500, ACTION_MOVE)); in interceptTouchEvent_withinQs_shadeExpanded_startsQsTracking()
111 createMotionEvent(0, 0, ACTION_DOWN)); in interceptTouchEvent_withinQs_shadeExpanded_inSplitShade_doesNotStartQsTracking()
113 createMotionEvent(0, 500, ACTION_MOVE)); in interceptTouchEvent_withinQs_shadeExpanded_inSplitShade_doesNotStartQsTracking()
126 createMotionEvent(0, QS_FRAME_BOTTOM / 2, ACTION_DOWN))).isTrue(); in interceptTouch_downBetweenFullyCollapsedAndExpanded()
174 createMotionEvent(100, 100, ACTION_DOWN), false, false); in handleTouch_qsTouchedWhileExpanding()
179 createMotionEvent(0, QS_FRAME_TOP, ACTION_DOWN), false, false); in handleTouch_qsTouchedWhileExpanding()
306 assertThat(mQsController.handleTouch(createMotionEvent( in handleTouch_splitShadeAndtouchXOutsideQs()
319 MotionEvent event = createMotionEvent(0, 0, ACTION_DOWN); in isOpenQsEvent_stylusButtonClickDrag()
327 MotionEvent event = createMotionEvent(0, 0, ACTION_DOWN); in isOpenQsEvent_mouseButtonClickDrag()
[all …]
/aosp14/frameworks/base/tests/Input/src/com/android/test/input/
H A DInputEventAssignerTest.kt30 fun createMotionEvent(action: Int, eventTime: Long, source: Int): MotionEvent { regex
63 val event = createMotionEvent(MotionEvent.ACTION_MOVE, 10, SOURCE_TOUCHSCREEN)
75 val down = createMotionEvent(MotionEvent.ACTION_DOWN, 10, SOURCE_TOUCHSCREEN)
76 val move1 = createMotionEvent(MotionEvent.ACTION_MOVE, 12, SOURCE_TOUCHSCREEN)
77 val move2 = createMotionEvent(MotionEvent.ACTION_MOVE, 13, SOURCE_TOUCHSCREEN)
78 val move3 = createMotionEvent(MotionEvent.ACTION_MOVE, 14, SOURCE_TOUCHSCREEN)
79 val move4 = createMotionEvent(MotionEvent.ACTION_MOVE, 15, SOURCE_TOUCHSCREEN)
104 val down = createMotionEvent(MotionEvent.ACTION_DOWN, 10, SOURCE_MOUSE)
105 val move1 = createMotionEvent(MotionEvent.ACTION_MOVE, 12, SOURCE_MOUSE)
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/
H A DDragDetectorTest.kt74 assertTrue(dragDetector.onMotionEvent(createMotionEvent(MotionEvent.ACTION_DOWN)))
80 assertTrue(dragDetector.onMotionEvent(createMotionEvent(MotionEvent.ACTION_UP)))
93 assertFalse(dragDetector.onMotionEvent(createMotionEvent(MotionEvent.ACTION_DOWN)))
101 dragDetector.onMotionEvent(createMotionEvent(MotionEvent.ACTION_MOVE, newX, Y)))
106 assertTrue(dragDetector.onMotionEvent(createMotionEvent(MotionEvent.ACTION_UP, newX, Y)))
120 createMotionEvent(MotionEvent.ACTION_DOWN, isTouch = false)))
128 createMotionEvent(MotionEvent.ACTION_MOVE, newX, Y, isTouch = false)))
135 createMotionEvent(MotionEvent.ACTION_UP, newX, Y, isTouch = false)))
148 assertFalse(dragDetector.onMotionEvent(createMotionEvent(MotionEvent.ACTION_DOWN)))
182 assertTrue(dragDetector.onMotionEvent(createMotionEvent(MotionEvent.ACTION_HOVER_MOVE)))
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/temporarydisplay/chipbar/
H A DSwipeChipbarAwayGestureHandlerTest.kt45 assertThat(underTest.startOfGestureIsWithinBounds(createMotionEvent())).isFalse()
54 val motionEvent = createMotionEvent(y = VIEW_BOTTOM - 100f)
64 val motionEvent = createMotionEvent(y = VIEW_BOTTOM + 20f)
74 val motionEvent = createMotionEvent(y = VIEW_BOTTOM * 4f)
84 val motionEvent = createMotionEvent(y = VIEW_BOTTOM - 100f)
91 private fun createMotionEvent(y: Float = 0f): MotionEvent { regex
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/gestural/
H A DBackPanelControllerTest.kt222 mBackPanelController.onMotionEvent(createMotionEvent(ACTION_DOWN, START_X, 0f))
226 mBackPanelController.onMotionEvent(createMotionEvent(ACTION_MOVE, x, 0f))
230 mBackPanelController.onMotionEvent(createMotionEvent(ACTION_UP, x, 0f))
233 private fun createMotionEvent(action: Int, x: Float, y: Float): MotionEvent { regex
/aosp14/frameworks/base/core/jni/
H A Dandroid_view_InputQueue.cpp172 MotionEvent* InputQueue::createMotionEvent() { in createMotionEvent() function in android::InputQueue
173 return mPooledInputEventFactory.createMotionEvent(); in createMotionEvent()
241 MotionEvent* event = queue->createMotionEvent(); in nativeSendMotionEvent()
/aosp14/frameworks/base/core/jni/include/android_runtime/
H A Dandroid_view_InputQueue.h53 MotionEvent* createMotionEvent();
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/
H A DNotificationStackScrollLayoutTest.java753 MotionEvent event1 = transformEventForView(createMotionEvent(100f, 100f), mStackScroller); in testInsideQSHeader_noOffset()
756 MotionEvent event2 = transformEventForView(createMotionEvent(1100f, 100f), mStackScroller); in testInsideQSHeader_noOffset()
769 MotionEvent event1 = transformEventForView(createMotionEvent(50f, 50f), mStackScroller); in testInsideQSHeader_Offset()
772 MotionEvent event2 = transformEventForView(createMotionEvent(150f, 150f), mStackScroller); in testInsideQSHeader_Offset()
775 MotionEvent event3 = transformEventForView(createMotionEvent(250f, 250f), mStackScroller); in testInsideQSHeader_Offset()
968 private static MotionEvent createMotionEvent(float x, float y) { in createMotionEvent() method in NotificationStackScrollLayoutTest