cardview/src/main/java/androidx/cardview/widget/RoundRectDrawable.java
private PorterDuffColorFilter createTintFilter(ColorStateList tint, PorterDuff.Mode tintMode) {
        if (tint == null || tintMode == null) {
            return null;
        }
        final int color = tint.getColorForState(getState(), Color.TRANSPARENT);
        return new PorterDuffColorFilter(color, tintMode);
    }
/**
     * Ensures the tint filter is consistent with the current tint color and
     * mode.
     */
Ensures the tint filter is consistent with the current tint color and
mode.
Ensures the tint filter is consistent with the current tint color and mode .
private PorterDuffColorFilter createTintFilter(ColorStateList tint, PorterDuff.Mode tintMode) {
        if (tint == null || tintMode == null) {
            return null;
        }
        final int color = tint.getColorForState(getState(), Color.TRANSPARENT);
        return new PorterDuffColorFilter(color, tintMode);
    }
private PorterDuffColorFilter createTintFilter ( ColorStateList tint , PorterDuff . Mode tintMode ) { if ( tint == null || tintMode == null ) { return null ; } final int color = tint . getColorForState ( getState ( ) , Color . TRANSPARENT ) ; return new PorterDuffColorFilter ( color , tintMode ) ; }
Ensures the tint filter is consistent with the current tint color and
 mode.
Ensures the tint filter is consistent with the current tint color and mode .