Searched refs:getColorStateList (Results 1 – 9 of 9) sorted by relevance
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | ColorStateListDrawableTest.java | 66 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/ |
D | AnalogClockTest.java | 165 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()
|
D | RemoteViewsTest.java | 1713 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/ |
D | ColorStateListTest.java | 74 c = res.getColorStateList(R.color.testcolor, null); in testGetChangingConfigurations() 77 c = res.getColorStateList(R.color.testcolor_orientation, null); in testGetChangingConfigurations()
|
D | ResourcesTest.java | 207 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()
|
D | TypedArrayTest.java | 162 t.getColorStateList(R.styleable.style1_type4).getDefaultColor()); in testGetAttributes()
|
/cts/tests/controls/src/android/controls/cts/ |
D | CtsControlBuilderTest.java | 67 mColorStateList = mContext.getResources().getColorStateList(R.color.custom_mower, null); in setUp()
|
D | CtsControlsService.java | 71 mColorStateList = mContext.getResources().getColorStateList(R.color.custom_mower, null); in CtsControlsService()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContextTest.java | 481 mContext.getColorStateList(0); in testGetColorStateList() 487 final ColorStateList colorStateList = mContext.getColorStateList(R.color.color2); in testGetColorStateList()
|