Home
last modified time | relevance | path

Searched refs:dr0 (Results 1 – 3 of 3) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableContainerStateTest.java70 Drawable dr0 = spy(new ColorDrawable(Color.RED)); in testAddChild() local
71 dr0.setVisible(true, false); in testAddChild()
72 assertTrue(dr0.isVisible()); in testAddChild()
73 assertEquals(0, mDrawableContainerState.addChild(dr0)); in testAddChild()
78 assertSame(dr0, children[0]); in testAddChild()
80 assertFalse(dr0.isVisible()); in testAddChild()
90 assertSame(dr0, children[0]); in testAddChild()
110 Drawable dr0 = spy(new ColorDrawable(Color.RED)); in testIsStateful() local
111 doReturn(false).when(dr0).isStateful(); in testIsStateful()
112 mDrawableContainerState.addChild(dr0); in testIsStateful()
[all …]
DDrawableContainerTest.java155 MockDrawable dr0 = new MockDrawable(); in testGetChangingConfigurations() local
156 dr0.setChangingConfigurations(0x001); in testGetChangingConfigurations()
157 mDrawableContainerState.addChild(dr0); in testGetChangingConfigurations()
162 assertSame(dr0, mDrawableContainer.getCurrent()); in testGetChangingConfigurations()
182 Drawable dr0 = spy(new ColorDrawable(Color.BLUE)); in testGetPadding() local
187 }).when(dr0).getPadding(any()); in testGetPadding()
188 mDrawableContainerState.addChild(dr0); in testGetPadding()
197 assertSame(dr0, mDrawableContainer.getCurrent()); in testGetPadding()
385 Drawable dr0 = spy(new ColorDrawable(Color.YELLOW)); in testIsStateful() local
386 doReturn(true).when(dr0).isStateful(); in testIsStateful()
[all …]
DLayerDrawableTest.java475 Drawable dr0 = new IntrinsicSizeDrawable(20, 30, new Rect(1, 2, 3, 4)); in testAccessPaddingMode() local
477 LayerDrawable layerDrawable = new LayerDrawable(new Drawable[] { dr0, dr1 }); in testAccessPaddingMode()