Home
last modified time | relevance | path

Searched refs:bounds (Results 1 – 7 of 7) sorted by relevance

/test/uiautomator/uiautomator/src/main/java/androidx/test/uiautomator/
DAccessibilityNodeInfoHelper.java68 Rect bounds = new Rect(); in getVisibleBoundsInScreen() local
71 window.getBoundsInScreen(bounds); in getVisibleBoundsInScreen()
72 intersectOrWarn(nodeRect, bounds); in getVisibleBoundsInScreen()
97 private static void intersectOrWarn(Rect target, Rect bounds) { in intersectOrWarn() argument
98 if (!target.intersect(bounds)) { in intersectOrWarn()
99 Log.v(TAG, String.format("No overlap between %s and %s. Ignoring.", target, bounds)); in intersectOrWarn()
DUiObject2.java341 Rect bounds = getVisibleBounds(node); in getVisibleCenter() local
342 return new Point(bounds.centerX(), bounds.centerY()); in getVisibleCenter()
358 final Rect bounds = getVisibleBoundsForGestures(node); in clipToGestureBounds() local
359 if (bounds.contains(point.x, point.y)) { in clipToGestureBounds()
363 bounds)); in clipToGestureBounds()
364 point.x = Math.max(bounds.left, Math.min(point.x, bounds.right)); in clipToGestureBounds()
365 point.y = Math.max(bounds.top, Math.min(point.y, bounds.bottom)); in clipToGestureBounds()
671 Rect bounds = getVisibleBoundsForGestures(); in pinchClose() local
672 Log.d(TAG, String.format("Pinching close (bounds=%s, percent=%f) at %dpx/s.", bounds, in pinchClose()
675 mGestureFactory.pinchClose(bounds, percent, speed)); in pinchClose()
[all …]
DAccessibilityWindowInfoExt.kt40 takeScreenshotBitmap(bounds = Rect().apply { getBoundsInScreen(this) }) in takeScreenshot()
DAccessibilityNodeInfoExt.kt93 takeScreenshotBitmap(bounds = Rect().apply { getBoundsInScreen(this) }) in takeScreenshot()
/test/uiautomator/uiautomator/src/main/java/androidx/test/uiautomator/internal/
DUtils.kt59 internal fun takeScreenshotBitmap(bounds: Rect): Bitmap { in joinLines()
68 bounds.intersect(actualBounds) in joinLines()
72 bounds.left, in joinLines()
73 bounds.top, in joinLines()
74 bounds.width(), in joinLines()
75 bounds.height(), in joinLines()
DModels.kt43 val bounds: Rect, in <lambda>() constant in androidx.test.uiautomator.internal.ViewNode
104 bounds = node.boundsInScreen(), in <lambda>()
135 if (bounds != other.bounds) return false in <lambda>()
162 result = 31 * result + bounds.hashCode() in <lambda>()
/test/uiautomator/integration-tests/testapp/src/androidTest/java/androidx/test/uiautomator/testapp/
DUiObject2Test.java668 Rect bounds = scrollView.getVisibleBounds(); in testScroll() local
670 (float) (mDevice.getDisplayHeight() * 2 / (bounds.height() - 100)); in testScroll()