Home
last modified time | relevance | path

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

/cts/common/device-side/util/src/com/android/compatibility/common/util/
DCtsMouseUtil.java57 public static MotionEvent obtainMouseEvent(int action, View anchor, int offsetX, int offsetY) { in obtainMouseEvent() argument
61 final int x = screenPos[0] + offsetX; in obtainMouseEvent()
77 public static void emulateHoverOnView(Instrumentation instrumentation, View anchor, int offsetX, in emulateHoverOnView() argument
83 final int x = screenPos[0] + offsetX; in emulateHoverOnView()
DCtsTouchUtils.java86 int offsetX, int offsetY) { in emulateTapOnView() argument
91 int xOnScreen = viewOnScreenXY[0] + offsetX; in emulateTapOnView()
132 int offsetX, int offsetY) { in emulateDoubleTapOnView() argument
137 int xOnScreen = viewOnScreenXY[0] + offsetX; in emulateDoubleTapOnView()
553 ActivityTestRule<?> activityTestRule, View view, int offsetX, int offsetY) { in emulateLongPressOnView() argument
557 int xOnScreen = viewOnScreenXY[0] + offsetX; in emulateLongPressOnView()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DCtsMouseUtil.java57 public static MotionEvent obtainMouseEvent(int action, View anchor, int offsetX, int offsetY) { in obtainMouseEvent() argument
61 final int x = screenPos[0] + offsetX; in obtainMouseEvent()
77 public static void emulateHoverOnView(Instrumentation instrumentation, View anchor, int offsetX, in emulateHoverOnView() argument
83 final int x = screenPos[0] + offsetX; in emulateHoverOnView()
DCtsTouchUtils.java87 int offsetX, int offsetY) { in emulateTapOnView() argument
92 int xOnScreen = viewOnScreenXY[0] + offsetX; in emulateTapOnView()
133 int offsetX, int offsetY) { in emulateDoubleTapOnView() argument
138 int xOnScreen = viewOnScreenXY[0] + offsetX; in emulateDoubleTapOnView()
554 ActivityTestRule<?> activityTestRule, View view, int offsetX, int offsetY) { in emulateLongPressOnView() argument
558 int xOnScreen = viewOnScreenXY[0] + offsetX; in emulateLongPressOnView()
/cts/tests/tests/view/src/android/view/cts/
DTooltipTest.java186 private void injectHoverMove(int source, View target, int offsetX, int offsetY) { in injectHoverMove() argument
188 source, target, MotionEvent.ACTION_HOVER_MOVE, offsetX, offsetY)); in injectHoverMove()
191 private void injectHoverMove(View target, int offsetX, int offsetY) { in injectHoverMove() argument
192 injectHoverMove(InputDevice.SOURCE_MOUSE, target, offsetX, offsetY); in injectHoverMove()
204 private static MotionEvent obtainMouseEvent(View target, int action, int offsetX, int offsetY) { in obtainMouseEvent() argument
205 return obtainMotionEvent(InputDevice.SOURCE_MOUSE, target, action, offsetX, offsetY); in obtainMouseEvent()
209 int source, View target, int action, int offsetX, int offsetY) { in obtainMotionEvent() argument
214 xy[0] + target.getWidth() / 2 + offsetX, xy[1] + target.getHeight() / 2 + offsetY, in obtainMotionEvent()
DHoverTest.java106 private void injectHoverMove(View view, int offsetX, int offsetY) { in injectHoverMove() argument
108 obtainMouseEvent(MotionEvent.ACTION_HOVER_MOVE, view, offsetX, offsetY)); in injectHoverMove()
DMotionEventTest.java320 float offsetX = 1.0f; in testOffsetLocation() local
322 mMotionEvent2.offsetLocation(offsetX, offsetY); in testOffsetLocation()
323 withCoords(X_3F + offsetX, Y_4F + offsetY).withPressure(PRESSURE_1F).withSize(SIZE_1F). in testOffsetLocation()
/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/tests/widget/src/android/widget/cts/
DPopupWindowTest.java461 final int offsetX = mActivity.findViewById(R.id.anchor_upper).getWidth() / 2; in testShowAsDropDown_ClipToScreen_Overlap_Offset() local
467 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
470 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
473 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
477 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
480 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
483 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
487 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
490 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
493 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
[all …]
DTextViewTest.java8101 int offsetX = end.x - start.x; in testSmartSelection_dragSelection() local
8105 mInstrumentation, mActivityRule, startX, startY, offsetX, 0 /* offsetY */); in testSmartSelection_dragSelection()
8496 private void emulateClickOnView(View view, int offsetX, int offsetY) { in emulateClickOnView() argument
8497 CtsTouchUtils.emulateTapOnView(mInstrumentation, mActivityRule, view, offsetX, offsetY); in emulateClickOnView()
8501 private void emulateLongPressOnView(View view, int offsetX, int offsetY) { in emulateLongPressOnView() argument
8503 offsetX, offsetY); in emulateLongPressOnView()
/cts/tests/camera/src/android/hardware/camera2/cts/rs/
Draw_converter.rs37 uint offsetX; // X offset into inputRawBuffer
357 uint xP = x + offsetX;