Home
last modified time | relevance | path

Searched refs:pointerCoords (Results 1 – 10 of 10) sorted by relevance

/cts/tests/tests/hardware/src/android/hardware/input/cts/virtualcreators/
DVirtualInputEventCreator.java32 final MotionEvent.PointerCoords pointerCoords = new MotionEvent.PointerCoords(); in createMouseEvent() local
33 pointerCoords.setAxisValue(MotionEvent.AXIS_X, x); in createMouseEvent()
34 pointerCoords.setAxisValue(MotionEvent.AXIS_Y, y); in createMouseEvent()
35 pointerCoords.setAxisValue(MotionEvent.AXIS_RELATIVE_X, relativeX); in createMouseEvent()
36 pointerCoords.setAxisValue(MotionEvent.AXIS_RELATIVE_Y, relativeY); in createMouseEvent()
37 pointerCoords.setAxisValue(MotionEvent.AXIS_PRESSURE, pressure); in createMouseEvent()
38 pointerCoords.setAxisValue(MotionEvent.AXIS_VSCROLL, vScroll); in createMouseEvent()
39 pointerCoords.setAxisValue(MotionEvent.AXIS_HSCROLL, 0 /* value */); in createMouseEvent()
46 new MotionEvent.PointerCoords[]{pointerCoords}, in createMouseEvent()
67 final MotionEvent.PointerCoords pointerCoords = new MotionEvent.PointerCoords(); in createTouchscreenEvent() local
[all …]
/cts/tests/tests/mediacujtest/common/src/android/media/cujcommon/cts/
DPinchToZoomTestPlayerListener.java57 PointerCoords pointerCoords = new PointerCoords(); in getDisplayPointer() local
58 pointerCoords.x = x; in getDisplayPointer()
59 pointerCoords.y = y; in getDisplayPointer()
60 pointerCoords.pressure = 1; in getDisplayPointer()
61 pointerCoords.size = 1; in getDisplayPointer()
62 return pointerCoords; in getDisplayPointer()
126 PointerProperties[] pointerProperties, PointerCoords[] pointerCoords) { in obtainAndSendPointerEvent() argument
129 pointerCoords, 0 /* metaState */, 0 /* buttonState */, 1 /* xPrecision */, in obtainAndSendPointerEvent()
180 PointerCoords[] pointerCoords = getPointerCoords(isZoomIn); in pinchAndZoom() local
186 pointerProperties, pointerCoords); in pinchAndZoom()
[all …]
/cts/tests/tests/view/src/android/view/cts/util/
DEventUtils.java27 MotionEvent.PointerCoords[] pointerCoords = new MotionEvent.PointerCoords[1]; in generateMouseEvent() local
28 pointerCoords[0] = new MotionEvent.PointerCoords(); in generateMouseEvent()
29 pointerCoords[0].x = x; in generateMouseEvent()
30 pointerCoords[0].y = y; in generateMouseEvent()
38 pointerCoords, 0, buttonState, 0, 0, 0, 0, InputDevice.SOURCE_MOUSE, 0); in generateMouseEvent()
/cts/tests/tests/view/src/android/view/cts/
DMotionEventUtils.java122 final PointerCoords pointerCoords = new PointerCoords(); in build() local
123 pointerCoords.x = x; in build()
124 pointerCoords.y = y; in build()
125 pointerCoords.pressure = pressure; in build()
126 pointerCoords.size = size; in build()
127 pointerCoords.touchMajor = touchMajor; in build()
128 pointerCoords.touchMinor = touchMinor; in build()
129 pointerCoords.toolMajor = toolMajor; in build()
130 pointerCoords.toolMinor = toolMinor; in build()
131 pointerCoords.orientation = orientation; in build()
[all …]
DMotionEvent_PointerCoordsTest.java113 final MotionEvent.PointerCoords pointerCoords = new MotionEvent.PointerCoords(); in testCopyFrom() local
114 pointerCoords.copyFrom(mPointerCoords); in testCopyFrom()
115 mBuilder.verifyMatchesPointerCoords(pointerCoords); in testCopyFrom()
DMotionEventTest.java753 final PointerCoords[] pointerCoords = new PointerCoords[pointerCount]; in testTransformShouldApplyMatrixToPointsAndPreserveRawPosition() local
759 pointerCoords[i] = c; in testTransformShouldApplyMatrixToPointsAndPreserveRawPosition()
766 pointerCount, pointerIds, pointerCoords, 0, 0, 0, 0, 0, in testTransformShouldApplyMatrixToPointsAndPreserveRawPosition()
794 final PointerCoords c = pointerCoords[i]; in testTransformShouldApplyMatrixToPointsAndPreserveRawPosition()
/cts/tests/tests/widget/src/android/widget/cts/
DHorizontalScrollViewTest.java1258 MotionEvent.PointerCoords pointerCoords = new MotionEvent.PointerCoords(); in createScrollEvent() local
1261 pointerCoords.setAxisValue(axis, scrollAmount); in createScrollEvent()
1269 new MotionEvent.PointerCoords[] { pointerCoords }, in createScrollEvent()
DScrollViewTest.java1395 MotionEvent.PointerCoords pointerCoords = new MotionEvent.PointerCoords(); in createScrollEvent() local
1398 pointerCoords.setAxisValue(axis, scrollAmount); in createScrollEvent()
1406 new MotionEvent.PointerCoords[] { pointerCoords }, in createScrollEvent()
DListViewTest.java1520 MotionEvent.PointerCoords pointerCoords = new MotionEvent.PointerCoords(); in createScrollEvent() local
1523 pointerCoords.setAxisValue(axis, scrollAmount); in createScrollEvent()
1531 new MotionEvent.PointerCoords[] { pointerCoords }, in createScrollEvent()
DTextViewTest.java9673 MotionEvent.PointerCoords[] pointerCoords = new MotionEvent.PointerCoords[1]; in createMouseHoverEvent() local
9674 pointerCoords[0] = new MotionEvent.PointerCoords(); in createMouseHoverEvent()
9675 pointerCoords[0].x = x; in createMouseHoverEvent()
9676 pointerCoords[0].y = y; in createMouseHoverEvent()
9680 pointerCoords, 0, 0, 0, 0, 0, InputDevice.SOURCE_MOUSE, 0); in createMouseHoverEvent()