Home
last modified time | relevance | path

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

/frameworks/base/graphics/java/android/graphics/drawable/
DColorDrawable.java211 mColorState.mTint = tint; in setTintList()
220 mBlendModeColorFilter = updateBlendModeFilter(mBlendModeColorFilter, mColorState.mTint, in setTintBlendMode()
228 if (state.mTint != null && state.mBlendMode != null) { in onStateChange()
229 mBlendModeColorFilter = updateBlendModeFilter(mBlendModeColorFilter, state.mTint, in onStateChange()
238 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.java85 if (mState.mTint != null) { in applyTheme()
86 setTintList(mState.mTint.obtainForTheme(t)); in applyTheme()
112 mState.mTint = tint; in setTintList()
244 ColorStateList mTint = null; field in ColorStateListDrawable.ColorStateListDrawableState
254 mTint = state.mTint; in ColorStateListDrawableState()
269 | (mTint != null ? mTint.getChangingConfigurations() : 0); in getChangingConfigurations()
274 || (mTint != null && mTint.isStateful()); in isStateful()
279 || (mTint != null && mTint.hasFocusStateSpecified()); in hasFocusStateSpecified()
285 || (mTint != null && mTint.canApplyTheme()); in canApplyTheme()
298 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()
373 return mShapeState.mTint != null && mShapeState.mTint.hasFocusStateSpecified(); in hasFocusStateSpecified()
447 if (state.mTint != null && state.mTint.canApplyTheme()) { in applyTheme()
448 state.mTint = state.mTint.obtainForTheme(t); in applyTheme()
485 state.mTint = tint; in updateStateFromTypedArray()
544 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()
588 return mNinePatchState.mTint != null && mNinePatchState.mTint.hasFocusStateSpecified(); in hasFocusStateSpecified()
597 ColorStateList mTint = null; field in NinePatchDrawable.NinePatchState
[all …]
DBitmapDrawable.java679 if (state.mTint != tint) { in setTintList()
680 state.mTint = tint; in setTintList()
692 mBlendModeFilter = updateBlendModeFilter(mBlendModeFilter, mBitmapState.mTint, in setTintBlendMode()
703 return mBitmapState.mTint; in getTint()
749 if (state.mTint != null && state.mBlendMode != null) { in onStateChange()
750 mBlendModeFilter = updateBlendModeFilter(mBlendModeFilter, state.mTint, in onStateChange()
759 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.java378 updateColorFilters(mVectorState.mBlendMode, mVectorState.mTint); in updateLocalState()
481 if (state.mTint != tint) { in setTintList()
482 state.mTint = tint; in setTintList()
495 updateColorFilters(state.mBlendMode, state.mTint); in setTintBlendMode()
525 if (state.mTint != null && state.mBlendMode != null) { in onStateChange()
527 ColorStateList tint = state.mTint; in onStateChange()
639 if (state.mTint != null && state.mTint.canApplyTheme()) { in applyTheme()
640 state.mTint = state.mTint.obtainForTheme(t); in applyTheme()
760 state.mTint = tint; in updateStateFromTypedArray()
928 ColorStateList mTint = null; field in VectorDrawable.VectorDrawableState
[all …]
DGradientDrawable.java1144 if (s.mTint != null && s.mBlendMode != null) {
1145 mBlendModeColorFilter = updateBlendModeFilter(mBlendModeColorFilter, s.mTint,
1164 || (s.mTint != null && s.mTint.isStateful());
1173 || (s.mTint != null && s.mTint.hasFocusStateSpecified());
1218 mGradientState.mTint = tint;
1227 mBlendModeColorFilter = updateBlendModeFilter(mBlendModeColorFilter, mGradientState.mTint,
1427 if (state.mTint != null && state.mTint.canApplyTheme()) {
1428 state.mTint = state.mTint.obtainForTheme(t);
1487 state.mTint = tint;
2023 ColorStateList mTint = null;
[all …]
/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/tileimpl/
DQSIconViewImpl.java49 private int mTint; field in QSIconViewImpl
82 sb.append(", tint=" + mTint); in toString()
153 if (mTint != 0 && allowAnimations && shouldAnimate(iv)) { in setIcon()
154 animateGrayScale(mTint, color, iv, () -> updateIcon(iv, state, allowAnimations)); in setIcon()
155 mTint = color; in setIcon()
163 mTint = color; in setIcon()