Home
last modified time | relevance | path

Searched refs:newDrawable (Results 1 – 13 of 13) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawable_ConstantStateTest.java49 assertEquals(null, cs.newDrawable()); in testNewDrawable()
50 verify(mock, times(1)).newDrawable(); in testNewDrawable()
53 assertEquals(null, cs.newDrawable(resources)); in testNewDrawable()
54 verify(mock, times(1)).newDrawable(); in testNewDrawable()
57 assertEquals(null, cs.newDrawable(resources, context.getTheme())); in testNewDrawable()
58 verify(mock, times(1)).newDrawable(); in testNewDrawable()
70 public Drawable newDrawable() { in newDrawable() method in Drawable_ConstantStateTest.MockConstantState
DRippleDrawableTest.java104 (RippleDrawable) preloadedConstantState.newDrawable(res); in verifyPreloadDensityInner()
110 (RippleDrawable) preloadedConstantState.newDrawable(res); in verifyPreloadDensityInner()
116 (RippleDrawable) preloadedConstantState.newDrawable(res); in verifyPreloadDensityInner()
DAnimatedStateListDrawableTest.java211 (StateListDrawable) cs.newDrawable(res); in runPreloadDensityTestForDrawableInner()
220 (StateListDrawable) cs.newDrawable(res); in runPreloadDensityTestForDrawableInner()
229 (StateListDrawable) cs.newDrawable(res); in runPreloadDensityTestForDrawableInner()
DStateListDrawableTest.java237 (StateListDrawable) preloadedConstantState.newDrawable(res); in verifyPreloadDensityTestForDrawableInner()
247 (StateListDrawable) preloadedConstantState.newDrawable(res); in verifyPreloadDensityTestForDrawableInner()
256 (StateListDrawable) preloadedConstantState.newDrawable(res); in verifyPreloadDensityTestForDrawableInner()
DVectorDrawableTest.java448 (VectorDrawable) preloadedConstantState.newDrawable(res); in verifyPreloadDensityInner()
456 (VectorDrawable) preloadedConstantState.newDrawable(res); in verifyPreloadDensityInner()
462 (VectorDrawable) preloadedConstantState.newDrawable(); in verifyPreloadDensityInner()
DInsetDrawableTest.java482 (InsetDrawable) preloadedConstantState.newDrawable(res); in verifyPreloadDensityInner()
491 (InsetDrawable) preloadedConstantState.newDrawable(res); in verifyPreloadDensityInner()
498 (InsetDrawable) preloadedConstantState.newDrawable(); in verifyPreloadDensityInner()
DGradientDrawableTest.java792 (GradientDrawable) preloadedConstantState.newDrawable(res); in verifyPreloadDensityInner()
803 (GradientDrawable) preloadedConstantState.newDrawable(res); in verifyPreloadDensityInner()
812 (GradientDrawable) preloadedConstantState.newDrawable(); in verifyPreloadDensityInner()
DLayerDrawableTest.java891 GradientDrawable newDrawable = new GradientDrawable(); in testAddLayer() local
892 int index = layerDrawable.addLayer(newDrawable); in testAddLayer()
896 assertEquals(newDrawable, layerDrawable.getDrawable(index)); in testAddLayer()
1737 (LayerDrawable) preloadedConstantState.newDrawable(res); in verifyPreloadDensityInner()
1768 (LayerDrawable) preloadedConstantState.newDrawable(res); in verifyPreloadDensityInner()
1787 (LayerDrawable) preloadedConstantState.newDrawable(res); in verifyPreloadDensityInner()
1890 LayerDrawable copy = (LayerDrawable) orig.getConstantState().newDrawable(); in testInvalidateDuringInit()
DNinePatchDrawableTest.java563 (NinePatchDrawable) preloadedConstantState.newDrawable(res); in verifyPreloadDensityInner()
637 (NinePatchDrawable) preloadedConstantState.newDrawable(res); in verifyOutlinePreloadDensityInner()
DShapeDrawableTest.java376 ShapeDrawable b = (ShapeDrawable) a.getConstantState().newDrawable(); in testMutateGetShape()
DClipDrawableTest.java401 public Drawable newDrawable() { in newDrawable() method in ClipDrawableTest.MockConstantState
DScaleDrawableTest.java316 ScaleDrawable clone = (ScaleDrawable) dr.getConstantState().newDrawable(res); in testInitialLevel()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DBitmapDrawableTest.java104 (BitmapDrawable) preloadedConstantState.newDrawable(res); in verifyPreloadDensityInner()