Home
last modified time | relevance | path

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

/cts/tests/tests/graphics/src/android/graphics/cts/
DOutlineTest.java38 Outline outline = new Outline(); in testDefaults() local
40 assertEquals(0.0f, outline.getAlpha(), 0.0f); in testDefaults()
41 assertTrue(outline.isEmpty()); in testDefaults()
43 assertFalse(outline.getRect(outRect)); in testDefaults()
44 assertTrue(outline.getRadius() < 0); in testDefaults()
63 Outline outline = new Outline();
65 outline.setAlpha(1.0f);
66 assertEquals(1.0f, outline.getAlpha(), 0.0f);
68 outline.setAlpha(0.0f);
69 assertEquals(0.0f, outline.getAlpha(), 0.0f);
[all …]
/cts/tests/tests/view/src/android/view/cts/
DViewOutlineProviderTest.java62 Outline outline = new Outline(); in testBackground() local
63 outline.setAlpha(1.0f); in testBackground()
67 ViewOutlineProvider.BACKGROUND.getOutline(view, outline); in testBackground()
68 outline.getRect(queryRect); in testBackground()
70 assertEquals(0f, outline.getAlpha(), 0f); in testBackground()
75 public void getOutline(@NonNull Outline outline) { in testBackground()
76 outline.setRect(1, 2, 3, 4); in testBackground()
77 outline.setAlpha(0.123f); in testBackground()
80 ViewOutlineProvider.BACKGROUND.getOutline(view, outline); in testBackground()
81 outline.getRect(queryRect); in testBackground()
[all …]
/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/
DRoundRectShapeTest.java111 Outline outline = new Outline(); in testGetOutline() local
117 shape.getOutline(outline); in testGetOutline()
118 assertTrue(outline.isEmpty()); in testGetOutline()
119 assertTrue(outline.getRadius() < 0); in testGetOutline()
120 assertFalse(outline.getRect(rect)); in testGetOutline()
123 shape.getOutline(outline); in testGetOutline()
124 assertFalse(outline.isEmpty()); in testGetOutline()
125 assertEquals(0.0f, outline.getRadius(), 0.0f); in testGetOutline()
126 assertTrue(outline.getRect(rect)); in testGetOutline()
134 shape.getOutline(outline); in testGetOutline()
[all …]
DOvalShapeTest.java85 Outline outline = new Outline(); in testGetOutline() local
91 shape.getOutline(outline); in testGetOutline()
92 assertTrue(outline.isEmpty()); in testGetOutline()
93 assertTrue(outline.getRadius() < 0); in testGetOutline()
94 assertFalse(outline.getRect(rect)); in testGetOutline()
98 shape.getOutline(outline); in testGetOutline()
99 assertFalse(outline.isEmpty()); in testGetOutline()
100 assertEquals(50.0f, outline.getRadius(), 0.01f); in testGetOutline()
101 assertTrue(outline.getRect(rect)); in testGetOutline()
109 shape.getOutline(outline); in testGetOutline()
[all …]
DRectShapeTest.java113 Outline outline = new Outline(); in testGetOutline() local
118 shape.getOutline(outline); in testGetOutline()
119 assertTrue(outline.isEmpty()); in testGetOutline()
120 assertTrue(outline.getRadius() < 0); in testGetOutline()
121 assertFalse(outline.getRect(rect)); in testGetOutline()
125 shape.getOutline(outline); in testGetOutline()
126 assertFalse(outline.isEmpty()); in testGetOutline()
127 assertEquals(0.0f, outline.getRadius(), 0.0f); in testGetOutline()
128 assertTrue(outline.getRect(rect)); in testGetOutline()
DArcShapeTest.java101 Outline outline = new Outline(); in testGetOutline() local
105 outline.setEmpty(); in testGetOutline()
107 shape.getOutline(outline); in testGetOutline()
108 assertTrue(outline.isEmpty()); in testGetOutline()
DPathShapeTest.java117 Outline outline = new Outline(); in testGetOutline() local
121 outline.setEmpty(); in testGetOutline()
123 shape.getOutline(outline); in testGetOutline()
124 assertTrue(outline.isEmpty()); in testGetOutline()
DShapeTest.java129 Outline outline = new Outline(); in testGetOutline() local
132 shape.getOutline(outline); in testGetOutline()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DViewClippingTests.java54 public void getOutline(View view, Outline outline) {
55 outline.setRect(OUTLINE_RECT);
121 public void getOutline(View view, Outline outline) { in testOvalOutlineClip()
125 outline.setConvexPath(mPath); in testOvalOutlineClip()
126 assertFalse(outline.canClip()); in testOvalOutlineClip()
144 public void getOutline(View view, Outline outline) { in testConcaveOutlineClip()
150 outline.setConvexPath(mPath); in testConcaveOutlineClip()
151 assertFalse(outline.canClip()); in testConcaveOutlineClip()
DHardwareRendererTests.kt388 val outline = Outline() in testSpotShadowSetup() constant
389 outline.setRect(Rect(0, 0, childRect.width(), childRect.height())) in testSpotShadowSetup()
390 outline.alpha = 1f in testSpotShadowSetup()
391 childNode.setOutline(outline) in testSpotShadowSetup()