Home
last modified time | relevance | path

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

/cts/tests/tests/graphics/src/android/graphics/cts/
DOutlineTest.java42 Rect outRect = new Rect(); in testDefaults() local
43 assertFalse(outline.getRect(outRect)); in testDefaults()
99 Rect outRect = new Rect();
112 assertTrue(outline.getRect(outRect));
113 assertEquals(new Rect(10, 10, 20, 20), outRect);
118 assertTrue(outline.getRect(outRect));
119 assertEquals(new Rect(10, 10, 20, 20), outRect);
126 Rect outRect = new Rect();
139 assertTrue(outline.getRect(outRect));
140 assertEquals(new Rect(10, 10, 20, 20), outRect);
[all …]
/cts/tests/tests/view/src/android/view/cts/
DActionModeCallback2Test.java59 Rect outRect = new Rect(); in testCallbackOnGetContentRectDefaultWithView() local
61 callback.onGetContentRect(null, view, outRect); in testCallbackOnGetContentRectDefaultWithView()
63 assertEquals(0, outRect.top); in testCallbackOnGetContentRectDefaultWithView()
64 assertEquals(0, outRect.left); in testCallbackOnGetContentRectDefaultWithView()
65 assertEquals(VIEW_HEIGHT, outRect.bottom); in testCallbackOnGetContentRectDefaultWithView()
66 assertEquals(VIEW_WIDTH, outRect.right); in testCallbackOnGetContentRectDefaultWithView()
71 Rect outRect = new Rect(); in testCallbackOnGetContentRectDefaultWithoutView() local
73 callback.onGetContentRect(null, null, outRect); in testCallbackOnGetContentRectDefaultWithoutView()
75 assertEquals(0, outRect.top); in testCallbackOnGetContentRectDefaultWithoutView()
76 assertEquals(0, outRect.left); in testCallbackOnGetContentRectDefaultWithoutView()
[all …]
DViewTest.java790 Rect outRect = new Rect(); in testGetHitRect() local
792 mockView.getHitRect(outRect); in testGetHitRect()
793 assertEquals(0, outRect.left); in testGetHitRect()
794 assertEquals(0, outRect.top); in testGetHitRect()
795 assertEquals(mockView.getWidth(), outRect.right); in testGetHitRect()
796 assertEquals(mockView.getHeight(), outRect.bottom); in testGetHitRect()
939 Rect outRect = new Rect(); in testGetDrawingRect() local
941 view.getDrawingRect(outRect); in testGetDrawingRect()
942 assertEquals(0, outRect.left); in testGetDrawingRect()
943 assertEquals(0, outRect.top); in testGetDrawingRect()
[all …]
/cts/tests/tests/text/src/android/text/cts/
DLayoutDrawOrderTest.java84 Rect outRect = invocation.getArgument(0); in prepareMockCanvas()
85 outRect.top = 0; in prepareMockCanvas()
86 outRect.left = 0; in prepareMockCanvas()
87 outRect.right = CANVAS_WIDTH; in prepareMockCanvas()
88 outRect.bottom = CANVAS_HEIGHT; in prepareMockCanvas()
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewSearchResultHighlightTest.java76 Rect outRect = invocation.getArgument(0); in prepareMockCanvas()
77 outRect.top = 0; in prepareMockCanvas()
78 outRect.left = 0; in prepareMockCanvas()
79 outRect.right = textView.getMeasuredWidth(); in prepareMockCanvas()
80 outRect.bottom = textView.getMeasuredHeight(); in prepareMockCanvas()
DTextViewHighlightTest.java77 Rect outRect = invocation.getArgument(0); in prepareMockCanvas()
78 outRect.top = 0; in prepareMockCanvas()
79 outRect.left = 0; in prepareMockCanvas()
80 outRect.right = textView.getMeasuredWidth(); in prepareMockCanvas()
81 outRect.bottom = textView.getMeasuredHeight(); in prepareMockCanvas()
DTextViewHandwritingGestureTest.java2138 Rect outRect = invocation.getArgument(0); in prepareMockCanvas()
2139 outRect.top = 0; in prepareMockCanvas()
2140 outRect.left = 0; in prepareMockCanvas()
2141 outRect.right = mEditText.getMeasuredWidth(); in prepareMockCanvas()
2142 outRect.bottom = mEditText.getMeasuredHeight(); in prepareMockCanvas()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DGestureNavSwitchHelper.java79 private void insetsToRect(Insets insets, Rect outRect) { in insetsToRect() argument
80 outRect.set(insets.left, insets.top, insets.right, insets.bottom); in insetsToRect()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableContainerTest.java277 Rect outRect = new Rect(); in testSetHotspotBounds() local
278 mDrawableContainer.getHotspotBounds(outRect); in testSetHotspotBounds()
279 assertEquals(bounds, outRect); in testSetHotspotBounds()
296 Rect outRect = new Rect(); in testGetHotspotBounds() local
297 mDrawableContainer.getHotspotBounds(outRect); in testGetHotspotBounds()
298 assertEquals(bounds, outRect); in testGetHotspotBounds()
DLayerDrawableTest.java539 Rect outRect = new Rect(); in testSetHotspotBounds() local
540 layerDrawable.getHotspotBounds(outRect); in testSetHotspotBounds()
541 assertTrue(bounds.equals(outRect)); in testSetHotspotBounds()
553 Rect outRect = new Rect(); in testGetHotspotBounds() local
554 layerDrawable.getHotspotBounds(outRect); in testGetHotspotBounds()
555 assertTrue(bounds.equals(outRect)); in testGetHotspotBounds()