/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 | TimeLimitedInputEventBufferTest.java | 61 MotionEvent eventA = MotionEvent.obtain(0, 0, MotionEvent.ACTION_DOWN, 0, 0, 0); in testMotionEventAllEventsRetained() 76 MotionEvent eventA = MotionEvent.obtain(0, 0, MotionEvent.ACTION_DOWN, 0, 0, 0); in testMotionEventOlderEventsRemoved() 97 KeyEvent eventA = KeyEvent.obtain(0, 0, MotionEvent.ACTION_DOWN, KeyEvent.KEYCODE_A, 0, 0, in testKeyEventAllEventsRetained() 110 KeyEvent eventA = KeyEvent.obtain(0, 0, MotionEvent.ACTION_DOWN, KeyEvent.KEYCODE_A, 0, 0, in testKeyEventOlderEventsRemoved() 114 KeyEvent eventC = KeyEvent.obtain(0, MAX_AGE_MS + 1, MotionEvent.ACTION_DOWN, in testKeyEventOlderEventsRemoved()
|
D | FalsingCollectorImplTest.java | 242 KeyEvent enterDown = KeyEvent.obtain(0, 0, MotionEvent.ACTION_DOWN, KeyEvent.KEYCODE_ENTER, in testPassThroughEnterKeyEvent() 258 KeyEvent aKeyDown = KeyEvent.obtain(0, 0, MotionEvent.ACTION_DOWN, KeyEvent.KEYCODE_A, in testAvoidAKeyEvent() 272 MotionEvent down = MotionEvent.obtain(0, 0, MotionEvent.ACTION_DOWN, 0, 0, 0); in testPassThroughGesture() 284 argThat(argument -> argument.getActionMasked() == MotionEvent.ACTION_DOWN)); in testPassThroughGesture() 290 MotionEvent down = MotionEvent.obtain(0, 0, MotionEvent.ACTION_DOWN, 0, 0, 0); in testAvoidGesture() 291 MotionEvent up = MotionEvent.obtain(0, 0, MotionEvent.ACTION_DOWN, 0, 0, 0); in testAvoidGesture() 320 MotionEvent down = MotionEvent.obtain(0, 0, MotionEvent.ACTION_DOWN, 0, 0, 0); in testAvoidUnlocked_sceneContainerDisabled() 337 MotionEvent down = MotionEvent.obtain(0, 0, MotionEvent.ACTION_DOWN, 0, 0, 0); in testAvoidUnlocked_sceneContainerEnabled() 356 MotionEvent down = MotionEvent.obtain(0, 0, MotionEvent.ACTION_DOWN, 0, 0, 0); in testGestureWhenDozing() 372 MotionEvent down = MotionEvent.obtain(0, 0, MotionEvent.ACTION_DOWN, 0, 0, 0); in testGestureWhenPulsing()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | AccessibilityInputFilterInputTest.kt | 34 import android.view.MotionEvent.ACTION_DOWN 177 sendTouchEvent(ACTION_DOWN, downTime, downTime) in testSingleDeviceTouchEventsWithoutA11yFeatures() 178 verifier.assertReceivedMotion(allOf(fromTouchScreen, withMotionAction(ACTION_DOWN))) in testSingleDeviceTouchEventsWithoutA11yFeatures() 198 sendTouchEvent(ACTION_DOWN, downTime, downTime) in testSingleDeviceTouchEventsWithAllA11yFeatures() 222 sendTouchEvent(ACTION_DOWN, downTime, downTime) in testTouchDownCancelDownWithAllA11yFeatures() 232 sendTouchEvent(ACTION_DOWN, newDownTime, newDownTime) in testTouchDownCancelDownWithAllA11yFeatures() 248 sendStylusEvent(ACTION_DOWN, downTime, downTime) in testStylusDownCancelDownWithAllA11yFeatures() 258 sendStylusEvent(ACTION_DOWN, newDownTime, newDownTime) in testStylusDownCancelDownWithAllA11yFeatures() 272 sendStylusEvent(ACTION_DOWN, downTime, downTime) in testStylusThenTouch() 281 sendTouchEvent(ACTION_DOWN, newDownTime, newDownTime) in testStylusThenTouch() [all …]
|
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/tests/Input/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/core/tests/coretests/src/android/view/ |
D | MotionEventTest.java | 20 import static android.view.MotionEvent.ACTION_DOWN; 72 MotionEvent motionEvent = MotionEvent.obtain(0, 0, ACTION_DOWN, in testObtainWithDisplayId() 77 ACTION_DOWN /* action */, 0f /* x */, 0f /* y */, 0/* pressure */, 0 /* size */, in testObtainWithDisplayId() 92 motionEvent = MotionEvent.obtain(0, 0, ACTION_DOWN, in testObtainWithDisplayId() 101 ACTION_DOWN, 30 /* x */, 50 /* y */, 0 /* metaState */); in testCalculatesCursorPositionForTouchscreenEvents() 111 ACTION_DOWN, 30 /* x */, 50 /* y */, 0 /* metaState */); in testCalculatesCursorPositionForSimpleMouseEvents() 121 ACTION_DOWN, 30 /* x */, 50 /* y */, 0 /* metaState */); in testCalculatesCursorPositionForSimpleMouseEventsWithOffset() 157 ACTION_DOWN, 30 /* x */, 50 /* y */, 0 /* metaState */); in testObtainGeneratesUniqueId() 167 ACTION_DOWN, 30 /* x */, 50 /* y */, 0 /* metaState */); in testObtainGeneratesIdWithRightSource() 178 ACTION_DOWN, 30 /* x */, 50 /* y */, 0 /* metaState */); in testEventRotation() [all …]
|
/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/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 …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/ |
D | QuickSettingsControllerImplTest.java | 19 import static android.view.MotionEvent.ACTION_DOWN; 99 createMotionEvent(0, 0, ACTION_DOWN)); in interceptTouchEvent_withinQs_shadeExpanded_startsQsTracking() 113 createMotionEvent(0, 0, ACTION_DOWN)); in interceptTouchEvent_withinQs_shadeExpanded_inSplitShade_doesNotStartQsTracking() 128 createMotionEvent(0, QS_FRAME_BOTTOM / 2, ACTION_DOWN))).isTrue(); in interceptTouch_downBetweenFullyCollapsedAndExpanded() 138 createMotionEvent(0, QS_FRAME_BOTTOM / 4, ACTION_DOWN), false, false); in onTouch_moveActionSetsCorrectExpansionHeight() 153 createMotionEvent(QS_FRAME_WIDTH / 2, QS_FRAME_BOTTOM / 2, ACTION_DOWN); in handleTouch_downActionInQsArea() 163 createMotionEvent(0, QS_FRAME_BOTTOM, ACTION_DOWN), false, false); in handleTouch_qsTouchedWhileCollapsingDisablesTracking() 167 MotionEvent secondTouch = createMotionEvent(0, QS_FRAME_TOP, ACTION_DOWN); in handleTouch_qsTouchedWhileCollapsingDisablesTracking() 176 createMotionEvent(100, 100, ACTION_DOWN), false, false); in handleTouch_qsTouchedWhileExpanding() 181 createMotionEvent(0, QS_FRAME_TOP, ACTION_DOWN), false, false); in handleTouch_qsTouchedWhileExpanding() [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/ |
D | BubblesNavBarMotionEventHandlerTest.java | 20 import static android.view.MotionEvent.ACTION_DOWN; 75 mMotionEventHandler.onMotionEvent(newEvent(ACTION_DOWN, 0, 990)); in testMotionEvent_swipeUpInGestureZone_handled() 93 mMotionEventHandler.onMotionEvent(newEvent(ACTION_DOWN, 0, 500)); in testMotionEvent_swipeUpOutsideGestureZone_ignored() 103 mMotionEventHandler.onMotionEvent(newEvent(ACTION_DOWN, 0, 990)); in testMotionEvent_horizontalMoveMoreThanTouchSlop_handled() 116 mMotionEventHandler.onMotionEvent(newEvent(ACTION_DOWN, 0, 990)); in testMotionEvent_moveLessThanTouchSlop_ignored() 127 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/core/tests/coretests/src/android/view/stylus/ |
D | HandwritingInitiatorTest.java | 19 import static android.view.MotionEvent.ACTION_DOWN; 142 MotionEvent stylusEvent1 = createStylusEvent(ACTION_DOWN, x1, y1, 0); in onTouchEvent_startHandwriting_when_stylusMoveOnce_withinHWArea() 179 MotionEvent stylusEvent1 = createStylusEvent(ACTION_DOWN, x1, y1, 0); in onTouchEvent_startHandwriting_multipleParagraphs() 209 MotionEvent stylusEvent1 = createStylusEvent(ACTION_DOWN, x1, y1, 0); in onTouchEvent_startHandwritingOnce_when_stylusMoveMultiTimes_withinHWArea() 253 MotionEvent stylusEvent1 = createStylusEvent(ACTION_DOWN, x1, y1, 0); in onTouchEvent_startHandwriting_when_stylusMove_withinExtendedHWArea() 278 MotionEvent stylusEvent1 = createStylusEvent(ACTION_DOWN, x1, y1, 0); in onTouchEvent_startHandwriting_servedViewUpdateAfterStylusMove() 301 MotionEvent stylusEvent1 = createStylusEvent(ACTION_DOWN, x1, y1, 0); in onTouchEvent_startHandwriting_servedViewUpdate_stylusMoveInExtendedHWArea() 338 MotionEvent stylusEvent1 = createStylusEvent(ACTION_DOWN, x1, y1, 0); in onTouchEvent_tryAcceptDelegation_delegatorCallbackCreatesInputConnection() 366 MotionEvent stylusEvent1 = createStylusEvent(ACTION_DOWN, x1, y1, 0); in onTouchEvent_tryAcceptDelegation_delegatorCallbackFocusesDelegate() 386 MotionEvent stylusEvent1 = createStylusEvent(ACTION_DOWN, x1, y, 0); in onTouchEvent_startHandwriting_delegate_touchEventsHandled() [all …]
|
/frameworks/base/apct-tests/perftests/core/src/android/view/ |
D | HandwritingInitiatorPerfTest.java | 19 import static android.view.MotionEvent.ACTION_DOWN; 76 createMotionEvent(ACTION_DOWN, TOOL_TYPE_STYLUS, 10, 10, 0); in onTouchEvent_actionDown_toolTypeStylus() 92 createMotionEvent(ACTION_DOWN, TOOL_TYPE_STYLUS, 10, 10, 0); in onTouchEvent_actionUp_toolTypeStylus() 110 createMotionEvent(ACTION_DOWN, TOOL_TYPE_STYLUS, initX, initY, 0); in onTouchEvent_actionMove_toolTypeStylus() 136 createMotionEvent(ACTION_DOWN, TOOL_TYPE_FINGER, 10, 10, 0); in onTouchEvent_actionDown_toolTypeFinger() 150 createMotionEvent(ACTION_DOWN, TOOL_TYPE_FINGER, 10, 10, 0); in onTouchEvent_actionUp_toolTypeFinger() 168 createMotionEvent(ACTION_DOWN, TOOL_TYPE_FINGER, initX, initY, 0); in onTouchEvent_actionMove_toolTypeFinger()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/magnetictarget/ |
D | MagnetizedObjectTest.kt | 147 x = 0, y = 0, action = MotionEvent.ACTION_DOWN))) in <lambda>() 172 x = 200, y = 200, action = MotionEvent.ACTION_DOWN))) in <lambda>() 192 x = targetCenterX, y = targetCenterY, action = MotionEvent.ACTION_DOWN))) in <lambda>() 199 getMotionEvent(x = 0, y = 0, action = MotionEvent.ACTION_DOWN), in <lambda>() 245 action = MotionEvent.ACTION_DOWN), in <lambda>() 287 action = MotionEvent.ACTION_DOWN), in <lambda>() 310 action = MotionEvent.ACTION_DOWN), in <lambda>() 331 action = MotionEvent.ACTION_DOWN), in <lambda>() 354 action = MotionEvent.ACTION_DOWN)) in <lambda>() 371 getMotionEvent(x = 0, y = 0, action = MotionEvent.ACTION_DOWN), in <lambda>() [all …]
|
/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/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/ |
D | MenuListViewTouchHandlerTest.java | 122 MotionEvent.ACTION_DOWN, mStubMenuView.getTranslationX(), in onActionDownEvent_shouldCancelAnimations() 137 MotionEvent.ACTION_DOWN, mStubMenuView.getTranslationX(), in onActionMoveEvent_notConsumedEvent_shouldMoveToPosition() 158 MotionEvent.ACTION_DOWN, mStubMenuView.getTranslationX(), in onActionMoveEvent_shouldShowDismissView() 177 MotionEvent.ACTION_DOWN, mStubMenuView.getTranslationX(), in onActionMoveEvent_shouldShowInteractView() 195 MotionEvent.ACTION_DOWN, mStubMenuView.getTranslationX(), in dragAndDrop_shouldFlingMenuThenSpringToEdge() 218 MotionEvent.ACTION_DOWN, mStubMenuView.getTranslationX(), in dragMenuOutOfBoundsAndDrop_moveToLeftEdge_shouldMoveToEdgeAndHide() 242 MotionEvent.ACTION_DOWN, mStubMenuView.getTranslationX(), in receiveActionDownMotionEvent_verifyOnActionDownEnd()
|
/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/packages/SystemUI/tests/src/com/android/systemui/accessibility/ |
D | MagnificationGestureDetectorTest.java | 83 MotionEvent.ACTION_DOWN, ACTION_DOWN_X, ACTION_DOWN_Y); in onActionDown_invokeDownCallback() 94 MotionEvent.ACTION_DOWN, ACTION_DOWN_X, ACTION_DOWN_Y); in performSingleTap_invokeCallbacksInOrder() 112 MotionEvent.ACTION_DOWN, ACTION_DOWN_X, ACTION_DOWN_Y); in performSingleTapWithActionCancel_notInvokeOnSingleTapCallback() 126 MotionEvent.ACTION_DOWN, ACTION_DOWN_X, ACTION_DOWN_Y); in performSingleTapWithTwoPointers_notInvokeSingleTapCallback() 140 MotionEvent.ACTION_DOWN, ACTION_DOWN_X, ACTION_DOWN_Y); in performLongPress_invokeCallbacksInOrder() 160 MotionEvent.ACTION_DOWN, ACTION_DOWN_X, ACTION_DOWN_Y); in performDrag_invokeCallbacksInOrder()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/buttons/ |
D | KeyButtonViewTest.java | 19 import static android.view.KeyEvent.ACTION_DOWN; 106 checkmetrics(KEYCODE_BACK, ACTION_DOWN, FLAG_LONG_PRESS, NAVBAR_BACK_BUTTON_LONGPRESS); in testLogBackLongPressLog() 111 checkmetrics(KEYCODE_APP_SWITCH, ACTION_DOWN, FLAG_LONG_PRESS, in testLogOverviewLongPress() 117 checkmetrics(KEYCODE_HOME, ACTION_DOWN, FLAG_LONG_PRESS, NAVBAR_HOME_BUTTON_LONGPRESS); in testLogHomeLongPress() 122 checkmetrics(KEYCODE_BACK, ACTION_DOWN, 0, null); in testNoLogKeyDown()
|
/frameworks/native/services/inputflinger/tests/ |
D | InputDispatcher_test.cpp | 81 static constexpr int32_t ACTION_DOWN = AMOTION_EVENT_ACTION_DOWN; variable 581 if (MotionEvent::getActionMasked(action) == ACTION_DOWN) { 819 MotionEventBuilder(ACTION_DOWN, AINPUT_SOURCE_TOUCHSCREEN) in TEST_F() 857 mDispatcher->notifyMotion(MotionArgsBuilder(ACTION_DOWN, AINPUT_SOURCE_TOUCHSCREEN) in TEST_F() 870 window->consumeMotionEvent(WithMotionAction(ACTION_DOWN)); in TEST_F() 968 mDispatcher->notifyMotion(MotionArgsBuilder(ACTION_DOWN, AINPUT_SOURCE_TOUCHSCREEN) in TEST_F() 973 AllOf(WithMotionAction(ACTION_DOWN), WithDeviceId(deviceA))); in TEST_F() 974 leftWallpaperWindow->consumeMotionEvent(AllOf(WithMotionAction(ACTION_DOWN), in TEST_F() 978 mDispatcher->notifyMotion(MotionArgsBuilder(ACTION_DOWN, AINPUT_SOURCE_TOUCHSCREEN) in TEST_F() 983 AllOf(WithMotionAction(ACTION_DOWN), WithDeviceId(deviceB))); in TEST_F() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/gesture/ |
D | GenericGestureDetectorTest.kt | 78 MotionEvent.obtain(0, 0, MotionEvent.ACTION_DOWN, CORRECT_X, 0f, 0) in onInputEvent_meetsGestureCriteria_allCallbacksNotified() 92 MotionEvent.obtain(0, 0, MotionEvent.ACTION_DOWN, CORRECT_X - 5, 0f, 0) in onInputEvent_doesNotMeetGestureCriteria_callbackNotNotified() 111 MotionEvent.ACTION_DOWN, in callbackUnregisteredThenGestureDetected_oldCallbackNotNotified()
|