Home
last modified time | relevance | path

Searched refs:mTint (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/graphics/java/android/graphics/drawable/
DColorDrawable.java212 mColorState.mTint = tint; in setTintList()
221 mBlendModeColorFilter = updateBlendModeFilter(mBlendModeColorFilter, mColorState.mTint, in setTintBlendMode()
229 if (state.mTint != null && state.mBlendMode != null) { in onStateChange()
230 mBlendModeColorFilter = updateBlendModeFilter(mBlendModeColorFilter, state.mTint, in onStateChange()
239 return mColorState.mTint != null && mColorState.mTint.isStateful(); in isStateful()
244 return mColorState.mTint != null && mColorState.mTint.hasFocusStateSpecified(); in hasFocusStateSpecified()
335 if (state.mTint != null && state.mTint.canApplyTheme()) { in applyTheme()
336 state.mTint = state.mTint.obtainForTheme(t); in applyTheme()
354 ColorStateList mTint = null; field in ColorDrawable.ColorState
366 mTint = state.mTint; in ColorState()
[all …]
DColorStateListDrawable.java91 if (mState.mTint != null) { in applyTheme()
92 setTintList(mState.mTint.obtainForTheme(t)); in applyTheme()
118 mState.mTint = tint; in setTintList()
250 ColorStateList mTint = null; field in ColorStateListDrawable.ColorStateListDrawableState
260 mTint = state.mTint; in ColorStateListDrawableState()
275 | (mTint != null ? mTint.getChangingConfigurations() : 0); in getChangingConfigurations()
280 || (mTint != null && mTint.isStateful()); in isStateful()
285 || (mTint != null && mTint.hasFocusStateSpecified()); in hasFocusStateSpecified()
291 || (mTint != null && mTint.canApplyTheme()); in canApplyTheme()
299 if (mState.mTint != null) { in initializeColorDrawable()
[all …]
DShapeDrawable.java293 mShapeState.mTint = tint; in setTintList()
302 mBlendModeColorFilter = updateBlendModeFilter(mBlendModeColorFilter, mShapeState.mTint, in setTintBlendMode()
356 if (state.mTint != null && state.mBlendMode != null) { in onStateChange()
357 mBlendModeColorFilter = updateBlendModeFilter(mBlendModeColorFilter, state.mTint, in onStateChange()
367 return super.isStateful() || (s.mTint != null && s.mTint.isStateful()); in isStateful()
372 return mShapeState.mTint != null && mShapeState.mTint.hasFocusStateSpecified(); in hasFocusStateSpecified()
446 if (state.mTint != null && state.mTint.canApplyTheme()) { in applyTheme()
447 state.mTint = state.mTint.obtainForTheme(t); in applyTheme()
484 state.mTint = tint; in updateStateFromTypedArray()
543 ColorStateList mTint; field in ShapeDrawable.ShapeState
[all …]
DNinePatchDrawable.java345 mNinePatchState.mTint = tint; in setTintList()
354 mBlendModeFilter = updateBlendModeFilter(mBlendModeFilter, mNinePatchState.mTint, in setTintBlendMode()
476 state.mTint = tint; in updateStateFromTypedArray()
501 if (state.mTint != null && state.mTint.canApplyTheme()) { in applyTheme()
502 state.mTint = state.mTint.obtainForTheme(t); in applyTheme()
570 if (state.mTint != null && state.mBlendMode != null) { in onStateChange()
571 mBlendModeFilter = updateBlendModeFilter(mBlendModeFilter, state.mTint, in onStateChange()
582 return super.isStateful() || (s.mTint != null && s.mTint.isStateful()); in isStateful()
587 return mNinePatchState.mTint != null && mNinePatchState.mTint.hasFocusStateSpecified(); in hasFocusStateSpecified()
596 ColorStateList mTint = null; field in NinePatchDrawable.NinePatchState
[all …]
DBitmapDrawable.java680 if (state.mTint != tint) { in setTintList()
681 state.mTint = tint; in setTintList()
693 mBlendModeFilter = updateBlendModeFilter(mBlendModeFilter, mBitmapState.mTint, in setTintBlendMode()
704 return mBitmapState.mTint; in getTint()
750 if (state.mTint != null && state.mBlendMode != null) { in onStateChange()
751 mBlendModeFilter = updateBlendModeFilter(mBlendModeFilter, state.mTint, in onStateChange()
760 return (mBitmapState.mTint != null && mBitmapState.mTint.isStateful()) in isStateful()
766 return mBitmapState.mTint != null && mBitmapState.mTint.hasFocusStateSpecified(); in hasFocusStateSpecified()
875 state.mTint = tint; in updateStateFromTypedArray()
925 if (state.mTint != null && state.mTint.canApplyTheme()) { in applyTheme()
[all …]
DVectorDrawable.java383 updateColorFilters(mVectorState.mBlendMode, mVectorState.mTint); in updateLocalState()
486 if (state.mTint != tint) { in setTintList()
487 state.mTint = tint; in setTintList()
500 updateColorFilters(state.mBlendMode, state.mTint); in setTintBlendMode()
529 if (state.mTint != null && state.mBlendMode != null) { in onStateChange()
531 ColorStateList tint = state.mTint; in onStateChange()
643 if (state.mTint != null && state.mTint.canApplyTheme()) { in applyTheme()
644 state.mTint = state.mTint.obtainForTheme(t); in applyTheme()
764 state.mTint = tint; in updateStateFromTypedArray()
932 ColorStateList mTint = null; field in VectorDrawable.VectorDrawableState
[all …]
DGradientDrawable.java1157 if (s.mTint != null && s.mBlendMode != null) {
1158 mBlendModeColorFilter = updateBlendModeFilter(mBlendModeColorFilter, s.mTint,
1177 || (s.mTint != null && s.mTint.isStateful());
1185 || (s.mTint != null && s.mTint.hasFocusStateSpecified());
1230 mGradientState.mTint = tint;
1239 mBlendModeColorFilter = updateBlendModeFilter(mBlendModeColorFilter, mGradientState.mTint,
1447 if (state.mTint != null && state.mTint.canApplyTheme()) {
1448 state.mTint = state.mTint.obtainForTheme(t);
1515 state.mTint = tint;
2061 ColorStateList mTint = null;
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DAlphaTintDrawableWrapper.java52 private ColorStateList mTint; field in AlphaTintDrawableWrapper
104 mTint = a.getColorStateList(R.styleable.AlphaTintDrawableWrapper_android_tint); in updateStateFromTypedArray()
115 mTint = tint; in setTintList()
119 if (getDrawable() != null && mTint != null) { in applyTint()
120 getDrawable().mutate().setTintList(mTint); in applyTint()
127 return new AlphaTintState(super.getConstantState(), mThemeAttrs, getAlpha(), mTint); in getConstantState()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
DTintFilter.java32 private int mTint = 0xFF0000FF; field in TintFilter
123 float tint_color[] = {Color.red(mTint) / 255f, in updateParameters()
124 Color.green(mTint) / 255f, in updateParameters()
125 Color.blue(mTint) / 255f }; in updateParameters()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DPageIndicator.java42 private @NonNull ColorStateList mTint; field in PageIndicator
70 mTint = array.getColorStateList(0); in PageIndicator()
72 mTint = Utils.getColorAccent(context); in PageIndicator()
96 v.setImageTintList(mTint); in setNumPages()
109 return mTint; in getTintList()
119 if (color.equals(mTint)) { in setTintList()
122 mTint = color; in setTintList()
127 ((ImageView) v).setImageTintList(mTint); in setTintList()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
DQSIconViewImpl.java54 private int mTint; field in QSIconViewImpl
97 sb.append(", tint=" + mTint); in toString()
172 if (mTint != 0 && allowAnimations && shouldAnimate(iv)) { in setIcon()
173 animateGrayScale(mTint, color, iv, () -> updateIcon(iv, state, allowAnimations)); in setIcon()
219 mTint = color; in setTint()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DRemoteInputView.java132 private int mTint; field in RemoteInputView
186 mTint = ta.getColor(0, 0); in RemoteInputView()
212 if (colorized == mColorized && backgroundColor == mTint) return; in setBackgroundTintColor()
214 mTint = backgroundColor; in setBackgroundTintColor()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt16792 Landroid/graphics/drawable/BitmapDrawable$BitmapState;->mTint:Landroid/content/res/ColorStateList;
16837 Landroid/graphics/drawable/ColorDrawable$ColorState;->mTint:Landroid/content/res/ColorStateList;
16984 Landroid/graphics/drawable/GradientDrawable$GradientState;->mTint:Landroid/content/res/ColorStateLi…
17187 Landroid/graphics/drawable/NinePatchDrawable$NinePatchState;->mTint:Landroid/content/res/ColorState…
17393 Landroid/graphics/drawable/ShapeDrawable$ShapeState;->mTint:Landroid/content/res/ColorStateList;
17492 Landroid/graphics/drawable/VectorDrawable$VectorDrawableState;->mTint:Landroid/content/res/ColorSta…