/frameworks/base/core/tests/coretests/src/android/widget/espresso/ |
D | DragAction.java | 70 MotionEvent downEvent = MotionEvents.sendDown( 73 return downEvent; 136 MotionEvent downEvent = MotionEvents.sendDown( 171 MotionEvent downEvent = MotionEvents.sendDown( 176 if (!MotionEvents.sendUp(uiController, downEvent)) { 180 MotionEvents.sendCancel(uiController, downEvent); 187 downEvent.recycle(); 189 downEvent = MotionEvents.sendDown( 192 return downEvent; 223 MotionEvent downEvent = MotionEvents.sendDown( [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | EditorTouchStateTest.java | 64 MotionEvent event1 = downEvent(event1Time, event1Time, 20f, 30f); in testUpdate_singleTap() 76 MotionEvent event3 = downEvent(event3Time, event3Time, 22f, 33f); in testUpdate_singleTap() 85 MotionEvent event1 = downEvent(event1Time, event1Time, 20f, 30f); in testUpdate_doubleTap_sameArea() 97 MotionEvent event3 = downEvent(event3Time, event3Time, 22f, 33f); in testUpdate_doubleTap_sameArea() 107 MotionEvent event1 = downEvent(event1Time, event1Time, 20f, 30f); in testUpdate_doubleTap_notSameArea() 119 MotionEvent event3 = downEvent(event3Time, event3Time, 200f, 300f); in testUpdate_doubleTap_notSameArea() 136 MotionEvent event1 = downEvent(event1Time, event1Time, 20f, 30f); in testUpdate_doubleTap_delayAfterFirstDownEvent() 151 MotionEvent event3 = downEvent(event3Time, event3Time, 22f, 33f); in testUpdate_doubleTap_delayAfterFirstDownEvent() 160 MotionEvent event1 = downEvent(event1Time, event1Time, 20f, 30f); in testUpdate_quickTapAfterDrag() 181 MotionEvent event4 = downEvent(event4Time, event4Time, 200f, 31f); in testUpdate_quickTapAfterDrag() [all …]
|
D | EditorCursorDragTest.java | 264 MotionEvent event1 = downEvent(tv, event1Time, event1Time, 5f, 10f); in testEditor_onTouchEvent_quickTapAfterDrag() 289 MotionEvent event5 = downEvent(tv, event5Time, event5Time, 90f, 10f); in testEditor_onTouchEvent_quickTapAfterDrag() 302 MotionEvent event7 = downEvent(tv, event7Time, event7Time, 90f, 10f); in testEditor_onTouchEvent_quickTapAfterDrag() 348 MotionEvent event1 = downEvent(tv, event1Time, event1Time, 20f, 30f); in testEditor_onTouchEvent_cursorDrag() 383 MotionEvent event1 = downEvent(tv, event1Time, event1Time, 20f, 30f); in testEditor_onTouchEvent_selectionDrag() 395 MotionEvent event3 = downEvent(tv, event3Time, event3Time, 20f, 30f); in testEditor_onTouchEvent_selectionDrag() 424 MotionEvent event1 = downEvent(tv, event1Time, event1Time, 20f, 30f); in testCursorDrag_nonSelectableTextView() 548 dispatchTouchEvent(handleView, downEvent(handleView, handleDownTime, eventTime++, 0, 0)); in testCursorDrag_multiTouch() 623 dispatchTouchEvent(tv, downEvent(tv, downTime, downTime, x, y)); in tapAtPoint() 636 dispatchTouchEvent(view, downEvent(view, downTime, eventTime++, startX, startY)); in dragDownUntilLineChange() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | FullScreenMagnificationGestureHandlerTest.java | 246 send(downEvent()); in testAlternativeTransitions_areWorking() 278 send(downEvent()); in testNonTransitions_dontChangeState() 343 send(downEvent()); in testTwoFingersOneTap_zoomedState_dispatchMotionEvents() 368 send(downEvent()); in testThreeFingersOneTap_zoomedState_dispatchMotionEvents() 394 send(downEvent()); in testFirstFingerSwipe_TwoPinterDownAndZoomedState_panningState() 412 send(downEvent()); in testSecondFingerSwipe_TwoPinterDownAndZoomedState_panningState() 562 send(downEvent()); 567 send(downEvent()); 576 send(downEvent()); 659 send(downEvent()); [all …]
|
D | AccessibilityInputFilterTest.java | 217 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldDispatchToCorrespondingEventHandlers() 218 send(downEvent(SECOND_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldDispatchToCorrespondingEventHandlers() 234 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldClearEventsForAllEventHandlers() 235 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldClearEventsForAllEventHandlers() 240 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_MOUSE)); in testInputEvent_shouldClearEventsForAllEventHandlers() 269 private MotionEvent downEvent(int displayId, int source) { in downEvent() method in AccessibilityInputFilterTest
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | AutoclickController.java | 420 MotionEvent downEvent = MotionEvent.obtain(now, now, MotionEvent.ACTION_DOWN, 1, in sendClick() local 426 MotionEvent upEvent = MotionEvent.obtain(downEvent); in sendClick() 429 AutoclickController.super.onMotionEvent(downEvent, downEvent, mEventPolicyFlags); in sendClick() 430 downEvent.recycle(); in sendClick()
|
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/automation/ |
D | Interaction.java | 115 MotionEvent downEvent = MotionEvent.obtain( in createInterpolatedEventList() local 117 result.add(downEvent); in createInterpolatedEventList()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/gestures/ |
D | TouchExplorerTest.java | 208 send(downEvent()); in goFromStateClearTo() 292 private MotionEvent downEvent() { in downEvent() method in TouchExplorerTest 300 MotionEvent event = downEvent(); in upEvent()
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
D | InteractionController.java | 190 KeyEvent downEvent = new KeyEvent(eventTime, eventTime, KeyEvent.ACTION_DOWN, in sendKeyAndWaitForEvent() 193 if (injectEventSync(downEvent)) { in sendKeyAndWaitForEvent() 547 KeyEvent downEvent = new KeyEvent(eventTime, eventTime, KeyEvent.ACTION_DOWN, 550 if (injectEventSync(downEvent)) {
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | DisplayContentTests.java | 1530 final MotionEvent downEvent = MotionEvent.obtain( in tapOnDisplay() local 1537 downEvent.setDisplayId(dc.getDisplayId()); in tapOnDisplay() 1538 dc.mTapDetector.onPointerEvent(downEvent); in tapOnDisplay()
|
/frameworks/base/core/java/android/app/ |
D | Instrumentation.java | 974 … final KeyEvent downEvent = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_CENTER); in invokeContextMenuAction() local 975 sendKeySync(downEvent); in invokeContextMenuAction()
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | MediaSessionService.java | 2628 KeyEvent downEvent = KeyEvent.changeAction(keyEvent, KeyEvent.ACTION_DOWN); in dispatchDownAndUpKeyEventsLocked() local 2631 asSystemService, downEvent, stream, musicOnly); in dispatchDownAndUpKeyEventsLocked() 2635 dispatchMediaKeyEventLocked(packageName, pid, uid, asSystemService, downEvent, in dispatchDownAndUpKeyEventsLocked()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ |
D | NotificationStackScrollLayout.java | 3884 MotionEvent downEvent = MotionEvent.obtain(ev); 3885 downEvent.setAction(MotionEvent.ACTION_DOWN); 3886 onScrollTouch(downEvent); 3887 downEvent.recycle();
|