Home
last modified time | relevance | path

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

/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DWindowMetricsTestHelper.java107 final Rect currentBounds = isFreeForm ? currentMetrics.getBounds() in assertMetricsValidity() local
112 currentBounds, maxBounds); in assertMetricsValidity()
145 final Rect currentBounds = shouldBoundsIncludeInsets ? currentMetrics.getBounds() in assertMetricsMatchDisplay() local
148 displayMetrics.widthPixels, currentBounds.width()); in assertMetricsMatchDisplay()
150 displayMetrics.heightPixels, currentBounds.height()); in assertMetricsMatchDisplay()
DCtsWindowInfoUtils.java404 var currentBounds = new HashMap<IBinder, Rect>(); in waitForStableWindowGeometry() local
411 currentBounds.clear(); in waitForStableWindowGeometry()
413 currentBounds.put(windowInfo.windowToken, windowInfo.bounds); in waitForStableWindowGeometry()
416 if (currentBounds.equals(previousBounds)) { in waitForStableWindowGeometry()
422 previousBounds.putAll(currentBounds); in waitForStableWindowGeometry()
/cts/tests/framework/base/windowmanager/src/android/server/wm/display/
DWindowContextTests.java236 final Rect currentBounds = wm.getCurrentWindowMetrics().getBounds(); in testWindowProviderServiceLifecycle() local
243 assertBoundsMatches(service, currentBounds, maxBounds, in testWindowProviderServiceLifecycle()
255 private void assertBoundsMatches(TestWindowService service, Rect currentBounds, in assertBoundsMatches() argument
259 .that(winConfig.getBounds()).isEqualTo(currentBounds); in assertBoundsMatches()
267 .that(currentWindowBounds).isEqualTo(currentBounds); in assertBoundsMatches()
/cts/tests/tests/media/projection/src/android/media/projection/cts/
DMediaProjectionMirroringTest.java328 final Point currentBounds = new Point(currentWindowMetrics.getBounds().width(), in calculateScaledMirroredActivitySize() local
330 final float aspectRatio = currentBounds.x * 1f / currentBounds.y; in calculateScaledMirroredActivitySize()
339 int widthDifference = currentBounds.x - visibleBounds.x; in calculateScaledMirroredActivitySize()
340 int heightDifference = currentBounds.y - visibleBounds.y; in calculateScaledMirroredActivitySize()