Home
last modified time | relevance | path

Searched refs:offsetY (Results 1 – 12 of 12) 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
62 final int y = screenPos[1] + offsetY; in obtainMouseEvent()
78 int offsetY) { in emulateHoverOnView() argument
84 final int y = screenPos[1] + offsetY; in emulateHoverOnView()
DCtsTouchUtils.java86 int offsetX, int offsetY) { in emulateTapOnView() argument
92 int yOnScreen = viewOnScreenXY[1] + offsetY; in emulateTapOnView()
132 int offsetX, int offsetY) { in emulateDoubleTapOnView() argument
138 int yOnScreen = viewOnScreenXY[1] + offsetY; in emulateDoubleTapOnView()
553 ActivityTestRule<?> activityTestRule, View view, int offsetX, int offsetY) { in emulateLongPressOnView() argument
558 int yOnScreen = viewOnScreenXY[1] + offsetY; 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
62 final int y = screenPos[1] + offsetY; in obtainMouseEvent()
78 int offsetY) { in emulateHoverOnView() argument
84 final int y = screenPos[1] + offsetY; in emulateHoverOnView()
DCtsTouchUtils.java87 int offsetX, int offsetY) { in emulateTapOnView() argument
93 int yOnScreen = viewOnScreenXY[1] + offsetY; in emulateTapOnView()
133 int offsetX, int offsetY) { in emulateDoubleTapOnView() argument
139 int yOnScreen = viewOnScreenXY[1] + offsetY; in emulateDoubleTapOnView()
554 ActivityTestRule<?> activityTestRule, View view, int offsetX, int offsetY) { in emulateLongPressOnView() argument
559 int yOnScreen = viewOnScreenXY[1] + offsetY; 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.java321 float offsetY = 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/
DPopupWindowTest.java462 final int offsetY = mActivity.findViewById(R.id.anchor_upper).getHeight() / 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.java8498 private void emulateClickOnView(View view, int offsetX, int offsetY) { in emulateClickOnView() argument
8499 CtsTouchUtils.emulateTapOnView(mInstrumentation, mActivityRule, view, offsetX, offsetY); in emulateClickOnView()
8503 private void emulateLongPressOnView(View view, int offsetX, int offsetY) { in emulateLongPressOnView() argument
8505 offsetX, offsetY); in emulateLongPressOnView()
/cts/tests/tests/widget/src/android/widget/cts/util/
DTestUtils.java81 int offsetY = 0; in getCombinedBackgroundBitmap() local
86 ancestorOffsets.add(Pair.create(offsetX, offsetY)); in getCombinedBackgroundBitmap()
97 offsetY += view.getTop(); in getCombinedBackgroundBitmap()
/cts/tests/camera/src/android/hardware/camera2/cts/rs/
Draw_converter.rscript38 uint offsetY; // Y offset into inputRawBuffer
358 uint yP = y + offsetY;
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DPinnedStackTests.java1272 private void offsetPipWithinMovementBounds(int offsetY, Rect initialBoundsOut, in offsetPipWithinMovementBounds() argument
1281 offsetBoundsOut.offset(0, offsetY); in offsetPipWithinMovementBounds()
1283 offsetBoundsOut.offset(0, -offsetY); in offsetPipWithinMovementBounds()