/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/ |
D | SingleTapClassifierTest.java | 70 addMotionEvent(0, 0, MotionEvent.ACTION_DOWN, 1, 1); in testSimpleTap_XSlop() 77 addMotionEvent(0, 0, MotionEvent.ACTION_DOWN, 1, 1); in testSimpleTap_XSlop() 86 addMotionEvent(0, 0, MotionEvent.ACTION_DOWN, 1, 1); in testSimpleTap_YSlop() 93 addMotionEvent(0, 0, MotionEvent.ACTION_DOWN, 1, 1); in testSimpleTap_YSlop() 102 addMotionEvent(0, 0, MotionEvent.ACTION_DOWN, 1, 1); in testFalseTap_XSlop() 109 addMotionEvent(0, 0, MotionEvent.ACTION_DOWN, 1, 1); in testFalseTap_XSlop() 118 addMotionEvent(0, 0, MotionEvent.ACTION_DOWN, 1, 1); in testFalseTap_YSlop() 125 addMotionEvent(0, 0, MotionEvent.ACTION_DOWN, 1, 1); in testFalseTap_YSlop() 133 addMotionEvent(0, 0, MotionEvent.ACTION_DOWN, 1, 1); in testLargeMovementFalses() 142 addMotionEvent(0, 0, MotionEvent.ACTION_DOWN, 1, 1); in testDirectlySuppliedMotionEvents() [all …]
|
D | DoubleTapClassifierTest.java | 83 addMotionEvent(0, 0, MotionEvent.ACTION_DOWN, 1, 1); in testSingleTap() 94 addMotionEvent(0, 0, MotionEvent.ACTION_DOWN, 1, 1); in testDoubleTap() 99 addMotionEvent(2, 2, MotionEvent.ACTION_DOWN, TOUCH_SLOP, TOUCH_SLOP); in testDoubleTap() 111 addMotionEvent(0, 0, MotionEvent.ACTION_DOWN, 1, 1); in testBadFirstTap() 116 addMotionEvent(2, 2, MotionEvent.ACTION_DOWN, 1, 1); in testBadFirstTap() 128 addMotionEvent(0, 0, MotionEvent.ACTION_DOWN, 1, 1); in testBadSecondTap() 133 addMotionEvent(2, 2, MotionEvent.ACTION_DOWN, 1, 1); in testBadSecondTap() 144 addMotionEvent(0, 0, MotionEvent.ACTION_DOWN, 1, 1); in testBadTouchSlop() 149 addMotionEvent(2, 2, MotionEvent.ACTION_DOWN, TOUCH_SLOP + 1, TOUCH_SLOP); in testBadTouchSlop() 160 addMotionEvent(0, 0, MotionEvent.ACTION_DOWN, 1, 1); in testBadTouchSlow() [all …]
|
D | FalsingCollectorImplTest.java | 174 MotionEvent down = MotionEvent.obtain(0, 0, MotionEvent.ACTION_DOWN, 0, 0, 0); in testPassThroughGesture() 186 argThat(argument -> argument.getActionMasked() == MotionEvent.ACTION_DOWN)); in testPassThroughGesture() 192 MotionEvent down = MotionEvent.obtain(0, 0, MotionEvent.ACTION_DOWN, 0, 0, 0); in testAvoidGesture() 193 MotionEvent up = MotionEvent.obtain(0, 0, MotionEvent.ACTION_DOWN, 0, 0, 0); in testAvoidGesture() 221 MotionEvent down = MotionEvent.obtain(0, 0, MotionEvent.ACTION_DOWN, 0, 0, 0); in testAvoidUnlocked() 240 MotionEvent down = MotionEvent.obtain(0, 0, MotionEvent.ACTION_DOWN, 0, 0, 0); in testGestureWhenDozing() 256 MotionEvent down = MotionEvent.obtain(0, 0, MotionEvent.ACTION_DOWN, 0, 0, 0); in testGestureWhenPulsing()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | MotionEventTest.java | 20 import static android.view.MotionEvent.ACTION_DOWN; 67 MotionEvent motionEvent = MotionEvent.obtain(0, 0, ACTION_DOWN, in testObtainWithDisplayId() 72 ACTION_DOWN /* action */, 0f /* x */, 0f /* y */, 0/* pressure */, 0 /* size */, in testObtainWithDisplayId() 87 motionEvent = MotionEvent.obtain(0, 0, ACTION_DOWN, in testObtainWithDisplayId() 96 ACTION_DOWN, 30 /* x */, 50 /* y */, 0 /* metaState */); in testCalculatesCursorPositionForTouchscreenEvents() 106 ACTION_DOWN, 30 /* x */, 50 /* y */, 0 /* metaState */); in testCalculatesCursorPositionForSimpleMouseEvents() 116 ACTION_DOWN, 30 /* x */, 50 /* y */, 0 /* metaState */); in testCalculatesCursorPositionForSimpleMouseEventsWithOffset() 162 ACTION_DOWN, 30 /* x */, 50 /* y */, 0 /* metaState */); in testObtainGeneratesUniqueId() 172 ACTION_DOWN, 30 /* x */, 50 /* y */, 0 /* metaState */); in testObtainGeneratesIdWithRightSource() 183 ACTION_DOWN, 30 /* x */, 50 /* y */, 0 /* metaState */); in testEventRotation() [all …]
|
/frameworks/base/core/tests/coretests/src/android/hardware/input/ |
D | VirtualTouchEventTest.java | 49 .setAction(VirtualTouchEvent.ACTION_DOWN) in touchEvent_noPointerId() 59 .setAction(VirtualTouchEvent.ACTION_DOWN) in touchEvent_noToolType() 69 .setAction(VirtualTouchEvent.ACTION_DOWN) in touchEvent_noX() 80 .setAction(VirtualTouchEvent.ACTION_DOWN) in touchEvent_noY() 90 .setAction(VirtualTouchEvent.ACTION_DOWN) in touchEvent_created() 97 VirtualTouchEvent.ACTION_DOWN); in touchEvent_created() 108 .setAction(VirtualTouchEvent.ACTION_DOWN) in touchEvent_created_withPressureAndAxis() 117 VirtualTouchEvent.ACTION_DOWN); in touchEvent_created_withPressureAndAxis()
|
D | VirtualKeyEventTest.java | 41 () -> new VirtualKeyEvent.Builder().setAction(VirtualKeyEvent.ACTION_DOWN).build()); in keyEvent_noKeyCode() 53 .setAction(VirtualKeyEvent.ACTION_DOWN) in keyEvent_created() 58 VirtualKeyEvent.ACTION_DOWN); in keyEvent_created()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/ |
D | DragDetectorTest.kt | 74 assertTrue(dragDetector.onMotionEvent(createMotionEvent(MotionEvent.ACTION_DOWN))) in testNoMove_passesDownAndUp() 76 return@argThat it.action == MotionEvent.ACTION_DOWN && it.x == X && it.y == Y && in testNoMove_passesDownAndUp() 90 return@argThat it.action == MotionEvent.ACTION_DOWN in testMoveInSlop_touch_passesDownAndUp() 93 assertFalse(dragDetector.onMotionEvent(createMotionEvent(MotionEvent.ACTION_DOWN))) in testMoveInSlop_touch_passesDownAndUp() 95 return@argThat it.action == MotionEvent.ACTION_DOWN && it.x == X && it.y == Y && in testMoveInSlop_touch_passesDownAndUp() 116 it.action == MotionEvent.ACTION_DOWN in testMoveInSlop_mouse_passesDownMoveAndUp() 120 createMotionEvent(MotionEvent.ACTION_DOWN, isTouch = false))) in testMoveInSlop_mouse_passesDownMoveAndUp() 122 return@argThat it.action == MotionEvent.ACTION_DOWN && it.x == X && it.y == Y && in testMoveInSlop_mouse_passesDownMoveAndUp() 145 it.action == MotionEvent.ACTION_DOWN in testMoveBeyondSlop_passesDownMoveAndUp() 148 assertFalse(dragDetector.onMotionEvent(createMotionEvent(MotionEvent.ACTION_DOWN))) in testMoveBeyondSlop_passesDownMoveAndUp() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | KeyboardInterceptorTest.java | 77 KeyEvent event = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0); in whenNonspecialKeyArrives_withNothingInQueue_eventGoesToAms() 84 KeyEvent event = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_VOLUME_DOWN); in whenVolumeKeyArrives_andPolicySaysUseIt_eventGoesToAms() 93 KeyEvent event = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_VOLUME_UP); in whenVolumeKeyArrives_andPolicySaysDropIt_eventDropped() 103 KeyEvent event = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_VOLUME_UP); in whenVolumeKeyArrives_andPolicySaysDelayThenUse_eventQueuedThenSentToAms() 120 KeyEvent event = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_VOLUME_DOWN); in whenVolumeKeyArrives_andPolicySaysDelayThenDrop_eventQueuedThenDropped() 137 KeyEvent[] events = {new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0), in whenSomeEventsGetDelayed_allEventsStillInOrder() 138 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_VOLUME_UP), in whenSomeEventsGetDelayed_allEventsStillInOrder() 139 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_A), in whenSomeEventsGetDelayed_allEventsStillInOrder() 167 KeyEvent[] events = {new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0), in whenSomeEventsGetDropped_otherEventsStillInOrder() 168 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_VOLUME_UP), in whenSomeEventsGetDropped_otherEventsStillInOrder() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | NotificationTapHelperTest.java | 80 MotionEvent.ACTION_DOWN, in testDoubleTap_success() 92 MotionEvent.ACTION_DOWN, in testDoubleTap_success() 124 MotionEvent.ACTION_DOWN, in testSingleTap_timeout() 151 MotionEvent.ACTION_DOWN, in testSingleTap_falsed() 179 MotionEvent.ACTION_DOWN, in testDoubleTap_falsed() 191 MotionEvent.ACTION_DOWN, in testDoubleTap_falsed() 225 MotionEvent.ACTION_DOWN, in testSlideBack() 259 MotionEvent.ACTION_DOWN, in testMoreThanTwoTaps() 271 MotionEvent.ACTION_DOWN, in testMoreThanTwoTaps() 283 MotionEvent.ACTION_DOWN, in testMoreThanTwoTaps() [all …]
|
D | PhoneStatusBarViewTest.kt | 53 val event = MotionEvent.obtain(0L, 0L, MotionEvent.ACTION_DOWN, 0f, 0f, 0) in onTouchEvent_listenerNotified() 64 val event = MotionEvent.obtain(0L, 0L, MotionEvent.ACTION_DOWN, 0f, 0f, 0) in onInterceptTouchEvent_listenerNotified() 74 val event = MotionEvent.obtain(0L, 0L, MotionEvent.ACTION_DOWN, 0f, 0f, 0) in onTouchEvent_listenerReturnsTrue_viewReturnsTrue() 85 val event = MotionEvent.obtain(0L, 0L, MotionEvent.ACTION_DOWN, 0f, 0f, 0) in onTouchEvent_listenerReturnsFalse_viewReturnsFalse() 94 view.onTouchEvent(MotionEvent.obtain(0L, 0L, MotionEvent.ACTION_DOWN, 0f, 0f, 0)) in onTouchEvent_noListener_noCrash()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/ |
D | BubblesNavBarMotionEventHandlerTest.java | 20 import static android.view.MotionEvent.ACTION_DOWN; 77 mMotionEventHandler.onMotionEvent(newEvent(ACTION_DOWN, 0, 990)); in testMotionEvent_swipeUpInGestureZone_handled() 95 mMotionEventHandler.onMotionEvent(newEvent(ACTION_DOWN, 0, 500)); in testMotionEvent_swipeUpOutsideGestureZone_ignored() 105 mMotionEventHandler.onMotionEvent(newEvent(ACTION_DOWN, 0, 990)); in testMotionEvent_horizontalMoveMoreThanTouchSlop_handled() 118 mMotionEventHandler.onMotionEvent(newEvent(ACTION_DOWN, 0, 990)); in testMotionEvent_moveLessThanTouchSlop_ignored() 129 mMotionEventHandler.onMotionEvent(newEvent(ACTION_DOWN, 0, 990)); in testMotionEvent_actionCancel_listenerNotified()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | KeyUtils.java | 42 inst.sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_MENU)); in tapMenuKey() 55 final KeyEvent pushMenuKey = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_MENU); in chordMenuKey() 61 inst.sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN, shortcutKeyCode)); in chordMenuKey() 74 inst.sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_CENTER)); in longClick()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/phone/ |
D | PipTouchStateTest.java | 20 import static android.view.MotionEvent.ACTION_DOWN; 69 mTouchState.onTouchEvent(createMotionEvent(ACTION_DOWN, currentTime, 0, 0)); in testDoubleTapLongSingleTap_notDoubleTapAndNotWaiting() 81 mTouchState.onTouchEvent(createMotionEvent(ACTION_DOWN, currentTime, 0, 0)); in testDoubleTapTimeout_timeoutCallbackCalled() 98 mTouchState.onTouchEvent(createMotionEvent(ACTION_DOWN, currentTime, 0, 0)); in testDoubleTapDrag_doubleTapCanceled() 111 mTouchState.onTouchEvent(createMotionEvent(ACTION_DOWN, currentTime, 0, 0)); in testDoubleTap_doubleTapRegistered() 113 mTouchState.onTouchEvent(createMotionEvent(ACTION_DOWN, in testDoubleTap_doubleTapRegistered()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/magnetictarget/ |
D | MagnetizedObjectTest.kt | 146 x = 0, y = 0, action = MotionEvent.ACTION_DOWN))) in <lambda>() 171 x = 200, y = 200, action = MotionEvent.ACTION_DOWN))) in <lambda>() 191 x = targetCenterX, y = targetCenterY, action = MotionEvent.ACTION_DOWN))) in <lambda>() 198 getMotionEvent(x = 0, y = 0, action = MotionEvent.ACTION_DOWN), in <lambda>() 240 action = MotionEvent.ACTION_DOWN), in <lambda>() 280 action = MotionEvent.ACTION_DOWN), in <lambda>() 303 action = MotionEvent.ACTION_DOWN), in <lambda>() 324 action = MotionEvent.ACTION_DOWN), in <lambda>() 347 action = MotionEvent.ACTION_DOWN)) in <lambda>() 364 getMotionEvent(x = 0, y = 0, action = MotionEvent.ACTION_DOWN), in <lambda>() [all …]
|
/frameworks/base/apct-tests/perftests/core/src/android/view/ |
D | HandwritingInitiatorPerfTest.java | 19 import static android.view.MotionEvent.ACTION_DOWN; 72 createMotionEvent(ACTION_DOWN, TOOL_TYPE_STYLUS, 10, 10, 0); in onTouchEvent_actionDown_toolTypeStylus() 88 createMotionEvent(ACTION_DOWN, TOOL_TYPE_STYLUS, 10, 10, 0); in onTouchEvent_actionUp_toolTypeStylus() 106 createMotionEvent(ACTION_DOWN, TOOL_TYPE_STYLUS, initX, initY, 0); in onTouchEvent_actionMove_toolTypeStylus() 132 createMotionEvent(ACTION_DOWN, TOOL_TYPE_FINGER, 10, 10, 0); in onTouchEvent_actionDown_toolTypeFinger() 146 createMotionEvent(ACTION_DOWN, TOOL_TYPE_FINGER, 10, 10, 0); in onTouchEvent_actionUp_toolTypeFinger() 164 createMotionEvent(ACTION_DOWN, TOOL_TYPE_FINGER, initX, initY, 0); in onTouchEvent_actionMove_toolTypeFinger()
|
/frameworks/base/core/tests/coretests/src/android/view/stylus/ |
D | HandwritingInitiatorTest.java | 19 import static android.view.MotionEvent.ACTION_DOWN; 90 MotionEvent stylusEvent1 = createStylusEvent(ACTION_DOWN, x1, y1, 0); in onTouchEvent_startHandwriting_when_stylusMoveOnce_withinHWArea() 108 MotionEvent stylusEvent1 = createStylusEvent(ACTION_DOWN, x1, y1, 0); in onTouchEvent_startHandwritingOnce_when_stylusMoveMultiTimes_withinHWArea() 133 MotionEvent stylusEvent1 = createStylusEvent(ACTION_DOWN, x1, y1, 0); in onTouchEvent_startHandwriting_inputConnectionBuiltAfterStylusMove() 152 MotionEvent stylusEvent1 = createStylusEvent(ACTION_DOWN, x1, y1, 0); in onTouchEvent_notStartHandwriting_when_stylusTap_withinHWArea() 168 MotionEvent stylusEvent1 = createStylusEvent(ACTION_DOWN, x1, y1, 0); in onTouchEvent_notStartHandwriting_when_stylusMove_outOfHWArea() 185 MotionEvent stylusEvent1 = createStylusEvent(ACTION_DOWN, x1, y1, 0); in onTouchEvent_notStartHandwriting_when_stylusMove_afterTimeOut() 202 MotionEvent stylusEvent1 = createStylusEvent(ACTION_DOWN, x1, y1, 0); in onTouchEvent_focusView_stylusMoveOnce_withinHWArea() 221 MotionEvent stylusEvent1 = createStylusEvent(ACTION_DOWN, x1, y1, 0); in autoHandwriting_whenDisabled_wontStartHW()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/ |
D | MagnificationGestureDetectorTest.java | 80 MotionEvent.ACTION_DOWN, ACTION_DOWN_X, ACTION_DOWN_Y); in onActionDown_invokeDownCallback() 91 MotionEvent.ACTION_DOWN, ACTION_DOWN_X, ACTION_DOWN_Y); in performSingleTap_invokeCallbacksInOrder() 109 MotionEvent.ACTION_DOWN, ACTION_DOWN_X, ACTION_DOWN_Y); in performSingleTapWithActionCancel_notInvokeOnSingleTapCallback() 123 MotionEvent.ACTION_DOWN, ACTION_DOWN_X, ACTION_DOWN_Y); in performSingleTapWithTwoPointers_notInvokeSingleTapCallback() 137 MotionEvent.ACTION_DOWN, ACTION_DOWN_X, ACTION_DOWN_Y); in performLongPress_invokeCallbacksInOrder() 157 MotionEvent.ACTION_DOWN, ACTION_DOWN_X, ACTION_DOWN_Y); in performDrag_invokeCallbacksInOrder()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/ |
D | QuickSettingsControllerTest.java | 19 import static android.view.MotionEvent.ACTION_DOWN; 292 createMotionEvent(0, 0, ACTION_DOWN)); in interceptTouchEvent_withinQs_shadeExpanded_startsQsTracking() 306 createMotionEvent(0, 0, ACTION_DOWN)); in interceptTouchEvent_withinQs_shadeExpanded_inSplitShade_doesNotStartQsTracking() 321 createMotionEvent(0, QS_FRAME_BOTTOM / 2, ACTION_DOWN))).isTrue(); in interceptTouch_downBetweenFullyCollapsedAndExpanded() 331 createMotionEvent(0, QS_FRAME_BOTTOM / 4, ACTION_DOWN), false, false); in onTouch_moveActionSetsCorrectExpansionHeight() 346 createMotionEvent(QS_FRAME_WIDTH / 2, QS_FRAME_BOTTOM / 2, ACTION_DOWN); in handleTouch_downActionInQsArea() 356 createMotionEvent(0, QS_FRAME_BOTTOM, ACTION_DOWN), false, false); in handleTouch_qsTouchedWhileCollapsingDisablesTracking() 360 MotionEvent secondTouch = createMotionEvent(0, QS_FRAME_TOP, ACTION_DOWN); in handleTouch_qsTouchedWhileCollapsingDisablesTracking() 369 createMotionEvent(100, 100, ACTION_DOWN), false, false); in handleTouch_qsTouchedWhileExpanding() 374 createMotionEvent(0, QS_FRAME_TOP, ACTION_DOWN), false, false); in handleTouch_qsTouchedWhileExpanding() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/buttons/ |
D | KeyButtonViewTest.java | 19 import static android.view.KeyEvent.ACTION_DOWN; 103 checkmetrics(KEYCODE_BACK, ACTION_DOWN, FLAG_LONG_PRESS, NAVBAR_BACK_BUTTON_LONGPRESS); in testLogBackLongPressLog() 108 checkmetrics(KEYCODE_APP_SWITCH, ACTION_DOWN, FLAG_LONG_PRESS, in testLogOverviewLongPress() 114 checkmetrics(KEYCODE_HOME, ACTION_DOWN, FLAG_LONG_PRESS, NAVBAR_HOME_BUTTON_LONGPRESS); in testLogHomeLongPress() 119 checkmetrics(KEYCODE_BACK, ACTION_DOWN, 0, null); in testNoLogKeyDown()
|
/frameworks/base/tests/Input/src/com/android/test/input/ |
D | InputEventAssignerTest.kt | 75 val down = createMotionEvent(MotionEvent.ACTION_DOWN, 10, SOURCE_TOUCHSCREEN) in testTouchDownWithMove() 104 val down = createMotionEvent(MotionEvent.ACTION_DOWN, 10, SOURCE_MOUSE) in testMouseDownWithMove() 118 val down = createKeyEvent(KeyEvent.ACTION_DOWN, 20) in testKeyEvent() 126 val down2 = createKeyEvent(KeyEvent.ACTION_DOWN, 22) in testKeyEvent()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/ |
D | LockPatternViewTest.java | 139 MotionEvent.obtain(0, 0, MotionEvent.ACTION_DOWN, mDot1x, mDot1y, 1)); in downStartsPattern() 148 MotionEvent.obtain(0, 0, MotionEvent.ACTION_DOWN, mDot1x, mDot1y, 1)); in up_completesPattern() 159 MotionEvent.obtain(0, 0, MotionEvent.ACTION_DOWN, 1f, 1f, 1)); in moveToDot_hitsDot() 170 MotionEvent.obtain(0, 0, MotionEvent.ACTION_DOWN, 1f, 1f, 1)); in moveOutside_doesNotHitsDot() 181 MotionEvent.obtain(0, 0, MotionEvent.ACTION_DOWN, 1f, 1f, 1)); in moveAlongTwoDots_hitsTwo() 198 MotionEvent.obtain(0, 0, MotionEvent.ACTION_DOWN, 1f, 1f, 1)); in moveAlongTwoDotsDiagonally_hitsTwo() 215 MotionEvent.obtain(0, 0, MotionEvent.ACTION_DOWN, 1f, 1f, 1)); in moveAlongZPattern_hitsDots()
|
/frameworks/base/core/java/android/inputmethodservice/navigationbar/ |
D | KeyButtonView.java | 80 sendEvent(KeyEvent.ACTION_DOWN, KeyEvent.FLAG_LONG_PRESS); 152 sendEvent(KeyEvent.ACTION_DOWN, 0, SystemClock.uptimeMillis()); in performAccessibilityActionInternal() 159 sendEvent(KeyEvent.ACTION_DOWN, KeyEvent.FLAG_LONG_PRESS); in performAccessibilityActionInternal() 173 if (action == MotionEvent.ACTION_DOWN) { in onTouchEvent() 182 case MotionEvent.ACTION_DOWN: in onTouchEvent() 191 sendEvent(KeyEvent.ACTION_DOWN, 0, mDownTime); in onTouchEvent() 311 case KeyEvent.ACTION_DOWN: in sendEvent()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/gesture/ |
D | GenericGestureDetectorTest.kt | 77 MotionEvent.obtain(0, 0, MotionEvent.ACTION_DOWN, CORRECT_X, 0f, 0) in onInputEvent_meetsGestureCriteria_allCallbacksNotified() 91 MotionEvent.obtain(0, 0, MotionEvent.ACTION_DOWN, CORRECT_X - 5, 0f, 0) in onInputEvent_doesNotMeetGestureCriteria_callbackNotNotified() 110 MotionEvent.ACTION_DOWN, in callbackUnregisteredThenGestureDetected_oldCallbackNotNotified()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/back/ |
D | BackAnimationControllerTest.java | 173 doMotionEvent(MotionEvent.ACTION_DOWN, 0); in triggerBackGesture() 197 doMotionEvent(MotionEvent.ACTION_DOWN, 0); in crossActivity_screenshotAttachedAndVisible() 210 doMotionEvent(MotionEvent.ACTION_DOWN, 0); in crossActivity_surfaceMovesWithGesture() 245 doMotionEvent(MotionEvent.ACTION_DOWN, 0); in backToHome_dispatchesEvents() 307 doMotionEvent(MotionEvent.ACTION_DOWN, 0); in ignoresGesture_transitionInProgress() 317 doMotionEvent(MotionEvent.ACTION_DOWN, 0); in ignoresGesture_transitionInProgress() 336 doMotionEvent(MotionEvent.ACTION_DOWN, 0); in acceptsGesture_transitionTimeout() 351 doMotionEvent(MotionEvent.ACTION_DOWN, 0); in cancelBackInvokeWhenLostFocus()
|
/frameworks/base/core/java/android/hardware/input/ |
D | VirtualTouchEvent.java | 62 public static final int ACTION_DOWN = MotionEvent.ACTION_DOWN; field in VirtualTouchEvent 72 ACTION_DOWN, 234 if (action != ACTION_DOWN && action != ACTION_UP && action != ACTION_MOVE in setAction()
|