Home
last modified time | relevance | path

Searched refs:downEvent (Results 1 – 9 of 9) 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/v7/appcompat/tests/src/android/support/v7/app/
DBaseKeyEventsTestCase.java158 KeyEvent downEvent = getActivity().getInvokedKeyDownEvent(); in testDelKeyEventReachesActivity() local
159 assertNotNull("onKeyDown called", downEvent); in testDelKeyEventReachesActivity()
160 assertEquals("onKeyDown event matches", KeyEvent.KEYCODE_DEL, downEvent.getKeyCode()); in testDelKeyEventReachesActivity()
173 KeyEvent downEvent = getActivity().getInvokedKeyDownEvent(); in testMenuKeyEventReachesActivity() local
174 assertNotNull("onKeyDown called", downEvent); in testMenuKeyEventReachesActivity()
175 assertEquals("onKeyDown event matches", KeyEvent.KEYCODE_MENU, downEvent.getKeyCode()); in testMenuKeyEventReachesActivity()
DBaseKeyboardShortcutsTestCase.java52 final KeyEvent downEvent = new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, in testKeyboardShortcut() local
54 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/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DInteractionController.java192 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/support/design/tests/src/android/support/design/widget/
DBottomSheetBehaviorTest.java202 MotionEvent downEvent = MotionEvents.sendDown(uiController, start, precision).down; in perform() local
206 long desiredTime = downEvent.getDownTime() + (long)(delayBetweenMovements * i); in perform()
212 if (!MotionEvents.sendMovement(uiController, downEvent, steps[i])) { in perform()
213 MotionEvents.sendCancel(uiController, downEvent); in perform()
223 downEvent.recycle(); in perform()
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionService.java945 KeyEvent downEvent = KeyEvent.changeAction(keyEvent, KeyEvent.ACTION_DOWN); in handleVoiceKeyEventLocked() local
946 dispatchMediaKeyEventLocked(downEvent, needWakeLock, session); in handleVoiceKeyEventLocked()
/frameworks/base/core/java/android/app/
DInstrumentation.java807 … final KeyEvent downEvent = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_CENTER); in invokeContextMenuAction() local
808 sendKeySync(downEvent); in invokeContextMenuAction()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
DNotificationStackScrollLayout.java1226 MotionEvent downEvent = MotionEvent.obtain(ev); in dispatchDownEventToScroller() local
1227 downEvent.setAction(MotionEvent.ACTION_DOWN); in dispatchDownEventToScroller()
1228 onScrollTouch(downEvent); in dispatchDownEventToScroller()
1229 downEvent.recycle(); in dispatchDownEventToScroller()