Home
last modified time | relevance | path

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

12

/cts/tests/tests/graphics/src/android/graphics/cts/
DRegionTest.java136 assertEquals(1, mRegion.getBounds().left); in testSet1()
137 assertEquals(2, mRegion.getBounds().top); in testSet1()
138 assertEquals(3, mRegion.getBounds().right); in testSet1()
139 assertEquals(4, mRegion.getBounds().bottom); in testSet1()
147 assertEquals(1, mRegion.getBounds().left); in testSet2()
148 assertEquals(2, mRegion.getBounds().top); in testSet2()
149 assertEquals(3, mRegion.getBounds().right); in testSet2()
150 assertEquals(4, mRegion.getBounds().bottom); in testSet2()
157 assertEquals(1, mRegion.getBounds().left); in testSet3()
158 assertEquals(2, mRegion.getBounds().top); in testSet3()
[all …]
DNinePatchTest.java178 Rect regionBounds = region.getBounds(); in testGetTransparentRegion()
184 regionBounds = region.getBounds(); in testGetTransparentRegion()
196 regionBounds = region.getBounds(); in testGetTransparentRegion()
201 regionBounds = region.getBounds(); in testGetTransparentRegion()
/cts/tests/tests/text/src/android/text/style/cts/
DDrawableMarginSpanTest.java58 assertEquals(0, drawable.getBounds().top); in testDrawLeadingMargin()
59 assertEquals(0, drawable.getBounds().bottom); in testDrawLeadingMargin()
60 assertEquals(0, drawable.getBounds().left); in testDrawLeadingMargin()
61 assertEquals(0, drawable.getBounds().right); in testDrawLeadingMargin()
74 assertEquals(0, drawable.getBounds().top); in testDrawLeadingMargin()
75 assertEquals(0 + drawable.getIntrinsicHeight(), drawable.getBounds().bottom); in testDrawLeadingMargin()
76 assertEquals(x, drawable.getBounds().left); in testDrawLeadingMargin()
77 assertEquals(x + drawable.getIntrinsicWidth(), drawable.getBounds().right); in testDrawLeadingMargin()
DDynamicDrawableSpanTest.java51 Rect rect = dynamicDrawableSpan.getDrawable().getBounds(); in testGetSize()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DScaleDrawableTest.java351 assertEquals(expected.left, mockDrawable.getBounds().left); in testOnBoundsChange()
352 assertEquals(expected.top, mockDrawable.getBounds().top); in testOnBoundsChange()
353 assertEquals(expected.right, mockDrawable.getBounds().right); in testOnBoundsChange()
354 assertEquals(expected.bottom, mockDrawable.getBounds().bottom); in testOnBoundsChange()
368 assertEquals(expected.left, mockDrawable.getBounds().left); in testOnBoundsChange()
369 assertEquals(expected.top, mockDrawable.getBounds().top); in testOnBoundsChange()
370 assertEquals(expected.right, mockDrawable.getBounds().right); in testOnBoundsChange()
371 assertEquals(expected.bottom, mockDrawable.getBounds().bottom); in testOnBoundsChange()
379 assertEquals(bounds.left, mockDrawable.getBounds().left); in testOnBoundsChange()
380 assertEquals(bounds.top, mockDrawable.getBounds().top); in testOnBoundsChange()
[all …]
DClipDrawableTest.java213 assertEquals(0, mockDrawable.getBounds().left); in testOnBoundsChange()
214 assertEquals(0, mockDrawable.getBounds().top); in testOnBoundsChange()
215 assertEquals(0, mockDrawable.getBounds().bottom); in testOnBoundsChange()
216 assertEquals(0, mockDrawable.getBounds().right); in testOnBoundsChange()
218 assertEquals(10, mockDrawable.getBounds().left); in testOnBoundsChange()
219 assertEquals(10, mockDrawable.getBounds().top); in testOnBoundsChange()
220 assertEquals(100, mockDrawable.getBounds().bottom); in testOnBoundsChange()
221 assertEquals(100, mockDrawable.getBounds().right); in testOnBoundsChange()
DDrawableWrapperTest.java333 assertEquals(bounds.left, mockDrawable.getBounds().left); in testOnBoundsChange()
334 assertEquals(bounds.top, mockDrawable.getBounds().top); in testOnBoundsChange()
335 assertEquals(bounds.right, mockDrawable.getBounds().right); in testOnBoundsChange()
336 assertEquals(bounds.bottom, mockDrawable.getBounds().bottom); in testOnBoundsChange()
338 bounds = mockDrawable.getBounds(); in testOnBoundsChange()
DLayerDrawableTest.java744 assertEquals(0, mockDrawable1.getBounds().left); in testSetBounds()
745 assertEquals(0, mockDrawable1.getBounds().top); in testSetBounds()
746 assertEquals(0, mockDrawable1.getBounds().right); in testSetBounds()
747 assertEquals(0, mockDrawable1.getBounds().bottom); in testSetBounds()
748 assertEquals(0, mockDrawable2.getBounds().left); in testSetBounds()
749 assertEquals(0, mockDrawable2.getBounds().top); in testSetBounds()
750 assertEquals(0, mockDrawable2.getBounds().right); in testSetBounds()
751 assertEquals(0, mockDrawable2.getBounds().bottom); in testSetBounds()
757 assertEquals(bounds.left + inset1.left, mockDrawable1.getBounds().left); in testSetBounds()
758 assertEquals(bounds.top + inset1.top, mockDrawable1.getBounds().top); in testSetBounds()
[all …]
DDrawableContainerTest.java320 assertEquals(new Rect(), dr.getBounds()); in testOnBoundsChange()
323 assertEquals(new Rect(1, 1, 1, 1), dr.getBounds()); in testOnBoundsChange()
328 assertEquals(new Rect(1, 1, 1, 1), dr.getBounds()); in testOnBoundsChange()
DDrawableTest.java360 Rect r = mockDrawable.getBounds(); in testAccessBounds()
367 r = mockDrawable.getBounds(); in testAccessBounds()
DInsetDrawableTest.java263 Rect bounds = d.getBounds(); in testOnBoundsChange()
DNinePatchDrawableTest.java314 assertEquals(new Rect(1, 1, 7, 7), r.getBounds()); in testGetTransparentRegion()
/cts/hostsidetests/services/activitymanager/src/android/server/cts/
DActivityAndWindowManagersState.java380 final Rectangle aStackBounds = aStack.getBounds(); in stackBoundsInAMAndWMAreEqual()
381 final Rectangle wStackBounds = wStack.getBounds(); in stackBoundsInAMAndWMAreEqual()
407 mAmState.getTaskByActivityName(activityName).getBounds()); in assertDockedTaskBounds()
419 final Rectangle aStackBounds = aStack.getBounds(); in assertValidBounds()
420 final Rectangle wStackBounds = wStack.getBounds(); in assertValidBounds()
440 final Rectangle aTaskBounds = aTask.getBounds(); in assertValidBounds()
441 final Rectangle wTaskBounds = wTask.getBounds(); in assertValidBounds()
DActivityManagerFreeformStackTests.java54 mAmWmState.getAmState().getTaskByActivityName(TEST_ACTIVITY).getBounds()); in testFreeformWindowManagementSupport()
DActivityManagerDockedStackTests.java294 mAmWmState.getAmState().getStackById(DOCKED_STACK_ID).getBounds()); in testResizeDockedStack()
304 mAmWmState.getWmState().getStack(FULLSCREEN_WORKSPACE_STACK_ID).getBounds(); in testActivityLifeCycleOnResizeDockedStack()
312 mAmWmState.getWmState().getStack(DOCKED_STACK_ID).getBounds(); in testActivityLifeCycleOnResizeDockedStack()
DActivityManagerState.java602 Rectangle getBounds() { in getBounds() method in ActivityManagerState.ActivityContainer
DWindowManagerState.java486 Rectangle getBounds() { in getBounds() method in WindowManagerState.WindowContainer
/cts/tests/tests/preference2/src/android/preference2/cts/
DDialogPreferenceTest.java59 assertEquals(drawableExp.getBounds(), drawable.getBounds()); in testGetDialogIcon()
/cts/tests/tests/widget/src/android/widget/cts/
DFrameLayoutTest.java95 final Rect rect = foreground.getBounds(); in testSetForegroundGravity()
120 Rect rect2 = newForeground.getBounds(); in testSetForegroundGravity()
136 Region region = new Region(foreground.getBounds()); in testGatherTransparentRegion()
142 region = new Region(foreground.getBounds()); in testGatherTransparentRegion()
306 Rect rect = drawable.getBounds(); in assertCenterAligned()
DListViewTest.java144 final Rect r = d.getBounds(); in testAccessDividerHeight()
347 final Rect r = defaultDrawable.getBounds(); in testAccessDivider()
360 assertEquals(d.getBounds().height(), mListView.getDividerHeight()); in testAccessDivider()
365 assertEquals(10, d.getBounds().height()); in testAccessDivider()
DAbsListViewTest.java358 final Rect r = drawable.getBounds(); in testAccessSelector()
/cts/tests/camera/src/android/hardware/camera2/cts/
DCaptureRequestTest.java1731 mCollector.expectNotNull("Face rectangle shouldn't be null", face.getBounds());
1744 + "shouldn't be null", face.getBounds() != null);
1748 faceBound = face.getBounds();
/cts/tests/camera/src/android/hardware/camera2/cts/helpers/
DCameraMetadataGetter.java292 faceObj.put("bounds", serializeRect(face.getBounds())); in serializeFace()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsSerializer.java116 faceObj.put("bounds", serializeRect(face.getBounds())); in serializeFace()
/cts/tests/tests/media/src/android/media/cts/
DMediaPlayerTest.java1696 Rect bounds = text.getBounds();

12