Home
last modified time | relevance | path

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

/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
DIllustrationTest.java40 final Illustration illustration = new Illustration(InstrumentationRegistry.getContext()); in testWillDraw() local
41 assertFalse("The illustration needs to be drawn", illustration.willNotDraw()); in testWillDraw()
50 final Illustration illustration = new Illustration(context); in testAspectRatio() local
51 illustration.setAspectRatio(3.0f); in testAspectRatio()
54 illustration.setBackgroundDrawable(backgroundDrawable); in testAspectRatio()
55 illustration.setIllustration(illustrationDrawable); in testAspectRatio()
57 illustration.measure( in testAspectRatio()
61 assertEquals("Top padding should be 96", 96, illustration.getPaddingTop()); in testAspectRatio()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
DIllustration.java48 private Drawable illustration; field in Illustration
105 public void setIllustration(Drawable illustration) { in setIllustration() argument
106 if (illustration == this.illustration) { in setIllustration()
109 this.illustration = illustration; in setIllustration()
153 if (illustration != null) { in onLayout()
154 int intrinsicWidth = illustration.getIntrinsicWidth(); in onLayout()
155 int intrinsicHeight = illustration.getIntrinsicHeight(); in onLayout()
169 illustration.setBounds(illustrationBounds); in onLayout()
200 if (illustration != null) { in onDraw()
203 && shouldMirrorDrawable(illustration, getLayoutDirection())) { in onDraw()
[all …]
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/
DSetupWizardLayout.java110 final Drawable illustration = a.getDrawable(R.styleable.SuwSetupWizardLayout_suwIllustration); in init() local
111 if (illustration != null) { in init()
112 setIllustration(illustration); in init()
229 final Illustration illustration = (Illustration) view; in setIllustration() local
230 illustration.setIllustration(drawable); in setIllustration()
246 final Illustration illustration = (Illustration) view; in setIllustration() local
248 illustration.setIllustration(illustrationDrawable); in setIllustration()
255 final Illustration illustration = (Illustration) view; in setIllustration() local
257 illustration.setIllustration(illustrationDrawable); in setIllustration()
271 final Illustration illustration = (Illustration) view; in setIllustrationAspectRatio() local
[all …]