Home
last modified time | relevance | path

Searched refs:tint (Results 1 – 25 of 38) sorted by relevance

12

/frameworks/support/v4/java/android/support/v4/graphics/drawable/
DDrawableCompat.java38 void setTint(Drawable drawable, int tint); in setTint() argument
39 void setTintList(Drawable drawable, ColorStateList tint); in setTintList() argument
69 public void setTint(Drawable drawable, int tint) { in setTint() argument
73 public void setTintList(Drawable drawable, ColorStateList tint) { in setTintList() argument
121 public void setTint(Drawable drawable, int tint) { in setTint() argument
122 DrawableCompatL.setTint(drawable, tint); in setTint()
126 public void setTintList(Drawable drawable, ColorStateList tint) { in setTintList() argument
127 DrawableCompatL.setTintList(drawable, tint); in setTintList()
224 public static void setTint(Drawable drawable, int tint) { in setTint() argument
225 IMPL.setTint(drawable, tint); in setTint()
[all …]
/frameworks/support/v4/api21/android/support/v4/graphics/drawable/
DDrawableCompatL.java37 public static void setTint(Drawable drawable, int tint) { in setTint() argument
38 drawable.setTint(tint); in setTint()
41 public static void setTintList(Drawable drawable, ColorStateList tint) { in setTintList() argument
42 drawable.setTintList(tint); in setTintList()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
DDrawableWrapper.java186 public void setTint(int tint) { in setTint() argument
187 DrawableCompat.setTint(mDrawable, tint); in setTint()
191 public void setTintList(ColorStateList tint) { in setTintList() argument
192 DrawableCompat.setTintList(mDrawable, tint); in setTintList()
/frameworks/base/graphics/java/android/graphics/drawable/
DShapeDrawable.java288 public void setTintList(ColorStateList tint) { in setTintList() argument
289 mShapeState.mTint = tint; in setTintList()
290 mTintFilter = updateTintFilter(mTintFilter, tint, mShapeState.mTintMode); in setTintList()
453 final ColorStateList tint = a.getColorStateList(R.styleable.ShapeDrawable_tint); in updateStateFromTypedArray() local
454 if (tint != null) { in updateStateFromTypedArray()
455 state.mTint = tint; in updateStateFromTypedArray()
DDrawable.java484 public void setTint(int tint) { in setTint() argument
485 setTintList(ColorStateList.valueOf(tint)); in setTint()
498 public void setTintList(ColorStateList tint) {} in setTintList() argument
1293 PorterDuffColorFilter updateTintFilter(PorterDuffColorFilter tintFilter, ColorStateList tint, in updateTintFilter() argument
1295 if (tint == null || tintMode == null) { in updateTintFilter()
1299 final int color = tint.getColorForState(getState(), Color.TRANSPARENT); in updateTintFilter()
DColorDrawable.java179 public void setTintList(ColorStateList tint) { in setTintList() argument
180 mColorState.mTint = tint; in setTintList()
181 mTintFilter = updateTintFilter(mTintFilter, tint, mColorState.mTintMode); in setTintList()
DNinePatchDrawable.java351 public void setTintList(ColorStateList tint) { in setTintList() argument
352 mNinePatchState.mTint = tint; in setTintList()
353 mTintFilter = updateTintFilter(mTintFilter, tint, mNinePatchState.mTintMode); in setTintList()
466 final ColorStateList tint = a.getColorStateList(R.styleable.NinePatchDrawable_tint); in updateStateFromTypedArray() local
467 if (tint != null) { in updateStateFromTypedArray()
468 state.mTint = tint; in updateStateFromTypedArray()
DBitmapDrawable.java637 public void setTintList(ColorStateList tint) { in setTintList() argument
638 mBitmapState.mTint = tint; in setTintList()
639 mTintFilter = updateTintFilter(mTintFilter, tint, mBitmapState.mTintMode); in setTintList()
774 final ColorStateList tint = a.getColorStateList(R.styleable.BitmapDrawable_tint); in updateStateFromTypedArray() local
775 if (tint != null) { in updateStateFromTypedArray()
776 state.mTint = tint; in updateStateFromTypedArray()
DVectorDrawable.java311 public void setTintList(ColorStateList tint) { in setTintList() argument
313 if (state.mTint != tint) { in setTintList()
314 state.mTint = tint; in setTintList()
315 mTintFilter = updateTintFilter(mTintFilter, tint, state.mTintMode); in setTintList()
480 final ColorStateList tint = a.getColorStateList(R.styleable.VectorDrawable_tint); in updateStateFromTypedArray() local
481 if (tint != null) { in updateStateFromTypedArray()
482 state.mTint = tint; in updateStateFromTypedArray()
DClipDrawable.java238 public void setTintList(ColorStateList tint) { in setTintList() argument
239 mState.mDrawable.setTintList(tint); in setTintList()
DDrawableContainer.java183 public void setTintList(ColorStateList tint) { in setTintList() argument
186 if (mDrawableContainerState.mTintList != tint) { in setTintList()
187 mDrawableContainerState.mTintList = tint; in setTintList()
190 mCurrDrawable.mutate().setTintList(tint); in setTintList()
DScaleDrawable.java256 public void setTintList(ColorStateList tint) { in setTintList() argument
257 mState.mDrawable.setTintList(tint); in setTintList()
DAnimatedVectorDrawable.java215 public void setTintList(ColorStateList tint) { in setTintList() argument
216 mAnimatedVectorState.mVectorDrawable.setTintList(tint); in setTintList()
DAnimatedRotateDrawable.java177 public void setTintList(ColorStateList tint) { in setTintList() argument
178 mState.mDrawable.setTintList(tint); in setTintList()
DGradientDrawable.java838 public void setTintList(ColorStateList tint) {
839 mGradientState.mTint = tint;
840 mTintFilter = updateTintFilter(mTintFilter, tint, mGradientState.mTintMode);
1086 final ColorStateList tint = a.getColorStateList(R.styleable.GradientDrawable_tint);
1087 if (tint != null) {
1088 state.mTint = tint;
DInsetDrawable.java308 public void setTintList(ColorStateList tint) { in setTintList() argument
309 mState.mDrawable.setTintList(tint); in setTintList()
DRotateDrawable.java143 public void setTintList(ColorStateList tint) { in setTintList() argument
144 mState.mDrawable.setTintList(tint); in setTintList()
/frameworks/base/docs/html/training/material/
Ddrawables.jd34 <p>With Android 5.0 (API level 21) and above, you can tint bitmaps and nine-patches defined as
35 alpha masks. You can tint them with color resources or theme attributes that resolve to color
39 <p>You can apply a tint to {@link android.graphics.drawable.BitmapDrawable} or {@link
41 also set the tint color and mode in your layouts with the <code>android:tint</code> and
Dindex.jd55 <dd>Learn how to create vector drawables and how to tint drawable resources.</dd>
/frameworks/base/core/java/android/widget/
DProgressBar.java606 public void setIndeterminateTintList(@Nullable ColorStateList tint) { in setIndeterminateTintList() argument
610 mProgressTintInfo.mIndeterminateTintList = tint; in setIndeterminateTintList()
869 public void setProgressTintList(@Nullable ColorStateList tint) { in setProgressTintList() argument
873 mProgressTintInfo.mProgressTintList = tint; in setProgressTintList()
951 public void setProgressBackgroundTintList(@Nullable ColorStateList tint) { in setProgressBackgroundTintList() argument
955 mProgressTintInfo.mProgressBackgroundTintList = tint; in setProgressBackgroundTintList()
1029 public void setSecondaryProgressTintList(@Nullable ColorStateList tint) { in setSecondaryProgressTintList() argument
1033 mProgressTintInfo.mSecondaryProgressTintList = tint; in setSecondaryProgressTintList()
1223 private void setDrawableTint(int id, ColorStateList tint, Mode tintMode, boolean fallback) { in setDrawableTint() argument
1237 layer.setTintList(tint); in setDrawableTint()
DCheckedTextView.java208 public void setCheckMarkTintList(@Nullable ColorStateList tint) { in setCheckMarkTintList() argument
209 mCheckMarkTintList = tint; in setCheckMarkTintList()
DCompoundButton.java262 public void setButtonTintList(@Nullable ColorStateList tint) { in setButtonTintList() argument
263 mButtonTintList = tint; in setButtonTintList()
DAbsSeekBar.java204 public void setThumbTintList(@Nullable ColorStateList tint) { in setThumbTintList() argument
205 mThumbTintList = tint; in setThumbTintList()
/frameworks/base/telephony/java/com/android/internal/telephony/
DISub.aidl103 int setIconTint(int tint, int subId); in setIconTint() argument
/frameworks/base/telephony/java/android/telephony/
DSubscriptionManager.java627 public int setIconTint(int tint, int subId) { in setIconTint() argument
628 if (VDBG) logd("[setIconTint]+ tint:" + tint + " subId:" + subId); in setIconTint()
639 result = iSub.setIconTint(tint, subId); in setIconTint()

12