/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/pip/phone/ |
D | PipTouchStateTest.java | 19 import static android.view.MotionEvent.ACTION_DOWN; 74 mTouchState.onTouchEvent(createMotionEvent(ACTION_DOWN, currentTime, 0, 0)); in testDoubleTapLongSingleTap_notDoubleTapAndNotWaiting() 86 mTouchState.onTouchEvent(createMotionEvent(ACTION_DOWN, currentTime, 0, 0)); in testDoubleTapTimeout_timeoutCallbackCalled() 102 mTouchState.onTouchEvent(createMotionEvent(ACTION_DOWN, currentTime, 0, 0)); in testDoubleTapDrag_doubleTapCanceled() 115 mTouchState.onTouchEvent(createMotionEvent(ACTION_DOWN, currentTime, 0, 0)); in testDoubleTap_doubleTapRegistered() 117 mTouchState.onTouchEvent(createMotionEvent(ACTION_DOWN, in testDoubleTap_doubleTapRegistered()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | KeyUtils.java | 48 inst.sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_MENU)); in tapMenuKey() 61 final KeyEvent pushMenuKey = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_MENU); in chordMenuKey() 67 inst.sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN, shortcutKeyCode)); in chordMenuKey() 80 inst.sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_CENTER)); in longClick()
|
/frameworks/support/v13/tests/java/android/support/v13/view/ |
D | DragStartHelperTest.java | 178 sendMouseEvent(MotionEvent.ACTION_DOWN, MotionEvent.BUTTON_PRIMARY, mDragSource, 0, 0); 193 sendMouseEvent(MotionEvent.ACTION_DOWN, MotionEvent.BUTTON_PRIMARY, mDragSource, 0, 0); 210 sendMouseEvent(MotionEvent.ACTION_DOWN, MotionEvent.BUTTON_PRIMARY, mDragSource, 0, 0); 229 sendMouseEvent(MotionEvent.ACTION_DOWN, MotionEvent.BUTTON_SECONDARY, mDragSource, 0, 0); 233 sendMouseEvent(MotionEvent.ACTION_DOWN, MotionEvent.BUTTON_TERTIARY, mDragSource, 0, 0); 256 sendMouseEvent(MotionEvent.ACTION_DOWN, MotionEvent.BUTTON_PRIMARY, mDragSource, 0, 0); 275 sendMouseEvent(MotionEvent.ACTION_DOWN, MotionEvent.BUTTON_PRIMARY, mDragSource, 0, 0); 299 sendMouseEvent(MotionEvent.ACTION_DOWN, MotionEvent.BUTTON_PRIMARY, mDragSource, 1, 2); 315 sendTouchEvent(MotionEvent.ACTION_DOWN, mDragSource, 0, 0); 331 sendTouchEvent(MotionEvent.ACTION_DOWN, mDragSource, 0, 0); [all …]
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/ |
D | AppCompatMenuItemShortcutsTest.java | 64 keyEventToSend = new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, in testPerformShortcut() 72 keyEventToSend = new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, in testPerformShortcut() 80 keyEventToSend = new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, in testPerformShortcut()
|
D | KeyboardShortcutsTestCaseWithToolbar.java | 119 final KeyEvent handledShortcutKey = new KeyEvent(now, now, KeyEvent.ACTION_DOWN, in testKeyShortcuts() 129 final KeyEvent unhandledShortcutKey = new KeyEvent(now, now, KeyEvent.ACTION_DOWN, in testKeyShortcuts() 151 KeyEvent keyDown = new KeyEvent(time, time, KeyEvent.ACTION_DOWN, keyCode, in sendMetaKey()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | KeyButtonView.java | 78 sendEvent(KeyEvent.ACTION_DOWN, KeyEvent.FLAG_LONG_PRESS); 177 sendEvent(KeyEvent.ACTION_DOWN, 0, SystemClock.uptimeMillis()); in performAccessibilityActionInternal() 183 sendEvent(KeyEvent.ACTION_DOWN, KeyEvent.FLAG_LONG_PRESS); in performAccessibilityActionInternal() 194 if (action == MotionEvent.ACTION_DOWN) { in onTouchEvent() 202 case MotionEvent.ACTION_DOWN: in onTouchEvent() 207 sendEvent(KeyEvent.ACTION_DOWN, 0, mDownTime); in onTouchEvent()
|
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/media/ |
D | PlaybackTransportControlGlueTest.java | 294 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE)); in playStateReceivePlayPause() 304 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_MEDIA_PAUSE)); in playStateReceivePause() 314 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_MEDIA_PLAY)); in playStateReceivePlay() 323 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE)); in pauseStateReceivePlayPause() 332 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_MEDIA_PAUSE)); in pauseStateReceivePause() 341 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_MEDIA_PLAY)); in pauseStateReceivePlay()
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/ |
D | TouchUtils.java | 46 MotionEvent.ACTION_DOWN, x, y, 0); in tapView() 77 MotionEvent.ACTION_DOWN, x, y, 0); in touchAndCancelView() 104 MotionEvent.ACTION_DOWN, x, y, 0); in clickView() 141 MotionEvent.ACTION_DOWN, x, y, 0); in longClickView() 276 MotionEvent.ACTION_DOWN, x, y, 0); in drag()
|
/frameworks/base/cmds/input/src/com/android/commands/input/ |
D | Input.java | 198 injectKeyEvent(new KeyEvent(now, now, KeyEvent.ACTION_DOWN, keyCode, 0, 0, in sendKeyEvent() 201 injectKeyEvent(new KeyEvent(now, now, KeyEvent.ACTION_DOWN, keyCode, 1, 0, in sendKeyEvent() 211 injectMotionEvent(inputSource, MotionEvent.ACTION_DOWN, now, x, y, 1.0f); in sendTap() 220 injectMotionEvent(inputSource, MotionEvent.ACTION_DOWN, now, x1, y1, 1.0f); in sendSwipe() 239 injectMotionEvent(inputSource, MotionEvent.ACTION_DOWN, now, x1, y1, 1.0f); in sendDragAndDrop()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | TouchExplorer.java | 438 event.getEventTime(), MotionEvent.ACTION_DOWN, 1, properties, in onDoubleTap() 509 case MotionEvent.ACTION_DOWN: { in handleMotionEventStateTouchExploring() 603 sendMotionEvent(event, MotionEvent.ACTION_DOWN, pointerIdBits, in handleMotionEventStateTouchExploring() 670 case MotionEvent.ACTION_DOWN: { in handleMotionEventStateDragging() 762 case MotionEvent.ACTION_DOWN: { in handleMotionEventStateDelegating() 846 final int action = computeInjectionAction(MotionEvent.ACTION_DOWN, i); in sendDownForAllNotInjectedPointers() 920 sendMotionEvent(prototype, MotionEvent.ACTION_DOWN, pointerIdBits, policyFlags); in sendActionDownAndUp() 948 if (action == MotionEvent.ACTION_DOWN) { in sendMotionEvent() 1029 case MotionEvent.ACTION_DOWN: in computeInjectionAction() 1034 return MotionEvent.ACTION_DOWN; in computeInjectionAction() [all …]
|
/frameworks/base/core/java/android/text/method/ |
D | LinkMovementMethod.java | 50 if (event.getAction() == KeyEvent.ACTION_DOWN && in handleMovementKey() 198 if (action == MotionEvent.ACTION_UP || action == MotionEvent.ACTION_DOWN) { in onTouchEvent() 217 } else if (action == MotionEvent.ACTION_DOWN) { in onTouchEvent()
|
/frameworks/base/apct-tests/perftests/core/src/android/widget/ |
D | EditTextCursorMovementPerfTest.java | 70 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_LEFT); 72 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_RIGHT);
|
D | EditTextBackspacePerfTest.java | 76 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DEL); 78 new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_RIGHT);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | HeadsUpTouchHelper.java | 63 if (!mTouchingHeadsUpView && event.getActionMasked() != MotionEvent.ACTION_DOWN) { in onInterceptTouchEvent() 74 case MotionEvent.ACTION_DOWN: in onInterceptTouchEvent()
|
D | PanelBar.java | 84 if (event.getAction() == MotionEvent.ACTION_DOWN) { in onTouchEvent() 91 if (event.getAction() == MotionEvent.ACTION_DOWN) { in onTouchEvent()
|
D | NavigationBarGestureHelper.java | 116 case MotionEvent.ACTION_DOWN: { in onInterceptTouchEvent() 143 case MotionEvent.ACTION_DOWN: in interceptDockWindowEvent() 158 case MotionEvent.ACTION_DOWN: in handleDockWindowEvent()
|
/frameworks/support/emoji/core/tests/java/android/support/text/emoji/util/ |
D | KeyboardUtil.java | 69 return new KeyEvent(currentTime, currentTime, KeyEvent.ACTION_DOWN, keycode, 0, metaState); in keyEvent() 74 return new KeyEvent(currentTime, currentTime, KeyEvent.ACTION_DOWN, keycode, 0); in keyEvent()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
D | PointerCountClassifier.java | 40 if (action == MotionEvent.ACTION_DOWN) { in onTouchEvent()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | NonInterceptingScrollView.java | 35 case MotionEvent.ACTION_DOWN: in onTouchEvent()
|
/frameworks/base/media/tests/NativeMidiDemo/java/com/example/android/nativemididemo/ |
D | TouchableScrollView.java | 22 case MotionEvent.ACTION_DOWN: in onTouchEvent()
|
/frameworks/base/test-runner/src/android/test/ |
D | TouchUtils.java | 262 MotionEvent.ACTION_DOWN, x, y, 0); in tapView() 302 MotionEvent.ACTION_DOWN, x, y, 0); in touchAndCancelView() 337 MotionEvent.ACTION_DOWN, x, y, 0); in clickView() 398 MotionEvent.ACTION_DOWN, x, y, 0); in longClickView() 771 MotionEvent.ACTION_DOWN, x, y, 0); in drag()
|
/frameworks/base/core/java/android/view/ |
D | InputEventConsistencyVerifier.java | 210 case KeyEvent.ACTION_DOWN: { in onKeyEvent() 271 case MotionEvent.ACTION_DOWN: in onTrackballEvent() 328 final boolean newStream = action == MotionEvent.ACTION_DOWN in onTouchEvent() 360 case MotionEvent.ACTION_DOWN: in onTouchEvent()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardPinBasedInputView.java | 242 if (event.getActionMasked() == MotionEvent.ACTION_DOWN) { in onTouch() 250 if (event.getAction() == KeyEvent.ACTION_DOWN) { in onKey()
|
D | EmergencyCarrierArea.java | 50 case MotionEvent.ACTION_DOWN: in onFinishInflate()
|