/frameworks/base/core/tests/coretests/src/android/view/ |
D | MotionEventTest.java | 19 import static android.view.MotionEvent.ACTION_DOWN; 63 MotionEvent motionEvent = MotionEvent.obtain(0, 0, ACTION_DOWN, in testObtainWithDisplayId() 68 ACTION_DOWN /* action */, 0f /* x */, 0f /* y */, 0/* pressure */, 0 /* size */, in testObtainWithDisplayId() 83 motionEvent = MotionEvent.obtain(0, 0, ACTION_DOWN, in testObtainWithDisplayId() 92 ACTION_DOWN, 30 /* x */, 50 /* y */, 0 /* metaState */); in testCalculatesCursorPositionForTouchscreenEvents() 102 ACTION_DOWN, 30 /* x */, 50 /* y */, 0 /* metaState */); in testCalculatesCursorPositionForSimpleMouseEvents() 112 ACTION_DOWN, 30 /* x */, 50 /* y */, 0 /* metaState */); in testCalculatesCursorPositionForSimpleMouseEventsWithOffset() 158 ACTION_DOWN, 30 /* x */, 50 /* y */, 0 /* metaState */); in testObtainGeneratesUniqueId() 168 ACTION_DOWN, 30 /* x */, 50 /* y */, 0 /* metaState */); in testObtainGeneratesIdWithRightSource()
|
D | VerifiedKeyEventTest.kt | 20 import android.view.KeyEvent.ACTION_DOWN 134 private const val ACTION = ACTION_DOWN
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | KeyboardInterceptorTest.java | 75 KeyEvent event = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0); in whenNonspecialKeyArrives_withNothingInQueue_eventGoesToAms() 82 KeyEvent event = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_VOLUME_DOWN); in whenVolumeKeyArrives_andPolicySaysUseIt_eventGoesToAms() 91 KeyEvent event = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_VOLUME_UP); in whenVolumeKeyArrives_andPolicySaysDropIt_eventDropped() 101 KeyEvent event = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_VOLUME_UP); in whenVolumeKeyArrives_andPolicySaysDelayThenUse_eventQueuedThenSentToAms() 118 KeyEvent event = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_VOLUME_DOWN); in whenVolumeKeyArrives_andPolicySaysDelayThenDrop_eventQueuedThenDropped() 135 KeyEvent[] events = {new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0), in whenSomeEventsGetDelayed_allEventsStillInOrder() 136 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_VOLUME_UP), in whenSomeEventsGetDelayed_allEventsStillInOrder() 137 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_A), in whenSomeEventsGetDelayed_allEventsStillInOrder() 165 KeyEvent[] events = {new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0), in whenSomeEventsGetDropped_otherEventsStillInOrder() 166 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 | DoubleTapHelperTest.java | 85 MotionEvent.ACTION_DOWN, in testDoubleTap_success() 97 MotionEvent.ACTION_DOWN, in testDoubleTap_success() 132 MotionEvent.ACTION_DOWN, in testSingleTap_timeout() 161 MotionEvent.ACTION_DOWN, in testSingleTap_slop() 189 MotionEvent.ACTION_DOWN, in testDoubleTap_slop() 201 MotionEvent.ACTION_DOWN, in testDoubleTap_slop() 236 MotionEvent.ACTION_DOWN, in testSlideBack() 248 MotionEvent.ACTION_DOWN, in testSlideBack() 288 MotionEvent.ACTION_DOWN, in testMoreThanTwoTaps() 300 MotionEvent.ACTION_DOWN, in testMoreThanTwoTaps() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/pip/phone/ |
D | PipTouchStateTest.java | 20 import static android.view.MotionEvent.ACTION_DOWN; 73 mTouchState.onTouchEvent(createMotionEvent(ACTION_DOWN, currentTime, 0, 0)); in testDoubleTapLongSingleTap_notDoubleTapAndNotWaiting() 85 mTouchState.onTouchEvent(createMotionEvent(ACTION_DOWN, currentTime, 0, 0)); in testDoubleTapTimeout_timeoutCallbackCalled() 104 mTouchState.onTouchEvent(createMotionEvent(ACTION_DOWN, currentTime, 0, 0)); in testDoubleTapDrag_doubleTapCanceled() 117 mTouchState.onTouchEvent(createMotionEvent(ACTION_DOWN, currentTime, 0, 0)); in testDoubleTap_doubleTapRegistered() 119 mTouchState.onTouchEvent(createMotionEvent(ACTION_DOWN, in testDoubleTap_doubleTapRegistered()
|
/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/packages/SystemUI/tests/src/com/android/systemui/util/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/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | KeyButtonViewTest.java | 17 import static android.view.KeyEvent.ACTION_DOWN; 107 checkmetrics(KEYCODE_BACK, ACTION_DOWN, FLAG_LONG_PRESS, NAVBAR_BACK_BUTTON_LONGPRESS); in testLogBackLongPressLog() 112 checkmetrics(KEYCODE_APP_SWITCH, ACTION_DOWN, FLAG_LONG_PRESS, in testLogOverviewLongPress() 118 checkmetrics(KEYCODE_HOME, ACTION_DOWN, FLAG_LONG_PRESS, NAVBAR_HOME_BUTTON_LONGPRESS); in testLogHomeLongPress() 123 checkmetrics(KEYCODE_BACK, ACTION_DOWN, 0, null); in testNoLogKeyDown() 157 int action = KeyEvent.ACTION_DOWN; in testBubbleEvents_bubbleExpanded()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/gestures/ |
D | TouchExplorerTest.java | 126 MotionEvent.ACTION_DOWN, in testTwoFingersMove_shouldDelegatingAndInjectActionDownPointerDown() 150 MotionEvent.ACTION_DOWN, in clearEventsWhenInTwoFingerMove_clearsStateAndSendsUp() 161 assertCapturedEvents(MotionEvent.ACTION_DOWN); in testTwoFingersDrag_shouldDraggingAndActionDown() 172 /* goto dragging state */ MotionEvent.ACTION_DOWN, in testTwoFingersNotDrag_shouldDelegatingAndActionUpDownPointerDown() 174 MotionEvent.ACTION_DOWN, in testTwoFingersNotDrag_shouldDelegatingAndActionUpDownPointerDown() 185 MotionEvent.ACTION_DOWN, in testThreeFingersMove_shouldDelegatingAnd3ActionPointerDown() 295 MotionEvent.obtain(mLastDownTime, mLastDownTime, MotionEvent.ACTION_DOWN, DEFAULT_X, in downEvent()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/ |
D | EventDispatcher.java | 109 if (action == MotionEvent.ACTION_DOWN) { in sendMotionEvent() 238 case MotionEvent.ACTION_DOWN: in computeInjectionAction() 242 return MotionEvent.ACTION_DOWN; in computeInjectionAction() 276 final int action = computeInjectionAction(MotionEvent.ACTION_DOWN, i); in sendDownForAllNotInjectedPointers() 354 MotionEvent.ACTION_DOWN, in clickWithTouchEvents() 404 sendMotionEvent(prototype, MotionEvent.ACTION_DOWN, rawEvent, pointerIdBits, policyFlags); in sendActionDownAndUp()
|
D | TouchExplorer.java | 401 case MotionEvent.ACTION_DOWN: in handleMotionEventStateClear() 474 case MotionEvent.ACTION_DOWN: in handleMotionEventStateTouchInteracting() 501 case MotionEvent.ACTION_DOWN: in handleMotionEventStateTouchExploring() 573 event, MotionEvent.ACTION_DOWN, rawEvent, pointerIdBits, policyFlags); in handleActionMoveStateTouchInteracting() 699 case MotionEvent.ACTION_DOWN: { in handleMotionEventStateDragging() 799 case MotionEvent.ACTION_DOWN: { in handleMotionEventStateDelegating() 959 if (event.getActionMasked() == MotionEvent.ACTION_DOWN) { in shouldPerformGestureDetection()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | NonInterceptingScrollView.java | 42 case MotionEvent.ACTION_DOWN: in onTouchEvent() 65 case MotionEvent.ACTION_DOWN: in onInterceptTouchEvent()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | KeyButtonView.java | 132 sendEvent(KeyEvent.ACTION_DOWN, KeyEvent.FLAG_LONG_PRESS); 240 sendEvent(KeyEvent.ACTION_DOWN, 0, SystemClock.uptimeMillis()); in performAccessibilityActionInternal() 246 sendEvent(KeyEvent.ACTION_DOWN, KeyEvent.FLAG_LONG_PRESS); in performAccessibilityActionInternal() 259 if (action == MotionEvent.ACTION_DOWN) { in onTouchEvent() 268 case MotionEvent.ACTION_DOWN: in onTouchEvent() 277 sendEvent(KeyEvent.ACTION_DOWN, 0, mDownTime); in onTouchEvent() 375 if (action == MotionEvent.ACTION_DOWN && !longPressSet) { in logSomePresses()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/brightline/ |
D | PointerCountClassifierTest.java | 70 1, 1, MotionEvent.ACTION_DOWN, 2, pointerProperties, pointerCoords, 0, 0, 0, 0, 0, in testFail_multiPointer() 86 1, 1, MotionEvent.ACTION_DOWN, 2, pointerProperties, pointerCoords, 0, 0, 0, 0, 0, in testPass_multiPointerDragDown()
|
D | ClassifierTest.java | 78 return appendMotionEvent(MotionEvent.ACTION_DOWN, x, y); in appendDownEvent() 82 return appendMotionEvent(MotionEvent.ACTION_DOWN, x, y, eventTime); in appendDownEvent()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DragInputEventReceiver.java | 21 import static android.view.MotionEvent.ACTION_DOWN; 79 case ACTION_DOWN: in onInputEvent()
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
D | ListScrollListenerTest.java | 73 KeyEvent upDown = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN, in testKeyScrolling() 83 KeyEvent down = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN, in testKeyScrolling()
|
/frameworks/base/tests/ActivityViewTest/src/com/google/android/test/activityview/ |
D | ActivityViewTestActivity.java | 20 import static android.view.MotionEvent.ACTION_DOWN; 100 case ACTION_DOWN: in updateTouchState()
|
/frameworks/base/core/tests/coretests/src/android/widget/gridview/ |
D | GridScrollListenerTest.java | 74 KeyEvent upDown = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN, in testKeyScrolling() 85 KeyEvent down = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN, in testKeyScrolling()
|
/frameworks/base/apct-tests/perftests/core/src/android/widget/ |
D | EditTextCursorMovementPerfTest.java | 66 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_LEFT); 68 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_RIGHT);
|
D | EditTextBackspacePerfTest.java | 72 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DEL); 74 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_RIGHT);
|
/frameworks/base/core/java/android/text/method/ |
D | LinkMovementMethod.java | 55 if (event.getAction() == KeyEvent.ACTION_DOWN && in handleMovementKey() 209 if (action == MotionEvent.ACTION_UP || action == MotionEvent.ACTION_DOWN) { in onTouchEvent() 234 } else if (action == MotionEvent.ACTION_DOWN) { in onTouchEvent()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
D | PointerCountClassifier.java | 40 if (action == MotionEvent.ACTION_DOWN) { in onTouchEvent()
|
/frameworks/base/cmds/input/src/com/android/commands/input/ |
D | Input.java | 198 KeyEvent event = new KeyEvent(now, now, KeyEvent.ACTION_DOWN, keyCode, repeatCount, in sendKeyEvent() 223 injectMotionEvent(inputSource, MotionEvent.ACTION_DOWN, now, now, x, y, 1.0f, in sendTap() 257 injectMotionEvent(inputSource, MotionEvent.ACTION_DOWN, down, down, x1, y1, 1.0f, in sendSwipe() 326 action = MotionEvent.ACTION_DOWN; in sendMotionEvent()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | HeadsUpTouchHelper.java | 62 if (!mTouchingHeadsUpView && event.getActionMasked() != MotionEvent.ACTION_DOWN) { in onInterceptTouchEvent() 73 case MotionEvent.ACTION_DOWN: in onInterceptTouchEvent()
|