Searched refs:tint (Results 1 - 25 of 93) sorted by relevance

1234

/frameworks/support/compat/src/main/java/androidx/core/graphics/drawable/
H A DTintAwareDrawable.java35 void setTint(@ColorInt int tint); argument
36 void setTintList(ColorStateList tint); argument
H A DWrappedDrawableApi21.java75 public void setTintList(ColorStateList tint) { argument
77 super.setTintList(tint);
79 mDrawable.setTintList(tint);
H A DDrawableCompat.java129 * Specifies a tint for {@code drawable}.
132 * @param tint Color to use for tinting this drawable
134 public static void setTint(@NonNull Drawable drawable, @ColorInt int tint) { argument
136 drawable.setTint(tint);
138 ((TintAwareDrawable) drawable).setTint(tint);
143 * Specifies a tint for {@code drawable} as a color state list.
146 * @param tint Color state list to use for tinting this drawable, or null to clear the tint
148 public static void setTintList(@NonNull Drawable drawable, @Nullable ColorStateList tint) { argument
150 drawable.setTintList(tint);
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DAlphaControlledSignalTileView.java46 public void setFinalImageTintList(ColorStateList tint) { argument
47 super.setImageTintList(tint);
50 ((AlphaControlledSlashDrawable)slash).setFinalTintList(tint);
66 * SlashDrawable that disobeys orders to change its drawable's tint except when you tell
75 protected void setDrawableTintList(ColorStateList tint) { argument
79 * Set a target tint list instead of
81 public void setFinalTintList(ColorStateList tint) { argument
82 super.setDrawableTintList(tint);
H A DSlashDrawable.java197 public void setTintList(@Nullable ColorStateList tint) { argument
198 mTintList = tint;
199 super.setTintList(tint);
200 setDrawableTintList(tint);
201 mPaint.setColor(tint.getDefaultColor());
205 protected void setDrawableTintList(@Nullable ColorStateList tint) { argument
206 mDrawable.setTintList(tint);
/frameworks/support/compat/src/main/java/androidx/core/view/
H A DTintableBackgroundView.java31 * Applies a tint to the background drawable. Does not modify the current tint
35 * mutate the drawable and apply the specified tint and tint mode.
37 * @param tint the tint to apply, may be {@code null} to clear tint
41 void setSupportBackgroundTintList(@Nullable ColorStateList tint); argument
44 * Return the tint applied to the background drawable, if specified.
46 * @return the tint applie
[all...]
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
H A DAppCompatBackgroundHelper.java53 ColorStateList tint = mDrawableManager
55 if (tint != null) {
56 setInternalBackgroundTint(tint);
76 // Update the default background tint
85 // We don't know that this drawable is, so we need to clear the default background tint
90 void setSupportBackgroundTintList(ColorStateList tint) { argument
94 mBackgroundTint.mTintList = tint;
123 // effect on any widgets using the compat tint on API 21 (EditText)
137 void setInternalBackgroundTint(ColorStateList tint) { argument
138 if (tint !
[all...]
H A DAppCompatImageHelper.java109 void setSupportImageTintList(ColorStateList tint) { argument
113 mImageTint.mTintList = tint;
146 // effect on any widgets using the compat tint on API 21
160 void setInternalImageTint(ColorStateList tint) { argument
161 if (tint != null) {
165 mInternalImageTint.mTintList = tint;
176 // On API 22+, if we're using an internal compat image source tint, we're also
177 // responsible for applying any custom tint set via the framework impl
185 // API 19 and below doesn't have framework tint
191 * Applies the framework image source tint t
[all...]
H A DAppCompatDrawableManager.java262 // First mutate the Drawable, then wrap it and set the tint list
296 // If we didn't tint using a ColorFilter, and we're set to fail if we don't
523 ColorStateList tint = getTintListFromCache(context, resId);
525 if (tint == null) {
528 tint = getColorStateList(context, R.color.abc_tint_edittext);
530 tint = getColorStateList(context, R.color.abc_tint_switch_track);
532 tint = createSwitchThumbColorStateList(context);
534 tint = createDefaultButtonColorStateList(context);
536 tint = createBorderlessButtonColorStateList(context);
538 tint
693 tintDrawable(Drawable drawable, TintInfo tint, int[] state) argument
716 createTintFilter(ColorStateList tint, PorterDuff.Mode tintMode, final int[] state) argument
[all...]
H A DAppCompatImageButton.java43 * <li>Allows dynamic tint of its background via the background tint methods in
45 * <li>Allows setting of the background tint using {@link R.attr#backgroundTint} and
47 * <li>Allows dynamic tint of its image via the image tint methods in
49 * <li>Allows setting of the image tint using {@link R.attr#tint} and
136 public void setSupportBackgroundTintList(@Nullable ColorStateList tint) { argument
138 mBackgroundTintHelper.setSupportBackgroundTintList(tint);
191 public void setSupportImageTintList(@Nullable ColorStateList tint) { argument
[all...]
H A DAppCompatImageView.java42 * <li>Allows dynamic tint of its background via the background tint methods in
44 * <li>Allows setting of the background tint using {@link R.attr#backgroundTint} and
46 * <li>Allows dynamic tint of its image via the image tint methods in
48 * <li>Allows setting of the image tint using {@link R.attr#tint} and
146 public void setSupportBackgroundTintList(@Nullable ColorStateList tint) { argument
148 mBackgroundTintHelper.setSupportBackgroundTintList(tint);
202 public void setSupportImageTintList(@Nullable ColorStateList tint) { argument
[all...]
H A DAppCompatCheckBox.java39 * <li>Allows dynamic tint of its background via the background tint methods in
41 * <li>Allows setting of the background tint using {@link R.attr#buttonTint} and
95 public void setSupportButtonTintList(@Nullable ColorStateList tint) { argument
97 mCompoundButtonHelper.setSupportButtonTintList(tint);
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/
H A DIntentButtonProvider.java38 public boolean tint = true; field in class:IntentButtonProvider.IntentButton.IconState
/frameworks/support/compat/src/androidTest/java/androidx/core/graphics/
H A DTestTintAwareDrawable.java37 public void setTintList(ColorStateList tint) { argument
H A DDrawableCompatTest.java131 // Assert that the tint aware drawable was not wrapped
139 final ColorStateList tint = ColorStateList.valueOf(Color.BLACK);
142 // Now set the tint list and mode using DrawableCompat
143 DrawableCompat.setTintList(d, tint);
147 verify(d).setTintList(tint);
/frameworks/support/compat/src/main/java/androidx/core/widget/
H A DTintableCompoundButton.java32 * Applies a tint to the button drawable. Does not modify the current tint
37 * should automatically mutate the drawable and apply the specified tint and tint mode.
39 * @param tint the tint to apply, may be {@code null} to clear tint
41 void setSupportButtonTintList(@Nullable ColorStateList tint); argument
44 * Returns the tint applied to the button drawable
52 * Specifies the blending mode which should be used to apply the tint specifie
[all...]
H A DTintableImageSourceView.java37 * Applies a tint to the image drawable. Does not modify the current tint
41 * mutate the drawable and apply the specified tint and tint mode.
43 * @param tint the tint to apply, may be {@code null} to clear tint
47 void setSupportImageTintList(@Nullable ColorStateList tint); argument
50 * Return the tint applied to the image drawable, if specified.
52 * @return the tint applie
[all...]
H A DCompoundButtonCompat.java44 * Applies a tint to the button drawable. Does not modify the current tint
48 * automatically mutate the drawable and apply the specified tint and tint
51 * @param tint the tint to apply, may be {@code null} to clear tint
56 @Nullable ColorStateList tint) {
58 button.setButtonTintList(tint);
60 ((TintableCompoundButton) button).setSupportButtonTintList(tint);
55 setButtonTintList(@onNull CompoundButton button, @Nullable ColorStateList tint) argument
[all...]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
H A DScrimViewTest.java105 int tint = Color.BLUE;
106 mView.setTint(tint);
107 assertEquals(mView.getTint(), tint);
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
H A DCat.java128 public static void tint(int color, Drawable ... ds) { method in class:Cat
157 tint(mBodyColor, D.body, D.head, D.leg1, D.leg2, D.leg3, D.leg4, D.tail,
159 tint(0x20000000, D.leg2Shadow, D.tailShadow);
161 tint(0xFFFFFFFF, D.leftEye, D.rightEye, D.mouth, D.nose);
163 tint(isDark(mBodyColor) ? 0xFFEF9A9A : 0x20D50000, D.leftEarInside, D.rightEarInside);
165 tint(chooseP(nsr, P_BELLY_COLORS), D.belly);
166 tint(chooseP(nsr, P_BELLY_COLORS), D.back);
168 tint(faceColor, D.faceSpot);
170 tint(0xFF000000, D.mouth, D.nose);
176 tint(
[all...]
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/testutils/
H A DAppCompatTintableViewActions.java41 * Sets the passed color state list as the background tint on a {@link View}.
43 public static ViewAction setBackgroundTintList(final ColorStateList tint) { argument
52 return "set background tint list";
59 ViewCompat.setBackgroundTintList(view, tint);
67 * Sets the passed mode as the background tint mode on a <code>View</code>.
78 return "set background tint mode";
93 * Sets the passed color state list as the image source tint on a {@link View}.
95 public static ViewAction setImageSourceTintList(final ColorStateList tint) { argument
104 return "set image source tint list";
111 ImageViewCompat.setImageTintList((ImageView) view, tint);
[all...]
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/graphics/drawable/
H A DDrawableWrapper.java195 public void setTint(int tint) { argument
196 DrawableCompat.setTint(mDrawable, tint);
200 public void setTintList(ColorStateList tint) { argument
201 DrawableCompat.setTintList(mDrawable, tint);
/frameworks/support/cardview/src/main/java/androidx/cardview/widget/
H A DRoundRectDrawable.java168 public void setTintList(ColorStateList tint) { argument
169 mTint = tint;
202 * Ensures the tint filter is consistent with the current tint color and
205 private PorterDuffColorFilter createTintFilter(ColorStateList tint, PorterDuff.Mode tintMode) { argument
206 if (tint == null || tintMode == null) {
209 final int color = tint.getColorForState(getState(), Color.TRANSPARENT);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DScrimState.java227 public void updateScrimColor(ScrimView scrim, float alpha, int tint) { argument
234 Color.alpha(tint));
236 scrim.setTint(tint);
/frameworks/support/slices/view/src/main/java/androidx/slice/widget/
H A DActionRow.java87 boolean tint = mode == ICON_IMAGE;
88 if (tint) {
135 boolean tint = ac.getImageMode() == ICON_IMAGE;
136 addAction(iconItem, tint).setOnClickListener(
162 boolean tint = !image.hasHint(HINT_NO_TINT);
163 addAction(image.getIcon(), tint).setOnClickListener(

Completed in 423 milliseconds

1234