/aosp_15_r20/cts/tests/tests/view/src/android/view/cts/ |
H A D | VerifyInputEventTest.java | 112 KeyEvent upEvent = new KeyEvent(downTime, SystemClock.uptimeMillis(), in testKeyEvent() local 114 mAutomation.injectInputEvent(upEvent, true); in testKeyEvent() 135 KeyEvent upEvent = new KeyEvent(downTime, SystemClock.uptimeMillis(), in testKeyEventWithoutHmac() local 137 mAutomation.injectInputEvent(upEvent, true); in testKeyEventWithoutHmac() 158 KeyEvent upEvent = new KeyEvent(downTime, SystemClock.uptimeMillis(), in testTamperedKeyEvent() local 160 mAutomation.injectInputEvent(upEvent, true); in testTamperedKeyEvent() 181 MotionEvent upEvent = MotionEvent.obtain(downTime, SystemClock.uptimeMillis(), in testMotionEvent() local 183 upEvent.setSource(InputDevice.SOURCE_TOUCHSCREEN); in testMotionEvent() 184 upEvent.setDisplayId(mActivity.getDisplayId()); in testMotionEvent() 185 mAutomation.injectInputEvent(upEvent, true); in testMotionEvent() [all …]
|
H A D | ViewUnbufferedTest.java | 218 final MotionEvent upEvent = MotionEvent.obtain(downTime, SystemClock.uptimeMillis(), in sendPointerEvents() local 220 upEvent.setSource(source); in sendPointerEvents() 221 upEvent.setDisplayId(displayId); in sendPointerEvents() 222 mInstrumentation.sendPointerSync(upEvent); in sendPointerEvents()
|
/aosp_15_r20/frameworks/base/apct-tests/perftests/core/src/android/view/ |
H A D | HandwritingInitiatorPerfTest.java | 77 final MotionEvent upEvent = in onTouchEvent_actionDown_toolTypeStylus() local 83 mHandwritingInitiator.onTouchEvent(upEvent); in onTouchEvent_actionDown_toolTypeStylus() 93 final MotionEvent upEvent = in onTouchEvent_actionUp_toolTypeStylus() local 100 mHandwritingInitiator.onTouchEvent(upEvent); in onTouchEvent_actionUp_toolTypeStylus() 116 final MotionEvent upEvent = in onTouchEvent_actionMove_toolTypeStylus() local 127 mHandwritingInitiator.onTouchEvent(upEvent); in onTouchEvent_actionMove_toolTypeStylus() 137 final MotionEvent upEvent = in onTouchEvent_actionDown_toolTypeFinger() local 142 mHandwritingInitiator.onTouchEvent(upEvent); in onTouchEvent_actionDown_toolTypeFinger() 151 final MotionEvent upEvent = in onTouchEvent_actionUp_toolTypeFinger() local 157 mHandwritingInitiator.onTouchEvent(upEvent); in onTouchEvent_actionUp_toolTypeFinger() [all …]
|
/aosp_15_r20/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 …]
|
/aosp_15_r20/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/accessibility/ |
H A D | MagnificationGestureDetectorTest.java | 95 final MotionEvent upEvent = mMotionEventHelper.obtainMotionEvent(downTime, downTime, in performSingleTap_invokeCallbacksInOrder() local 99 mGestureDetector.onTouch(mSpyView, upEvent); in performSingleTap_invokeCallbacksInOrder() 127 final MotionEvent upEvent = mMotionEventHelper.obtainMotionEvent(downTime, downTime, in performSingleTapWithTwoPointers_notInvokeSingleTapCallback() local 131 mGestureDetector.onTouch(mSpyView, upEvent); in performSingleTapWithTwoPointers_notInvokeSingleTapCallback() 141 final MotionEvent upEvent = mMotionEventHelper.obtainMotionEvent(downTime, downTime, in performLongPress_invokeCallbacksInOrder() local 147 mGestureDetector.onTouch(mSpyView, upEvent); in performLongPress_invokeCallbacksInOrder() 163 final MotionEvent upEvent = mMotionEventHelper.obtainMotionEvent(downTime, downTime, in performDrag_invokeCallbacksInOrder() local 168 mGestureDetector.onTouch(mSpyView, upEvent); in performDrag_invokeCallbacksInOrder()
|
/aosp_15_r20/frameworks/base/tests/Input/src/com/android/server/input/ |
H A D | InputManagerServiceTests.kt | 388 val upEvent = createKeycodeAEvent(inputDevice, KeyEvent.ACTION_UP) in addUniqueIdAssociationByDescriptor_verifyAssociations() constant 398 mockOnKeyListener.onKey(mockSurfaceView2, /* keyCode= */ KeyEvent.KEYCODE_A, upEvent) in addUniqueIdAssociationByDescriptor_verifyAssociations() 414 service.injectInputEvent(upEvent, InputEventInjectionSync.NONE) in addUniqueIdAssociationByDescriptor_verifyAssociations() 417 verify(mockOnKeyListener).onKey(mockSurfaceView2, KeyEvent.KEYCODE_A, upEvent) in addUniqueIdAssociationByDescriptor_verifyAssociations() 418 verify(mockOnKeyListener, never()).onKey(mockSurfaceView1, KeyEvent.KEYCODE_A, upEvent) in addUniqueIdAssociationByDescriptor_verifyAssociations() 450 val upEvent = createKeycodeAEvent(inputDevice, KeyEvent.ACTION_UP) in addUniqueIdAssociationByPort_verifyAssociations() constant 460 mockOnKeyListener.onKey(mockSurfaceView2, /* keyCode= */ KeyEvent.KEYCODE_A, upEvent) in addUniqueIdAssociationByPort_verifyAssociations() 476 service.injectInputEvent(upEvent, InputEventInjectionSync.NONE) in addUniqueIdAssociationByPort_verifyAssociations() 479 verify(mockOnKeyListener).onKey(mockSurfaceView2, KeyEvent.KEYCODE_A, upEvent) in addUniqueIdAssociationByPort_verifyAssociations() 480 verify(mockOnKeyListener, never()).onKey(mockSurfaceView1, KeyEvent.KEYCODE_A, upEvent) in addUniqueIdAssociationByPort_verifyAssociations()
|
/aosp_15_r20/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/ |
H A D | WindowMagnificationGestureHandlerTest.java | 233 send(upEvent(DEFAULT_TAP_X, DEFAULT_TAP_Y)); in testTripleTapAndHold_enabled_releaseHold_expectedValue() 384 send(upEvent(frame.centerX(), frame.centerY())); in returnToNormalFrom() 396 send(upEvent(DEFAULT_TAP_X, DEFAULT_TAP_Y)); in returnToNormalFrom() 400 send(upEvent(DEFAULT_TAP_X, DEFAULT_TAP_Y)); in returnToNormalFrom() 459 private MotionEvent upEvent(float x, float y) { in upEvent() method in WindowMagnificationGestureHandlerTest 460 return TouchEventGenerator.upEvent(DISPLAY_0, x, y); in upEvent() 465 send(upEvent(DEFAULT_TAP_X, DEFAULT_TAP_Y)); in tap() 477 send(upEvent(DEFAULT_TAP_X, DEFAULT_TAP_Y)); in twoFingerTap()
|
H A D | FullScreenMagnificationGestureHandlerTest.java | 428 assertTransition(STATE_ZOOMED_FURTHER_TMP, () -> send(upEvent()), STATE_ACTIVATED); in testAlternativeTransitions_areWorking() 435 send(upEvent()); in testRelease_zoomedWithPersistedScaleTmpAndAlwaysOnNotEnabled_shouldInIdle() 444 send(upEvent()); in testRelease_zoomedWithPersistedScaleTmpAndAlwaysOnEnabled_shouldInActivated() 643 send(upEvent()); in testTwoFingerTap_StateIsActivated_shouldInDetecting() 660 send(upEvent()); in testTwoFingerTap_StateIsIdle_shouldInDetecting() 695 send(upEvent()); in testTwoFingersOneTap_activatedState_dispatchMotionEvents() 740 send(upEvent()); in testThreeFingersOneTap_activatedState_dispatchMotionEvents() 873 send(upEvent()); in testActionUpNotAtEdge_singlePanningState_detectingState() 1147 send(upEvent(pointer.x, pointer.y)); in testSingleFingerScrollAfterMagnified_startsFling() 2039 send(upEvent()); in returnToNormalFrom() [all …]
|
H A D | MagnificationGestureHandlerTest.java | 171 final MotionEvent upEvent = MotionEvent.obtain(0, 0, ACTION_UP, 0, 0, 0); in onMotionEvent_upEvent_handleInteractionEnd() local 172 upEvent.setSource(InputDevice.SOURCE_TOUCHSCREEN); in onMotionEvent_upEvent_handleInteractionEnd() 174 mMgh.onMotionEvent(upEvent, upEvent, /* policyFlags= */ 0); in onMotionEvent_upEvent_handleInteractionEnd() 179 upEvent.recycle(); in onMotionEvent_upEvent_handleInteractionEnd()
|
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 | 132 final MotionEvent upEvent = TouchEventGenerator.upEvent(Display.DEFAULT_DISPLAY, in sendSingleTapEvent_onGestureCancelled() local 136 mGesturesObserver.onMotionEvent(upEvent, upEvent, 0); in sendSingleTapEvent_onGestureCancelled()
|
/aosp_15_r20/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/ambient/touch/ |
H A D | BouncerFullscreenSwipeTouchHandlerTest.java | 272 MotionEvent upEvent = Mockito.mock(MotionEvent.class); in testFullSwipe_motionUpResetsTouchState() local 273 when(upEvent.getAction()).thenReturn(MotionEvent.ACTION_UP); in testFullSwipe_motionUpResetsTouchState() 274 inputListenerCaptor.getValue().onInputEvent(upEvent); in testFullSwipe_motionUpResetsTouchState() 296 MotionEvent upEvent = Mockito.mock(MotionEvent.class); in testFullSwipe_motionCancelResetsTouchState() local 297 when(upEvent.getAction()).thenReturn(MotionEvent.ACTION_CANCEL); in testFullSwipe_motionCancelResetsTouchState() 298 inputListenerCaptor.getValue().onInputEvent(upEvent); in testFullSwipe_motionCancelResetsTouchState()
|
H A D | ShadeTouchHandlerTest.kt | 262 val upEvent: MotionEvent = mock() in testFullVerticalSwipe_resetsTouchStateOnUp() constant 263 whenever(upEvent.action).thenReturn(MotionEvent.ACTION_UP) in testFullVerticalSwipe_resetsTouchStateOnUp() 264 mInputListenerCaptor.lastValue.onInputEvent(upEvent) in testFullVerticalSwipe_resetsTouchStateOnUp() 278 val upEvent: MotionEvent = mock() in testFullVerticalSwipe_resetsTouchStateOnCancel() constant 279 whenever(upEvent.action).thenReturn(MotionEvent.ACTION_CANCEL) in testFullVerticalSwipe_resetsTouchStateOnCancel() 280 mInputListenerCaptor.lastValue.onInputEvent(upEvent) in testFullVerticalSwipe_resetsTouchStateOnCancel()
|
/aosp_15_r20/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
H A D | AutoclickController.java | 445 MotionEvent upEvent = MotionEvent.obtain(downEvent); in sendClick() local 446 upEvent.setAction(MotionEvent.ACTION_UP); in sendClick() 447 upEvent.setButtonState(0); in sendClick() 458 AutoclickController.super.onMotionEvent(upEvent, upEvent, mEventPolicyFlags); in sendClick() 459 upEvent.recycle(); in sendClick()
|
/aosp_15_r20/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/gestures/ |
H A D | TouchExplorerTest.java | 199 send(upEvent()); in triggerTouchExplorationWithOneFingerDownMoveUp() 241 send(upEvent()); in testClick_afterCanceledDoubleTapAndHold_eventLocationIsCorrect() 256 send(upEvent()); in testClick_afterCanceledDoubleTapAndHold_eventLocationIsCorrect() 289 send(upEvent()); in testUpEvent_OneFingerMove_clearStateAndInjectHoverEvents() 319 send(upEvent()); in testFlickCrossViews_clearStateAndExpectedEvents() 357 send(upEvent()); in upEventWhenInTwoFingerMove_clearsState() 448 send(upEvent()); in testCanceledGesture_shouldDoNothing() 568 send(upEvent()); in goToStateClearFrom() 653 private MotionEvent upEvent() { in upEvent() method in TouchExplorerTest
|
/aosp_15_r20/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
H A D | DisplayUtils.java | 191 final MotionEvent upEvent = MotionEvent.obtain(downEventTime, upEventTime, in touchDisplay() local 193 upEvent.setSource(InputDevice.SOURCE_TOUCHSCREEN); in touchDisplay() 194 upEvent.setDisplayId(displayId); in touchDisplay() 195 uiAutomation.injectInputEvent(upEvent, true); in touchDisplay()
|
/aosp_15_r20/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/phone/ |
H A D | PipResizeGestureHandlerTest.java | 176 MotionEvent upEvent = obtainMotionEvent(MotionEvent.ACTION_UP, topLeft, bottomRight); in twoInput_triggersPinchResize_getBigger() local 177 mPipResizeGestureHandler.onPinchResize(upEvent); in twoInput_triggersPinchResize_getBigger() 215 MotionEvent upEvent = obtainMotionEvent(MotionEvent.ACTION_UP, topLeft, bottomRight); in twoInput_triggersPinchResize_getSmaller() local 216 mPipResizeGestureHandler.onPinchResize(upEvent); in twoInput_triggersPinchResize_getSmaller()
|
/aosp_15_r20/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ |
H A D | UdfpsShell.kt | 179 val upEvent: MotionEvent? = in simFingerUp() constant 187 udfpsOverlayController?.debugOnTouch(upEvent) in simFingerUp() 188 upEvent?.recycle() in simFingerUp()
|
/aosp_15_r20/cts/tests/input/src/android/input/cts/ |
H A D | InputShellCommandTest.kt | 169 val upEvent = getMotionEvent() in assertTapToolType() constant 170 assertThat(upEvent.action).isEqualTo(MotionEvent.ACTION_UP) in assertTapToolType() 171 assertToolType(upEvent, toolType) in assertTapToolType()
|
H A D | InputInjectionTest.kt | 246 val upEvent = MotionEvent.obtain( in <lambda>() constant 253 upEvent.displayId = displayId in <lambda>() 254 injector(upEvent) in <lambda>()
|
/aosp_15_r20/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)) {
|
/aosp_15_r20/frameworks/base/services/tests/wmtests/src/com/android/server/policy/ |
H A D | ShortcutKeyTestBase.java | 202 final KeyEvent upEvent = new KeyEvent(downTime, eventTime, KeyEvent.ACTION_UP, keyCode, in sendKeyCombination() local 205 upEvent.setDisplayId(displayId); in sendKeyCombination() 206 interceptKey(upEvent); in sendKeyCombination()
|
/aosp_15_r20/packages/apps/Car/SystemUI/multivalentTests/src/com/android/systemui/car/keyguard/passenger/ |
D | PassengerPinPadViewTest.java | 101 MotionEvent upEvent = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, in testBackspaceClickHandler() local 106 mPinPadView.findViewById(R.id.key_backspace).dispatchTouchEvent(upEvent); in testBackspaceClickHandler()
|
/aosp_15_r20/cts/tests/tests/car/src/android/car/cts/ |
H A D | CarInputTest.java | 540 var upEvent = passengerActivity.getInputEvent(); in assertReceivedKeyCode() local 548 .that(upEvent instanceof KeyEvent).isTrue(); in assertReceivedKeyCode() 557 .that(((KeyEvent) upEvent).getKeyCode()).isEqualTo(keyCode); in assertReceivedKeyCode() 560 .that(((KeyEvent) upEvent).getAction()).isEqualTo(KeyEvent.ACTION_UP); in assertReceivedKeyCode()
|