Home
last modified time | relevance | path

Searched refs:tintMode (Results 1 – 25 of 64) sorted by relevance

123

/frameworks/support/compat/java/android/support/v4/widget/
DCompoundButtonCompat.java68 public void setButtonTintMode(CompoundButton button, PorterDuff.Mode tintMode) { in setButtonTintMode() argument
70 ((TintableCompoundButton) button).setSupportButtonTintMode(tintMode); in setButtonTintMode()
117 public void setButtonTintMode(CompoundButton button, PorterDuff.Mode tintMode) { in setButtonTintMode() argument
118 button.setButtonTintMode(tintMode); in setButtonTintMode()
175 @Nullable PorterDuff.Mode tintMode) { in setButtonTintMode() argument
176 IMPL.setButtonTintMode(button, tintMode); in setButtonTintMode()
DTintableCompoundButton.java62 void setSupportButtonTintMode(@Nullable PorterDuff.Mode tintMode); in setSupportButtonTintMode() argument
/frameworks/support/compat/java/android/support/v4/graphics/drawable/
DDrawableWrapperApi14.java282 public void setTintMode(PorterDuff.Mode tintMode) { in setTintMode() argument
283 mState.mTintMode = tintMode; in setTintMode()
294 final PorterDuff.Mode tintMode = mState.mTintMode; in updateTint() local
296 if (tintList != null && tintMode != null) { in updateTint()
298 if (!mColorFilterSet || color != mCurrentColor || tintMode != mCurrentMode) { in updateTint()
299 setColorFilter(color, tintMode); in updateTint()
301 mCurrentMode = tintMode; in updateTint()
DDrawableWrapperApi21.java94 public void setTintMode(PorterDuff.Mode tintMode) { in setTintMode() argument
96 super.setTintMode(tintMode); in setTintMode()
98 mDrawable.setTintMode(tintMode); in setTintMode()
DDrawableCompat.java161 public static void setTintMode(@NonNull Drawable drawable, @NonNull PorterDuff.Mode tintMode) { in setTintMode() argument
163 drawable.setTintMode(tintMode); in setTintMode()
165 ((TintAwareDrawable) drawable).setTintMode(tintMode); in setTintMode()
/frameworks/support/v7/cardview/src/android/support/v7/widget/
DRoundRectDrawable.java177 public void setTintMode(PorterDuff.Mode tintMode) { in setTintMode() argument
178 mTintMode = tintMode; in setTintMode()
207 private PorterDuffColorFilter createTintFilter(ColorStateList tint, PorterDuff.Mode tintMode) { in createTintFilter() argument
208 if (tint == null || tintMode == null) { in createTintFilter()
212 return new PorterDuffColorFilter(color, tintMode); in createTintFilter()
/frameworks/support/compat/java/android/support/v4/view/
DMenuItemCompat.java105 void setIconTintMode(MenuItem item, PorterDuff.Mode tintMode); in setIconTintMode() argument
193 public void setIconTintMode(MenuItem item, PorterDuff.Mode tintMode) { in setIconTintMode() argument
261 public void setIconTintMode(MenuItem item, PorterDuff.Mode tintMode) { in setIconTintMode() argument
262 item.setIconTintMode(tintMode); in setIconTintMode()
680 public static void setIconTintMode(MenuItem item, PorterDuff.Mode tintMode) {
682 ((SupportMenuItem) item).setIconTintMode(tintMode);
684 IMPL.setIconTintMode(item, tintMode);
DTintableBackgroundView.java59 void setSupportBackgroundTintMode(@Nullable PorterDuff.Mode tintMode); in setSupportBackgroundTintMode() argument
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DAppCompatImageButton.java163 public void setSupportBackgroundTintMode(@Nullable PorterDuff.Mode tintMode) { in setSupportBackgroundTintMode() argument
165 mBackgroundTintHelper.setSupportBackgroundTintMode(tintMode); in setSupportBackgroundTintMode()
218 public void setSupportImageTintMode(@Nullable PorterDuff.Mode tintMode) { in setSupportImageTintMode() argument
220 mImageHelper.setSupportImageTintMode(tintMode); in setSupportImageTintMode()
DAppCompatImageView.java173 public void setSupportBackgroundTintMode(@Nullable PorterDuff.Mode tintMode) { in setSupportBackgroundTintMode() argument
175 mBackgroundTintHelper.setSupportBackgroundTintMode(tintMode); in setSupportBackgroundTintMode()
229 public void setSupportImageTintMode(@Nullable PorterDuff.Mode tintMode) { in setSupportImageTintMode() argument
231 mImageHelper.setSupportImageTintMode(tintMode); in setSupportImageTintMode()
DAppCompatRadioButton.java122 public void setSupportButtonTintMode(@Nullable PorterDuff.Mode tintMode) { in setSupportButtonTintMode() argument
124 mCompoundButtonHelper.setSupportButtonTintMode(tintMode); in setSupportButtonTintMode()
DAppCompatCheckBox.java119 public void setSupportButtonTintMode(@Nullable PorterDuff.Mode tintMode) { in setSupportButtonTintMode() argument
121 mCompoundButtonHelper.setSupportButtonTintMode(tintMode); in setSupportButtonTintMode()
DAppCompatEditText.java124 public void setSupportBackgroundTintMode(@Nullable PorterDuff.Mode tintMode) { in setSupportBackgroundTintMode() argument
126 mBackgroundTintHelper.setSupportBackgroundTintMode(tintMode); in setSupportBackgroundTintMode()
DAppCompatDrawableManager.java270 final PorterDuff.Mode tintMode = getTintMode(resId); in tintDrawable() local
271 if (tintMode != null) { in tintDrawable()
272 DrawableCompat.setTintMode(drawable, tintMode); in tintDrawable()
443 PorterDuff.Mode tintMode = DEFAULT_MODE; in tintDrawableUsingColorFilter() local
457 tintMode = PorterDuff.Mode.MULTIPLY; in tintDrawableUsingColorFilter()
473 drawable.setColorFilter(getPorterDuffColorFilter(color, tintMode)); in tintDrawableUsingColorFilter()
717 PorterDuff.Mode tintMode, final int[] state) { in createTintFilter() argument
718 if (tint == null || tintMode == null) { in createTintFilter()
722 return getPorterDuffColorFilter(color, tintMode); in createTintFilter()
DAppCompatMultiAutoCompleteTextView.java142 public void setSupportBackgroundTintMode(@Nullable PorterDuff.Mode tintMode) { in setSupportBackgroundTintMode() argument
144 mBackgroundTintHelper.setSupportBackgroundTintMode(tintMode); in setSupportBackgroundTintMode()
DAppCompatAutoCompleteTextView.java142 public void setSupportBackgroundTintMode(@Nullable PorterDuff.Mode tintMode) { in setSupportBackgroundTintMode() argument
144 mBackgroundTintHelper.setSupportBackgroundTintMode(tintMode); in setSupportBackgroundTintMode()
DAppCompatCompoundButtonHelper.java92 void setSupportButtonTintMode(@Nullable PorterDuff.Mode tintMode) { in setSupportButtonTintMode() argument
93 mButtonTintMode = tintMode; in setSupportButtonTintMode()
/frameworks/support/compat/tests/java/android/support/v4/graphics/
DDrawableCompatTest.java139 final PorterDuff.Mode tintMode = PorterDuff.Mode.DST; in testTintAwareDrawableGetsTintCallsDirectly() local
143 DrawableCompat.setTintMode(d, tintMode); in testTintAwareDrawableGetsTintCallsDirectly()
147 verify(d).setTintMode(tintMode); in testTintAwareDrawableGetsTintCallsDirectly()
DTestTintAwareDrawable.java41 public void setTintMode(PorterDuff.Mode tintMode) { in setTintMode() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DSlashDrawable.java210 public void setTintMode(@NonNull Mode tintMode) { in setTintMode() argument
211 mTintMode = tintMode; in setTintMode()
212 super.setTintMode(tintMode); in setTintMode()
213 mDrawable.setTintMode(tintMode); in setTintMode()
/frameworks/base/graphics/java/android/graphics/drawable/
DShapeDrawable.java300 public void setTintMode(PorterDuff.Mode tintMode) { in setTintMode() argument
301 mShapeState.mTintMode = tintMode; in setTintMode()
302 mTintFilter = updateTintFilter(mTintFilter, mShapeState.mTint, tintMode); in setTintMode()
476 final int tintMode = a.getInt(R.styleable.ShapeDrawable_tintMode, -1); in updateStateFromTypedArray() local
477 if (tintMode != -1) { in updateStateFromTypedArray()
478 state.mTintMode = Drawable.parseTintMode(tintMode, Mode.SRC_IN); in updateStateFromTypedArray()
DColorDrawable.java191 public void setTintMode(Mode tintMode) { in setTintMode() argument
192 mColorState.mTintMode = tintMode; in setTintMode()
193 mTintFilter = updateTintFilter(mTintFilter, mColorState.mTint, tintMode); in setTintMode()
DNinePatchDrawable.java352 public void setTintMode(@Nullable PorterDuff.Mode tintMode) { in setTintMode() argument
353 mNinePatchState.mTintMode = tintMode; in setTintMode()
354 mTintFilter = updateTintFilter(mTintFilter, mNinePatchState.mTint, tintMode); in setTintMode()
462 final int tintMode = a.getInt(R.styleable.NinePatchDrawable_tintMode, -1); in updateStateFromTypedArray() local
463 if (tintMode != -1) { in updateStateFromTypedArray()
464 state.mTintMode = Drawable.parseTintMode(tintMode, Mode.SRC_IN); in updateStateFromTypedArray()
/frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/
DTestUtilsActions.java118 public static ViewAction setBackgroundTintModeViewCompat(final PorterDuff.Mode tintMode) {
134 ViewCompat.setBackgroundTintMode(view, tintMode);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DBarTransitions.java195 public void setTintMode(Mode tintMode) { in setTintMode() argument
197 mTintFilter = new PorterDuffColorFilter(0, tintMode); in setTintMode()
199 mTintFilter.setMode(tintMode); in setTintMode()

123