Home
last modified time | relevance | path

Searched refs:colorStateList (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
DColorStateListTest.java44 ColorStateList colorStateList = mResources.getColorStateList(R.color.color1); in testStateIsInList() local
46 int focusColor = colorStateList.getColorForState(focusedState, R.color.failColor); in testStateIsInList()
52 ColorStateList colorStateList = mResources.getColorStateList(R.color.color1); in testEmptyState() local
54 int defaultColor = colorStateList.getColorForState(emptyState, mFailureColor); in testEmptyState()
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
DViewBindingAdapterTest.java91 ColorStateList colorStateList = view.getBackgroundTintList(); in testBackgroundTint() local
92 assertEquals(mBindingObject.getBackgroundTint(), colorStateList.getDefaultColor()); in testBackgroundTint()
97 colorStateList = view.getBackgroundTintList(); in testBackgroundTint()
98 assertEquals(mBindingObject.getBackgroundTint(), colorStateList.getDefaultColor()); in testBackgroundTint()
/frameworks/base/graphics/java/android/graphics/drawable/
DGradientDrawable.java327 public void setStroke(int width, ColorStateList colorStateList) { in setStroke() argument
328 setStroke(width, colorStateList, 0, 0); in setStroke()
368 int width, ColorStateList colorStateList, float dashWidth, float dashGap) { in setStroke() argument
369 mGradientState.setStroke(width, colorStateList, dashWidth, dashGap); in setStroke()
371 if (colorStateList == null) { in setStroke()
375 color = colorStateList.getColorForState(stateSet, 0); in setStroke()
884 public void setColor(@Nullable ColorStateList colorStateList) {
885 mGradientState.setSolidColors(colorStateList);
887 if (colorStateList == null) {
891 color = colorStateList.getColorForState(stateSet, 0);
[all …]
/frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/
DTestUtilsActions.java91 public static ViewAction setBackgroundTintListViewCompat(final ColorStateList colorStateList) {
107 ViewCompat.setBackgroundTintList(view, colorStateList);
DAppCompatTintableViewActions.java68 public static ViewAction setBackgroundTintList(final ColorStateList colorStateList) {
85 tintableBackgroundView.setSupportBackgroundTintList(colorStateList);
/frameworks/base/core/java/com/android/internal/util/
DNotificationColorUtil.java199 ColorStateList colorStateList = span.getTextColor(); in processTextAppearanceSpan() local
200 if (colorStateList != null) { in processTextAppearanceSpan()
201 int[] colors = colorStateList.getColors(); in processTextAppearanceSpan()
218 new ColorStateList(colorStateList.getStates(), colors), in processTextAppearanceSpan()
/frameworks/base/core/java/android/content/res/
DColorStateList.java274 final ColorStateList colorStateList = new ColorStateList(); in createFromXmlInner() local
275 colorStateList.inflate(r, parser, attrs, theme); in createFromXmlInner()
276 return colorStateList; in createFromXmlInner()
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/
DBridgeTypedArray.java293 ColorStateList colorStateList = ResourceHelper.getColorStateList( in getColor() local
295 if (colorStateList != null) { in getColor()
296 return colorStateList.getDefaultColor(); in getColor()
/frameworks/data-binding/compilerCommon/
DBindingExpression.g4471 | 'colorStateList'
/frameworks/base/core/java/android/app/
DNotification.java3328 ColorStateList colorStateList = ColorStateList.valueOf(resolveContrastColor()); in handleProgressBar() local
3329 contentView.setProgressTintList(R.id.progress, colorStateList); in handleProgressBar()
3330 contentView.setProgressIndeterminateTintList(R.id.progress, colorStateList); in handleProgressBar()
/frameworks/base/docs/html/topic/libraries/data-binding/
Dindex.jd1112 @colorStateList