Home
last modified time | relevance | path

Searched refs:getColor (Results 1 – 25 of 59) sorted by relevance

123

/appcompat/appcompat/src/androidTest/java/androidx/appcompat/widget/
DAppCompatBaseImageViewTest.java77 @ColorInt int lilacDefault = ResourcesCompat.getColor(res, R.color.lilac_default, null); in testImageTintingAcrossStateChange()
78 @ColorInt int lilacDisabled = ResourcesCompat.getColor(res, R.color.lilac_disabled, null); in testImageTintingAcrossStateChange()
79 @ColorInt int sandDefault = ResourcesCompat.getColor(res, R.color.sand_default, null); in testImageTintingAcrossStateChange()
80 @ColorInt int sandDisabled = ResourcesCompat.getColor(res, R.color.sand_disabled, null); in testImageTintingAcrossStateChange()
81 @ColorInt int oceanDefault = ResourcesCompat.getColor(res, R.color.ocean_default, null); in testImageTintingAcrossStateChange()
82 @ColorInt int oceanDisabled = ResourcesCompat.getColor(res, R.color.ocean_disabled, null); in testImageTintingAcrossStateChange()
155 @ColorInt int emeraldDefault = ResourcesCompat.getColor( in testImageTintingAcrossModeChange()
157 @ColorInt int emeraldDisabled = ResourcesCompat.getColor( in testImageTintingAcrossModeChange()
161 @ColorInt int sourceColor = ResourcesCompat.getColor( in testImageTintingAcrossModeChange()
226 @ColorInt final int sandDefault = ResourcesCompat.getColor( in testImageTintingWithDefaultMode()
[all …]
DAppCompatBaseViewTest.java213 final @ColorInt int lilacDefault = ResourcesCompat.getColor( in testBackgroundTintingAcrossStateChange()
215 final @ColorInt int lilacDisabled = ResourcesCompat.getColor( in testBackgroundTintingAcrossStateChange()
217 final @ColorInt int sandDefault = ResourcesCompat.getColor( in testBackgroundTintingAcrossStateChange()
219 final @ColorInt int sandDisabled = ResourcesCompat.getColor( in testBackgroundTintingAcrossStateChange()
221 final @ColorInt int oceanDefault = ResourcesCompat.getColor( in testBackgroundTintingAcrossStateChange()
223 final @ColorInt int oceanDisabled = ResourcesCompat.getColor( in testBackgroundTintingAcrossStateChange()
293 final @ColorInt int lilacDefault = ResourcesCompat.getColor( in testBackgroundTintingViewCompatAcrossStateChange()
295 final @ColorInt int lilacDisabled = ResourcesCompat.getColor( in testBackgroundTintingViewCompatAcrossStateChange()
297 final @ColorInt int sandDefault = ResourcesCompat.getColor( in testBackgroundTintingViewCompatAcrossStateChange()
299 final @ColorInt int sandDisabled = ResourcesCompat.getColor( in testBackgroundTintingViewCompatAcrossStateChange()
[all …]
DAppCompatEditTextTest.java172 assertEquals(ContextCompat.getColor(textView.getContext(), expectedEnabledColor), in verifyTextHintColor()
174 assertEquals(ContextCompat.getColor(textView.getContext(), expectedDisabledColor), in verifyTextHintColor()
312 final int defaultTint = ResourcesCompat.getColor(mResources, R.color.lilac_default, null); in testCompoundDrawablesTintList()
313 final int disabledTint = ResourcesCompat.getColor(mResources, R.color.lilac_disabled, null); in testCompoundDrawablesTintList()
DAppCompatTextViewTest.java117 final @ColorInt int oceanDefault = ResourcesCompat.getColor( in testDeferredBackgroundTinting()
188 assertEquals(ContextCompat.getColor(textView.getContext(), R.color.ocean_default), in testTextColorSetColorStateList()
192 assertEquals(ContextCompat.getColor(textView.getContext(), R.color.ocean_disabled), in testTextColorSetColorStateList()
207 assertEquals(ContextCompat.getColor(textView.getContext(), R.color.sand_default), in testTextColorSetThemeAttrColorStateList()
211 assertEquals(ContextCompat.getColor(textView.getContext(), R.color.sand_disabled), in testTextColorSetThemeAttrColorStateList()
218 assertEquals(ContextCompat.getColor(textView.getContext(), expectedEnabledColor), in verifyTextLinkColor()
220 assertEquals(ContextCompat.getColor(textView.getContext(), expectedDisabledColor), in verifyTextLinkColor()
1127 final int defaultTint = ResourcesCompat.getColor(mResources, R.color.lilac_default, null); in testCompoundDrawablesTintList()
1128 final int disabledTint = ResourcesCompat.getColor(mResources, R.color.lilac_disabled, null); in testCompoundDrawablesTintList()
DAppCompatToggleButtonTest.java117 final int defaultTint = ResourcesCompat.getColor(mResources, R.color.lilac_default, null); in testCompoundDrawablesTintList()
118 final int disabledTint = ResourcesCompat.getColor(mResources, R.color.lilac_disabled, null); in testCompoundDrawablesTintList()
DAppCompatImageViewTest.java41 final int expectedColor = mContainer.getResources().getColor(R.color.test_blue); in testImageViewBothSrcCompatAndroidSrcSet()
DAppCompatRadioButtonTest.java150 final int defaultTint = ResourcesCompat.getColor(mResources, R.color.lilac_default, null); in testCompoundDrawablesTintList()
151 final int disabledTint = ResourcesCompat.getColor(mResources, R.color.lilac_disabled, null); in testCompoundDrawablesTintList()
DAppCompatAutoCompleteTextViewTest.java143 final int defaultTint = ResourcesCompat.getColor( in testCompoundDrawablesTintList()
145 final int disabledTint = ResourcesCompat.getColor( in testCompoundDrawablesTintList()
DAppCompatMultiAutoCompleteTextViewTest.java144 final int defaultTint = ResourcesCompat.getColor(mResources, in testCompoundDrawablesTintList()
146 final int disabledTint = ResourcesCompat.getColor(mResources, in testCompoundDrawablesTintList()
DAppCompatCheckBoxTest.java149 final int defaultTint = ResourcesCompat.getColor(mResources, R.color.lilac_default, null); in testCompoundDrawablesTintList()
150 final int disabledTint = ResourcesCompat.getColor(mResources, R.color.lilac_disabled, null); in testCompoundDrawablesTintList()
DAppCompatCheckedTextViewTest.java218 final int defaultTint = ResourcesCompat.getColor(mResources, R.color.lilac_default, null); in testCompoundDrawablesTintList()
219 final int disabledTint = ResourcesCompat.getColor(mResources, R.color.lilac_disabled, null); in testCompoundDrawablesTintList()
DAppCompatSpinnerTest.java105 ResourcesCompat.getColor(res, expectedPopupColorResId, null); in verifySpinnerPopupTheming()
/appcompat/appcompat/src/androidTest/java/androidx/appcompat/view/
DContextThemeWrapperTest.java172 assertEquals(expectedTa.getColor( in verifyIdenticalTextAppearanceStyle()
175 ta.getColor( in verifyIdenticalTextAppearanceStyle()
178 assertEquals(expectedTa.getColor( in verifyIdenticalTextAppearanceStyle()
181 ta.getColor( in verifyIdenticalTextAppearanceStyle()
185 assertEquals(expectedTa.getColor( in verifyIdenticalTextAppearanceStyle()
188 ta.getColor( in verifyIdenticalTextAppearanceStyle()
/appcompat/appcompat/src/androidTest/java/androidx/appcompat/app/
DAppCompatMenuItemIconTintingTest.java150 final @ColorInt int sandDefault = ResourcesCompat.getColor( in testIconTintingAcrossTintListChange()
152 final @ColorInt int oceanDefault = ResourcesCompat.getColor( in testIconTintingAcrossTintListChange()
193 final @ColorInt int lilacDefault = ResourcesCompat.getColor( in testIconOpaqueTintingAcrossIconChange()
229 final @ColorInt int emeraldDefault = ResourcesCompat.getColor( in testIconTranslucentTintingAcrossIconChange()
233 final @ColorInt int iconColorRed = ResourcesCompat.getColor( in testIconTranslucentTintingAcrossIconChange()
DNightModeTestCase.kt108 val dayColor = ContextCompat.getColor(activity, R.color.color_sky_day) in testColorConvertedDrawableChangesWithNightMode()
109 val nightColor = ContextCompat.getColor(activity, R.color.color_sky_night) in testColorConvertedDrawableChangesWithNightMode()
DActivityUnitTestSetActivityContextTest.java100 int textColorPrimary = mActivity.getTheme().obtainStyledAttributes(attrs).getColor(0, 0); in testSetActivityContext()
DDrawerLayoutDoubleActivity.java81 final int metalBlueColor = getResources().getColor(R.color.drawer_sample_metal_blue); in onContentViewSet()
DDrawerLayoutActivity.java116 final int metalBlueColor = getResources().getColor(R.color.drawer_sample_metal_blue); in onContentViewSet()
DLayoutInflaterFactoryTestCase.java236 final int expectedColor = view.getResources().getColor(R.color.test_magenta); in assertThemedContext()
/appcompat/appcompat/src/main/java/androidx/appcompat/graphics/drawable/
DDrawerArrowDrawable.java140 setColor(a.getColor(R.styleable.DrawerArrowToggle_color, 0)); in DrawerArrowDrawable()
218 if (color != mPaint.getColor()) { in setColor()
228 public int getColor() { in getColor() method in DrawerArrowDrawable
229 return mPaint.getColor(); in getColor()
/appcompat/appcompat/src/main/java/androidx/appcompat/widget/
DTintTypedArray.java168 public int getColor(int index, int defValue) { in getColor() method in TintTypedArray
169 return mWrapped.getColor(index, defValue); in getColor()
DThemeUtils.java94 return a.getColor(0, 0); in getThemeAttrColor()
/appcompat/appcompat-resources/src/main/java/androidx/appcompat/widget/
DResourcesWrapper.java180 public int getColor(int id) throws NotFoundException { in getColor() method in ResourcesWrapper
181 return mResources.getColor(id); in getColor()
/appcompat/appcompat-resources/api/
Drestricted_1.6.0-beta02.txt98 method public int getColor(int) throws android.content.res.Resources.NotFoundException;
Drestricted_current.txt98 method public int getColor(int) throws android.content.res.Resources.NotFoundException;

123