Searched refs:bounds (Results 1 – 7 of 7) sorted by relevance
| /test/uiautomator/uiautomator/src/main/java/androidx/test/uiautomator/ |
| D | AccessibilityNodeInfoHelper.java | 68 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()
|
| D | UiObject2.java | 341 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 …]
|
| D | AccessibilityWindowInfoExt.kt | 40 takeScreenshotBitmap(bounds = Rect().apply { getBoundsInScreen(this) }) in takeScreenshot()
|
| D | AccessibilityNodeInfoExt.kt | 93 takeScreenshotBitmap(bounds = Rect().apply { getBoundsInScreen(this) }) in takeScreenshot()
|
| /test/uiautomator/uiautomator/src/main/java/androidx/test/uiautomator/internal/ |
| D | Utils.kt | 59 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()
|
| D | Models.kt | 43 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/ |
| D | UiObject2Test.java | 668 Rect bounds = scrollView.getVisibleBounds(); in testScroll() local 670 (float) (mDevice.getDisplayHeight() * 2 / (bounds.height() - 100)); in testScroll()
|