Searched refs:stylus (Results 1 – 4 of 4) sorted by relevance
/cts/tests/input/src/android/input/cts/ |
D | SimultaneousTouchAndStylusTest.kt | 67 private lateinit var stylus: UinputTouchDevice variable in android.input.cts.SimultaneousTouchAndStylusTest 81 stylus = UinputStylus(instrumentation, virtualDisplayRule.virtualDisplay.display) in setUp() 92 if (this::stylus.isInitialized) { in tearDown() 93 stylus.close() in tearDown() 121 withDeviceId(stylus.getDeviceId()), in testLeftTouchRightStylusMove() 142 stylus.sendBtnTouch(true) in testLeftTouchRightStylusMove() 143 stylus.sendPressure(255) in testLeftTouchRightStylusMove() 144 stylus.sendDown(pointerId, rightWindowLocation, UinputTouchDevice.MT_TOOL_PEN) in testLeftTouchRightStylusMove() 145 stylus.sync() in testLeftTouchRightStylusMove() 169 stylus.sendMove(pointerId, rightWindowLocation) in testLeftTouchRightStylusMove() [all …]
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | StylusHandwritingTest.java | 1142 UinputTouchDevice stylus = new UinputStylus(instrumentation, display)) { in testHandwriting_fingerTouchIsIgnored() argument 1164 TestUtils.injectStylusDownEvent(stylus, focusedEditText, startX, startY); in testHandwriting_fingerTouchIsIgnored() 1165 TestUtils.injectStylusMoveEvents(stylus, focusedEditText, startX, startY, in testHandwriting_fingerTouchIsIgnored() 1180 TestUtils.injectStylusUpEvent(stylus); in testHandwriting_fingerTouchIsIgnored() 1197 TestUtils.injectStylusDownEvent(stylus, focusedEditText, startX, startY); in testHandwriting_fingerTouchIsIgnored() 1198 TestUtils.injectStylusMoveEvents(stylus, focusedEditText, startX, startY, in testHandwriting_fingerTouchIsIgnored() 1209 TestUtils.injectStylusMoveEvents(stylus, focusedEditText, endX, endY, in testHandwriting_fingerTouchIsIgnored() 1221 TestUtils.injectStylusUpEvent(stylus); in testHandwriting_fingerTouchIsIgnored() 1298 UinputTouchDevice stylus = null; in testOnViewClicked_withStylusTap() local 1320 stylus = new UinputStylus(InstrumentationRegistry.getInstrumentation(), in testOnViewClicked_withStylusTap() [all …]
|
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/ |
D | VirtualDeviceMirrorDisplayTest.java | 388 VirtualStylus stylus = VirtualInputDeviceCreator.createAndPrepareStylus(mVirtualDevice, in virtualStylus_touchEvent() local 408 stylus.sendMotionEvent(builder in virtualStylus_touchEvent() 425 stylus.sendMotionEvent(builder.build()); in virtualStylus_touchEvent() 433 stylus.sendMotionEvent(builder in virtualStylus_touchEvent()
|
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/ |
D | TestUtils.java | 491 @NonNull UinputTouchDevice stylus, @NonNull View view, int startX, int startY, int endX, in injectStylusMoveEvents() 503 stylus.sendMove(0 /* pointerId */, new Point(x, y)); in injectStylusMoveEvents() 504 stylus.sync(); in injectStylusMoveEvents()
|