/cts/tests/tests/hardware/src/android/hardware/input/cts/virtualcreators/ |
D | VirtualInputEventCreator.java | 32 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/ |
D | PinchToZoomTestPlayerListener.java | 57 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/ |
D | EventUtils.java | 27 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/ |
D | MotionEventUtils.java | 122 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 …]
|
D | MotionEvent_PointerCoordsTest.java | 113 final MotionEvent.PointerCoords pointerCoords = new MotionEvent.PointerCoords(); in testCopyFrom() local 114 pointerCoords.copyFrom(mPointerCoords); in testCopyFrom() 115 mBuilder.verifyMatchesPointerCoords(pointerCoords); in testCopyFrom()
|
D | MotionEventTest.java | 753 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/ |
D | HorizontalScrollViewTest.java | 1258 MotionEvent.PointerCoords pointerCoords = new MotionEvent.PointerCoords(); in createScrollEvent() local 1261 pointerCoords.setAxisValue(axis, scrollAmount); in createScrollEvent() 1269 new MotionEvent.PointerCoords[] { pointerCoords }, in createScrollEvent()
|
D | ScrollViewTest.java | 1395 MotionEvent.PointerCoords pointerCoords = new MotionEvent.PointerCoords(); in createScrollEvent() local 1398 pointerCoords.setAxisValue(axis, scrollAmount); in createScrollEvent() 1406 new MotionEvent.PointerCoords[] { pointerCoords }, in createScrollEvent()
|
D | ListViewTest.java | 1520 MotionEvent.PointerCoords pointerCoords = new MotionEvent.PointerCoords(); in createScrollEvent() local 1523 pointerCoords.setAxisValue(axis, scrollAmount); in createScrollEvent() 1531 new MotionEvent.PointerCoords[] { pointerCoords }, in createScrollEvent()
|
D | TextViewTest.java | 9673 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()
|