Searched refs:downEvent (Results 1 – 7 of 7) sorted by relevance
/frameworks/testing/espresso/espresso-lib/src/main/java/com/google/android/apps/common/testing/ui/espresso/action/ |
D | MotionEvents.java | 119 static boolean sendUp(UiController uiController, MotionEvent downEvent) { in sendUp() argument 120 return sendUp(uiController, downEvent, new float[] { downEvent.getX(), downEvent.getY() }); in sendUp() 123 static boolean sendUp(UiController uiController, MotionEvent downEvent, float[] coordinates) { in sendUp() argument 125 checkNotNull(downEvent); in sendUp() 131 motionEvent = MotionEvent.obtain(downEvent.getDownTime(), in sendUp() 141 "Injection of up event failed (corresponding down event: %s)", downEvent.toString())); in sendUp() 147 String.format("inject up event (corresponding down event: %s)", downEvent.toString())) in sendUp() 160 static void sendCancel(UiController uiController, MotionEvent downEvent) { in sendCancel() argument 162 checkNotNull(downEvent); in sendCancel() 167 motionEvent = MotionEvent.obtain(downEvent.getDownTime(), in sendCancel() [all …]
|
D | Swipe.java | 88 MotionEvent downEvent = MotionEvents.sendDown(uiController, steps[0], precision).down; in sendLinearSwipe() local 91 if (!MotionEvents.sendMovement(uiController, downEvent, steps[i])) { in sendLinearSwipe() 93 MotionEvents.sendCancel(uiController, downEvent); in sendLinearSwipe() 97 long desiredTime = downEvent.getDownTime() + delayBetweenMovements * i; in sendLinearSwipe() 104 if (!MotionEvents.sendUp(uiController, downEvent, endCoordinates)) { in sendLinearSwipe() 106 MotionEvents.sendCancel(uiController, downEvent); in sendLinearSwipe() 110 downEvent.recycle(); in sendLinearSwipe()
|
D | Tap.java | 61 MotionEvent downEvent = MotionEvents.sendDown(uiController, coordinates, precision).down; in sendTap() local 69 if (!MotionEvents.sendUp(uiController, downEvent)) { in sendTap() 70 MotionEvents.sendCancel(uiController, downEvent); in sendTap() 74 downEvent.recycle(); in sendTap() 75 downEvent = null; in sendTap()
|
/frameworks/testing/uiautomator/library/core-src/com/android/uiautomator/core/ |
D | InteractionController.java | 192 KeyEvent downEvent = new KeyEvent(eventTime, eventTime, KeyEvent.ACTION_DOWN, in sendKeyAndWaitForEvent() 195 if (injectEventSync(downEvent)) { in sendKeyAndWaitForEvent() 549 KeyEvent downEvent = new KeyEvent(eventTime, eventTime, KeyEvent.ACTION_DOWN, 552 if (injectEventSync(downEvent)) {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/ |
D | NotificationStackScrollLayout.java | 717 MotionEvent downEvent = MotionEvent.obtain(ev); in dispatchDownEventToScroller() local 718 downEvent.setAction(MotionEvent.ACTION_DOWN); in dispatchDownEventToScroller() 719 onScrollTouch(downEvent); in dispatchDownEventToScroller() 720 downEvent.recycle(); in dispatchDownEventToScroller()
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | MediaSessionService.java | 858 KeyEvent downEvent = KeyEvent.changeAction(keyEvent, KeyEvent.ACTION_DOWN); in handleVoiceKeyEventLocked() local 859 dispatchMediaKeyEventLocked(downEvent, needWakeLock, session); in handleVoiceKeyEventLocked()
|
/frameworks/base/core/java/android/app/ |
D | Instrumentation.java | 794 … final KeyEvent downEvent = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_CENTER); in invokeContextMenuAction() local 795 sendKeySync(downEvent); in invokeContextMenuAction()
|