Home
last modified time | relevance | path

Searched refs:colorDrawable (Results 1 – 6 of 6) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DColorDrawableTest.java61 ColorDrawable colorDrawable = new ColorDrawable(); in testAccessAlpha() local
62 assertEquals(0, colorDrawable.getAlpha()); in testAccessAlpha()
64 colorDrawable.setAlpha(128); in testAccessAlpha()
65 assertEquals(0, colorDrawable.getAlpha()); in testAccessAlpha()
67 colorDrawable = new ColorDrawable(1 << 24); in testAccessAlpha()
68 assertEquals(1, colorDrawable.getAlpha()); in testAccessAlpha()
70 colorDrawable.setAlpha(128); in testAccessAlpha()
71 assertEquals(0, colorDrawable.getAlpha()); in testAccessAlpha()
73 colorDrawable.setAlpha(255); in testAccessAlpha()
74 assertEquals(1, colorDrawable.getAlpha()); in testAccessAlpha()
[all …]
DClipDrawableTest.java102 Drawable colorDrawable = new ColorDrawable(Color.GREEN); in testGetChangingConfigurations() local
103 ClipDrawable clipDrawable = new ClipDrawable(colorDrawable, in testGetChangingConfigurations()
108 colorDrawable.setChangingConfigurations(CONTAINED_DRAWABLE_CONFIG); in testGetChangingConfigurations()
134 Drawable colorDrawable = new ColorDrawable(Color.GREEN); in testGetIntrinsicHeight() local
135 ClipDrawable clipDrawable = new ClipDrawable(colorDrawable, in testGetIntrinsicHeight()
149 Drawable colorDrawable = new ColorDrawable(Color.GREEN); in testGetIntrinsicWidth() local
150 ClipDrawable clipDrawable = new ClipDrawable(colorDrawable, in testGetIntrinsicWidth()
187 Drawable colorDrawable = new ColorDrawable(Color.GREEN); in testGetPadding() local
188 ClipDrawable clipDrawable = new ClipDrawable(colorDrawable, in testGetPadding()
219 Drawable colorDrawable = new ColorDrawable(Color.GREEN); in testInvalidateDrawable() local
[all …]
DColorStateListDrawableTest.java134 final ColorDrawable colorDrawable = (ColorDrawable) mDrawable.getCurrent(); in testColorFilter() local
145 final ColorDrawable colorDrawable = (ColorDrawable) cslDrawable.getCurrent(); in testColorStateListAccess() local
148 colorDrawable.getColor(), in testColorStateListAccess()
159 ColorDrawable colorDrawable = (ColorDrawable) mDrawable.getCurrent(); in testSetState() local
160 assertEquals(colorDrawable.getColor(), mColorStateList.getDefaultColor()); in testSetState()
162 assertEquals(colorDrawable.getColor(), Color.BLUE); in testSetState()
164 assertEquals(colorDrawable.getColor(), Color.RED); in testSetState()
DStateListDrawableTest.java356 ColorDrawable colorDrawable = new ColorDrawable(Color.RED); in testGetStateDrawable() local
358 stateList.addState(stateSet, colorDrawable); in testGetStateDrawable()
361 assertSame(colorDrawable, drawable); in testGetStateDrawable()
368 ColorDrawable colorDrawable = new ColorDrawable(Color.GREEN); in testGetStateSet() local
371 stateList.addState(stateSet, colorDrawable); in testGetStateSet()
DDefaultFocusHighlightTest.java342 ColorDrawable colorDrawable = DrawableFactory.createColorDrawable(); in createStateListDrawable() local
344 drawable.addState(stateList[i], colorDrawable); in createStateListDrawable()
/cts/tests/tests/view/src/android/view/cts/
DViewTest.java888 ColorDrawable colorDrawable; in testSetBackgroundColor() local
892 colorDrawable = (ColorDrawable) view.getBackground(); in testSetBackgroundColor()
893 assertNotNull(colorDrawable); in testSetBackgroundColor()
894 assertEquals(0xFF, colorDrawable.getAlpha()); in testSetBackgroundColor()
897 colorDrawable = (ColorDrawable) view.getBackground(); in testSetBackgroundColor()
898 assertNotNull(colorDrawable); in testSetBackgroundColor()
899 assertEquals(0, colorDrawable.getAlpha()); in testSetBackgroundColor()
4988 ColorDrawable colorDrawable = new ColorDrawable(Color.CYAN); in testSetVerticalScrollbarTrack() local
4989 view.setVerticalScrollbarTrackDrawable(colorDrawable); in testSetVerticalScrollbarTrack()
5001 ColorDrawable colorDrawable = new ColorDrawable(Color.CYAN); in testSetVerticalScrollbarThumb() local
[all …]