/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/ |
H A D | MagnificationGestureDetectorTest.java | 92 final MotionEvent upEvent = mMotionEventHelper.obtainMotionEvent(downTime, downTime, in performSingleTap_invokeCallbacksInOrder() local 96 mGestureDetector.onTouch(upEvent); in performSingleTap_invokeCallbacksInOrder() 124 final MotionEvent upEvent = mMotionEventHelper.obtainMotionEvent(downTime, downTime, in performSingleTapWithTwoPointers_notInvokeSingleTapCallback() local 128 mGestureDetector.onTouch(upEvent); in performSingleTapWithTwoPointers_notInvokeSingleTapCallback() 138 final MotionEvent upEvent = mMotionEventHelper.obtainMotionEvent(downTime, downTime, in performLongPress_invokeCallbacksInOrder() local 144 mGestureDetector.onTouch(upEvent); in performLongPress_invokeCallbacksInOrder() 160 final MotionEvent upEvent = mMotionEventHelper.obtainMotionEvent(downTime, downTime, in performDrag_invokeCallbacksInOrder() local 165 mGestureDetector.onTouch(upEvent); in performDrag_invokeCallbacksInOrder()
|
/aosp12/frameworks/base/core/tests/coretests/src/android/widget/ |
H A D | EditorTouchStateTest.java | 70 MotionEvent event2 = upEvent(event1Time, event2Time, 20f, 30f); in testUpdate_singleTap() 91 MotionEvent event2 = upEvent(event1Time, event2Time, 20f, 30f); in testUpdate_doubleTap_sameArea() 113 MotionEvent event2 = upEvent(event1Time, event2Time, 20f, 30f); in testUpdate_doubleTap_notSameArea() 126 MotionEvent event4 = upEvent(event3Time, event4Time, 200f, 300f); in testUpdate_doubleTap_notSameArea() 142 MotionEvent event2 = upEvent(event1Time, event2Time, 20f, 30f); in testUpdate_doubleTap_delayAfterFirstDownEvent() 172 MotionEvent event3 = upEvent(event1Time, event3Time, 200f, 31f); in testUpdate_quickTapAfterDrag() 197 MotionEvent event2 = upEvent(event1Time, event2Time, 20f, 30f); in testUpdate_tripleClick_mouse() 212 MotionEvent event4 = upEvent(event3Time, event4Time, 21f, 31f); in testUpdate_tripleClick_mouse() 237 MotionEvent event2 = upEvent(event1Time, event2Time, 20f, 30f); in testUpdate_tripleClick_touch() 250 MotionEvent event4 = upEvent(event3Time, event4Time, 21f, 31f); in testUpdate_tripleClick_touch() [all …]
|
H A D | EditorCursorDragTest.java | 314 MotionEvent event4 = upEvent(tv, event1Time, event4Time, 100f, 10f); in testEditor_onTouchEvent_quickTapAfterDrag() 327 MotionEvent event6 = upEvent(tv, event5Time, event6Time, 90f, 10f); in testEditor_onTouchEvent_quickTapAfterDrag() 398 MotionEvent event4 = upEvent(tv, event1Time, event4Time, 120f, 30f); in testEditor_onTouchEvent_cursorDrag() 421 MotionEvent event2 = upEvent(tv, event1Time, event2Time, 20f, 30f); in testEditor_onTouchEvent_selectionDrag() 439 MotionEvent event5 = upEvent(tv, event3Time, event5Time, 120f, 30f); in testEditor_onTouchEvent_selectionDrag() 598 dispatchTouchEvent(handleView, upEvent(handleView, handleDownTime, eventTime, 0, 0)); in testCursorDrag_multiTouch() 656 dispatchTouchEvent(tv, upEvent(tv, downTime, downTime + 1, x, y)); in tapAtPoint() 683 dispatchTouchEvent(view, upEvent(view, downTime, eventTime, startX, startY)); in dragDownUntilLineChange() 736 private MotionEvent upEvent(View view, long downTime, long eventTime, float x, float y) { in upEvent() method in EditorCursorDragTest 805 MotionEvent upEvent = upEvent(tv, downEventTime, upEventTime, upCoords[0], upCoords[1]); in simulateDrag() local [all …]
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/ |
H A D | MagnificationGestureHandlerTest.java | 98 final MotionEvent upEvent = MotionEvent.obtain(0, 0, ACTION_UP, 0, 0, 0); in onMotionEvent_upEvent_handleInteractionEnd() local 99 upEvent.setSource(InputDevice.SOURCE_TOUCHSCREEN); in onMotionEvent_upEvent_handleInteractionEnd() 101 mMgh.onMotionEvent(upEvent, upEvent, /* policyFlags= */ 0); in onMotionEvent_upEvent_handleInteractionEnd() 106 upEvent.recycle(); in onMotionEvent_upEvent_handleInteractionEnd()
|
H A D | FullScreenMagnificationGestureHandlerTest.java | 369 send(upEvent()); in testTwoFingersOneTap_zoomedState_dispatchMotionEvents() 396 send(upEvent()); in testThreeFingersOneTap_zoomedState_dispatchMotionEvents() 664 send(upEvent()); 668 send(upEvent()); 675 send(upEvent()); 706 send(upEvent()); 711 send(upEvent(x, y)); 716 send(upEvent()); 727 send(upEvent()); 764 private MotionEvent upEvent() { [all …]
|
H A D | SimpleSwipeTest.java | 100 final MotionEvent upEvent = TouchEventGenerator.upEvent(Display.DEFAULT_DISPLAY, in sendSingleTapEvent_onGestureCanceled() local 105 mGesturesObserver.onMotionEvent(upEvent, upEvent, 0); in sendSingleTapEvent_onGestureCanceled()
|
H A D | TwoFingersDownOrSwipeTest.java | 105 final MotionEvent upEvent = TouchEventGenerator.upEvent(Display.DEFAULT_DISPLAY, in sendSingleTapEvent_onGestureCancelled() local 109 mGesturesObserver.onMotionEvent(upEvent, upEvent, 0); in sendSingleTapEvent_onGestureCancelled()
|
H A D | WindowMagnificationGestureHandlerTest.java | 261 send(upEvent(frame.centerX(), frame.centerY())); in returnToNormalFrom() 308 private MotionEvent upEvent(float x, float y) { in upEvent() method in WindowMagnificationGestureHandlerTest 309 return TouchEventGenerator.upEvent(DISPLAY_0, x, y); in upEvent() 314 send(upEvent(DEFAULT_TAP_X, DEFAULT_TAP_Y)); in tap()
|
/aosp12/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
H A D | AutoclickController.java | 437 MotionEvent upEvent = MotionEvent.obtain(downEvent); in sendClick() local 438 upEvent.setAction(MotionEvent.ACTION_UP); in sendClick() 443 AutoclickController.super.onMotionEvent(upEvent, upEvent, mEventPolicyFlags); in sendClick() 444 upEvent.recycle(); in sendClick()
|
/aosp12/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/phone/ |
H A D | PipResizeGestureHandlerTest.java | 146 MotionEvent upEvent = obtainMotionEvent(MotionEvent.ACTION_UP, topLeft, bottomRight); in twoInput_triggersPinchResize_getBigger() local 147 mPipResizeGestureHandler.onPinchResize(upEvent); in twoInput_triggersPinchResize_getBigger() 185 MotionEvent upEvent = obtainMotionEvent(MotionEvent.ACTION_UP, topLeft, bottomRight); in twoInput_triggersPinchResize_getSmaller() local 186 mPipResizeGestureHandler.onPinchResize(upEvent); in twoInput_triggersPinchResize_getSmaller()
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/gestures/ |
H A D | TouchExplorerTest.java | 210 send(upEvent()); in testClick_afterCanceledDoubleTapAndHold_eventLocationIsCorrect() 225 send(upEvent()); in testClick_afterCanceledDoubleTapAndHold_eventLocationIsCorrect() 257 send(upEvent()); in testUpEvent_OneFingerMove_clearStateAndInjectHoverEvents() 287 send(upEvent()); in testFlickCrossViews_clearStateAndExpectedEvents() 325 send(upEvent()); in upEventWhenInTwoFingerMove_clearsState() 416 send(upEvent()); in testCanceledGesture_shouldDoNothing() 536 send(upEvent()); in goToStateClearFrom() 621 private MotionEvent upEvent() { in upEvent() method in TouchExplorerTest
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/ |
H A D | AccessibilityFloatingMenuViewTest.java | 289 final MotionEvent upEvent = in tapOnAndDragMenu_interceptUpEvent() local 298 listView.dispatchTouchEvent(upEvent); in tapOnAndDragMenu_interceptUpEvent() 325 final MotionEvent upEvent = in tapOnAndDragMenu_matchLocation() local 334 listView.dispatchTouchEvent(upEvent); in tapOnAndDragMenu_matchLocation() 364 final MotionEvent upEvent = in tapOnAndDragMenuToDisplaySide_transformShapeHalfOval() local 373 listView.dispatchTouchEvent(upEvent); in tapOnAndDragMenuToDisplaySide_transformShapeHalfOval()
|
/aosp12/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/ |
H A D | PreferenceControllerTestHelper.java | 149 dispatchEvent(upEvent(mState)); in markState() 233 private static Lifecycle.Event upEvent(Lifecycle.State state) { in upEvent() method in PreferenceControllerTestHelper
|
/aosp12/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
H A D | InteractionController.java | 194 KeyEvent upEvent = new KeyEvent(eventTime, eventTime, KeyEvent.ACTION_UP, in sendKeyAndWaitForEvent() 197 injectEventSync(upEvent); in sendKeyAndWaitForEvent() 551 KeyEvent upEvent = new KeyEvent(eventTime, eventTime, KeyEvent.ACTION_UP, 554 if(injectEventSync(upEvent)) {
|
/aosp12/packages/apps/Car/tests/RotaryIME/src/com/android/car/rotaryime/ |
H A D | RotaryIme.java | 153 KeyEvent upEvent = new KeyEvent(uptimeMillis, uptimeMillis, KeyEvent.ACTION_UP, in sendDownUpKeyEvents() local 157 getCurrentInputConnection().sendKeyEvent(upEvent); in sendDownUpKeyEvents()
|
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/common/ |
H A D | SeekBarPreference.java | 161 KeyEvent upEvent = new KeyEvent(event.getDownTime(), event.getEventTime(), 165 mSeekBar.onKeyUp(keyCode, upEvent);
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/utils/ |
H A D | TouchEventGenerator.java | 46 public static MotionEvent upEvent(int displayId, float x, float y) { in upEvent() method in TouchEventGenerator
|
/aosp12/packages/apps/Car/libs/car-qc-lib/src/com/android/car/qc/view/ |
H A D | QCRowView.java | 156 KeyEvent upEvent = new KeyEvent(event.getDownTime(), event.getEventTime(), 160 mSeekBar.onKeyUp(keyCode, upEvent);
|
/aosp12/packages/services/Car/service/src/com/android/car/ |
H A D | CarInputService.java | 430 KeyEvent upEvent = createKeyEvent(/* down= */ false, uptime, uptime, keyCode); in rotaryEventToKeyEvents() local 432 keyEvents.add(upEvent); in rotaryEventToKeyEvents()
|
/aosp12/frameworks/base/core/java/android/app/ |
H A D | Instrumentation.java | 1016 final KeyEvent upEvent = new KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_DPAD_CENTER); in invokeContextMenuAction() local 1017 sendKeySync(upEvent); in invokeContextMenuAction()
|
/aosp12/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
H A D | DisplayContentTests.java | 2543 final MotionEvent upEvent = MotionEvent.obtain( in tapOnDisplay() local 2550 upEvent.setDisplayId(dc.getDisplayId()); in tapOnDisplay() 2551 dc.mTapDetector.onPointerEvent(upEvent); in tapOnDisplay()
|
/aosp12/frameworks/base/services/core/java/com/android/server/media/ |
H A D | MediaSessionService.java | 2745 KeyEvent upEvent = KeyEvent.changeAction(keyEvent, KeyEvent.ACTION_UP); in createCanceledKeyEvent() local 2746 return KeyEvent.changeTimeRepeat(upEvent, System.currentTimeMillis(), 0, in createCanceledKeyEvent()
|