Home
last modified time | relevance | path

Searched refs:getBounds (Results 1 – 25 of 125) sorted by relevance

12345

/cts/tests/tests/graphics/src/android/graphics/cts/
DRegionTest.java154 assertEquals(1, mRegion.getBounds().left); in testSet1()
155 assertEquals(2, mRegion.getBounds().top); in testSet1()
156 assertEquals(3, mRegion.getBounds().right); in testSet1()
157 assertEquals(4, mRegion.getBounds().bottom); in testSet1()
164 assertEquals(1, mRegion.getBounds().left); in testSet2()
165 assertEquals(2, mRegion.getBounds().top); in testSet2()
166 assertEquals(3, mRegion.getBounds().right); in testSet2()
167 assertEquals(4, mRegion.getBounds().bottom); in testSet2()
173 assertEquals(1, mRegion.getBounds().left); in testSet3()
174 assertEquals(2, mRegion.getBounds().top); in testSet3()
[all …]
DNinePatchTest.java229 Rect regionBounds = region.getBounds(); in testGetTransparentRegion()
235 regionBounds = region.getBounds(); in testGetTransparentRegion()
247 regionBounds = region.getBounds(); in testGetTransparentRegion()
252 regionBounds = region.getBounds(); in testGetTransparentRegion()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DWindowMetricsTestHelper.java57 final Rect currentMetricsBounds = currentMetrics.getBounds(); in assertMetricsMatchesLayout()
71 assertTrue(maxMetrics.getBounds().width() in assertMetricsMatchesLayout()
72 >= currentMetrics.getBounds().width()); in assertMetricsMatchesLayout()
73 assertTrue(maxMetrics.getBounds().height() in assertMetricsMatchesLayout()
74 >= currentMetrics.getBounds().height()); in assertMetricsMatchesLayout()
101 final Rect maxBounds = maxMetrics.getBounds(); in assertMetricsValidity()
107 final Rect currentBounds = isFreeForm ? currentMetrics.getBounds() in assertMetricsValidity()
145 final Rect currentBounds = shouldBoundsIncludeInsets ? currentMetrics.getBounds() in assertMetricsMatchDisplay()
157 final Rect maxBounds = maxMetrics.getBounds(); in assertMetricsMatchDisplay()
172 final Rect bounds = windowMetrics.getBounds(); in getBoundsExcludingInsetsTypes()
/cts/tests/tests/text/src/android/text/style/cts/
DDrawableMarginSpanTest.java85 assertEquals(0, mDrawable.getBounds().top); in testDrawLeadingMargin()
86 assertEquals(0, mDrawable.getBounds().bottom); in testDrawLeadingMargin()
87 assertEquals(0, mDrawable.getBounds().left); in testDrawLeadingMargin()
88 assertEquals(0, mDrawable.getBounds().right); in testDrawLeadingMargin()
101 assertEquals(0, mDrawable.getBounds().top); in testDrawLeadingMargin()
102 assertEquals(mDrawable.getIntrinsicHeight(), mDrawable.getBounds().bottom); in testDrawLeadingMargin()
103 assertEquals(x, mDrawable.getBounds().left); in testDrawLeadingMargin()
104 assertEquals(x + mDrawable.getIntrinsicWidth(), mDrawable.getBounds().right); in testDrawLeadingMargin()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DBubbleActivity.java99 Rect bounds = windowMetricsMax.getBounds(); in checkHeight()
101 if (bubbleWindowMetrics.getBounds().height() <= percentOfScreen) { in checkHeight()
104 + bubbleWindowMetrics.getBounds().height() in checkHeight()
114 int bottomInset = windowMetricsMax.getBounds().bottom - mInsets.bottom; in checkHeight()
115 int diff = bottomInset - bubbleWindowMetrics.getBounds().bottom; in checkHeight()
/cts/tests/framework/base/windowmanager/src/android/server/wm/taskfragment/
DTaskFragmentTrustedModeTest.java78 mOwnerActivity.getResources().getConfiguration().windowConfiguration.getBounds(); in testUntrustedModeTaskFragmentVisibility_overlayTaskFragment()
84 tf.getConfiguration().windowConfiguration.getBounds())); in testUntrustedModeTaskFragmentVisibility_overlayTaskFragment()
109 mOwnerActivity.getResources().getConfiguration().windowConfiguration.getBounds(); in testUntrustedModeTaskFragmentVisibility_startActivityInTaskFragment()
184 final Rect parentBounds = new Rect(parentTask.getBounds()); in testUntrustedModeTaskFragment_setRelativeBoundsOutsideOfParentBounds()
212 assertEquals(parentBounds, tf.getFullConfiguration().windowConfiguration.getBounds()); in testUntrustedModeTaskFragment_setRelativeBoundsOutsideOfParentBounds()
222 final Rect parentBounds = new Rect(parentTask.getBounds()); in testUntrustedModeTaskFragment_startActivityInTaskFragmentOutsideOfParentBounds()
DSplitActivityLifecycleTest.java105 .getBounds(); in initializeSplitActivities()
393 assertThat(mTaskFragB.getBounds()).isEqualTo(mPrimaryBounds); in testAdjacentActivityLaunchFromSecondarySplitTaskFragment()
394 assertThat(taskFragC.getBounds()).isEqualTo(mSideBounds); in testAdjacentActivityLaunchFromSecondarySplitTaskFragment()
558 updateSplitBounds(mOwnerActivity.getWindowManager().getCurrentWindowMetrics().getBounds()); in testTranslucentAdjacentTaskFragment()
619 mBounds.set(info.getConfiguration().windowConfiguration.getBounds()); in TaskFragmentRecord()
627 private Rect getBounds() { in getBounds() method in SplitActivityLifecycleTest.TaskFragmentRecord
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20007/test-app/src/android/security/cts/CVE_2022_20007/
DDeviceTest.java63 String getBounds(String activityName) throws Exception { in getBounds() method in DeviceTest
126 mFirstPocActivityBounds = getBounds(FirstPocActivity.class.getName()); in testRaceCondition()
129 mPocAttackerActivityBounds = getBounds(attackerActivityName); in testRaceCondition()
148 mFirstPocActivityBounds = getBounds(FirstPocActivity.class.getName()); in testRaceCondition()
151 mSecondPocActivityBounds = getBounds(secondActivityName); in testRaceCondition()
152 mPocAttackerActivityBounds = getBounds(attackerActivityName); in testRaceCondition()
/cts/tests/tests/text/src/android/text/cts/
DPrecomputedTextTest.java518 PrecomputedText.create("", param).getBounds(0, 0, rect); in testGetBounds()
522 PrecomputedText.create("I", param).getBounds(0, 1, rect); in testGetBounds()
526 PrecomputedText.create("I", param).getBounds(1, 1, rect); in testGetBounds()
530 PrecomputedText.create("IV", param).getBounds(0, 0, rect); in testGetBounds()
534 PrecomputedText.create("IV", param).getBounds(0, 0, rect); in testGetBounds()
538 PrecomputedText.create("IV", param).getBounds(1, 1, rect); in testGetBounds()
542 PrecomputedText.create("IV", param).getBounds(2, 2, rect); in testGetBounds()
546 PrecomputedText.create("IV", param).getBounds(0, 1, rect); in testGetBounds()
550 PrecomputedText.create("IV", param).getBounds(1, 2, rect); in testGetBounds()
554 PrecomputedText.create("IV", param).getBounds(0, 2, rect); in testGetBounds()
[all …]
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DScaleDrawableTest.java355 assertEquals(expected.left, mockDrawable.getBounds().left); in testOnBoundsChange()
356 assertEquals(expected.top, mockDrawable.getBounds().top); in testOnBoundsChange()
357 assertEquals(expected.right, mockDrawable.getBounds().right); in testOnBoundsChange()
358 assertEquals(expected.bottom, mockDrawable.getBounds().bottom); in testOnBoundsChange()
372 assertEquals(expected.left, mockDrawable.getBounds().left); in testOnBoundsChange()
373 assertEquals(expected.top, mockDrawable.getBounds().top); in testOnBoundsChange()
374 assertEquals(expected.right, mockDrawable.getBounds().right); in testOnBoundsChange()
375 assertEquals(expected.bottom, mockDrawable.getBounds().bottom); in testOnBoundsChange()
383 assertEquals(bounds.left, mockDrawable.getBounds().left); in testOnBoundsChange()
384 assertEquals(bounds.top, mockDrawable.getBounds().top); in testOnBoundsChange()
[all …]
DClipDrawableTest.java249 assertEquals(0, colorDrawable.getBounds().left); in testOnBoundsChange()
250 assertEquals(0, colorDrawable.getBounds().top); in testOnBoundsChange()
251 assertEquals(0, colorDrawable.getBounds().bottom); in testOnBoundsChange()
252 assertEquals(0, colorDrawable.getBounds().right); in testOnBoundsChange()
254 assertEquals(10, colorDrawable.getBounds().left); in testOnBoundsChange()
255 assertEquals(10, colorDrawable.getBounds().top); in testOnBoundsChange()
256 assertEquals(100, colorDrawable.getBounds().bottom); in testOnBoundsChange()
257 assertEquals(100, colorDrawable.getBounds().right); in testOnBoundsChange()
/cts/tests/tests/graphics/src/android/graphics/text/cts/
DMeasuredTextTest.java185 mt.getBounds(0, 0, out); in testGetBounds()
187 mt.getBounds(0, 1, out); in testGetBounds()
189 mt.getBounds(0, 2, out); in testGetBounds()
191 mt.getBounds(1, 2, out); in testGetBounds()
193 mt.getBounds(1, 3, out); in testGetBounds()
211 .getBounds(0, 1, ltrRect); in testGetBounds_RTL()
215 .getBounds(0, 1, rtlRect); in testGetBounds_RTL()
229 .getBounds(-1, 0, rect); in testGetBounds_StartSmallerThanZero()
239 .getBounds(text.length() + 1, 0, rect); in testGetBounds_StartLargerThanLength()
249 .getBounds(0, -1, rect); in testGetBounds_EndSmallerThanZero()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/display/
DWindowContextTests.java93 .getBounds(); in testWindowContextConfigChanges()
101 .getBounds(); in testWindowContextConfigChanges()
157 Rect bounds = callbacks.mConfiguration.windowConfiguration.getBounds(); in testWindowContextRegisterComponentCallbacks()
225 final Rect daBounds = da.getFullConfiguration().windowConfiguration.getBounds(); in testWindowProviderServiceLifecycle()
236 final Rect currentBounds = wm.getCurrentWindowMetrics().getBounds(); in testWindowProviderServiceLifecycle()
237 final Rect maxBounds = wm.getMaximumWindowMetrics().getBounds(); in testWindowProviderServiceLifecycle()
259 .that(winConfig.getBounds()).isEqualTo(currentBounds); in assertBoundsMatches()
264 final Rect currentWindowBounds = wm.getCurrentWindowMetrics().getBounds(); in assertBoundsMatches()
265 final Rect maxWindowBounds = wm.getMaximumWindowMetrics().getBounds(); in assertBoundsMatches()
/cts/tests/pdf/module/src/android/graphics/pdf/cts/module/
DPdfPageTextContentTest.java50 assertThat(unparceled.getBounds().isEmpty()).isTrue(); in textContent_unboundedText_parcelTest()
61 assertThat(unparceled.getBounds()).isEqualTo(MOCK_BOUNDS); in textContent_boundedText_parcelTest()
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/extensions/util/
DExtensionsUtil.java270 final Rect oldBounds = d.getBounds(); in assertEqualWindowLayoutInfo()
299 || !portraitDisplayFeature.getBounds().equals( in assertEqualWindowLayoutInfo()
300 landscapeDisplayFeature.getBounds())) { in assertEqualWindowLayoutInfo()
344 final Rect r = f.getBounds(); in getMutualDisplayFeatures()
348 .filter(d -> otherOrientationBounds.contains(d.getBounds())) in getMutualDisplayFeatures()
/cts/tests/tests/preference/src/android/preference/cts/
DDialogPreferenceTest.java57 assertEquals(drawableExp.getBounds(), drawable.getBounds()); in testGetDialogIcon()
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/embedding/
DActivityEmbeddingPlaceholderTests.java186 windowMetrics.getBounds().width() >= taskWidth in testPlaceholderFinishedWhenTaskWidthDecreased()
187 && windowMetrics.getBounds().height() >= taskHeight) in testPlaceholderFinishedWhenTaskWidthDecreased()
233 windowMetrics.getBounds().width() >= splitTaskWidth in testPlaceholderLaunchedWhenTaskWidthIncreased()
234 && windowMetrics.getBounds().height() in testPlaceholderLaunchedWhenTaskWidthIncreased()
276 windowMetrics.getBounds().width() >= taskWidth in testStickyPlaceholder()
277 && windowMetrics.getBounds().height() >= taskHeight) in testStickyPlaceholder()
/cts/tests/framework/base/windowmanager/src/android/server/wm/window/
DWindowMetricsActivityTests.java247 () -> currentMetrics.get().getBounds().equals(listener.getLayoutBounds())) in assertMetricsMatchesLayout()
251 + "metrics is " + currentMetrics.get().getBounds()))); in assertMetricsMatchesLayout()
309 final Rect maxBounds = windowManager.getMaximumWindowMetrics().getBounds(); in assertMetricsValidityForNonresizableActivity()
318 activityContainer.getFullConfiguration().windowConfiguration.getBounds(); in assertMetricsValidityForNonresizableActivity()
333 return tda.getFullConfiguration().windowConfiguration.getBounds(); in getTaskDisplayAreaBounds()
DWindowPolicyTests.java88 activity.getResources().getConfiguration().windowConfiguration.getBounds(), in assertFillWindowBounds()
92 activity.getResources().getConfiguration().windowConfiguration.getBounds(), in assertFillWindowBounds()
187 activity.getResources().getConfiguration().windowConfiguration.getBounds()); in testOptOutEdgeToEdgeAppBounds()
207 activity.getResources().getConfiguration().windowConfiguration.getBounds()); in testOptOutEdgeToEdgeDisplayMetrics()
DWindowMetricsTest.java50 assertThat(windowMetrics.getBounds()).isEqualTo(bounds); in testConstructor()
/cts/tests/app/app/src/android/app/stubs/
DOrientationTestUtils.java62 final Rect bounds = activity.getWindowManager().getCurrentWindowMetrics().getBounds(); in getOrientations()
83 final Rect bounds = activity.getWindowManager().getCurrentWindowMetrics().getBounds(); in isCloseToSquareBounds()
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/area/
DExtensionRearDisplayTest.java236 if (!rearDisplayWindowMetrics.getBounds().equals(initialWindowMetrics.getBounds())) { in testStartAndEndRearDisplaySession()
246 waitAndAssert(() -> initialWindowMetrics.getBounds().equals( in testStartAndEndRearDisplaySession()
247 mActivity.getWindowManager().getCurrentWindowMetrics().getBounds())); in testStartAndEndRearDisplaySession()
255 if (!rearDisplayWindowMetrics.getBounds().equals(initialWindowMetrics.getBounds())) { in testStartAndEndRearDisplaySession()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityMagnificationTest.java235 final Rect bounds = region.getBounds(); in testSetScaleAndCenter()
264 final Rect rect = controller.getMagnificationRegion().getBounds(); in testSetMagnificationConfig_expectedConfig()
288 final Rect bounds = region.getBounds(); in testSetMagnificationConfig_expectedConfig()
307 final Rect bounds = controller.getMagnificationRegion().getBounds(); in testSetConfigWithDefaultModeAndCenter_expectedConfig()
349 final Rect bounds = controller.getMagnificationRegion().getBounds(); in testSetConfigWithActivatedFalse_expectedConfig()
411 final Rect bounds = controller.getMagnificationRegion().getBounds(); in testSetFullScreenConfigWithDefaultValues_windowModeEnabled_expectedConfig()
468 final Rect bounds = controller.getMagnificationRegion().getBounds(); in testResetCurrentMagnification_fullScreenEnabled_expectedConfig()
501 final Rect bounds = region.getBounds(); in testSetMagnificationConfig_legacyApiExpectedResult()
530 final Rect bounds = controller.getMagnificationRegion().getBounds(); in testSetWindowModeConfig_connectionReset_expectedResult()
666 final Rect bounds = region.getBounds(); in testGetMagnificationConfig_setConfigByLegacyApi_expectedResult()
[all …]
/cts/tests/surfacecontrol/surfacevalidator/src/android/view/cts/surfacevalidator/
DBitmapPixelChecker.java103 Rect bounds = getBounds(swBitmap, insets); in validateScreenshot()
125 Rect bounds = getBounds(swBitmap, insets); in validateScreenshot()
144 private static Rect getBounds(Bitmap swBitmap, Insets insets) { in getBounds() method in BitmapPixelChecker
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/layout/
DExtensionWindowLayoutComponentTest.java290 final Rect featureRect = displayFeature.getBounds(); in testWindowLayoutComponent_providesWindowLayoutFromActivity()
328 final Rect featureRect = displayFeature.getBounds(); in testWindowLayoutComponent_providesWindowLayoutFromWindowContext()
331 assertTrue(currentMetrics.getBounds().contains(featureRect)); in testWindowLayoutComponent_providesWindowLayoutFromWindowContext()
423 windowLayoutInit.getDisplayFeatures().get(i).getBounds(); in testGetWindowLayoutInfo_displayMetricsChanged_windowLayoutUpdates()
425 windowLayoutUpdated.getDisplayFeatures().get(i).getBounds(); in testGetWindowLayoutInfo_displayMetricsChanged_windowLayoutUpdates()
522 WindowManager.class).getCurrentWindowMetrics().getBounds(); in testWindowLayoutComponent_updatesWindowLayoutFromContextAfterRotation()
548 .getBounds(); in testWindowLayoutComponent_updatesWindowLayoutFromContextAfterRotation()
647 if (extensionFoldingFeature.getBounds().equals(sidecarDisplayFeature.getRect()) in testSidecarHasSameDisplayFeatures()
707 assertEquals(foldBoundaries, foldingFeatureInstance.getBounds()); in testFoldingFeature_publicApi()

12345