/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/ |
D | Watermark.java | 102 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/ |
D | Watermark.java | 205 for (int offsetY = targetImage.getHeight() - 1; offsetY >= 0; --offsetY) { in isContainedIn() 207 if (mImage.robustMatch(targetImage, offsetX, offsetY)) { in isContainedIn()
|
D | BitmapImage.java | 125 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/ |
D | CtsMouseUtil.java | 62 public static MotionEvent obtainMouseEvent(int action, View anchor, int offsetX, int offsetY) { in obtainMouseEvent() argument 67 final int y = screenPos[1] + offsetY; in obtainMouseEvent() 84 int offsetY) { in emulateHoverOnView() argument 89 final int y = screenPos[1] + offsetY; in emulateHoverOnView()
|
D | CtsTouchUtils.java | 108 int offsetX, int offsetY) { in emulateTapOnView() argument 114 int yOnScreen = viewOnScreenXY[1] + offsetY; in emulateTapOnView() 155 int offsetX, int offsetY) { in emulateDoubleTapOnView() argument 161 int yOnScreen = viewOnScreenXY[1] + offsetY; in emulateDoubleTapOnView() 734 ActivityTestRule<?> activityTestRule, View view, int offsetX, int offsetY) { in emulateLongPressOnView() argument 739 int yOnScreen = viewOnScreenXY[1] + offsetY; in emulateLongPressOnView()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | TooltipTest.java | 210 private void injectHoverEvent(int action, int source, View target, int offsetX, int offsetY) { in injectHoverEvent() argument 211 injectMotionEvent(obtainMotionEvent(source, target, action, offsetX, offsetY)); in injectHoverEvent() 214 private void injectHoverMove(int source, View target, int offsetX, int offsetY) { in injectHoverMove() argument 215 injectHoverEvent(ACTION_HOVER_MOVE, source, target, offsetX, offsetY); in injectHoverMove() 218 private void injectHoverMove(View target, int offsetX, int offsetY) { in injectHoverMove() argument 219 injectHoverMove(InputDevice.SOURCE_MOUSE, target, offsetX, offsetY); in injectHoverMove() 235 private MotionEvent obtainMouseEvent(View target, int action, int offsetX, int offsetY) { in obtainMouseEvent() argument 236 return obtainMotionEvent(InputDevice.SOURCE_MOUSE, target, action, offsetX, offsetY); in obtainMouseEvent() 240 int source, View target, int action, int offsetX, int offsetY) { in obtainMotionEvent() argument 245 xy[0] + target.getWidth() / 2 + offsetX, xy[1] + target.getHeight() / 2 + offsetY, in obtainMotionEvent()
|
D | HoverTest.java | 120 private void injectHoverEnter(View view, int offsetX, int offsetY) { in injectHoverEnter() argument 122 obtainMouseEvent(MotionEvent.ACTION_HOVER_ENTER, view, offsetX, offsetY)); in injectHoverEnter() 129 private void injectHoverMove(View view, int offsetX, int offsetY) { in injectHoverMove() argument 131 obtainMouseEvent(MotionEvent.ACTION_HOVER_MOVE, view, offsetX, offsetY)); in injectHoverMove()
|
D | MotionEventTest.java | 401 float offsetY = 1.0f; in testOffsetLocationForPointerSource() local 402 mMotionEvent2.offsetLocation(offsetX, offsetY); in testOffsetLocationForPointerSource() 403 withCoords(X_3F + offsetX, Y_4F + offsetY) in testOffsetLocationForPointerSource() 416 float offsetY = 1.0f; in testNoLocationOffsetForNonPointerSource() local 417 mMotionEvent2.offsetLocation(offsetX, offsetY); in testNoLocationOffsetForNonPointerSource()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | RenderNodeTests.java | 418 final int offsetY = 20; in testOffsetImplicitInputRenderEffect() local 419 RenderEffect offsetEffect = RenderEffect.createOffsetEffect(offsetX, offsetY); in testOffsetImplicitInputRenderEffect() 445 offsetY - 1 in testOffsetImplicitInputRenderEffect() 452 offsetY + 1, in testOffsetImplicitInputRenderEffect() 560 final int offsetY = 20; in testOffsetRenderEffect() local 562 RenderEffect offsetEffect = RenderEffect.createOffsetEffect(offsetX, offsetY, bitmapEffect); in testOffsetRenderEffect() 582 new Rect(0, 0, TEST_WIDTH - 1, offsetY - 1), in testOffsetRenderEffect() 588 offsetY + 1, in testOffsetRenderEffect() 781 final int offsetY = 20; in testChainRenderEffect() local 783 RenderEffect offsetEffect = RenderEffect.createOffsetEffect(offsetX, offsetY); in testChainRenderEffect() [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/util/ |
D | TestUtils.java | 81 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/ |
D | PopupWindowTest.java | 498 final int offsetY = mActivity.findViewById(R.id.anchor_upper).getHeight() / 2; in testShowAsDropDown_ClipToScreen_Overlap_Offset() local 503 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset() 506 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset() 509 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset() 513 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset() 516 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset() 519 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset() 523 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset() 526 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset() 529 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset() [all …]
|
D | TextViewTest.java | 9565 private void emulateClickOnView(View view, int offsetX, int offsetY) { in emulateClickOnView() argument 9566 mCtsTouchUtils.emulateTapOnView(mInstrumentation, mActivityRule, view, offsetX, offsetY); in emulateClickOnView() 9570 private void emulateLongPressOnView(View view, int offsetX, int offsetY) { in emulateLongPressOnView() argument 9572 offsetX, offsetY); in emulateLongPressOnView()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityGestureDetectorTest.java | 717 float offsetY = 0.0f; in adjustTapLocation() local 724 offsetY = (strokeDeltaY + fingerOffsetSum) / -2.0f; in adjustTapLocation() 726 offsetY = (strokeDeltaY - fingerOffsetSum) / -2.0f; in adjustTapLocation() 728 tapLocation.offset(offsetX, offsetY); in adjustTapLocation()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | GainmapTest.java | 421 int offsetY = decoder.getHeight() - (TILE_SIZE / 4); in testDecodeGainmapBitmapRegionDecoderReusePastBounds() local 422 Bitmap region = decoder.decodeRegion(new Rect(offsetX, offsetY, offsetX + TILE_SIZE, in testDecodeGainmapBitmapRegionDecoderReusePastBounds() 423 offsetY + TILE_SIZE), options); in testDecodeGainmapBitmapRegionDecoderReusePastBounds() 435 region = decoder.decodeRegion(new Rect(offsetX, offsetY, offsetX + TILE_SIZE, in testDecodeGainmapBitmapRegionDecoderReusePastBounds() 436 offsetY + TILE_SIZE), options); in testDecodeGainmapBitmapRegionDecoderReusePastBounds()
|
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/ |
D | TestUtils.java | 312 int offsetY = view.getHeight() / 2; in injectStylusEvents() local 313 injectStylusEvents(view, offsetX, offsetY); in injectStylusEvents()
|
/cts/tests/camera/src/android/hardware/camera2/cts/rs/ |
D | RawConverter.java | 278 void set_offsetY(int offsetY) { in set_offsetY() argument 279 mOffsetY = offsetY; in set_offsetY()
|