Searched refs:layerDrawable (Results 1 – 2 of 2) sorted by relevance
51 LayerDrawable layerDrawable = new LayerDrawable(drawables); in testGetNumberOfLayers() local52 assertEquals("count", 3, layerDrawable.getNumberOfLayers()); in testGetNumberOfLayers()57 LayerDrawable layerDrawable = new LayerDrawable(drawables); in testSetDrawableByLayerId1() local60 layerDrawable.setId(index, layerId); in testSetDrawableByLayerId1()62 layerDrawable.setDrawableByLayerId(layerId, drawable4000); in testSetDrawableByLayerId1()65 shadowOf(layerDrawable.getDrawable(index)).getCreatedFromResId()); in testSetDrawableByLayerId1()70 LayerDrawable layerDrawable = new LayerDrawable(drawables); in testSetDrawableByLayerId2() local73 layerDrawable.setId(index, layerId); in testSetDrawableByLayerId2()75 layerDrawable.setDrawableByLayerId(layerId, drawable4000); in testSetDrawableByLayerId2()78 shadowOf(layerDrawable.getDrawable(index)).getCreatedFromResId()); in testSetDrawableByLayerId2()[all …]
378 LayerDrawable layerDrawable = (LayerDrawable) ((InsetDrawable) drawable).getDrawable(); in getGradientDrawable() local379 return (GradientDrawable) layerDrawable.getDrawable(0); in getGradientDrawable()