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

1234

/frameworks/support/compat/ics/android/support/v4/graphics/drawable/
H A DTintAwareDrawable.java34 void setTint(@ColorInt int tint); argument
35 void setTintList(ColorStateList tint); argument
/frameworks/support/compat/java/android/support/v4/view/
H A DTintableBackgroundView.java30 * Applies a tint to the background drawable. Does not modify the current tint
34 * mutate the drawable and apply the specified tint and tint mode.
36 * @param tint the tint to apply, may be {@code null} to clear tint
40 void setSupportBackgroundTintList(@Nullable ColorStateList tint); argument
43 * Return the tint applied to the background drawable, if specified.
45 * @return the tint applie
[all...]
H A DMenuItemCompat.java104 void setIconTintList(MenuItem item, ColorStateList tint); argument
185 public void setIconTintList(MenuItem item, ColorStateList tint) { argument
252 public void setIconTintList(MenuItem item, ColorStateList tint) { argument
253 item.setIconTintList(tint);
642 * Applies a tint to the item's icon. Does not modify the
643 * current tint mode of that item, which is {@link PorterDuff.Mode#SRC_IN} by default.
646 * automatically mutate the icon and apply the specified tint and
647 * tint mode.
649 * @param tint the tint t
653 setIconTintList(MenuItem item, ColorStateList tint) argument
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DAppCompatBackgroundHelper.java52 ColorStateList tint = mDrawableManager
54 if (tint != null) {
55 setInternalBackgroundTint(tint);
75 // Update the default background tint
84 // We don't know that this drawable is, so we need to clear the default background tint
89 void setSupportBackgroundTintList(ColorStateList tint) { argument
93 mBackgroundTint.mTintList = tint;
122 // effect on any widgets using the compat tint on API 21 (EditText)
136 void setInternalBackgroundTint(ColorStateList tint) { argument
137 if (tint !
[all...]
H A DAppCompatImageHelper.java108 void setSupportImageTintList(ColorStateList tint) { argument
112 mImageTint.mTintList = tint;
145 // effect on any widgets using the compat tint on API 21
159 void setInternalImageTint(ColorStateList tint) { argument
160 if (tint != null) {
164 mInternalImageTint.mTintList = tint;
175 // On API 22+, if we're using an internal compat image source tint, we're also
176 // responsible for applying any custom tint set via the framework impl
184 // API 19 and below doesn't have framework tint
190 * Applies the framework image source tint t
[all...]
H A DAppCompatDrawableManager.java264 // First mutate the Drawable, then wrap it and set the tint list
298 // If we didn't tint using a ColorFilter, and we're set to fail if we don't
525 ColorStateList tint = getTintListFromCache(context, resId);
527 if (tint == null) {
530 tint = getColorStateList(context, R.color.abc_tint_edittext);
532 tint = getColorStateList(context, R.color.abc_tint_switch_track);
534 tint = createSwitchThumbColorStateList(context);
536 tint = createDefaultButtonColorStateList(context);
538 tint = createBorderlessButtonColorStateList(context);
540 tint
695 tintDrawable(Drawable drawable, TintInfo tint, int[] state) argument
718 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
142 public void setSupportBackgroundTintList(@Nullable ColorStateList tint) { argument
144 mBackgroundTintHelper.setSupportBackgroundTintList(tint);
197 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
152 public void setSupportBackgroundTintList(@Nullable ColorStateList tint) { argument
154 mBackgroundTintHelper.setSupportBackgroundTintList(tint);
208 public void setSupportImageTintList(@Nullable ColorStateList tint) { argument
[all...]
H A DAppCompatCheckBox.java38 * <li>Allows dynamic tint of its background via the background tint methods in
40 * <li>Allows setting of the background tint using {@link R.attr#buttonTint} and
92 public void setSupportButtonTintList(@Nullable ColorStateList tint) { argument
94 mCompoundButtonHelper.setSupportButtonTintList(tint);
H A DAppCompatCompoundButtonHelper.java81 void setSupportButtonTintList(ColorStateList tint) { argument
82 mButtonTintList = tint;
126 // stateful before applying the tint, so let's try again.
/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/java/android/support/v4/widget/
H A DTintableCompoundButton.java31 * Applies a tint to the button drawable. Does not modify the current tint
36 * should automatically mutate the drawable and apply the specified tint and tint mode.
38 * @param tint the tint to apply, may be {@code null} to clear tint
40 void setSupportButtonTintList(@Nullable ColorStateList tint); argument
43 * Returns the tint applied to the button drawable
51 * Specifies the blending mode which should be used to apply the tint specifie
[all...]
H A DCompoundButtonCompat.java56 public void setButtonTintList(CompoundButton button, ColorStateList tint) { argument
58 ((TintableCompoundButton) button).setSupportButtonTintList(tint);
108 public void setButtonTintList(CompoundButton button, ColorStateList tint) { argument
109 button.setButtonTintList(tint);
139 * Applies a tint to the button drawable. Does not modify the current tint
143 * automatically mutate the drawable and apply the specified tint and tint
146 * @param tint the tint t
150 setButtonTintList(@onNull CompoundButton button, @Nullable ColorStateList tint) argument
[all...]
H A DTintableImageSourceView.java36 * Applies a tint to the image drawable. Does not modify the current tint
40 * mutate the drawable and apply the specified tint and tint mode.
42 * @param tint the tint to apply, may be {@code null} to clear tint
46 void setSupportImageTintList(@Nullable ColorStateList tint); argument
49 * Return the tint applied to the image drawable, if specified.
51 * @return the tint applie
[all...]
/frameworks/support/compat/tests/java/android/support/v4/graphics/
H A DTestTintAwareDrawable.java36 public void setTintList(ColorStateList tint) { argument
H A DDrawableCompatTest.java130 // Assert that the tint aware drawable was not wrapped
138 final ColorStateList tint = ColorStateList.valueOf(Color.BLACK);
141 // Now set the tint list and mode using DrawableCompat
142 DrawableCompat.setTintList(d, tint);
146 verify(d).setTintList(tint);
/frameworks/support/design/tests/src/android/support/design/testutils/
H A DBottomNavigationViewActions.java35 * Sets item icon tint list on the content of the bottom navigation view.
37 public static ViewAction setItemIconTintList(@Nullable final ColorStateList tint) { argument
46 return "Set item icon tint list";
54 navigationView.setItemIconTintList(tint);
/frameworks/support/compat/api21/android/support/v4/graphics/drawable/
H A DDrawableWrapperApi21.java65 public void setTintList(ColorStateList tint) { argument
67 super.setTintList(tint);
69 mDrawable.setTintList(tint);
/frameworks/support/compat/java/android/support/v4/graphics/drawable/
H A DDrawableCompat.java67 public void setTint(Drawable drawable, int tint) { argument
69 ((TintAwareDrawable) drawable).setTint(tint);
73 public void setTintList(Drawable drawable, ColorStateList tint) { argument
75 ((TintAwareDrawable) drawable).setTintList(tint);
231 public void setTint(Drawable drawable, int tint) { argument
232 drawable.setTint(tint);
236 public void setTintList(Drawable drawable, ColorStateList tint) { argument
237 drawable.setTintList(tint);
416 * Specifies a tint for {@code drawable}.
419 * @param tint Colo
421 setTint(@onNull Drawable drawable, @ColorInt int tint) argument
431 setTintList(@onNull Drawable drawable, @Nullable ColorStateList tint) argument
[all...]
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
H A DCat.java126 public static void tint(int color, Drawable ... ds) { method in class:Cat
155 tint(mBodyColor, D.body, D.head, D.leg1, D.leg2, D.leg3, D.leg4, D.tail,
157 tint(0x20000000, D.leg2Shadow, D.tailShadow);
159 tint(0xFFFFFFFF, D.leftEye, D.rightEye, D.mouth, D.nose);
161 tint(isDark(mBodyColor) ? 0xFFEF9A9A : 0x20D50000, D.leftEarInside, D.rightEarInside);
163 tint(chooseP(nsr, P_BELLY_COLORS), D.belly);
164 tint(chooseP(nsr, P_BELLY_COLORS), D.back);
166 tint(faceColor, D.faceSpot);
168 tint(0xFF000000, D.mouth, D.nose);
174 tint(
[all...]
/frameworks/support/design/base/android/support/design/widget/
H A DCircularBorderDrawable.java125 void setBorderTint(ColorStateList tint) { argument
126 if (tint != null) {
127 mCurrentBorderTintColor = tint.getColorForState(getState(), mCurrentBorderTintColor);
129 mBorderTint = tint;
/frameworks/support/v7/appcompat/src/android/support/v7/graphics/drawable/
H A DDrawableWrapper.java194 public void setTint(int tint) { argument
195 DrawableCompat.setTint(mDrawable, tint);
199 public void setTintList(ColorStateList tint) { argument
200 DrawableCompat.setTintList(mDrawable, tint);
/frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/
H A DAppCompatTintableViewActions.java40 * Sets the passed color state list as the background tint on a {@link View}.
42 public static ViewAction setBackgroundTintList(final ColorStateList tint) { argument
51 return "set background tint list";
58 ViewCompat.setBackgroundTintList(view, tint);
66 * Sets the passed mode as the background tint mode on a <code>View</code>.
77 return "set background tint mode";
92 * Sets the passed color state list as the image source tint on a {@link View}.
94 public static ViewAction setImageSourceTintList(final ColorStateList tint) { argument
103 return "set image source tint list";
110 ImageViewCompat.setImageTintList((ImageView) view, tint);
[all...]
/frameworks/support/v7/cardview/src/android/support/v7/widget/
H A DRoundRectDrawable.java170 public void setTintList(ColorStateList tint) { argument
171 mTint = tint;
204 * Ensures the tint filter is consistent with the current tint color and
207 private PorterDuffColorFilter createTintFilter(ColorStateList tint, PorterDuff.Mode tintMode) { argument
208 if (tint == null || tintMode == null) {
211 final int color = tint.getColorForState(getState(), Color.TRANSPARENT);
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DISub.aidl105 * Set SIM icon tint color by simInfo index
106 * @param tint the icon tint color of the SIM
110 int setIconTint(int tint, int subId);

Completed in 2872 milliseconds

1234