Home
last modified time | relevance | path

Searched refs:offsetX (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
108 if (offsetX < 0 || targetWidth <= mWidth - 1 + offsetX) return false; in robustMatch()
113 final int targetX = x + offsetX; in robustMatch()
238 for (int offsetX = 0; offsetX < targetImageWidth; ++offsetX) { in detect()
239 if (sImage.robustMatch(targetImage, offsetX, offsetY)) { in detect()
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/ime/
DWatermark.java206 for (int offsetX = 0; offsetX < targetImage.getWidth(); ++offsetX) { 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
131 final int targetX = x + offsetX; 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
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.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
126 int xOnScreen = viewOnScreenXY[0] + offsetX; in emulateTapOnView()
168 int offsetX, int offsetY) { in emulateDoubleTapOnView() argument
173 int xOnScreen = viewOnScreenXY[0] + offsetX; in emulateDoubleTapOnView()
769 ActivityTestRule<?> activityTestRule, View view, int offsetX, int offsetY) { in emulateLongPressOnView() argument
773 int xOnScreen = viewOnScreenXY[0] + offsetX; in emulateLongPressOnView()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DRenderNodeTests.java410 final int offsetX = 20; in testOffsetImplicitInputRenderEffect() local
412 RenderEffect offsetEffect = RenderEffect.createOffsetEffect(offsetX, offsetY); in testOffsetImplicitInputRenderEffect()
444 offsetX + 1, in testOffsetImplicitInputRenderEffect()
454 offsetX - 1, in testOffsetImplicitInputRenderEffect()
552 final int offsetX = 20; in testOffsetRenderEffect() local
555 RenderEffect offsetEffect = RenderEffect.createOffsetEffect(offsetX, offsetY, bitmapEffect); in testOffsetRenderEffect()
580 offsetX + 1, in testOffsetRenderEffect()
588 new Rect(0, 0, offsetX - 1, TEST_HEIGHT - 1), in testOffsetRenderEffect()
792 final int offsetX = 20; in testChainRenderEffect() local
795 RenderEffect offsetEffect = RenderEffect.createOffsetEffect(offsetX, offsetY); in testChainRenderEffect()
[all …]
/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.java470 final int offsetX = mActivity.findViewById(R.id.anchor_upper).getWidth() / 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.java8338 int offsetX = end.x - start.x; in testSmartSelection_dragSelection() local
8342 mInstrumentation, mActivityRule, startX, startY, offsetX, 0 /* offsetY */); in testSmartSelection_dragSelection()
8756 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.java327 float offsetX = 1.0f; in testOffsetLocationForPointerSource() local
329 mMotionEvent2.offsetLocation(offsetX, offsetY); in testOffsetLocationForPointerSource()
330 withCoords(X_3F + offsetX, Y_4F + offsetY) in testOffsetLocationForPointerSource()
342 float offsetX = 1.0f; in testNoLocationOffsetForNonPointerSource() local
344 mMotionEvent2.offsetLocation(offsetX, offsetY); in testNoLocationOffsetForNonPointerSource()
/cts/tests/camera/src/android/hardware/camera2/cts/rs/
Draw_converter.rscript37 uint offsetX; // X offset into inputRawBuffer
357 uint xP = x + offsetX;