Home
last modified time | relevance | path

Searched refs:offsetY (Results 1 – 10 of 10) 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
60 final int y = screenPos[1] + offsetY; in obtainMouseEvent()
DCtsTouchUtils.java82 int offsetX, int offsetY) { in emulateTapOnView() argument
88 int yOnScreen = viewOnScreenXY[1] + offsetY; in emulateTapOnView()
120 int offsetX, int offsetY) { in emulateDoubleTapOnView() argument
126 int yOnScreen = viewOnScreenXY[1] + offsetY; in emulateDoubleTapOnView()
516 int offsetX, int offsetY) { in emulateLongPressOnView() argument
521 int yOnScreen = viewOnScreenXY[1] + offsetY; 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.java316 float offsetY = 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.java450 final int offsetY = mActivity.findViewById(R.id.anchor_upper).getHeight() / 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.java8001 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.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.rs37 uint offsetY; // Y offset into inputRawBuffer
357 uint yP = y + offsetY;
/cts/tests/framework/base/activitymanager/src/android/server/am/
DActivityManagerPinnedStackTests.java1319 private void offsetPipWithinMovementBounds(int offsetY, Rect initialBoundsOut, in offsetPipWithinMovementBounds() argument
1328 offsetBoundsOut.offset(0, offsetY); in offsetPipWithinMovementBounds()
1330 offsetBoundsOut.offset(0, -offsetY); in offsetPipWithinMovementBounds()