Home
last modified time | relevance | path

Searched refs:obtainMotionEvent (Results 1 – 11 of 11) sorted by relevance

/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/
H A DMagnificationGestureDetectorTest.java83 final MotionEvent downEvent = mMotionEventHelper.obtainMotionEvent(downTime, downTime, in onActionDown_invokeDownCallback()
94 final MotionEvent downEvent = mMotionEventHelper.obtainMotionEvent(downTime, downTime, in performSingleTap_invokeCallbacksInOrder()
96 final MotionEvent upEvent = mMotionEventHelper.obtainMotionEvent(downTime, downTime, in performSingleTap_invokeCallbacksInOrder()
112 final MotionEvent downEvent = mMotionEventHelper.obtainMotionEvent(downTime, downTime, in performSingleTapWithActionCancel_notInvokeOnSingleTapCallback()
126 final MotionEvent downEvent = mMotionEventHelper.obtainMotionEvent(downTime, downTime, in performSingleTapWithTwoPointers_notInvokeSingleTapCallback()
128 final MotionEvent upEvent = mMotionEventHelper.obtainMotionEvent(downTime, downTime, in performSingleTapWithTwoPointers_notInvokeSingleTapCallback()
140 final MotionEvent downEvent = mMotionEventHelper.obtainMotionEvent(downTime, downTime, in performLongPress_invokeCallbacksInOrder()
142 final MotionEvent upEvent = mMotionEventHelper.obtainMotionEvent(downTime, downTime, in performLongPress_invokeCallbacksInOrder()
160 final MotionEvent downEvent = mMotionEventHelper.obtainMotionEvent(downTime, downTime, in performDrag_invokeCallbacksInOrder()
162 final MotionEvent moveEvent = mMotionEventHelper.obtainMotionEvent(downTime, downTime, in performDrag_invokeCallbacksInOrder()
[all …]
H A DMagnificationModeSwitchTest.java276 mTouchListener.onTouch(mSpyImageView, obtainMotionEvent( in onDraggingGestureFinish_buttonIsShowing_stickToRightEdge()
281 mTouchListener.onTouch(mSpyImageView, obtainMotionEvent( in onDraggingGestureFinish_buttonIsShowing_stickToRightEdge()
295 obtainMotionEvent(downTime, 0, ACTION_DOWN, 100, 100)); in performSingleTap_fullscreenMode_callbackTriggered()
310 obtainMotionEvent(downTime, 0, ACTION_DOWN, 100, 100)); in sendDownEvent_fullscreenMode_fadeOutAnimationIsNull()
336 mTouchListener.onTouch(mSpyImageView, obtainMotionEvent( in performDragging_showMagnificationButton_updateViewLayout()
346 mTouchListener.onTouch(mSpyImageView, obtainMotionEvent( in performDragging_showMagnificationButton_updateViewLayout()
359 mTouchListener.onTouch(mSpyImageView, obtainMotionEvent( in performSingleTapActionCanceled_showButtonAnimation()
362 mTouchListener.onTouch(mSpyImageView, obtainMotionEvent( in performSingleTapActionCanceled_showButtonAnimation()
377 mTouchListener.onTouch(mSpyImageView, obtainMotionEvent( in performDraggingActionCanceled_showButtonAnimation()
379 mTouchListener.onTouch(mSpyImageView, obtainMotionEvent( in performDraggingActionCanceled_showButtonAnimation()
[all …]
H A DMotionEventHelper.java39 public MotionEvent obtainMotionEvent(long downTime, long eventTime, int action, float x, in obtainMotionEvent() method in MotionEventHelper
H A DWindowMagnificationControllerTest.java1359 obtainMotionEvent(downTime, 0, ACTION_DOWN, 100, 100));
1361 obtainMotionEvent(downTime, downTime, ACTION_UP, 100, 100));
1373 private MotionEvent obtainMotionEvent(long downTime, long eventTime, int action, float x,
1375 return mMotionEventHelper.obtainMotionEvent(downTime, eventTime, action, x, y);
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/
H A DMenuListViewTouchHandlerTest.java105 mMotionEventHelper.obtainMotionEvent(/* downTime= */ 0, /* eventTime= */ 1, in onActionDownEvent_shouldCancelAnimations()
120 mMotionEventHelper.obtainMotionEvent(/* downTime= */ 0, /* eventTime= */ 1, in onActionMoveEvent_notConsumedEvent_shouldMoveToPosition()
124 mMotionEventHelper.obtainMotionEvent(/* downTime= */ 0, /* eventTime= */ 3, in onActionMoveEvent_notConsumedEvent_shouldMoveToPosition()
140 mMotionEventHelper.obtainMotionEvent(/* downTime= */ 0, /* eventTime= */ 1, in onActionMoveEvent_shouldShowDismissView()
144 mMotionEventHelper.obtainMotionEvent(/* downTime= */ 0, /* eventTime= */ 3, in onActionMoveEvent_shouldShowDismissView()
158 mMotionEventHelper.obtainMotionEvent(/* downTime= */ 0, /* eventTime= */ 1, in dragAndDrop_shouldFlingMenuThenSpringToEdge()
162 mMotionEventHelper.obtainMotionEvent(/* downTime= */ 0, /* eventTime= */ 3, in dragAndDrop_shouldFlingMenuThenSpringToEdge()
166 mMotionEventHelper.obtainMotionEvent(/* downTime= */ 0, /* eventTime= */ 5, in dragAndDrop_shouldFlingMenuThenSpringToEdge()
181 mMotionEventHelper.obtainMotionEvent(/* downTime= */ 0, /* eventTime= */ 1, in dragMenuOutOfBoundsAndDrop_moveToLeftEdge_shouldMoveToEdgeAndHide()
185 mMotionEventHelper.obtainMotionEvent(/* downTime= */ 0, /* eventTime= */ 3, in dragMenuOutOfBoundsAndDrop_moveToLeftEdge_shouldMoveToEdgeAndHide()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/phone/
H A DPipResizeGestureHandlerTest.java150 obtainMotionEvent(MotionEvent.ACTION_POINTER_DOWN, topLeft, bottomRight); in twoInput_triggersPinchResize_getBigger()
156 MotionEvent moveEvent1 = obtainMotionEvent(MotionEvent.ACTION_MOVE, topLeft, bottomRight); in twoInput_triggersPinchResize_getBigger()
162 MotionEvent moveEvent2 = obtainMotionEvent(MotionEvent.ACTION_MOVE, topLeft, bottomRight); in twoInput_triggersPinchResize_getBigger()
168 MotionEvent upEvent = obtainMotionEvent(MotionEvent.ACTION_UP, topLeft, bottomRight); in twoInput_triggersPinchResize_getBigger()
191 obtainMotionEvent(MotionEvent.ACTION_POINTER_DOWN, topLeft, bottomRight); in twoInput_triggersPinchResize_getSmaller()
196 MotionEvent moveEvent1 = obtainMotionEvent(MotionEvent.ACTION_MOVE, topLeft, bottomRight); in twoInput_triggersPinchResize_getSmaller()
201 MotionEvent moveEvent2 = obtainMotionEvent(MotionEvent.ACTION_MOVE, topLeft, bottomRight); in twoInput_triggersPinchResize_getSmaller()
207 MotionEvent upEvent = obtainMotionEvent(MotionEvent.ACTION_UP, topLeft, bottomRight); in twoInput_triggersPinchResize_getSmaller()
263 private MotionEvent obtainMotionEvent(int action, int topLeft, int bottomRight) { in obtainMotionEvent() method in PipResizeGestureHandlerTest
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
H A DUdfpsShell.kt143 val downEvent: MotionEvent? = obtainMotionEvent(ACTION_DOWN, sensorBounds.exactCenterX(),
147 val moveEvent: MotionEvent? = obtainMotionEvent(ACTION_MOVE, sensorBounds.exactCenterX(),
159 val upEvent: MotionEvent? = obtainMotionEvent(ACTION_UP, sensorBounds.exactCenterX(),
165 private fun obtainMotionEvent( regex
/aosp14/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DMotionEventInjector.java324 obtainMotionEvent(now, now, MotionEvent.ACTION_CANCEL, getLastTouchPoints(), 1); in cancelAnyGestureInProgress()
410 motionEvents.add(obtainMotionEvent(mDownTime, currentTime, MotionEvent.ACTION_MOVE, in appendMoveEventIfNeeded()
429 motionEvents.add(obtainMotionEvent(mDownTime, currentTime, action, in appendUpEvents()
457 motionEvents.add(obtainMotionEvent(mDownTime, currentTime, action, in appendDownEvents()
463 private MotionEvent obtainMotionEvent(long downTime, long eventTime, int action, in obtainMotionEvent() method in MotionEventInjector
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/udfps/
H A DSinglePointerTouchProcessorTest.kt504 obtainMotionEvent(
669 private fun obtainMotionEvent( regex
688 return obtainMotionEvent(action, arrayOf(pp), arrayOf(pc), time, gestureStart)
691 private fun obtainMotionEvent( regex
726 ) = obtainMotionEvent(action, pointerId, x, y, minor, major, orientation, time, gestureStart)
735 obtainMotionEvent(
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/
H A DUdfpsControllerTest.java558 private static MotionEvent obtainMotionEvent(int action, float x, float y, float minor, in obtainMotionEvent() method in UdfpsControllerTest
629 MotionEvent event = obtainMotionEvent(ACTION_DOWN, displayWidth, displayHeight, touchMinor, in onTouch_propagatesTouchInNativeOrientationAndResolutionParameterized()
634 event = obtainMotionEvent(ACTION_MOVE, displayWidth, displayHeight, touchMinor, touchMajor); in onTouch_propagatesTouchInNativeOrientationAndResolutionParameterized()
653 event = obtainMotionEvent(ACTION_DOWN, displayHeight, 0, touchMinor, touchMajor); in onTouch_propagatesTouchInNativeOrientationAndResolutionParameterized()
657 event = obtainMotionEvent(ACTION_MOVE, displayHeight, 0, touchMinor, touchMajor); in onTouch_propagatesTouchInNativeOrientationAndResolutionParameterized()
676 event = obtainMotionEvent(ACTION_DOWN, 0, displayWidth, touchMinor, touchMajor); in onTouch_propagatesTouchInNativeOrientationAndResolutionParameterized()
680 event = obtainMotionEvent(ACTION_MOVE, 0, displayWidth, touchMinor, touchMajor); in onTouch_propagatesTouchInNativeOrientationAndResolutionParameterized()
700 event = obtainMotionEvent(ACTION_DOWN, displayWidth, displayHeight, touchMinor, touchMajor); in onTouch_propagatesTouchInNativeOrientationAndResolutionParameterized()
704 event = obtainMotionEvent(ACTION_MOVE, displayWidth, displayHeight, touchMinor, touchMajor); in onTouch_propagatesTouchInNativeOrientationAndResolutionParameterized()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/ui/viewmodel/
H A DPromptViewModelTest.kt510 viewModel.onOverlayTouch(obtainMotionEvent(MotionEvent.ACTION_DOWN))
548 viewModel.onOverlayTouch(obtainMotionEvent(MotionEvent.ACTION_DOWN))
549 viewModel.onOverlayTouch(obtainMotionEvent(MotionEvent.ACTION_UP))
760 private fun obtainMotionEvent(action: Int): MotionEvent = regex