Home
last modified time | relevance | path

Searched refs:downEvent (Results 1 – 25 of 36) sorted by relevance

12

/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
H A DMagnificationGesturesObserverTest.java90 final MotionEvent downEvent = TouchEventGenerator.downEvent(Display.DEFAULT_DISPLAY, in onActionDown_shouldNotDetection_onGestureCanceled() local
93 mObserver.onMotionEvent(downEvent, downEvent, 0); in onActionDown_shouldNotDetection_onGestureCanceled()
96 mEventInfoArgumentCaptor.capture(), argThat(new MotionEventMatcher(downEvent))); in onActionDown_shouldNotDetection_onGestureCanceled()
97 verifyCacheMotionEvents(mEventInfoArgumentCaptor.getValue(), downEvent); in onActionDown_shouldNotDetection_onGestureCanceled() local
102 final MotionEvent downEvent = TouchEventGenerator.downEvent(Display.DEFAULT_DISPLAY, in onMotionEvent_unrecognizedEvents_onDetectionCanceledAfterTimeout() local
107 mObserver.onMotionEvent(downEvent, downEvent, 0); in onMotionEvent_unrecognizedEvents_onDetectionCanceledAfterTimeout()
111 verifyCacheMotionEvents(mEventInfoArgumentCaptor.getValue(), downEvent); in onMotionEvent_unrecognizedEvents_onDetectionCanceledAfterTimeout() local
116 final MotionEvent downEvent = TouchEventGenerator.downEvent(Display.DEFAULT_DISPLAY, in sendEventsOfSwiping_onGestureCompleted() local
122 mObserver.onMotionEvent(downEvent, downEvent, 0); in sendEventsOfSwiping_onGestureCompleted()
126 eq(downEvent.getDownTime()), mEventInfoArgumentCaptor.capture(), in sendEventsOfSwiping_onGestureCompleted()
[all …]
H A DSimpleSwipeTest.java66 final MotionEvent downEvent = TouchEventGenerator.downEvent(Display.DEFAULT_DISPLAY, in sendSingleDownEvent_onGestureCanceledAfterTimeout() local
72 mGesturesObserver.onMotionEvent(downEvent, downEvent, 0); in sendSingleDownEvent_onGestureCanceledAfterTimeout()
82 final MotionEvent downEvent = TouchEventGenerator.downEvent(Display.DEFAULT_DISPLAY, in sendSwipeEvent_onGestureCompleted() local
88 mGesturesObserver.onMotionEvent(downEvent, downEvent, 0); in sendSwipeEvent_onGestureCompleted()
98 final MotionEvent downEvent = TouchEventGenerator.downEvent(Display.DEFAULT_DISPLAY, in sendSingleTapEvent_onGestureCanceled() local
104 mGesturesObserver.onMotionEvent(downEvent, downEvent, 0); in sendSingleTapEvent_onGestureCanceled()
H A DMagnificationGestureHandlerTest.java70 final MotionEvent downEvent = MotionEvent.obtain(0, 0, ACTION_DOWN, 0, 0, 0); in onMotionEvent_isFromScreen_onMotionEventInternal() local
71 downEvent.setSource(InputDevice.SOURCE_TOUCHSCREEN); in onMotionEvent_isFromScreen_onMotionEventInternal()
73 mMgh.onMotionEvent(downEvent, downEvent, /* policyFlags= */ 0); in onMotionEvent_isFromScreen_onMotionEventInternal()
78 downEvent.recycle(); in onMotionEvent_isFromScreen_onMotionEventInternal()
84 final MotionEvent downEvent = MotionEvent.obtain(0, 0, ACTION_DOWN, 0, 0, 0); in onMotionEvent_downEvent_handleInteractionStart() local
85 downEvent.setSource(InputDevice.SOURCE_TOUCHSCREEN); in onMotionEvent_downEvent_handleInteractionStart()
87 mMgh.onMotionEvent(downEvent, downEvent, /* policyFlags= */ 0); in onMotionEvent_downEvent_handleInteractionStart()
92 downEvent.recycle(); in onMotionEvent_downEvent_handleInteractionStart()
H A DTwoFingersDownOrSwipeTest.java78 final MotionEvent downEvent = TouchEventGenerator.downEvent(Display.DEFAULT_DISPLAY, in sendSingleDownEvent_GestureCanceledAfterTimeout() local
81 mGesturesObserver.onMotionEvent(downEvent, downEvent, 0); in sendSingleDownEvent_GestureCanceledAfterTimeout()
103 final MotionEvent downEvent = TouchEventGenerator.downEvent(Display.DEFAULT_DISPLAY, in sendSingleTapEvent_onGestureCancelled() local
108 mGesturesObserver.onMotionEvent(downEvent, downEvent, 0); in sendSingleTapEvent_onGestureCancelled()
H A DFullScreenMagnificationGestureHandlerTest.java269 send(downEvent()); in testAlternativeTransitions_areWorking()
301 send(downEvent()); in testNonTransitions_dontChangeState()
366 send(downEvent()); in testTwoFingersOneTap_zoomedState_dispatchMotionEvents()
391 send(downEvent()); in testThreeFingersOneTap_zoomedState_dispatchMotionEvents()
417 send(downEvent()); in testFirstFingerSwipe_TwoPinterDownAndZoomedState_panningState()
435 send(downEvent()); in testSecondFingerSwipe_TwoPinterDownAndZoomedState_panningState()
705 send(downEvent());
710 send(downEvent(x, y));
720 send(downEvent());
725 send(downEvent());
[all …]
H A DWindowMagnificationGestureHandlerTest.java223 for (MotionEvent downEvent: motionEvents) { in goFromStateIdleTo()
224 send(downEvent); in goFromStateIdleTo()
304 private MotionEvent downEvent(float x, float y) { in downEvent() method in WindowMagnificationGestureHandlerTest
305 return TouchEventGenerator.downEvent(DISPLAY_0, x, y); in downEvent()
313 send(downEvent(DEFAULT_TAP_X, DEFAULT_TAP_Y)); in tap()
/aosp12/frameworks/base/core/tests/coretests/src/android/widget/espresso/
H A DDragAction.java73 return downEvent;
187 downEvent.recycle();
189 downEvent = MotionEvents.sendDown(
192 return downEvent;
226 return downEvent;
315 if (downEvent == null) { in sendLinearDrag()
350 downEvent.recycle(); in sendLinearDrag()
368 MotionEvent downEvent = MotionEvents.sendDown( in performLongPress() local
376 return downEvent; in performLongPress()
382 MotionEvent downEvent = MotionEvents.sendDown( in performDoubleTap() local
[all …]
/aosp12/frameworks/base/core/tests/coretests/src/android/widget/
H A DEditorTouchStateTest.java64 MotionEvent event1 = downEvent(event1Time, event1Time, 20f, 30f); in testUpdate_singleTap()
76 MotionEvent event3 = downEvent(event3Time, event3Time, 22f, 33f); in testUpdate_singleTap()
85 MotionEvent event1 = downEvent(event1Time, event1Time, 20f, 30f); in testUpdate_doubleTap_sameArea()
97 MotionEvent event3 = downEvent(event3Time, event3Time, 22f, 33f); in testUpdate_doubleTap_sameArea()
107 MotionEvent event1 = downEvent(event1Time, event1Time, 20f, 30f); in testUpdate_doubleTap_notSameArea()
136 MotionEvent event1 = downEvent(event1Time, event1Time, 20f, 30f); in testUpdate_doubleTap_delayAfterFirstDownEvent()
151 MotionEvent event3 = downEvent(event3Time, event3Time, 22f, 33f); in testUpdate_doubleTap_delayAfterFirstDownEvent()
160 MotionEvent event1 = downEvent(event1Time, event1Time, 20f, 30f); in testUpdate_quickTapAfterDrag()
190 MotionEvent event1 = downEvent(event1Time, event1Time, 20f, 30f); in testUpdate_tripleClick_mouse()
296 MotionEvent event1 = downEvent(event1Time, event1Time, 0f, 0f); in testUpdate_drag_startsCloseToVerticalThenHorizontal()
[all …]
H A DEditorCursorDragTest.java296 MotionEvent event1 = downEvent(tv, event1Time, event1Time, 5f, 10f); in testEditor_onTouchEvent_quickTapAfterDrag()
321 MotionEvent event5 = downEvent(tv, event5Time, event5Time, 90f, 10f); in testEditor_onTouchEvent_quickTapAfterDrag()
334 MotionEvent event7 = downEvent(tv, event7Time, event7Time, 90f, 10f); in testEditor_onTouchEvent_quickTapAfterDrag()
380 MotionEvent event1 = downEvent(tv, event1Time, event1Time, 20f, 30f); in testEditor_onTouchEvent_cursorDrag()
415 MotionEvent event1 = downEvent(tv, event1Time, event1Time, 20f, 30f); in testEditor_onTouchEvent_selectionDrag()
427 MotionEvent event3 = downEvent(tv, event3Time, event3Time, 20f, 30f); in testEditor_onTouchEvent_selectionDrag()
456 MotionEvent event1 = downEvent(tv, event1Time, event1Time, 20f, 30f); in testCursorDrag_nonSelectableTextView()
655 dispatchTouchEvent(tv, downEvent(tv, downTime, downTime, x, y)); in tapAtPoint()
668 dispatchTouchEvent(view, downEvent(view, downTime, eventTime++, startX, startY)); in dragDownUntilLineChange()
789 MotionEvent downEvent = downEvent(tv, downEventTime, downEventTime, in simulateDrag() local
[all …]
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/
H A DMagnificationGestureDetectorTest.java79 final MotionEvent downEvent = mMotionEventHelper.obtainMotionEvent(downTime, downTime, in onActionDown_invokeDownCallback() local
82 mGestureDetector.onTouch(downEvent); in onActionDown_invokeDownCallback()
90 final MotionEvent downEvent = mMotionEventHelper.obtainMotionEvent(downTime, downTime, in performSingleTap_invokeCallbacksInOrder() local
95 mGestureDetector.onTouch(downEvent); in performSingleTap_invokeCallbacksInOrder()
108 final MotionEvent downEvent = mMotionEventHelper.obtainMotionEvent(downTime, downTime, in performSingleTapWithActionCancel_notInvokeOnSingleTapCallback() local
113 mGestureDetector.onTouch(downEvent); in performSingleTapWithActionCancel_notInvokeOnSingleTapCallback()
122 final MotionEvent downEvent = mMotionEventHelper.obtainMotionEvent(downTime, downTime, in performSingleTapWithTwoPointers_notInvokeSingleTapCallback() local
127 mGestureDetector.onTouch(downEvent); in performSingleTapWithTwoPointers_notInvokeSingleTapCallback()
136 final MotionEvent downEvent = mMotionEventHelper.obtainMotionEvent(downTime, downTime, in performLongPress_invokeCallbacksInOrder() local
141 mGestureDetector.onTouch(downEvent); in performLongPress_invokeCallbacksInOrder()
[all …]
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/gestures/
H A DGesturesObserverTest.java84 final MotionEvent downEvent = TouchEventGenerator.downEvent(Display.DEFAULT_DISPLAY, in onMotionEvent_unrecognizedEvents_onGestureCancelledAfterTimeout() local
88 mGesturesObserver.onMotionEvent(downEvent, downEvent, 0); in onMotionEvent_unrecognizedEvents_onGestureCancelledAfterTimeout()
98 final MotionEvent downEvent = TouchEventGenerator.downEvent(Display.DEFAULT_DISPLAY, in onMotionEvent_recognizedEvents_onGestureCompleted() local
104 mGesturesObserver.onMotionEvent(downEvent, downEvent, 0); in onMotionEvent_recognizedEvents_onGestureCompleted()
H A DTouchExplorerTest.java207 send(downEvent(DEFAULT_X + 10, DEFAULT_Y + 10)); in testClick_afterCanceledDoubleTapAndHold_eventLocationIsCorrect()
214 fromTouchscreen(downEvent(DEFAULT_X + 100, DEFAULT_Y + 100)); in testClick_afterCanceledDoubleTapAndHold_eventLocationIsCorrect()
222 send(downEvent()); in testClick_afterCanceledDoubleTapAndHold_eventLocationIsCorrect()
275 send(downEvent()); in testFlickCrossViews_clearStateAndExpectedEvents()
392 send(downEvent()); in testCanceledGesture_shouldDoNothing()
491 send(downEvent()); in goFromStateClearTo()
608 private MotionEvent downEvent(float x, float y) { in downEvent() method in TouchExplorerTest
614 private MotionEvent downEvent() { in downEvent() method in TouchExplorerTest
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
H A DAccessibilityInputFilterTest.java274 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldDispatchToCorrespondingEventHandlers()
275 send(downEvent(SECOND_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldDispatchToCorrespondingEventHandlers()
291 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldClearEventsForDisplayEventHandlers()
292 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldClearEventsForDisplayEventHandlers()
297 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_MOUSE)); in testInputEvent_shouldClearEventsForDisplayEventHandlers()
315 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldNotClearEventsForOtherDisplayEventHandlers()
316 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldNotClearEventsForOtherDisplayEventHandlers()
317 send(downEvent(SECOND_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldNotClearEventsForOtherDisplayEventHandlers()
321 send(downEvent(SECOND_DISPLAY, InputDevice.SOURCE_MOUSE)); in testInputEvent_shouldNotClearEventsForOtherDisplayEventHandlers()
333 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldNotClearEventsForOtherDisplayAfterOnDisplayAdded()
[all …]
/aosp12/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
H A DTwoFingersDownOrSwipe.java113 private static double distance(@NonNull MotionEvent downEvent, @NonNull MotionEvent moveEvent) { in distance() argument
114 final int downActionIndex = downEvent.getActionIndex(); in distance()
115 final int downPointerId = downEvent.getPointerId(downActionIndex); in distance()
120 return MathUtils.dist(downEvent.getX(downActionIndex), downEvent.getY(downActionIndex), in distance()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/
H A DUdfpsControllerTest.java284 MotionEvent downEvent = MotionEvent.obtain(0, 0, MotionEvent.ACTION_DOWN, 0, 0, 0); in onActionDownTouch_whenCanDismissLockScreen_entersDevice() local
285 mTouchListenerCaptor.getValue().onTouch(mUdfpsView, downEvent); in onActionDownTouch_whenCanDismissLockScreen_entersDevice()
286 downEvent.recycle(); in onActionDownTouch_whenCanDismissLockScreen_entersDevice()
397 MotionEvent downEvent = MotionEvent.obtain(0, 0, MotionEvent.ACTION_DOWN, 0, 0, 0); in onMultipleTouch_whenCanDismissLockScreen_entersDeviceOnce() local
398 mTouchListenerCaptor.getValue().onTouch(mUdfpsView, downEvent); in onMultipleTouch_whenCanDismissLockScreen_entersDeviceOnce()
399 downEvent.recycle(); in onMultipleTouch_whenCanDismissLockScreen_entersDeviceOnce()
527 MotionEvent downEvent = MotionEvent.obtain(0, 0, MotionEvent.ACTION_DOWN, 0, 0, 0); in fingerDown() local
528 mTouchListenerCaptor.getValue().onTouch(mUdfpsView, downEvent); in fingerDown()
529 downEvent.recycle(); in fingerDown()
641 mTouchListenerCaptor.getValue().onTouch(mUdfpsView, downEvent); in playHapticOnTouchUdfpsArea()
[all …]
/aosp12/frameworks/base/tests/Input/src/com/android/test/input/
H A DAnrTest.kt86 val downEvent = MotionEvent.obtain(downTime, downTime, regex
88 downEvent.source = InputDevice.SOURCE_TOUCHSCREEN
90 mInstrumentation.uiAutomation.injectInputEvent(downEvent, false /* sync*/)
/aosp12/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DAutoclickController.java431 MotionEvent downEvent = MotionEvent.obtain(now, now, MotionEvent.ACTION_DOWN, 1, in sendClick() local
437 MotionEvent upEvent = MotionEvent.obtain(downEvent); in sendClick()
440 AutoclickController.super.onMotionEvent(downEvent, downEvent, mEventPolicyFlags); in sendClick()
441 downEvent.recycle(); in sendClick()
/aosp12/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/phone/
H A DPipResizeGestureHandlerTest.java127 MotionEvent downEvent = in twoInput_triggersPinchResize_getBigger() local
129 assertTrue(mPipResizeGestureHandler.willStartResizeGesture(downEvent)); in twoInput_triggersPinchResize_getBigger()
168 MotionEvent downEvent = in twoInput_triggersPinchResize_getSmaller() local
170 assertTrue(mPipResizeGestureHandler.willStartResizeGesture(downEvent)); in twoInput_triggersPinchResize_getSmaller()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/utils/
H A DTouchEventGenerator.java38 public static MotionEvent downEvent(int displayId, float x, float y) { in downEvent() method in TouchEventGenerator
67 final MotionEvent downEvent = generateMultiplePointersEvent(displayId, in twoPointersDownEvents() local
69 downEvents.add(downEvent); in twoPointersDownEvents()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/
H A DAccessibilityFloatingMenuViewTest.java278 final MotionEvent downEvent = in tapOnAndDragMenu_interceptUpEvent() local
296 listView.dispatchTouchEvent(downEvent); in tapOnAndDragMenu_interceptUpEvent()
314 final MotionEvent downEvent = in tapOnAndDragMenu_matchLocation() local
332 listView.dispatchTouchEvent(downEvent); in tapOnAndDragMenu_matchLocation()
353 final MotionEvent downEvent = in tapOnAndDragMenuToDisplaySide_transformShapeHalfOval() local
371 listView.dispatchTouchEvent(downEvent); in tapOnAndDragMenuToDisplaySide_transformShapeHalfOval()
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/
H A DMainKeyboardAccessibilityDelegate.java262 final MotionEvent downEvent = MotionEvent.obtain( in performLongClickOn() local
265 tracker.processMotionEvent(downEvent, mKeyDetector); in performLongClickOn()
266 downEvent.recycle(); in performLongClickOn()
/aosp12/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/automation/
H A DInteraction.java115 MotionEvent downEvent = MotionEvent.obtain( in createInterpolatedEventList() local
117 result.add(downEvent); in createInterpolatedEventList()
/aosp12/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/
H A DPreferenceControllerTestHelper.java146 dispatchEvent(downEvent(mState)); in markState()
217 private static Lifecycle.Event downEvent(Lifecycle.State state) { in downEvent() method in PreferenceControllerTestHelper
/aosp12/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A DInteractionController.java190 KeyEvent downEvent = new KeyEvent(eventTime, eventTime, KeyEvent.ACTION_DOWN, in sendKeyAndWaitForEvent()
193 if (injectEventSync(downEvent)) { in sendKeyAndWaitForEvent()
547 KeyEvent downEvent = new KeyEvent(eventTime, eventTime, KeyEvent.ACTION_DOWN,
550 if (injectEventSync(downEvent)) {
/aosp12/packages/apps/Car/tests/RotaryIME/src/com/android/car/rotaryime/
H A DRotaryIme.java150 KeyEvent downEvent = new KeyEvent(uptimeMillis, uptimeMillis, KeyEvent.ACTION_DOWN, in sendDownUpKeyEvents() local
156 getCurrentInputConnection().sendKeyEvent(downEvent); in sendDownUpKeyEvents()

12