Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/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.java328 public void setStroke(int width, ColorStateList colorStateList) { in setStroke() argument
329 setStroke(width, colorStateList, 0, 0); in setStroke()
369 int width, ColorStateList colorStateList, float dashWidth, float dashGap) { in setStroke() argument
370 mGradientState.setStroke(width, colorStateList, dashWidth, dashGap); in setStroke()
372 if (colorStateList == null) { in setStroke()
376 color = colorStateList.getColorForState(stateSet, 0); in setStroke()
913 public void setColor(@Nullable ColorStateList colorStateList) {
914 mGradientState.setSolidColors(colorStateList);
916 if (colorStateList == null) {
920 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);
/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/core/java/com/android/internal/util/
DNotificationColorUtil.java217 ColorStateList colorStateList = span.getTextColor(); in processTextAppearanceSpan() local
218 if (colorStateList != null) { in processTextAppearanceSpan()
219 int[] colors = colorStateList.getColors(); in processTextAppearanceSpan()
236 new ColorStateList(colorStateList.getStates(), colors), in processTextAppearanceSpan()
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/
DBridgeTypedArray.java294 ColorStateList colorStateList = ResourceHelper.getColorStateList( in getColor() local
296 if (colorStateList != null) { in getColor()
297 return colorStateList.getDefaultColor(); in getColor()
/frameworks/data-binding/compilerCommon/
DBindingExpression.g4493 | 'colorStateList'