Home
last modified time | relevance | path

Searched refs:offsetX (Results 1 – 9 of 9) sorted by relevance

/cts/common/device-side/util/src/com/android/compatibility/common/util/
DCtsMouseUtil.java55 public static MotionEvent obtainMouseEvent(int action, View anchor, int offsetX, int offsetY) { in obtainMouseEvent() argument
59 final int x = screenPos[0] + offsetX; in obtainMouseEvent()
DCtsTouchUtils.java82 int offsetX, int offsetY) { in emulateTapOnView() argument
87 int xOnScreen = viewOnScreenXY[0] + offsetX; in emulateTapOnView()
120 int offsetX, int offsetY) { in emulateDoubleTapOnView() argument
125 int xOnScreen = viewOnScreenXY[0] + offsetX; in emulateDoubleTapOnView()
516 int offsetX, int offsetY) { in emulateLongPressOnView() argument
520 int xOnScreen = viewOnScreenXY[0] + offsetX; in emulateLongPressOnView()
/cts/tests/tests/view/src/android/view/cts/
DTooltipTest.java185 private void injectHoverMove(int source, View target, int offsetX, int offsetY) { in injectHoverMove() argument
187 source, target, MotionEvent.ACTION_HOVER_MOVE, offsetX, offsetY)); in injectHoverMove()
190 private void injectHoverMove(View target, int offsetX, int offsetY) { in injectHoverMove() argument
191 injectHoverMove(InputDevice.SOURCE_MOUSE, target, offsetX, offsetY); in injectHoverMove()
203 private static MotionEvent obtainMouseEvent(View target, int action, int offsetX, int offsetY) { in obtainMouseEvent() argument
204 return obtainMotionEvent(InputDevice.SOURCE_MOUSE, target, action, offsetX, offsetY); in obtainMouseEvent()
208 int source, View target, int action, int offsetX, int offsetY) { in obtainMotionEvent() argument
213 xy[0] + target.getWidth() / 2 + offsetX, xy[1] + target.getHeight() / 2 + offsetY, in obtainMotionEvent()
DHoverTest.java105 private void injectHoverMove(View view, int offsetX, int offsetY) { in injectHoverMove() argument
107 obtainMouseEvent(MotionEvent.ACTION_HOVER_MOVE, view, offsetX, offsetY)); in injectHoverMove()
DMotionEventTest.java315 float offsetX = 1.0f; in testOffsetLocation() local
317 mMotionEvent2.offsetLocation(offsetX, offsetY); in testOffsetLocation()
318 withCoords(X_3F + offsetX, Y_4F + offsetY).withPressure(PRESSURE_1F).withSize(SIZE_1F). in testOffsetLocation()
/cts/tests/tests/widget/src/android/widget/cts/
DPopupWindowTest.java449 final int offsetX = mActivity.findViewById(R.id.anchor_upper).getWidth() / 2; in testShowAsDropDown_ClipToScreen_Overlap_Offset() local
455 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
458 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
461 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
465 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
468 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
471 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
475 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
478 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
481 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
[all …]
DTextViewTest.java7742 int offsetX = end.x - start.x; in testSmartSelection_dragSelection() local
7746 mInstrumentation, startX, startY, offsetX, 0 /* offsetY */); in testSmartSelection_dragSelection()
8001 private void emulateClickOnView(View view, int offsetX, int offsetY) { in emulateClickOnView() argument
8002 CtsTouchUtils.emulateTapOnView(mInstrumentation, view, offsetX, offsetY); in emulateClickOnView()
8006 private void emulateLongPressOnView(View view, int offsetX, int offsetY) { in emulateLongPressOnView() argument
8007 CtsTouchUtils.emulateLongPressOnView(mInstrumentation, view, offsetX, offsetY); in emulateLongPressOnView()
/cts/tests/tests/widget/src/android/widget/cts/util/
DTestUtils.java80 int offsetX = 0; in getCombinedBackgroundBitmap() local
86 ancestorOffsets.add(Pair.create(offsetX, offsetY)); in getCombinedBackgroundBitmap()
96 offsetX += view.getLeft(); in getCombinedBackgroundBitmap()
/cts/tests/camera/src/android/hardware/camera2/cts/rs/
Draw_converter.rs36 uint offsetX; // X offset into inputRawBuffer
356 uint xP = x + offsetX;