Searched refs:tint (Results 51 - 75 of 93) sorted by relevance

1234

/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
H A DAppCompatButton.java44 * <li>Allows dynamic tint of its background via the background tint methods in
46 * <li>Allows setting of the background tint using {@link R.attr#backgroundTint} and
104 public void setSupportBackgroundTintList(@Nullable ColorStateList tint) { argument
106 mBackgroundTintHelper.setSupportBackgroundTintList(tint);
H A DAppCompatTextView.java46 * <li>Allows dynamic tint of its background via the background tint methods in
48 * <li>Allows setting of the background tint using {@link R.attr#backgroundTint} and
114 public void setSupportBackgroundTintList(@Nullable ColorStateList tint) { argument
116 mBackgroundTintHelper.setSupportBackgroundTintList(tint);
H A DSwitchCompat.java510 * Applies a tint to the track drawable. Does not modify the current
511 * tint mode, which is {@link PorterDuff.Mode#SRC_IN} by default.
514 * automatically mutate the drawable and apply the specified tint and tint
517 * @param tint the tint to apply, may be {@code null} to clear tint
522 public void setTrackTintList(@Nullable ColorStateList tint) { argument
523 mTrackTintList = tint;
530 * @return the tint applie
644 setThumbTintList(@ullable ColorStateList tint) argument
[all...]
/frameworks/support/graphics/drawable/static/src/main/java/androidx/vectordrawable/graphics/drawable/
H A DVectorDrawableCompat.java100 * <dt><code>android:tint</code></dt>
101 * <dd>The color to apply to the drawable as a tint. By default, no tint is applied.</dd>
103 * <dd>The Porter-Duff blending mode for the tint color. Default is src_in.</dd>
295 // Color filters always override tint filters.
387 * Ensures the tint filter is consistent with the current tint color and
390 PorterDuffColorFilter updateTintFilter(PorterDuffColorFilter tintFilter, ColorStateList tint, argument
392 if (tint == null || tintMode == null) {
397 final int color = tint
402 setTint(int tint) argument
412 setTintList(ColorStateList tint) argument
[all...]
H A DAndroidResources.java23 android.R.attr.name, android.R.attr.tint, android.R.attr.height,
/frameworks/base/graphics/java/android/graphics/drawable/
H A DBitmapDrawable.java677 public void setTintList(ColorStateList tint) { argument
679 if (state.mTint != tint) {
680 state.mTint = tint;
681 mTintFilter = updateTintFilter(mTintFilter, tint, mBitmapState.mTintMode);
868 final ColorStateList tint = a.getColorStateList(R.styleable.BitmapDrawable_tint);
869 if (tint != null) {
870 state.mTint = tint;
H A DDrawable.java577 * filter disables {@link #setTintList(ColorStateList) tint}.
593 * {@link #setTintList(ColorStateList) tint}.
607 * Specifies tint color for this drawable.
609 * A Drawable's drawing content will be blended together with its tint
614 * To clear the tint, pass {@code null} to
619 * {@link #setColorFilter(int, PorterDuff.Mode)} overrides tint.
631 * Specifies tint color for this drawable as a color state list.
633 * A Drawable's drawing content will be blended together with its tint
639 * {@link #setColorFilter(int, PorterDuff.Mode)} overrides tint.
642 * @param tint Colo
647 setTintList(@ullable ColorStateList tint) argument
1512 updateTintFilter(@ullable PorterDuffColorFilter tintFilter, @Nullable ColorStateList tint, @Nullable PorterDuff.Mode tintMode) argument
[all...]
H A DDrawableWrapper.java308 public void setTintList(@Nullable ColorStateList tint) { argument
310 mDrawable.setTintList(tint);
H A DDrawableContainer.java185 public void setTintList(ColorStateList tint) { argument
188 if (mDrawableContainerState.mTintList != tint) {
189 mDrawableContainerState.mTintList = tint;
192 mCurrDrawable.setTintList(tint);
392 // This may have been called as the result of a tint changing, in
539 // Color filter always overrides tint.
H A DVectorDrawable.java93 * <dt><code>android:tint</code></dt>
94 * <dd>The color to apply to the drawable as a tint. By default, no tint is applied.</dd>
96 * <dd>The Porter-Duff blending mode for the tint color. Default is src_in.</dd>
412 // Color filters always override tint filters.
471 public void setTintList(ColorStateList tint) { argument
473 if (state.mTint != tint) {
474 state.mTint = tint;
475 mTintFilter = updateTintFilter(mTintFilter, tint, state.mTintMode);
741 final ColorStateList tint
[all...]
/frameworks/support/car/src/main/java/androidx/car/widget/
H A DPagedScrollBarView.java462 int tint = ContextCompat.getColor(getContext(), tintResId);
463 mUpButton.setColorFilter(tint, PorterDuff.Mode.SRC_IN);
466 mDownButton.setColorFilter(tint, PorterDuff.Mode.SRC_IN);
/frameworks/base/core/java/android/view/
H A DMenuItem.java237 * Applies a tint to this item's icon. Does not modify the
238 * current tint mode, which is {@link PorterDuff.Mode#SRC_IN} by default.
241 * automatically mutate the icon and apply the specified tint and
242 * tint mode using
245 * @param tint the tint to apply, may be {@code null} to clear tint
251 public default MenuItem setIconTintList(@Nullable ColorStateList tint) { return this; } argument
254 * @return the tint applied to this item's icon
262 * Specifies the blending mode used to apply the tint specifie
[all...]
/frameworks/base/core/java/android/widget/
H A DAbsSeekBar.java221 * Applies a tint to the thumb drawable. Does not modify the current tint
225 * mutate the drawable and apply the specified tint and tint mode using
228 * @param tint the tint to apply, may be {@code null} to clear tint
234 public void setThumbTintList(@Nullable ColorStateList tint) { argument
235 mThumbTintList = tint;
242 * Returns the tint applie
388 setTickMarkTintList(@ullable ColorStateList tint) argument
[all...]
H A DCheckedTextView.java209 * Applies a tint to the check mark drawable. Does not modify the
210 * current tint mode, which is {@link PorterDuff.Mode#SRC_IN} by default.
213 * automatically mutate the drawable and apply the specified tint and
214 * tint mode using
217 * @param tint the tint to apply, may be {@code null} to clear tint
223 public void setCheckMarkTintList(@Nullable ColorStateList tint) { argument
224 mCheckMarkTintList = tint;
231 * Returns the tint applie
[all...]
H A DProgressBar.java640 * Applies a tint to the indeterminate drawable. Does not modify the
641 * current tint mode, which is {@link PorterDuff.Mode#SRC_IN} by default.
644 * automatically mutate the drawable and apply the specified tint and
645 * tint mode using
648 * @param tint the tint to apply, may be {@code null} to clear tint
655 public void setIndeterminateTintList(@Nullable ColorStateList tint) { argument
659 mProgressTintInfo.mIndeterminateTintList = tint;
666 * @return the tint applie
925 setProgressTintList(@ullable ColorStateList tint) argument
1007 setProgressBackgroundTintList(@ullable ColorStateList tint) argument
1085 setSecondaryProgressTintList(@ullable ColorStateList tint) argument
[all...]
H A DCompoundButton.java287 * Applies a tint to the button drawable. Does not modify the current tint
291 * automatically mutate the drawable and apply the specified tint and tint
295 * @param tint the tint to apply, may be {@code null} to clear tint
301 public void setButtonTintList(@Nullable ColorStateList tint) { argument
302 mButtonTintList = tint;
309 * @return the tint applie
[all...]
H A DSwitch.java531 * Applies a tint to the track drawable. Does not modify the current
532 * tint mode, which is {@link PorterDuff.Mode#SRC_IN} by default.
535 * automatically mutate the drawable and apply the specified tint and tint
538 * @param tint the tint to apply, may be {@code null} to clear tint
544 public void setTrackTintList(@Nullable ColorStateList tint) { argument
545 mTrackTintList = tint;
552 * @return the tint applie
667 setThumbTintList(@ullable ColorStateList tint) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DClock.java254 public void onDarkChanged(Rect area, float darkIntensity, int tint) { argument
255 mNonAdaptedColor = DarkIconDispatcher.getTint(area, this, tint);
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/view/menu/
H A DMenuItemWrapperICS.java351 public MenuItem setIconTintList(ColorStateList tint) { argument
352 mWrappedObject.setIconTintList(tint);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DScrimController.java576 private void updateScrimColor(View scrim, float alpha, int tint) { argument
587 Color.alpha(tint));
589 scrimView.setTint(tint);
608 int tint = ColorUtils.blendARGB(initialScrimTint, finalScrimTint, animAmount);
609 updateScrimColor(scrim, alpha, tint);
685 // At the end of the animation we need to remove the tint.
857 pw.print(" tint=0x"); pw.println(Integer.toHexString(mScrimInFront.getTint()));
861 pw.print(" tint=0x"); pw.println(Integer.toHexString(mScrimBehind.getTint()));
/frameworks/support/wear/src/main/java/androidx/wear/widget/
H A DCircledImageView.java427 /** Sets the tint. */
428 public void setImageTint(int tint) { argument
429 if (mImageTint == null || tint != mImageTint) {
430 mImageTint = tint;
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
H A DLockscreenFragment.java367 mIconState.tint = false;
395 mIconState.tint = false;
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DScreenDecorations.java169 int tint = value != 0 ? Color.WHITE : Color.BLACK;
170 ColorStateList tintList = ColorStateList.valueOf(tint);
175 cutoutTop.setColor(tint);
176 cutoutBottom.setColor(tint);
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
H A DSubscriptionControllerMock.java152 public int setIconTint(int tint, int subId) { argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
H A DVolumeDialogImpl.java906 final ColorStateList tint = useActiveColoring ? mActiveTint : mInactiveTint;
908 if (tint == row.cachedTint) return;
909 row.slider.setProgressTintList(tint);
910 row.slider.setThumbTintList(tint);
911 row.slider.setProgressBackgroundTintList(tint);
913 row.icon.setImageTintList(tint);
915 row.cachedTint = tint;

Completed in 337 milliseconds

1234