Home
last modified time | relevance | path

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

12

/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.java219 Rect regionBounds = region.getBounds(); in testGetTransparentRegion()
225 regionBounds = region.getBounds(); in testGetTransparentRegion()
237 regionBounds = region.getBounds(); in testGetTransparentRegion()
242 regionBounds = region.getBounds(); in testGetTransparentRegion()
/cts/tests/tests/text/src/android/text/style/cts/
DDrawableMarginSpanTest.java78 assertEquals(0, mDrawable.getBounds().top); in testDrawLeadingMargin()
79 assertEquals(0, mDrawable.getBounds().bottom); in testDrawLeadingMargin()
80 assertEquals(0, mDrawable.getBounds().left); in testDrawLeadingMargin()
81 assertEquals(0, mDrawable.getBounds().right); in testDrawLeadingMargin()
94 assertEquals(0, mDrawable.getBounds().top); in testDrawLeadingMargin()
95 assertEquals(mDrawable.getIntrinsicHeight(), mDrawable.getBounds().bottom); in testDrawLeadingMargin()
96 assertEquals(x, mDrawable.getBounds().left); in testDrawLeadingMargin()
97 assertEquals(x + mDrawable.getIntrinsicWidth(), mDrawable.getBounds().right); in testDrawLeadingMargin()
DDynamicDrawableSpanTest.java70 Rect rect = dynamicDrawableSpan.getDrawable().getBounds(); in testGetSize()
/cts/tests/tests/text/src/android/text/cts/
DPrecomputedTextTest.java469 PrecomputedText.create("", param).getBounds(0, 0, rect); in testGetBounds()
473 PrecomputedText.create("I", param).getBounds(0, 1, rect); in testGetBounds()
477 PrecomputedText.create("I", param).getBounds(1, 1, rect); in testGetBounds()
481 PrecomputedText.create("IV", param).getBounds(0, 0, rect); in testGetBounds()
485 PrecomputedText.create("IV", param).getBounds(0, 0, rect); in testGetBounds()
489 PrecomputedText.create("IV", param).getBounds(1, 1, rect); in testGetBounds()
493 PrecomputedText.create("IV", param).getBounds(2, 2, rect); in testGetBounds()
497 PrecomputedText.create("IV", param).getBounds(0, 1, rect); in testGetBounds()
501 PrecomputedText.create("IV", param).getBounds(1, 2, rect); in testGetBounds()
505 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()
DDrawableWrapperTest.java352 assertEquals(bounds.left, mockDrawable.getBounds().left); in testOnBoundsChange()
353 assertEquals(bounds.top, mockDrawable.getBounds().top); in testOnBoundsChange()
354 assertEquals(bounds.right, mockDrawable.getBounds().right); in testOnBoundsChange()
355 assertEquals(bounds.bottom, mockDrawable.getBounds().bottom); in testOnBoundsChange()
357 bounds = mockDrawable.getBounds(); in testOnBoundsChange()
DLayerDrawableTest.java762 assertEquals(0, mockDrawable1.getBounds().left); in testSetBounds()
763 assertEquals(0, mockDrawable1.getBounds().top); in testSetBounds()
764 assertEquals(0, mockDrawable1.getBounds().right); in testSetBounds()
765 assertEquals(0, mockDrawable1.getBounds().bottom); in testSetBounds()
766 assertEquals(0, mockDrawable2.getBounds().left); in testSetBounds()
767 assertEquals(0, mockDrawable2.getBounds().top); in testSetBounds()
768 assertEquals(0, mockDrawable2.getBounds().right); in testSetBounds()
769 assertEquals(0, mockDrawable2.getBounds().bottom); in testSetBounds()
775 assertEquals(bounds.left + inset1.left, mockDrawable1.getBounds().left); in testSetBounds()
776 assertEquals(bounds.top + inset1.top, mockDrawable1.getBounds().top); in testSetBounds()
[all …]
DAdaptiveIconDrawableTest.java306 assertEquals("Modified first loaded instance", 100, first.getBounds().width()); in testMutate()
307 assertEquals("Did not modify pre-mutate() instance", 0, pre.getBounds().width()); in testMutate()
311 assertEquals("Did not modify post-mutate() instance", 0, post.getBounds().width()); in testMutate()
DInsetDrawableTest.java287 Rect bounds = mPassDrawable.getBounds(); in testOnBoundsChange_dimension()
308 Rect bounds = mPassDrawable.getBounds(); in testOnBoundsChange_fraction()
338 r = mPassDrawable.getBounds(); in testIsBoundsAndIntrinsicSizeInverse()
/cts/tests/tests/graphics/src/android/graphics/text/cts/
DMeasuredTextTest.java178 mt.getBounds(0, 0, out); in testGetBounds()
180 mt.getBounds(0, 1, out); in testGetBounds()
182 mt.getBounds(0, 2, out); in testGetBounds()
184 mt.getBounds(1, 2, out); in testGetBounds()
186 mt.getBounds(1, 3, out); in testGetBounds()
197 .getBounds(-1, 0, rect); in testGetBounds_StartSmallerThanZero()
207 .getBounds(text.length() + 1, 0, rect); in testGetBounds_StartLargerThanLength()
217 .getBounds(0, -1, rect); in testGetBounds_EndSmallerThanZero()
227 .getBounds(0, text.length() + 1, rect); in testGetBounds_EndLargerThanLength()
237 .getBounds(1, 0, rect); in testGetBounds_StartLargerThanEnd()
[all …]
/cts/tests/tests/preference/src/android/preference/cts/
DDialogPreferenceTest.java57 assertEquals(drawableExp.getBounds(), drawable.getBounds()); in testGetDialogIcon()
/cts/tests/tests/keystore/src/android/server/am/
DActivityAndWindowManagersState.java387 final Rect aStackBounds = aStack.getBounds(); in stackBoundsInAMAndWMAreEqual()
388 final Rect wStackBounds = wStack.getBounds(); in stackBoundsInAMAndWMAreEqual()
420 final Rect aStackBounds = aStack.getBounds(); in assertValidBounds()
421 final Rect wStackBounds = wStack.getBounds(); in assertValidBounds()
441 final Rect aTaskBounds = aTask.getBounds(); in assertValidBounds()
442 final Rect wTaskBounds = wTask.getBounds(); in assertValidBounds()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DFreeformWindowingModeTests.java81 mAmWmState.getAmState().getTaskByActivity(TEST_ACTIVITY).getBounds()); in testFreeformWindowManagementSupport()
104 task.getBounds()); in testNonResizeableActivityHasFullDisplayBounds()
/cts/tests/tests/widget/src/android/widget/cts/
DFrameLayoutTest.java115 final Rect rect = foreground.getBounds(); in testSetForegroundGravity()
134 Rect rect2 = newForeground.getBounds(); in testSetForegroundGravity()
150 Region region = new Region(foreground.getBounds()); in testGatherTransparentRegion()
155 region = new Region(foreground.getBounds()); in testGatherTransparentRegion()
311 Rect rect = drawable.getBounds(); in assertCenterAligned()
DSwitchTest.java202 Rect trackDrawableBounds = trackDrawable.getBounds(); in testAccessTrackDrawable()
211 trackDrawableBounds = trackDrawable.getBounds(); in testAccessTrackDrawable()
220 trackDrawableBounds = trackDrawable.getBounds(); in testAccessTrackDrawable()
231 trackDrawableBounds = trackDrawable.getBounds(); in testAccessTrackDrawable()
DCheckedTextViewTest.java319 checkMark.getBounds().width(), checkMark.getBounds().height(), false,
368 checkMark.getBounds().width(), checkMark.getBounds().height(), false, in testCheckMarkTintBlendMode()
DSpinnerTest.java403 dropDownBackground.getBounds().width(), dropDownBackground.getBounds().height(), in testDropDownBackgroundDropdownMode()
425 dropDownBackground.getBounds().width(), dropDownBackground.getBounds().height(), in testDropDownBackgroundDropdownMode()
DImageViewTest.java759 assertEquals(viewRect, mImageViewRegular.getDrawable().getBounds()); in testAnimateTransform()
765 assertEquals(bitmapRect, mImageViewRegular.getDrawable().getBounds()); in testAnimateTransform()
771 assertEquals(viewRect, mImageViewRegular.getDrawable().getBounds()); in testAnimateTransform()
784 assertEquals(bitmapRect, mImageViewRegular.getDrawable().getBounds()); in testAnimateTransformWithNullPassed()
789 assertEquals(viewRect, mImageViewRegular.getDrawable().getBounds()); in testAnimateTransformWithNullPassed()
795 assertEquals(bitmapRect, mImageViewRegular.getDrawable().getBounds()); in testAnimateTransformWithNullPassed()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DActivityAndWindowManagersState.java776 final Rect aStackBounds = aStack.getBounds(); in stackBoundsInAMAndWMAreEqual()
777 final Rect wStackBounds = wStack.getBounds(); in stackBoundsInAMAndWMAreEqual()
807 mAmState.getTaskByActivity(activityName).getBounds()); in assertDockedTaskBounds()
824 final Rect aStackBounds = aStack.getBounds(); in assertValidBounds()
825 final Rect wStackBounds = wStack.getBounds(); in assertValidBounds()
845 final Rect aTaskBounds = aTask.getBounds(); in assertValidBounds()
846 final Rect wTaskBounds = wTask.getBounds(); in assertValidBounds()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DMyDrawable.java48 sAutofilledBounds = getBounds(); in draw()
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/
DRegionVerifier.java47 Rect area = subRegionVerifier.region.getBounds(); in verify()
/cts/tests/app/src/android/app/cts/
DWallpaperColorsTest.java109 Assert.assertEquals(drawable.getBounds(), initialBounds); in fromDrawableDoesntMutateBounds()
/cts/tests/tests/transition/src/android/transition/cts/
DChangeImageTransformTest.java129 assertEquals(mImage.getBounds().width(), mImageView.getWidth() in testNullAnimatorKeepsImagePadding()
131 assertEquals(mImage.getBounds().height(), mImageView.getHeight() in testNullAnimatorKeepsImagePadding()

12