Home
last modified time | relevance | path

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

/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityMagnificationTest.java1515 private void adjustViewBoundsIfNeeded(View topLeftview, float scale, Rect magnifyBounds) { in adjustViewBoundsIfNeeded() argument
1522 topLeftview.getLocationOnScreen(viewLocation); in adjustViewBoundsIfNeeded()
1524 viewLocation[0] + topLeftview.getWidth(), in adjustViewBoundsIfNeeded()
1525 viewLocation[1] + topLeftview.getHeight()); in adjustViewBoundsIfNeeded()
1532 final ViewGroup.LayoutParams layoutParams = topLeftview.getLayoutParams(); in adjustViewBoundsIfNeeded()
1534 layoutParams.width = topLeftview.getWidth() - 1 in adjustViewBoundsIfNeeded()
1539 layoutParams.height = topLeftview.getHeight() - 1 in adjustViewBoundsIfNeeded()
1543 mInstrumentation.runOnMainSync(() -> topLeftview.setLayoutParams(layoutParams)); in adjustViewBoundsIfNeeded()