/frameworks/base/core/java/android/content/res/ |
D | ColorStateList.java | 72 public class ColorStateList implements Parcelable { class 79 private static final SparseArray<WeakReference<ColorStateList>> sCache = new SparseArray<>(); 92 private ColorStateList() { in ColorStateList() method in ColorStateList 100 public ColorStateList(int[][] states, @ColorInt int[] colors) { in ColorStateList() method in ColorStateList 111 public static ColorStateList valueOf(@ColorInt int color) { in valueOf() 115 final ColorStateList cached = sCache.valueAt(index).get(); in valueOf() 132 final ColorStateList csl = new ColorStateList(EMPTY, new int[] { color }); in valueOf() 147 private ColorStateList(ColorStateList orig) { in ColorStateList() method in ColorStateList 171 public static ColorStateList createFromXml(Resources r, XmlPullParser parser) in createFromXml() 187 public static ColorStateList createFromXml(@NonNull Resources r, @NonNull XmlPullParser parser, in createFromXml() [all …]
|
/frameworks/support/v4/java/android/support/v4/widget/ |
D | CompoundButtonCompat.java | 20 import android.content.res.ColorStateList; 50 void setButtonTintList(CompoundButton button, ColorStateList tint); in setButtonTintList() 51 ColorStateList getButtonTintList(CompoundButton button); in getButtonTintList() 59 public void setButtonTintList(CompoundButton button, ColorStateList tint) { in setButtonTintList() 64 public ColorStateList getButtonTintList(CompoundButton button) { in getButtonTintList() 86 public void setButtonTintList(CompoundButton button, ColorStateList tint) { in setButtonTintList() 91 public ColorStateList getButtonTintList(CompoundButton button) { in getButtonTintList() 127 …public static void setButtonTintList(@NonNull CompoundButton button, @Nullable ColorStateList tint… in setButtonTintList() 137 public static ColorStateList getButtonTintList(@NonNull CompoundButton button) { in getButtonTintList()
|
/frameworks/base/core/java/android/text/style/ |
D | TextAppearanceSpan.java | 20 import android.content.res.ColorStateList; 36 private final ColorStateList mTextColor; 37 private final ColorStateList mTextColorLink; 57 ColorStateList textColor; in TextAppearanceSpan() 114 ColorStateList color, ColorStateList linkColor) { in TextAppearanceSpan() 127 mTextColor = ColorStateList.CREATOR.createFromParcel(src); in TextAppearanceSpan() 132 mTextColorLink = ColorStateList.CREATOR.createFromParcel(src); in TextAppearanceSpan() 186 public ColorStateList getTextColor() { in getTextColor() 194 public ColorStateList getLinkTextColor() { in getLinkTextColor()
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
D | TintManager.java | 20 import android.content.res.ColorStateList; 135 private SparseArray<ColorStateList> mTintLists; 136 private ColorStateList mDefaultColorStateList; 182 final ColorStateList tintList = getTintList(resId); 281 public final ColorStateList getTintList(int resId) { 286 ColorStateList tint = mTintLists != null ? mTintLists.get(resId) : null; 324 private ColorStateList getDefaultColorStateList(Context context) { 369 mDefaultColorStateList = new ColorStateList(states, colors); 374 private ColorStateList createCheckableButtonColorStateList(Context context) { 393 return new ColorStateList(states, colors); [all …]
|
D | ThemeUtils.java | 20 import android.content.res.ColorStateList; 45 public static ColorStateList createDisabledStateList(int textColor, int disabledTextColor) { in createDisabledStateList() 62 return new ColorStateList(states, colors); in createDisabledStateList() 75 public static ColorStateList getThemeAttrColorStateList(Context context, int attr) { in getThemeAttrColorStateList() 86 final ColorStateList csl = getThemeAttrColorStateList(context, attr); in getDisabledThemeAttrColor()
|
D | TintInfo.java | 19 import android.content.res.ColorStateList; 26 public ColorStateList mTintList;
|
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/ |
D | Converters.java | 19 import android.content.res.ColorStateList; 29 public static ColorStateList convertColorToColorStateList(int color) { in convertColorToColorStateList() 30 return ColorStateList.valueOf(color); in convertColorToColorStateList()
|
/frameworks/support/design/lollipop/android/support/design/widget/ |
D | CircularBorderDrawableLollipop.java | 20 import android.content.res.ColorStateList; 32 private ColorStateList mTint; 54 public void setTintList(ColorStateList tint) { in setTintList() 77 private PorterDuffColorFilter updateTintFilter(ColorStateList tint, PorterDuff.Mode tintMode) { in updateTintFilter()
|
D | FloatingActionButtonLollipop.java | 23 import android.content.res.ColorStateList; 54 void setBackgroundDrawable(Drawable originalBackground, ColorStateList backgroundTint, in setBackgroundDrawable() 72 mRippleDrawable = new RippleDrawable(ColorStateList.valueOf(rippleColor), in setBackgroundDrawable() 80 void setBackgroundTintList(ColorStateList tint) { in setBackgroundTintList() 94 mRippleDrawable.setColor(ColorStateList.valueOf(rippleColor)); in setRippleColor()
|
/frameworks/support/v4/donut/android/support/v4/view/ |
D | TintableBackgroundView.java | 19 import android.content.res.ColorStateList; 40 void setSupportBackgroundTintList(@Nullable ColorStateList tint); in setSupportBackgroundTintList() 48 ColorStateList getSupportBackgroundTintList(); in getSupportBackgroundTintList()
|
D | ViewCompatBase.java | 19 import android.content.res.ColorStateList; 34 static ColorStateList getBackgroundTintList(View view) { in getBackgroundTintList() 40 static void setBackgroundTintList(View view, ColorStateList tintList) { in setBackgroundTintList()
|
/frameworks/support/v4/donut/android/support/v4/widget/ |
D | TintableCompoundButton.java | 19 import android.content.res.ColorStateList; 40 public void setSupportButtonTintList(@Nullable ColorStateList tint); in setSupportButtonTintList() 48 public ColorStateList getSupportButtonTintList(); in getSupportButtonTintList()
|
D | CompoundButtonCompatDonut.java | 19 import android.content.res.ColorStateList; 34 static void setButtonTintList(CompoundButton button, ColorStateList tint) { in setButtonTintList() 40 static ColorStateList getButtonTintList(CompoundButton button) { in getButtonTintList()
|
/frameworks/support/v4/api21/android/support/v4/widget/ |
D | CompoundButtonCompatLollipop.java | 19 import android.content.res.ColorStateList; 25 static void setButtonTintList(CompoundButton button, ColorStateList tint) { in setButtonTintList() 29 static ColorStateList getButtonTintList(CompoundButton button) { in getButtonTintList()
|
/frameworks/support/design/src/android/support/design/widget/ |
D | NavigationView.java | 20 import android.content.res.ColorStateList; 117 final ColorStateList itemIconTint; in NavigationView() 131 ColorStateList itemTextColor = null; in NavigationView() 275 public ColorStateList getItemIconTintList() { in getItemIconTintList() 286 public void setItemIconTintList(@Nullable ColorStateList tint) { in setItemIconTintList() 298 public ColorStateList getItemTextColor() { in getItemTextColor() 309 public void setItemTextColor(@Nullable ColorStateList textColor) { in setItemTextColor() 373 private ColorStateList createDefaultColorStateList(int baseColorThemeAttr) { in createDefaultColorStateList() 378 ColorStateList baseColor = getResources().getColorStateList(value.resourceId); in createDefaultColorStateList() 384 return new ColorStateList(new int[][]{ in createDefaultColorStateList()
|
/frameworks/support/design/base/android/support/design/widget/ |
D | FloatingActionButtonImpl.java | 19 import android.content.res.ColorStateList; 44 abstract void setBackgroundDrawable(Drawable originalBackground, ColorStateList backgroundTint, in setBackgroundDrawable() 47 abstract void setBackgroundTintList(ColorStateList tint); in setBackgroundTintList() 65 Drawable createBorderDrawable(int borderWidth, ColorStateList backgroundTint) { in createBorderDrawable()
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | AppCompatBackgroundHelper.java | 19 import android.content.res.ColorStateList; 49 ColorStateList tint = mTintManager.getTintList( in loadFromAttributes() 80 void setSupportBackgroundTintList(ColorStateList tint) { in setSupportBackgroundTintList() 90 ColorStateList getSupportBackgroundTintList() { in getSupportBackgroundTintList() 118 void setInternalBackgroundTint(ColorStateList tint) { in setInternalBackgroundTint()
|
D | AppCompatCompoundButtonHelper.java | 19 import android.content.res.ColorStateList; 38 private ColorStateList mButtonTintList = null; 83 void setSupportButtonTintList(ColorStateList tint) { in setSupportButtonTintList() 90 ColorStateList getSupportButtonTintList() { in getSupportButtonTintList()
|
D | AppCompatRadioButton.java | 20 import android.content.res.ColorStateList; 93 public void setSupportButtonTintList(@Nullable ColorStateList tint) { in setSupportButtonTintList() 105 public ColorStateList getSupportButtonTintList() { in getSupportButtonTintList()
|
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
D | ColorStateListTest.java | 22 import android.content.res.ColorStateList; 44 ColorStateList colorStateList = mResources.getColorStateList(R.color.color1); in testStateIsInList() 52 ColorStateList colorStateList = mResources.getColorStateList(R.color.color1); in testEmptyState()
|
/frameworks/support/v4/donut/android/support/v4/graphics/drawable/ |
D | DrawableWrapper.java | 19 import android.content.res.ColorStateList; 33 void setTintList(ColorStateList tint); in setTintList()
|
D | DrawableWrapperDonut.java | 19 import android.content.res.ColorStateList; 37 private ColorStateList mTintList; 192 setTintList(ColorStateList.valueOf(tint)); in setTint() 196 public void setTintList(ColorStateList tint) { in setTintList()
|
/frameworks/support/v4/api23/android/support/v4/content/ |
D | ContextCompatApi23.java | 20 import android.content.res.ColorStateList; 26 public static ColorStateList getColorStateList(Context context, int id) { in getColorStateList()
|
/frameworks/base/core/java/android/widget/ |
D | DayPickerPagerAdapter.java | 26 import android.content.res.ColorStateList; 57 private ColorStateList mCalendarTextColor; 58 private ColorStateList mDaySelectorColor; 59 private ColorStateList mDayHighlightColor; 149 void setCalendarTextColor(ColorStateList calendarTextColor) { in setCalendarTextColor() 153 void setDaySelectorColor(ColorStateList selectorColor) { in setDaySelectorColor()
|
/frameworks/support/design/eclair-mr1/android/support/design/widget/ |
D | FloatingActionButtonEclairMr1.java | 19 import android.content.res.ColorStateList; 67 void setBackgroundDrawable(Drawable originalBackground, ColorStateList backgroundTint, in setBackgroundDrawable() 114 void setBackgroundTintList(ColorStateList tint) { in setBackgroundTintList() 249 private static ColorStateList createColorStateList(int selectedColor) { in createColorStateList() 267 return new ColorStateList(states, colors); in createColorStateList()
|