Home
last modified time | relevance | path

Searched refs:offsetY (Results 1 – 12 of 12) sorted by relevance

/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DWatermark.java102 boolean robustMatch(@NonNull BitmapImage targetImage, int offsetX, int offsetY) { in robustMatch() argument
109 if (offsetY < 0 || targetHeight <= mHeight - 1 + offsetY) return false; in robustMatch()
114 final int targetY = y + offsetY; in robustMatch()
237 for (int offsetY = targetImageHeight - 1; offsetY >= 0; --offsetY) { in detect()
239 if (sImage.robustMatch(targetImage, offsetX, offsetY)) { in detect()
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/ime/
DWatermark.java205 for (int offsetY = targetImage.getHeight() - 1; offsetY >= 0; --offsetY) { in isContainedIn()
207 if (mImage.robustMatch(targetImage, offsetX, offsetY)) { in isContainedIn()
DBitmapImage.java125 boolean robustMatch(@NonNull BitmapImage targetImage, int offsetX, int offsetY) { in robustMatch() argument
135 final int targetY = y + offsetY; in robustMatch()
/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.java105 int offsetX, int offsetY) { in emulateTapOnView() argument
106 emulateTapOnView(instrumentation, activityTestRule, anchorView, offsetX, offsetY, true); in emulateTapOnView()
121 int offsetX, int offsetY, boolean waitForAnimations) { in emulateTapOnView() argument
127 int yOnScreen = viewOnScreenXY[1] + offsetY; in emulateTapOnView()
168 int offsetX, int offsetY) { in emulateDoubleTapOnView() argument
174 int yOnScreen = viewOnScreenXY[1] + offsetY; in emulateDoubleTapOnView()
769 ActivityTestRule<?> activityTestRule, View view, int offsetX, int offsetY) { in emulateLongPressOnView() argument
774 int yOnScreen = viewOnScreenXY[1] + offsetY; in emulateLongPressOnView()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DRenderNodeTests.java411 final int offsetY = 20; in testOffsetImplicitInputRenderEffect() local
412 RenderEffect offsetEffect = RenderEffect.createOffsetEffect(offsetX, offsetY); in testOffsetImplicitInputRenderEffect()
438 offsetY - 1 in testOffsetImplicitInputRenderEffect()
445 offsetY + 1, in testOffsetImplicitInputRenderEffect()
553 final int offsetY = 20; in testOffsetRenderEffect() local
555 RenderEffect offsetEffect = RenderEffect.createOffsetEffect(offsetX, offsetY, bitmapEffect); in testOffsetRenderEffect()
575 new Rect(0, 0, TEST_WIDTH - 1, offsetY - 1), in testOffsetRenderEffect()
581 offsetY + 1, in testOffsetRenderEffect()
793 final int offsetY = 20; in testChainRenderEffect() local
795 RenderEffect offsetEffect = RenderEffect.createOffsetEffect(offsetX, offsetY); in testChainRenderEffect()
[all …]
/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/tests/widget/src/android/widget/cts/
DPopupWindowTest.java471 final int offsetY = mActivity.findViewById(R.id.anchor_upper).getHeight() / 2; in testShowAsDropDown_ClipToScreen_Overlap_Offset() local
476 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
479 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
482 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
486 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
489 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
492 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
496 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
499 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
502 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
[all …]
DTextViewTest.java8756 private void emulateClickOnView(View view, int offsetX, int offsetY) { in emulateClickOnView() argument
8757 CtsTouchUtils.emulateTapOnView(mInstrumentation, mActivityRule, view, offsetX, offsetY); in emulateClickOnView()
8761 private void emulateLongPressOnView(View view, int offsetX, int offsetY) { in emulateLongPressOnView() argument
8763 offsetX, offsetY); in emulateLongPressOnView()
/cts/tests/tests/view/src/android/view/cts/
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.java328 float offsetY = 1.0f; in testOffsetLocationForPointerSource() local
329 mMotionEvent2.offsetLocation(offsetX, offsetY); in testOffsetLocationForPointerSource()
330 withCoords(X_3F + offsetX, Y_4F + offsetY) in testOffsetLocationForPointerSource()
343 float offsetY = 1.0f; in testNoLocationOffsetForNonPointerSource() local
344 mMotionEvent2.offsetLocation(offsetX, offsetY); in testNoLocationOffsetForNonPointerSource()
/cts/tests/camera/src/android/hardware/camera2/cts/rs/
Draw_converter.rscript38 uint offsetY; // Y offset into inputRawBuffer
358 uint yP = y + offsetY;