Home
last modified time | relevance | path

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

/cts/tests/tests/graphics/src/android/graphics/cts/
DOutlineTest.java41 Rect outRect = new Rect(); in testDefaults() local
42 assertFalse(outline.getRect(outRect)); in testDefaults()
98 Rect outRect = new Rect();
111 assertTrue(outline.getRect(outRect));
112 assertEquals(new Rect(10, 10, 20, 20), outRect);
117 assertTrue(outline.getRect(outRect));
118 assertEquals(new Rect(10, 10, 20, 20), outRect);
125 Rect outRect = new Rect();
138 assertTrue(outline.getRect(outRect));
139 assertEquals(new Rect(10, 10, 20, 20), outRect);
[all …]
/cts/tests/tests/view/src/android/view/cts/
DActionModeCallback2Test.java56 Rect outRect = new Rect(); in testCallbackOnGetContentRectDefaultWithView() local
58 callback.onGetContentRect(null, view, outRect); in testCallbackOnGetContentRectDefaultWithView()
60 assertEquals(0, outRect.top); in testCallbackOnGetContentRectDefaultWithView()
61 assertEquals(0, outRect.left); in testCallbackOnGetContentRectDefaultWithView()
62 assertEquals(VIEW_HEIGHT, outRect.bottom); in testCallbackOnGetContentRectDefaultWithView()
63 assertEquals(VIEW_WIDTH, outRect.right); in testCallbackOnGetContentRectDefaultWithView()
68 Rect outRect = new Rect(); in testCallbackOnGetContentRectDefaultWithoutView() local
70 callback.onGetContentRect(null, null, outRect); in testCallbackOnGetContentRectDefaultWithoutView()
72 assertEquals(0, outRect.top); in testCallbackOnGetContentRectDefaultWithoutView()
73 assertEquals(0, outRect.left); in testCallbackOnGetContentRectDefaultWithoutView()
[all …]
DViewTest.java577 Rect outRect = new Rect(); in testGetHitRect() local
579 mockView.getHitRect(outRect); in testGetHitRect()
580 assertEquals(0, outRect.left); in testGetHitRect()
581 assertEquals(0, outRect.top); in testGetHitRect()
582 assertEquals(mockView.getWidth(), outRect.right); in testGetHitRect()
583 assertEquals(mockView.getHeight(), outRect.bottom); in testGetHitRect()
726 Rect outRect = new Rect(); in testGetDrawingRect() local
728 view.getDrawingRect(outRect); in testGetDrawingRect()
729 assertEquals(0, outRect.left); in testGetDrawingRect()
730 assertEquals(0, outRect.top); in testGetDrawingRect()
[all …]
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableContainerTest.java273 Rect outRect = new Rect(); in testSetHotspotBounds() local
274 mDrawableContainer.getHotspotBounds(outRect); in testSetHotspotBounds()
275 assertEquals(bounds, outRect); in testSetHotspotBounds()
292 Rect outRect = new Rect(); in testGetHotspotBounds() local
293 mDrawableContainer.getHotspotBounds(outRect); in testGetHotspotBounds()
294 assertEquals(bounds, outRect); in testGetHotspotBounds()
DLayerDrawableTest.java538 Rect outRect = new Rect(); in testSetHotspotBounds() local
539 layerDrawable.getHotspotBounds(outRect); in testSetHotspotBounds()
540 assertTrue(bounds.equals(outRect)); in testSetHotspotBounds()
552 Rect outRect = new Rect(); in testGetHotspotBounds() local
553 layerDrawable.getHotspotBounds(outRect); in testGetHotspotBounds()
554 assertTrue(bounds.equals(outRect)); in testGetHotspotBounds()