Home
last modified time | relevance | path

Searched refs:getColorStateList (Results 1 – 10 of 10) 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.java174 getColorStateList(R.color.testcolorstatelist1), in testSetDialTintList()
207 getColorStateList(R.color.testcolor1), in testSetHourHandTintList()
240 getColorStateList(R.color.testcolor2), in testSetMinuteHandTintList()
273 getColorStateList(R.color.testcolor3), in testSetSecondHandTintList()
302 private ColorStateList getColorStateList(@ColorRes int resId) { in getColorStateList() method in AnalogClockTest
303 return mClock.getContext().getColorStateList(resId); in getColorStateList()
DRemoteViewsTest.java2218 ColorStateList expectedValue = mContext.getColorStateList(R.color.testcolorstatelist1); in testSetColorStateList_fromResources()
2228 expectedValue = mContext.getResources().getColorStateList(R.color.testcolor1, in testSetColorStateList_fromResources()
/cts/tests/tests/content/src/android/content/res/cts/
DColorStateListTest.java95 c = res.getColorStateList(R.color.testcolor, null); in testGetChangingConfigurations()
98 c = res.getColorStateList(R.color.testcolor_orientation, null); in testGetChangingConfigurations()
DResourcesTest.java238 mResources.getColorStateList(-1); in testGetColorStateList()
244 final ColorStateList colorStateList = mResources.getColorStateList(R.color.color1); in testGetColorStateList()
254 mResources.getColorStateList(R.drawable.density_test); in testGetColorStateListThrows()
518 final ColorStateList colorStateList = mResources.getColorStateList( in testGetDrawable_ColorStateListResource()
522 ((ColorStateListDrawable) drawable).getColorStateList().getDefaultColor()); in testGetDrawable_ColorStateListResource()
550 dayDrawable.getColorStateList().getDefaultColor()); in testGetDrawable_ColorStateListConfigurations()
554 nightDrawable.getColorStateList().getDefaultColor()); in testGetDrawable_ColorStateListConfigurations()
DTypedArrayTest.java185 t.getColorStateList(R.styleable.style1_type4).getDefaultColor()); in testGetAttributes()
/cts/tests/controls/src/android/controls/cts/
DCtsControlBuilderTest.java69 mColorStateList = mContext.getResources().getColorStateList(R.color.custom_mower, null); in setUp()
DCtsControlsService.java72 mColorStateList = mContext.getResources().getColorStateList(R.color.custom_mower, null); in CtsControlsService()
/cts/tests/tests/content/src/android/content/cts/
DContextTest.java584 mContext.getColorStateList(0); in testGetColorStateList()
590 final ColorStateList colorStateList = mContext.getColorStateList(R.color.color2); in testGetColorStateList()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dcurrent.txt10576 … method @NonNull public final android.content.res.ColorStateList getColorStateList(@ColorRes int);
13922 …method @Deprecated @NonNull public android.content.res.ColorStateList getColorStateList(@ColorRes …
13923 …method @NonNull public android.content.res.ColorStateList getColorStateList(@ColorRes int, @Nullab…
14000 method @Nullable public android.content.res.ColorStateList getColorStateList(@StyleableRes int);
17456 method @NonNull public android.content.res.ColorStateList getColorStateList();