Home
last modified time | relevance | path

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

12

/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DVirtualStylusTest.java72 public void sendTouchEvents(int toolType) { in sendTouchEvents() argument
81 .setToolType(toolType); in sendTouchEvents()
91 MotionEvent.ACTION_DOWN, x, y, toolType)); in sendTouchEvents()
101 MotionEvent.ACTION_MOVE, x + i, y + i, toolType)); in sendTouchEvents()
111 MotionEvent.ACTION_UP, x + moveEventCount, y + moveEventCount, toolType)); in sendTouchEvents()
121 final int toolType = VirtualStylusMotionEvent.TOOL_TYPE_STYLUS; in sendTouchEvents_withButtonPressed() local
123 toolType); in sendTouchEvents_withButtonPressed()
127 MotionEvent.ACTION_DOWN, startX, startY, toolType, buttonCode), in sendTouchEvents_withButtonPressed()
129 MotionEvent.ACTION_BUTTON_PRESS, startX, startY, toolType, buttonCode), in sendTouchEvents_withButtonPressed()
131 MotionEvent.ACTION_MOVE, startX, endY, toolType, buttonCode), in sendTouchEvents_withButtonPressed()
[all …]
DVirtualDeviceMirrorDisplayTest.java398 final int toolType = VirtualStylusMotionEvent.TOOL_TYPE_STYLUS; in virtualStylus_touchEvent() local
405 .setToolType(toolType); in virtualStylus_touchEvent()
415 VirtualInputEventCreator.createStylusEvent(MotionEvent.ACTION_DOWN, toolType, in virtualStylus_touchEvent()
427 VirtualInputEventCreator.createStylusEvent(MotionEvent.ACTION_MOVE, toolType, in virtualStylus_touchEvent()
439 VirtualInputEventCreator.createStylusEvent(MotionEvent.ACTION_UP, toolType, in virtualStylus_touchEvent()
/cts/tests/tests/hardware/src/android/hardware/input/cts/virtualcreators/
DVirtualInputEventCreator.java31 pointerProperties.toolType = MotionEvent.TOOL_TYPE_MOUSE; in createMouseEvent()
66 pointerProperties.toolType = MotionEvent.TOOL_TYPE_FINGER; in createTouchscreenEvent()
96 pointerProperties.toolType = MotionEvent.TOOL_TYPE_FINGER; in createNavigationTouchpadMotionEvent()
124 int toolType) { in createStylusHoverMotionEvent() argument
125 return createStylusHoverMotionEvent(action, x, y, toolType, 0 /* buttonState */); in createStylusHoverMotionEvent()
129 int toolType, int buttonState) { in createStylusHoverMotionEvent() argument
130 return createStylusEvent(action, toolType, x, y, 0f /* pressure */, buttonState); in createStylusHoverMotionEvent()
134 int toolType) { in createStylusTouchMotionEvent() argument
135 return createStylusTouchMotionEvent(action, x, y, toolType, 0 /* buttonState */); in createStylusTouchMotionEvent()
139 int toolType, float tilt, float orientation) { in createStylusTouchMotionEvent() argument
[all …]
/cts/tests/input/src/android/input/cts/
DInputShellCommandTest.kt152 private fun assertToolType(event: MotionEvent, toolType: Int) { in assertToolType()
156 assertThat(toolType).isEqualTo(pointerProperties.toolType) in assertToolType()
160 private fun assertTapToolType(toolType: Int) { in assertTapToolType()
163 assertToolType(downEvent, toolType) in assertTapToolType()
167 assertToolType(upEvent, toolType) in assertTapToolType()
DMotionPredictorTest.kt81 toolType: Int, in getMotionEvent()
90 properties[i]!!.toolType = toolType in getMotionEvent()
DStylusButtonInputEventTest.kt255 toolType: Int, in <lambda>()
263 assertEquals(toolType, event.getToolType(0)) in <lambda>()
DTouchInjector.kt67 properties[i]!!.toolType = MotionEvent.TOOL_TYPE_FINGER in sendMultiTouchEvent()
DPointerIconTest.kt311 toolType = UinputTouchDevice.MT_TOOL_PEN in toString()
/cts/tests/tests/view/src/android/view/cts/
DMotionEventUtils.java38 public static PointerPropertiesBuilder withProperties(int id, int toolType) { in withProperties() argument
41 builder.toolType = toolType; in withProperties()
47 private int toolType; field in MotionEventUtils.PointerPropertiesBuilder
53 pointerProperties.toolType = toolType; in build()
61 that.getToolType(pointerIndex), this.toolType); in verifyMatches()
66 assertEquals("Tool type should be the same", that.toolType, this.toolType); in verifyMatchesPointerProperties()
DMotionEventTest.java900 assertEquals(MotionEvent.TOOL_TYPE_UNKNOWN, properties.toolType); in testPointerPropertiesDefaultConstructor()
907 properties.toolType = MotionEvent.TOOL_TYPE_MOUSE; in testPointerPropertiesCopyConstructor()
911 assertEquals(MotionEvent.TOOL_TYPE_MOUSE, copy.toolType); in testPointerPropertiesCopyConstructor()
918 properties.toolType = MotionEvent.TOOL_TYPE_MOUSE; in testPointerPropertiesCopyFrom()
923 assertEquals(MotionEvent.TOOL_TYPE_MOUSE, copy.toolType); in testPointerPropertiesCopyFrom()
DTouchDelegateTest.java232 properties[i].toolType = MotionEvent.TOOL_TYPE_FINGER; in dispatchMultiTouchMotionEventToActivity()
/cts/libs/input/src/com/android/cts/input/
DUinputTouchDevice.kt85 fun sendDown(id: Int, location: Point, toolType: Int? = null) { in sendDown()
88 if (toolType != null) injectEvent(intArrayOf(EV_ABS, ABS_MT_TOOL_TYPE, toolType)) in sendDown()
103 fun sendToolType(id: Int, toolType: Int) { in sendToolType()
105 injectEvent(intArrayOf(EV_ABS, ABS_MT_TOOL_TYPE, toolType)) in sendToolType()
DInputEventMatchers.kt158 fun withToolType(toolType: Int): Matcher<MotionEvent> = object : TypeSafeMatcher<MotionEvent>() { in withToolType()
160 description.appendText("With tool type = $toolType") in withToolType()
165 if (event.getToolType(p) != toolType) { in withToolType()
DInputJsonParser.java500 properties[i].toolType = MotionEvent.TOOL_TYPE_UNKNOWN; in parseMotionEvent()
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/
DTestUtils.java528 float x, float y, int toolType) { in getMotionEvent() argument
529 return getMotionEvent(downTime, eventTime, action, (int) x, (int) y, 0, toolType); in getMotionEvent()
533 int x, int y, int displayId, int toolType) { in getMotionEvent() argument
537 properties[0].toolType = toolType; in getMotionEvent()
633 @NonNull Activity activity, int toolType) { in injectNavBarToHomeGestureEvents() argument
656 time, time, ACTION_DOWN, x, y, toolType), in injectNavBarToHomeGestureEvents()
662 time, time, MotionEvent.ACTION_MOVE, x, y, toolType), in injectNavBarToHomeGestureEvents()
668 time, time, ACTION_UP, x, y, toolType), in injectNavBarToHomeGestureEvents()
/cts/tests/tests/view/src/android/view/cts/util/
DEventUtils.java35 pp[0].toolType = MotionEvent.TOOL_TYPE_MOUSE; in generateMouseEvent()
/cts/tests/tests/systemui/src/android/systemui/cts/
DTouchHelper.java71 properties.toolType = MotionEvent.TOOL_TYPE_FINGER; in getMotionEvent()
/cts/tests/tests/widget/src/android/widget/cts/
DPointerIconTest.java96 int source, @MotionEvent.ToolType int toolType) { in assertPointerIcon() argument
111 pps[0].toolType = toolType; in assertPointerIcon()
DHorizontalScrollViewTest.java1257 pointerProperties.toolType = MotionEvent.TOOL_TYPE_MOUSE; in createScrollEvent()
DScrollViewTest.java1394 pointerProperties.toolType = MotionEvent.TOOL_TYPE_MOUSE; in createScrollEvent()
/cts/hostsidetests/securitybulletin/securityPatch/Bug-115739809/
Dpoc.cpp147 outMsg->body.motion.pointers[i].properties.toolType = in sanitizeMessage()
148 msg.body.motion.pointers[i].properties.toolType; in sanitizeMessage()
/cts/tests/tests/mediacujtest/common/src/android/media/cujcommon/cts/
DPinchToZoomTestPlayerListener.java164 defaultPointerProperties.toolType = MotionEvent.TOOL_TYPE_FINGER; in getPointerProperties()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DStylusHandwritingTest.java1333 int toolType = MotionEvent.TOOL_TYPE_STYLUS; in testOnViewClicked_withStylusTap() local
1336 onUpdateEditorToolTypeMatcher(toolType), in testOnViewClicked_withStylusTap()
1345 expectEvent(stream, startInputInitialEditorToolMatcher(toolType, unfocusedMarker), in testOnViewClicked_withStylusTap()
1348 expectEvent(stream, onStartInputMatcher(toolType, unfocusedMarker), TIMEOUT); in testOnViewClicked_withStylusTap()
1352 onUpdateEditorToolTypeMatcher(toolType), in testOnViewClicked_withStylusTap()
1540 int toolType = MotionEvent.TOOL_TYPE_UNKNOWN; in testOnViewClicked_withKeyEvent() local
1543 onUpdateEditorToolTypeMatcher(toolType), in testOnViewClicked_withKeyEvent()
1548 private static DescribedPredicate<ImeEvent> onStartInputMatcher(int toolType, String marker) { in onStartInputMatcher() argument
1554 return info.getInitialToolType() == toolType in onStartInputMatcher()
1558 "onStartInput(initialToolType=" + toolType + ",marker=" + marker + ")", matcher); in onStartInputMatcher()
[all …]
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DMockIme.java1161 public void onUpdateEditorToolType(int toolType) {
1165 getTracer().onUpdateEditorToolType(toolType, () -> super.onUpdateEditorToolType(toolType));
1593 void onUpdateEditorToolType(int toolType, @NonNull Runnable runnable) {
1595 arguments.putInt("toolType", toolType);
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/
DUiBot.java1565 properties.toolType = Configurator.getInstance().getToolType();

12