Home
last modified time | relevance | path

Searched refs:getColorStateList (Results 1 – 9 of 9) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DColorStateListDrawableTest.java66 drawable.getColorStateList().getDefaultColor(), in testDefaultConstructor()
121 assertEquals(mDrawable.getColorStateList().getDefaultColor(), transBlue); in testAlpha()
126 assertEquals(mDrawable.getColorStateList().getDefaultColor(), transBlue); in testAlpha()
146 assertNotNull(cslDrawable.getColorStateList()); in testColorStateListAccess()
150 .getColorStateList() in testColorStateListAccess()
154 assertEquals(mColorStateList, cslDrawable.getColorStateList()); in testColorStateListAccess()
/cts/tests/tests/widget/src/android/widget/cts/
DAnalogClockTest.java165 getColorStateList(R.color.testcolorstatelist1), in testSetDialTintList()
198 getColorStateList(R.color.testcolor1), in testSetHourHandTintList()
231 getColorStateList(R.color.testcolor2), in testSetMinuteHandTintList()
264 getColorStateList(R.color.testcolor3), in testSetSecondHandTintList()
293 private ColorStateList getColorStateList(@ColorRes int resId) { in getColorStateList() method in AnalogClockTest
294 return mClock.getContext().getColorStateList(resId); in getColorStateList()
DRemoteViewsTest.java1713 ColorStateList expectedValue = mContext.getColorStateList(R.color.testcolorstatelist1); in testSetColorStateList_fromResources()
1723 expectedValue = mContext.getResources().getColorStateList(R.color.testcolor1, in testSetColorStateList_fromResources()
/cts/tests/tests/content/src/android/content/res/cts/
DColorStateListTest.java74 c = res.getColorStateList(R.color.testcolor, null); in testGetChangingConfigurations()
77 c = res.getColorStateList(R.color.testcolor_orientation, null); in testGetChangingConfigurations()
DResourcesTest.java207 mResources.getColorStateList(-1); in testGetColorStateList()
213 final ColorStateList colorStateList = mResources.getColorStateList(R.color.color1); in testGetColorStateList()
222 mResources.getColorStateList(R.drawable.density_test); in testGetColorStateListThrows()
351 final ColorStateList colorStateList = mResources.getColorStateList( in testGetDrawable_ColorStateListResource()
355 ((ColorStateListDrawable) drawable).getColorStateList().getDefaultColor()); in testGetDrawable_ColorStateListResource()
382 dayDrawable.getColorStateList().getDefaultColor()); in testGetDrawable_ColorStateListConfigurations()
386 nightDrawable.getColorStateList().getDefaultColor()); in testGetDrawable_ColorStateListConfigurations()
DTypedArrayTest.java162 t.getColorStateList(R.styleable.style1_type4).getDefaultColor()); in testGetAttributes()
/cts/tests/controls/src/android/controls/cts/
DCtsControlBuilderTest.java67 mColorStateList = mContext.getResources().getColorStateList(R.color.custom_mower, null); in setUp()
DCtsControlsService.java71 mColorStateList = mContext.getResources().getColorStateList(R.color.custom_mower, null); in CtsControlsService()
/cts/tests/tests/content/src/android/content/cts/
DContextTest.java481 mContext.getColorStateList(0); in testGetColorStateList()
487 final ColorStateList colorStateList = mContext.getColorStateList(R.color.color2); in testGetColorStateList()