Home
last modified time | relevance | path

Searched refs:createMotionEvent (Results 1 – 18 of 18) 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.java76 createMotionEvent(ACTION_DOWN, TOOL_TYPE_STYLUS, 10, 10, 0); in onTouchEvent_actionDown_toolTypeStylus()
78 createMotionEvent(ACTION_UP, TOOL_TYPE_STYLUS, 11, 11, 1); in onTouchEvent_actionDown_toolTypeStylus()
92 createMotionEvent(ACTION_DOWN, TOOL_TYPE_STYLUS, 10, 10, 0); in onTouchEvent_actionUp_toolTypeStylus()
94 createMotionEvent(ACTION_UP, TOOL_TYPE_STYLUS, 11, 11, 1); in onTouchEvent_actionUp_toolTypeStylus()
110 createMotionEvent(ACTION_DOWN, TOOL_TYPE_STYLUS, initX, initY, 0); in onTouchEvent_actionMove_toolTypeStylus()
115 createMotionEvent(ACTION_MOVE, TOOL_TYPE_STYLUS, x, y, 1); in onTouchEvent_actionMove_toolTypeStylus()
117 createMotionEvent(ACTION_UP, TOOL_TYPE_STYLUS, x, y, 1); in onTouchEvent_actionMove_toolTypeStylus()
136 createMotionEvent(ACTION_DOWN, TOOL_TYPE_FINGER, 10, 10, 0); in onTouchEvent_actionDown_toolTypeFinger()
138 createMotionEvent(ACTION_UP, TOOL_TYPE_FINGER, 11, 11, 1); in onTouchEvent_actionDown_toolTypeFinger()
150 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/shade/
DQuickSettingsControllerImplTest.java99 createMotionEvent(0, 0, ACTION_DOWN)); in interceptTouchEvent_withinQs_shadeExpanded_startsQsTracking()
101 createMotionEvent(0, 500, ACTION_MOVE)); in interceptTouchEvent_withinQs_shadeExpanded_startsQsTracking()
113 createMotionEvent(0, 0, ACTION_DOWN)); in interceptTouchEvent_withinQs_shadeExpanded_inSplitShade_doesNotStartQsTracking()
115 createMotionEvent(0, 500, ACTION_MOVE)); in interceptTouchEvent_withinQs_shadeExpanded_inSplitShade_doesNotStartQsTracking()
128 createMotionEvent(0, QS_FRAME_BOTTOM / 2, ACTION_DOWN))).isTrue(); in interceptTouch_downBetweenFullyCollapsedAndExpanded()
138 createMotionEvent(0, QS_FRAME_BOTTOM / 4, ACTION_DOWN), false, false); in onTouch_moveActionSetsCorrectExpansionHeight()
141 createMotionEvent(0, QS_FRAME_BOTTOM / 4 + 1, ACTION_MOVE), false, false); in onTouch_moveActionSetsCorrectExpansionHeight()
153 createMotionEvent(QS_FRAME_WIDTH / 2, QS_FRAME_BOTTOM / 2, ACTION_DOWN); in handleTouch_downActionInQsArea()
163 createMotionEvent(0, QS_FRAME_BOTTOM, ACTION_DOWN), false, false); in handleTouch_qsTouchedWhileCollapsingDisablesTracking()
166 createMotionEvent(0, QS_FRAME_BOTTOM / 2, ACTION_MOVE), false, true); in handleTouch_qsTouchedWhileCollapsingDisablesTracking()
[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/apct-tests/perftests/core/src/android/input/
DVelocityTrackerBenchmarkTest.kt54 abstract fun createMotionEvent(): MotionEvent in createMotionEvent() method in android.input.MotionState
72 override fun createMotionEvent(): MotionEvent { in createMotionEvent() method in android.input.ScrollMotionState
114 override fun createMotionEvent(): MotionEvent { in createMotionEvent() method in android.input.PlanarMotionState
203 val motionEvent = motionState.createMotionEvent() in testAddMovement()
223 velocityTracker.addMovement(motionState.createMotionEvent()) in testComputeCurrentVelocity_computeAfterAllAdditions()
243 velocityTracker.addMovement(motionState.createMotionEvent()) in testComputeCurrentVelocity_computeAfterEachAdd()
/frameworks/base/core/tests/coretests/src/com/android/internal/accessibility/dialog/
DAccessibilityServiceWarningTest.java163 expect.that(listener.onTouch(allowButton, createMotionEvent(0))).isFalse(); in getTouchConsumingListener()
165 createMotionEvent(MotionEvent.FLAG_WINDOW_IS_OBSCURED))).isTrue(); in getTouchConsumingListener()
167 createMotionEvent(MotionEvent.FLAG_WINDOW_IS_PARTIALLY_OBSCURED))).isTrue(); in getTouchConsumingListener()
179 private MotionEvent createMotionEvent(int flags) { in createMotionEvent() method in AccessibilityServiceWarningTest
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/gestural/
DBackPanelControllerTest.kt188 mBackPanelController.onMotionEvent(createMotionEvent(ACTION_DOWN, START_X, 0f)) in startTouch()
192 mBackPanelController.onMotionEvent(createMotionEvent(ACTION_MOVE, x, 0f)) in continueTouch()
196 mBackPanelController.onMotionEvent(createMotionEvent(ACTION_UP, x, 0f)) in finishTouchActionUp()
199 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()
241 MotionEvent* event = queue->createMotionEvent(); in nativeSendMotionEvent()
/frameworks/base/core/jni/include/android_runtime/
Dandroid_view_InputQueue.h53 MotionEvent* createMotionEvent();
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilityInputFilterInputTest.kt71 fun createMotionEvent(action: Int, downTime: Long, eventTime: Long, source: Int, deviceId: Int): in createMotionEvent() method
490 send(createMotionEvent(action, downTime, eventTime, SOURCE_TOUCHSCREEN, touchDeviceId)) in sendTouchEvent()
497 send(createMotionEvent(action, downTime, eventTime, STYLUS_SOURCE, stylusDeviceId)) in sendStylusEvent()
502 send(createMotionEvent(ACTION_MOVE, time, time, SOURCE_JOYSTICK, joystickDeviceId)) in sendJoystickEvent()
/frameworks/native/libs/input/
DInputConsumerNoResampling.cpp76 std::unique_ptr<MotionEvent> createMotionEvent(const InputMessage& msg) { in createMotionEvent() function
409 std::unique_ptr<MotionEvent> motionEvent = createMotionEvent(msg); in handleMessage()
465 motion = createMotionEvent(msg); in consumeBatchedInputEvents()
529 std::unique_ptr<MotionEvent> motion = createMotionEvent(tmpQueue.front()); in dump()
DInputConsumer.cpp327 MotionEvent* motionEvent = factory->createMotionEvent(); in consume()
434 MotionEvent* motionEvent = factory->createMotionEvent(); in consumeSamples()
DInput.cpp1273 MotionEvent* PooledInputEventFactory::createMotionEvent() { in createMotionEvent() function in android::PooledInputEventFactory
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/
DNotificationStackScrollLayoutTest.java743 MotionEvent event1 = transformEventForView(createMotionEvent(100f, 100f), mStackScroller); in testInsideQSHeader_noOffset()
746 MotionEvent event2 = transformEventForView(createMotionEvent(1100f, 100f), mStackScroller); in testInsideQSHeader_noOffset()
760 MotionEvent event1 = transformEventForView(createMotionEvent(50f, 50f), mStackScroller); in testInsideQSHeader_Offset()
763 MotionEvent event2 = transformEventForView(createMotionEvent(150f, 150f), mStackScroller); in testInsideQSHeader_Offset()
766 MotionEvent event3 = transformEventForView(createMotionEvent(250f, 250f), mStackScroller); in testInsideQSHeader_Offset()
1200 private static MotionEvent createMotionEvent(float x, float y) { in createMotionEvent() method in NotificationStackScrollLayoutTest
/frameworks/native/include/input/
DInput.h1132 virtual MotionEvent* createMotionEvent() = 0;
1149 virtual MotionEvent* createMotionEvent() override { return &mMotionEvent; } in createMotionEvent() function
1173 virtual MotionEvent* createMotionEvent() override;
1203 MotionEvent* createMotionEvent() override { return new MotionEvent(); }; in createMotionEvent() function
/frameworks/native/libs/input/tests/
DInputEvent_test.cpp874 MotionEvent createMotionEvent(int32_t source, uint32_t action, float x, float y, float dx, float dy, in createMotionEvent() function
898 return createMotionEvent(AINPUT_SOURCE_TOUCHSCREEN, AMOTION_EVENT_ACTION_DOWN, x, y, dx, dy, in createTouchDownEvent()
951 createMotionEvent(source, action, 60, 100, 0, 0, transform, transform); in TEST_F()
972 createMotionEvent(source, action, 60, 100, 42, 96, transform, transform); in TEST_F()