Home
last modified time | relevance | path

Searched refs:downEvent (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DDragAction.java67 MotionEvent downEvent = MotionEvents.sendDown(
70 return downEvent;
133 MotionEvent downEvent = MotionEvents.sendDown(
168 MotionEvent downEvent = MotionEvents.sendDown(
173 if (!MotionEvents.sendUp(uiController, downEvent)) {
177 MotionEvents.sendCancel(uiController, downEvent);
184 downEvent.recycle();
186 downEvent = MotionEvents.sendDown(
189 return downEvent;
220 MotionEvent downEvent = MotionEvents.sendDown(
[all …]
/frameworks/support/wear/tests/src/android/support/wear/widget/util/
DArcSwipe.java125 MotionEvent downEvent = MotionEvents.sendDown(uiController, startCoordinates, in sendArcSwipe() local
129 if (!MotionEvents.sendMovement(uiController, downEvent, steps[i])) { in sendArcSwipe()
133 MotionEvents.sendCancel(uiController, downEvent); in sendArcSwipe()
137 long desiredTime = downEvent.getDownTime() + delayBetweenMovements * i; in sendArcSwipe()
144 if (!MotionEvents.sendUp(uiController, downEvent, endCoordinates)) { in sendArcSwipe()
147 MotionEvents.sendCancel(uiController, downEvent); in sendArcSwipe()
151 downEvent.recycle(); in sendArcSwipe()
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/
DBaseKeyEventsTestCase.java161 KeyEvent downEvent = getActivity().getInvokedKeyDownEvent(); in testDelKeyEventReachesActivity() local
162 assertNotNull("onKeyDown called", downEvent); in testDelKeyEventReachesActivity()
163 assertEquals("onKeyDown event matches", KeyEvent.KEYCODE_DEL, downEvent.getKeyCode()); in testDelKeyEventReachesActivity()
176 KeyEvent downEvent = getActivity().getInvokedKeyDownEvent(); in testMenuKeyEventReachesActivity() local
177 assertNotNull("onKeyDown called", downEvent); in testMenuKeyEventReachesActivity()
178 assertEquals("onKeyDown event matches", KeyEvent.KEYCODE_MENU, downEvent.getKeyCode()); in testMenuKeyEventReachesActivity()
DBaseKeyboardShortcutsTestCase.java49 final KeyEvent downEvent = new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, in testKeyboardShortcut() local
51 getInstrumentation().sendKeySync(downEvent); in testKeyboardShortcut()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAutoclickController.java442 MotionEvent downEvent = MotionEvent.obtain(now, now, MotionEvent.ACTION_DOWN, 1, in sendClick() local
448 MotionEvent upEvent = MotionEvent.obtain(downEvent); in sendClick()
451 mNext.onMotionEvent(downEvent, downEvent, mEventPolicyFlags); in sendClick()
452 downEvent.recycle(); in sendClick()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DRecyclerViewFastScrollerTest.java328 final MotionEvent downEvent = MotionEvent.obtain(10, 10, MotionEvent.ACTION_DOWN, 250, 250, in draggingDoesNotTriggerFastScrollIfNotInThumb() local
330 assertFalse(mScroller.onInterceptTouchEvent(mRecyclerView, downEvent)); in draggingDoesNotTriggerFastScrollIfNotInThumb()
349 final MotionEvent downEvent = MotionEvent.obtain(10, 10, MotionEvent.ACTION_DOWN, in draggingFastScrollThumbDoesActualScrolling() local
351 assertTrue(mScroller.onInterceptTouchEvent(mRecyclerView, downEvent)); in draggingFastScrollThumbDoesActualScrolling()
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DInteractionController.java190 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/support/design/tests/src/android/support/design/widget/
DBottomSheetBehaviorTest.java206 MotionEvent downEvent = MotionEvents.sendDown(uiController, start, precision).down; in perform() local
210 long desiredTime = downEvent.getDownTime() + (long)(delayBetweenMovements * i); in perform()
216 if (!MotionEvents.sendMovement(uiController, downEvent, steps[i])) { in perform()
217 MotionEvents.sendCancel(uiController, downEvent); in perform()
226 downEvent.recycle(); in perform()
/frameworks/base/core/java/android/app/
DInstrumentation.java901 … final KeyEvent downEvent = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_CENTER); in invokeContextMenuAction() local
902 sendKeySync(downEvent); in invokeContextMenuAction()
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionService.java1406 KeyEvent downEvent = KeyEvent.changeAction(keyEvent, KeyEvent.ACTION_DOWN); in handleVoiceKeyEventLocked() local
1407 dispatchMediaKeyEventLocked(downEvent, needWakeLock); in handleVoiceKeyEventLocked()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
DNotificationStackScrollLayout.java1337 MotionEvent downEvent = MotionEvent.obtain(ev); in dispatchDownEventToScroller() local
1338 downEvent.setAction(MotionEvent.ACTION_DOWN); in dispatchDownEventToScroller()
1339 onScrollTouch(downEvent); in dispatchDownEventToScroller()
1340 downEvent.recycle(); in dispatchDownEventToScroller()