/cts/libs/input/src/com/android/cts/input/ |
D | UinputTouchDevice.kt | 69 private fun injectEvent(events: IntArray) { in injectEvent() method 78 injectEvent(intArrayOf(EV_KEY, BTN_TOUCH, if (isDown) 1 else 0)) in sendBtnTouch() 82 injectEvent(intArrayOf(EV_KEY, btnCode, if (isDown) 1 else 0)) in sendBtn() 86 injectEvent(intArrayOf(EV_ABS, ABS_MT_SLOT, id)) in sendDown() 87 injectEvent(intArrayOf(EV_ABS, ABS_MT_TRACKING_ID, id)) in sendDown() 88 if (toolType != null) injectEvent(intArrayOf(EV_ABS, ABS_MT_TOOL_TYPE, toolType)) in sendDown() 89 injectEvent(intArrayOf(EV_ABS, ABS_MT_POSITION_X, location.x)) in sendDown() 90 injectEvent(intArrayOf(EV_ABS, ABS_MT_POSITION_Y, location.y)) in sendDown() 99 injectEvent(intArrayOf(EV_ABS, ABS_MT_SLOT, id)) in sendUp() 100 injectEvent(intArrayOf(EV_ABS, ABS_MT_TRACKING_ID, INVALID_TRACKING_ID)) in sendUp() [all …]
|
/cts/tests/tests/view/src/android/view/cts/ |
D | KeyEventInterceptTest.java | 122 injectEvent(new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, in testKeyCodeHomeShortcut() 124 injectEvent(new KeyEvent(downTime, SystemClock.uptimeMillis(), KeyEvent.ACTION_UP, in testKeyCodeHomeShortcut() 137 injectEvent(new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, in sendKey() 139 injectEvent(new KeyEvent(downTime, downTime + 1, KeyEvent.ACTION_UP, in sendKey() 143 private void injectEvent(KeyEvent event) { in injectEvent() method in KeyEventInterceptTest
|
/cts/tests/tests/widget/src/android/widget/cts/util/ |
D | StretchEdgeUtil.kt | 269 injectEvent(uiAutomation, MotionEvent.ACTION_MOVE, downTime, eventTime, moveX, moveY) in injectMoveEventsForDrag() 287 ) = injectEvent(uiAutomation, MotionEvent.ACTION_UP, downTime, upTime, xOnScreen, yOnScreen) in injectUpEvent() 302 ) = injectEvent(uiAutomation, MotionEvent.ACTION_DOWN, downTime, downTime, xOnScreen, yOnScreen) in injectUpEvent() 304 private fun injectEvent( in injectUpEvent() method
|
/cts/tests/tests/security/src/android/security/cts/ |
D | MotionEventTest.java | 192 injectEvent(MotionEvent.ACTION_DOWN, x, y, downTime); in injectTap() 193 injectEvent(MotionEvent.ACTION_UP, x, y, downTime); in injectTap() 196 private void injectEvent(int action, int x, int y, long downTime) { in injectEvent() method in MotionEventTest
|
/cts/tests/tests/systemui/src/android/systemui/cts/ |
D | LightBarTests.java | 304 injectEvent(MotionEvent.ACTION_DOWN, x, y, downTime); in injectCanceledTap() 305 injectEvent(MotionEvent.ACTION_CANCEL, x, y, downTime); in injectCanceledTap() 308 private void injectEvent(int action, int x, int y, long downTime) { in injectEvent() method in LightBarTests
|