/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/ |
D | VirtualStylusTest.java | 72 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 …]
|
D | VirtualDeviceMirrorDisplayTest.java | 398 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/ |
D | VirtualInputEventCreator.java | 31 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/ |
D | InputShellCommandTest.kt | 152 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()
|
D | MotionPredictorTest.kt | 81 toolType: Int, in getMotionEvent() 90 properties[i]!!.toolType = toolType in getMotionEvent()
|
D | StylusButtonInputEventTest.kt | 255 toolType: Int, in <lambda>() 263 assertEquals(toolType, event.getToolType(0)) in <lambda>()
|
D | TouchInjector.kt | 67 properties[i]!!.toolType = MotionEvent.TOOL_TYPE_FINGER in sendMultiTouchEvent()
|
D | PointerIconTest.kt | 311 toolType = UinputTouchDevice.MT_TOOL_PEN in toString()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | MotionEventUtils.java | 38 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()
|
D | MotionEventTest.java | 900 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()
|
D | TouchDelegateTest.java | 232 properties[i].toolType = MotionEvent.TOOL_TYPE_FINGER; in dispatchMultiTouchMotionEventToActivity()
|
/cts/libs/input/src/com/android/cts/input/ |
D | UinputTouchDevice.kt | 85 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()
|
D | InputEventMatchers.kt | 158 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()
|
D | InputJsonParser.java | 500 properties[i].toolType = MotionEvent.TOOL_TYPE_UNKNOWN; in parseMotionEvent()
|
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/ |
D | TestUtils.java | 528 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/ |
D | EventUtils.java | 35 pp[0].toolType = MotionEvent.TOOL_TYPE_MOUSE; in generateMouseEvent()
|
/cts/tests/tests/systemui/src/android/systemui/cts/ |
D | TouchHelper.java | 71 properties.toolType = MotionEvent.TOOL_TYPE_FINGER; in getMotionEvent()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | PointerIconTest.java | 96 int source, @MotionEvent.ToolType int toolType) { in assertPointerIcon() argument 111 pps[0].toolType = toolType; in assertPointerIcon()
|
D | HorizontalScrollViewTest.java | 1257 pointerProperties.toolType = MotionEvent.TOOL_TYPE_MOUSE; in createScrollEvent()
|
D | ScrollViewTest.java | 1394 pointerProperties.toolType = MotionEvent.TOOL_TYPE_MOUSE; in createScrollEvent()
|
/cts/hostsidetests/securitybulletin/securityPatch/Bug-115739809/ |
D | poc.cpp | 147 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/ |
D | PinchToZoomTestPlayerListener.java | 164 defaultPointerProperties.toolType = MotionEvent.TOOL_TYPE_FINGER; in getPointerProperties()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | StylusHandwritingTest.java | 1333 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/ |
D | MockIme.java | 1161 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/ |
D | UiBot.java | 1565 properties.toolType = Configurator.getInstance().getToolType();
|