Home
last modified time | relevance | path

Searched refs:downTime (Results 1 – 25 of 27) sorted by relevance

12

/cts/tests/tests/view/src/android/view/cts/
DTouchDelegateTest.java85 final long downTime = SystemClock.uptimeMillis(); in testCancelEvent() local
87 downTime); in testCancelEvent()
89 downTime); in testCancelEvent()
104 final long downTime = SystemClock.uptimeMillis(); in testTwoPointers() local
105 dispatchTouchEventToActivity(MotionEvent.ACTION_DOWN, mActivity.touchDelegateY, downTime); in testTwoPointers()
106 dispatchTouchEventToActivity(MotionEvent.ACTION_MOVE, mActivity.touchDelegateY, downTime); in testTwoPointers()
110 mActivity.touchDelegateY, downTime); in testTwoPointers()
112 mActivity.touchDelegateY, downTime); in testTwoPointers()
116 mActivity.touchDelegateY, downTime); in testTwoPointers()
117 dispatchTouchEventToActivity(MotionEvent.ACTION_UP, mActivity.touchDelegateY, downTime); in testTwoPointers()
[all …]
DKeyEventInterceptTest.java99 long downTime = SystemClock.uptimeMillis(); in testKeyCodeHomeShortcut() local
100 injectEvent(new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, in testKeyCodeHomeShortcut()
102 injectEvent(new KeyEvent(downTime, downTime + 1, KeyEvent.ACTION_UP, in testKeyCodeHomeShortcut()
109 long downTime = SystemClock.uptimeMillis(); in testKeyCodeBackShortcut() local
110 injectEvent(new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, in testKeyCodeBackShortcut()
112 injectEvent(new KeyEvent(downTime, downTime + 1, KeyEvent.ACTION_UP, in testKeyCodeBackShortcut()
126 long downTime = SystemClock.uptimeMillis(); in sendKey() local
127 injectEvent(new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, in sendKey()
129 injectEvent(new KeyEvent(downTime, downTime + 1, KeyEvent.ACTION_UP, in sendKey()
DKeyEventInjectionTest.java154 final long downTime = SystemClock.uptimeMillis(); in sendKeyViaInstrumentation() local
157 new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, keyCode, repeatCount); in sendKeyViaInstrumentation()
161 KeyEvent repeatEvent = new KeyEvent(downTime, SystemClock.uptimeMillis(), in sendKeyViaInstrumentation()
165 KeyEvent upEvent = new KeyEvent(downTime, SystemClock.uptimeMillis(), in sendKeyViaInstrumentation()
DVelocityTrackerTest.java166 final long downTime = SystemClock.uptimeMillis(); in testUsesRawCoordinates() local
168 final long eventTime = downTime + i * 10; in testUsesRawCoordinates()
170 MotionEvent event = MotionEvent.obtain(downTime, eventTime, action, 0, 0, 0); in testUsesRawCoordinates()
DMenuTest.java249 long downTime = SystemClock.uptimeMillis(); in generateKeyEvent() local
250 return new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, keyCodeToSend, 0, metaState); in generateKeyEvent()
DViewTest.java2558 long downTime = SystemClock.uptimeMillis(); in testOnTrackballEvent() local
2559 long eventTime = downTime; in testOnTrackballEvent()
2560 MotionEvent event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, in testOnTrackballEvent()
2579 long downTime = SystemClock.uptimeMillis(); in testDispatchTrackballMoveEvent() local
2580 long eventTime = downTime; in testDispatchTrackballMoveEvent()
2581 MotionEvent event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, in testDispatchTrackballMoveEvent()
2591 downTime = SystemClock.uptimeMillis(); in testDispatchTrackballMoveEvent()
2592 eventTime = downTime; in testDispatchTrackballMoveEvent()
2593 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, 1, 2, 0); in testDispatchTrackballMoveEvent()
3082 long downTime = SystemClock.uptimeMillis(); in testDispatchTouchEvent() local
[all …]
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DCtsTouchUtils.java95 final long downTime = SystemClock.uptimeMillis(); in emulateTapOnView() local
97 injectDownEvent(uiAutomation, downTime, xOnScreen, yOnScreen, null); in emulateTapOnView()
98 injectMoveEventForTap(uiAutomation, downTime, touchSlop, xOnScreen, yOnScreen); in emulateTapOnView()
99 injectUpEvent(uiAutomation, downTime, false, xOnScreen, yOnScreen, null); in emulateTapOnView()
141 final long downTime = SystemClock.uptimeMillis(); in emulateDoubleTapOnView() local
143 injectDownEvent(uiAutomation, downTime, xOnScreen, yOnScreen, null); in emulateDoubleTapOnView()
144 injectMoveEventForTap(uiAutomation, downTime, touchSlop, xOnScreen, yOnScreen); in emulateDoubleTapOnView()
145 injectUpEvent(uiAutomation, downTime, false, xOnScreen, yOnScreen, null); in emulateDoubleTapOnView()
146 injectDownEvent(uiAutomation, downTime, xOnScreen, yOnScreen, null); in emulateDoubleTapOnView()
147 injectMoveEventForTap(uiAutomation, downTime, touchSlop, xOnScreen, yOnScreen); in emulateDoubleTapOnView()
[all …]
DCtsKeyEventUtil.java170 long downTime = event.getDownTime(); in sendKey() local
186 if (downTime == 0) { in sendKey()
187 downTime = eventTime; in sendKey()
190 final KeyEvent newEvent = new KeyEvent(downTime, eventTime, action, code, repeatCount, in sendKey()
211 final long downTime = SystemClock.uptimeMillis(); in sendKeyWhileHoldingModifier() local
213 final KeyEvent holdKeyDown = new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, in sendKeyWhileHoldingModifier()
217 final KeyEvent keyDown = new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, in sendKeyWhileHoldingModifier()
221 final KeyEvent keyUp = new KeyEvent(downTime, downTime, KeyEvent.ACTION_UP, in sendKeyWhileHoldingModifier()
225 final KeyEvent holdKeyUp = new KeyEvent(downTime, downTime, KeyEvent.ACTION_UP, in sendKeyWhileHoldingModifier()
DCtsMouseUtil.java79 final long downTime = SystemClock.uptimeMillis(); in emulateHoverOnView() local
86 injectHoverEvent(uiAutomation, downTime, x, y); in emulateHoverOnView()
89 private static void injectHoverEvent(UiAutomation uiAutomation, long downTime, int xOnScreen, in injectHoverEvent() argument
91 MotionEvent event = MotionEvent.obtain(downTime, downTime, MotionEvent.ACTION_HOVER_MOVE, in injectHoverEvent()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DCtsTouchUtils.java94 final long downTime = SystemClock.uptimeMillis(); in emulateTapOnView() local
96 injectDownEvent(uiAutomation, downTime, xOnScreen, yOnScreen, null); in emulateTapOnView()
97 injectMoveEventForTap(uiAutomation, downTime, touchSlop, xOnScreen, yOnScreen); in emulateTapOnView()
98 injectUpEvent(uiAutomation, downTime, false, xOnScreen, yOnScreen, null); in emulateTapOnView()
140 final long downTime = SystemClock.uptimeMillis(); in emulateDoubleTapOnView() local
142 injectDownEvent(uiAutomation, downTime, xOnScreen, yOnScreen, null); in emulateDoubleTapOnView()
143 injectMoveEventForTap(uiAutomation, downTime, touchSlop, xOnScreen, yOnScreen); in emulateDoubleTapOnView()
144 injectUpEvent(uiAutomation, downTime, false, xOnScreen, yOnScreen, null); in emulateDoubleTapOnView()
145 injectDownEvent(uiAutomation, downTime, xOnScreen, yOnScreen, null); in emulateDoubleTapOnView()
146 injectMoveEventForTap(uiAutomation, downTime, touchSlop, xOnScreen, yOnScreen); in emulateDoubleTapOnView()
[all …]
DCtsKeyEventUtil.java170 long downTime = event.getDownTime(); in sendKey() local
186 if (downTime == 0) { in sendKey()
187 downTime = eventTime; in sendKey()
190 final KeyEvent newEvent = new KeyEvent(downTime, eventTime, action, code, repeatCount, in sendKey()
211 final long downTime = SystemClock.uptimeMillis(); in sendKeyWhileHoldingModifier() local
213 final KeyEvent holdKeyDown = new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, in sendKeyWhileHoldingModifier()
217 final KeyEvent keyDown = new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, in sendKeyWhileHoldingModifier()
221 final KeyEvent keyUp = new KeyEvent(downTime, downTime, KeyEvent.ACTION_UP, in sendKeyWhileHoldingModifier()
225 final KeyEvent holdKeyUp = new KeyEvent(downTime, downTime, KeyEvent.ACTION_UP, in sendKeyWhileHoldingModifier()
DCtsMouseUtil.java79 final long downTime = SystemClock.uptimeMillis(); in emulateHoverOnView() local
86 injectHoverEvent(uiAutomation, downTime, x, y); in emulateHoverOnView()
89 private static void injectHoverEvent(UiAutomation uiAutomation, long downTime, int xOnScreen, in injectHoverEvent() argument
91 MotionEvent event = MotionEvent.obtain(downTime, downTime, MotionEvent.ACTION_HOVER_MOVE, in injectHoverEvent()
/cts/tests/tests/widget/src/android/widget/cts/
DSeekBarTest.java89 long downTime = SystemClock.uptimeMillis(); in testSetOnSeekBarChangeListener() local
93 MotionEvent event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_DOWN, in testSetOnSeekBarChangeListener()
103 downTime = SystemClock.uptimeMillis(); in testSetOnSeekBarChangeListener()
105 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, in testSetOnSeekBarChangeListener()
113 downTime = SystemClock.uptimeMillis(); in testSetOnSeekBarChangeListener()
115 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, in testSetOnSeekBarChangeListener()
/cts/tests/tests/media/src/android/media/cts/
DMediaActivityTest.java181 final long downTime = SystemClock.uptimeMillis(); in sendKeyEvent() local
182 final KeyEvent down = new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, keyCode, 0); in sendKeyEvent()
184 final KeyEvent up = new KeyEvent(downTime, upTime, KeyEvent.ACTION_UP, keyCode, 0); in sendKeyEvent()
/cts/tests/tests/security/src/android/security/cts/
DMotionEventTest.java193 long downTime = SystemClock.uptimeMillis(); in injectTap() local
194 injectEvent(MotionEvent.ACTION_DOWN, x, y, downTime); in injectTap()
195 injectEvent(MotionEvent.ACTION_UP, x, y, downTime); in injectTap()
198 private void injectEvent(int action, int x, int y, long downTime) { in injectEvent() argument
201 MotionEvent event = MotionEvent.obtain(downTime, eventTime, action, x, y, 0); in injectEvent()
/cts/tests/tests/text/src/android/text/method/cts/
DTouchTest.java139 long downTime = SystemClock.uptimeMillis(); in testOnTouchEvent() local
141 final MotionEvent event1 = MotionEvent.obtain(downTime, eventTime, in testOnTouchEvent()
143 final MotionEvent event2 = MotionEvent.obtain(downTime, eventTime, in testOnTouchEvent()
145 final MotionEvent event3 = MotionEvent.obtain(downTime, eventTime, in testOnTouchEvent()
/cts/tests/tests/systemui/src/android/systemui/cts/
DTouchHelper.java66 private static MotionEvent getMotionEvent(long downTime, long eventTime, int action, in getMotionEvent() argument
79 return MotionEvent.obtain(downTime, eventTime, action, 1, in getMotionEvent()
DLightBarTests.java137 long downTime = SystemClock.uptimeMillis(); in injectCanceledTap() local
138 injectEvent(MotionEvent.ACTION_DOWN, x, y, downTime); in injectCanceledTap()
139 injectEvent(MotionEvent.ACTION_CANCEL, x, y, downTime); in injectCanceledTap()
142 private void injectEvent(int action, int x, int y, long downTime) { in injectEvent() argument
145 MotionEvent event = MotionEvent.obtain(downTime, eventTime, action, x, y, 0); in injectEvent()
/cts/hostsidetests/securitybulletin/securityPatch/Bug-115739809/
Dpoc.cpp73 outMsg->body.key.downTime = msg.body.key.downTime; in sanitizeMessage()
102 outMsg->body.motion.downTime = msg.body.motion.downTime; in sanitizeMessage()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityEndToEndTest.java864 final long downTime = SystemClock.uptimeMillis(); in testTouchDelegateWithEbtBetweenView_ReHoverDelegate_FocusTargetAgain() local
867 () -> injectHoverEvent(downTime, false, hoverLeft, hoverY), in testTouchDelegateWithEbtBetweenView_ReHoverDelegate_FocusTargetAgain()
873 injectHoverEvent(downTime, true, hoverMiddle, hoverY); in testTouchDelegateWithEbtBetweenView_ReHoverDelegate_FocusTargetAgain()
874 injectHoverEvent(downTime, true, hoverRight, hoverY); in testTouchDelegateWithEbtBetweenView_ReHoverDelegate_FocusTargetAgain()
875 injectHoverEvent(downTime, true, hoverMiddle, hoverY); in testTouchDelegateWithEbtBetweenView_ReHoverDelegate_FocusTargetAgain()
876 injectHoverEvent(downTime, true, hoverLeft, hoverY); in testTouchDelegateWithEbtBetweenView_ReHoverDelegate_FocusTargetAgain()
926 final long downTime = SystemClock.uptimeMillis(); in testTouchDelegateCoverParentWithEbt_HoverChildAndBack_FocusTargetAgain() local
930 () -> injectHoverEvent(downTime, false, delegateX, textY), in testTouchDelegateCoverParentWithEbt_HoverChildAndBack_FocusTargetAgain()
935 () -> injectHoverEvent(downTime, true, textX, textY), in testTouchDelegateCoverParentWithEbt_HoverChildAndBack_FocusTargetAgain()
939 () -> injectHoverEvent(downTime, true, delegateX, textY), in testTouchDelegateCoverParentWithEbt_HoverChildAndBack_FocusTargetAgain()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DWindowFocusTests.java111 final long downTime = SystemClock.elapsedRealtime(); in tapOnCenterOfDisplay() local
112 final MotionEvent downEvent = MotionEvent.obtain(downTime, downTime, in tapOnCenterOfDisplay()
116 final MotionEvent upEvent = MotionEvent.obtain(downTime, SystemClock.elapsedRealtime(), in tapOnCenterOfDisplay()
DWindowTest.java727 long downTime = SystemClock.uptimeMillis(); in injectTouchEvent() local
728 MotionEvent downEvent = MotionEvent.obtain(downTime, downTime, MotionEvent.ACTION_DOWN, in injectTouchEvent()
733 MotionEvent upEvent = MotionEvent.obtain(downTime, upTime, MotionEvent.ACTION_UP, in injectTouchEvent()
DDragDropTest.java245 long downTime = SystemClock.uptimeMillis(); in injectMouseWithOffset() local
246 MotionEvent event = MotionEvent.obtain(downTime, downTime, action, in injectMouseWithOffset()
/cts/tests/app/src/android/app/cts/
DDialogTest.java467 private MotionEvent sendTouchEvent(long downTime, int action, float x, float y) { in sendTouchEvent() argument
468 long eventTime = downTime; in sendTouchEvent()
472 MotionEvent event = MotionEvent.obtain(downTime, eventTime, action, x, y, 0); in sendTouchEvent()
499 long downTime = SystemClock.uptimeMillis(); in testTouchEvent() local
501 sendTouchEvent(downTime, MotionEvent.ACTION_DOWN, x, y).recycle(); in testTouchEvent()
502 MotionEvent touchMotionEvent = sendTouchEvent(downTime, MotionEvent.ACTION_UP, x, y); in testTouchEvent()
519 downTime = SystemClock.uptimeMillis(); in testTouchEvent()
521 sendTouchEvent(downTime, MotionEvent.ACTION_DOWN, x, y).recycle(); in testTouchEvent()
522 touchMotionEvent = sendTouchEvent(downTime, MotionEvent.ACTION_UP, x, y); in testTouchEvent()
DAlertDialog_BuilderTest.java697 final long downTime = SystemClock.uptimeMillis(); in sendKeySync() local
699 new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, keyCode, 0); in sendKeySync()
703 new KeyEvent(downTime, SystemClock.uptimeMillis(), KeyEvent.ACTION_UP, keyCode, 0); in sendKeySync()

12