@Test(expected = NullPointerException.class) public void testGetTintedDrawableFromResNullContext() { DrawableUtils.getTintedDrawable(null, 0, null); }
@Nullable public static Drawable getTintedDrawable(@NonNull final Context context, @DrawableRes final int res, @Nullable final ColorStateList tint) { final Drawable d = ResourcesCompat.getDrawable(context.getResources(), res, context.getTheme()); return getTintedDrawable(d, tint); }
DrawableUtils { @Nullable public static Drawable getTintedDrawable(@NonNull final Context context, @DrawableRes final int res, @Nullable final ColorStateList tint) { final Drawable d = ResourcesCompat.getDrawable(context.getResources(), res, context.getTheme()); return getTintedDrawable(d, tint); } }
DrawableUtils { @Nullable public static Drawable getTintedDrawable(@NonNull final Context context, @DrawableRes final int res, @Nullable final ColorStateList tint) { final Drawable d = ResourcesCompat.getDrawable(context.getResources(), res, context.getTheme()); return getTintedDrawable(d, tint); } private  DrawableUtils(); }
DrawableUtils { @Nullable public static Drawable getTintedDrawable(@NonNull final Context context, @DrawableRes final int res, @Nullable final ColorStateList tint) { final Drawable d = ResourcesCompat.getDrawable(context.getResources(), res, context.getTheme()); return getTintedDrawable(d, tint); } private  DrawableUtils(); @Nullable static Drawable getTintedDrawableFromAttrTint(@NonNull final Context context,
            @DrawableRes final int res,
            @AttrRes final int tintAttr); @Nullable static Drawable getTintedDrawableFromAttrTint(@NonNull final Context context,
            @Nullable final Drawable src,
            @AttrRes final int tintAttr); @Nullable static Drawable getTintedDrawable(@NonNull final Context context,
            @DrawableRes final int res,
            @Nullable final ColorStateList tint); @Nullable static Drawable getTintedDrawable(@NonNull final Context context,
            @DrawableRes final int res,
            @ColorInt final int tint); @Nullable static Drawable getTintedDrawable(@Nullable Drawable drawable,
            @Nullable final ColorStateList tint); @Nullable static Drawable getTintedDrawable(@Nullable Drawable drawable,
            @ColorInt final int tint); }
DrawableUtils { @Nullable public static Drawable getTintedDrawable(@NonNull final Context context, @DrawableRes final int res, @Nullable final ColorStateList tint) { final Drawable d = ResourcesCompat.getDrawable(context.getResources(), res, context.getTheme()); return getTintedDrawable(d, tint); } private  DrawableUtils(); @Nullable static Drawable getTintedDrawableFromAttrTint(@NonNull final Context context,
            @DrawableRes final int res,
            @AttrRes final int tintAttr); @Nullable static Drawable getTintedDrawableFromAttrTint(@NonNull final Context context,
            @Nullable final Drawable src,
            @AttrRes final int tintAttr); @Nullable static Drawable getTintedDrawable(@NonNull final Context context,
            @DrawableRes final int res,
            @Nullable final ColorStateList tint); @Nullable static Drawable getTintedDrawable(@NonNull final Context context,
            @DrawableRes final int res,
            @ColorInt final int tint); @Nullable static Drawable getTintedDrawable(@Nullable Drawable drawable,
            @Nullable final ColorStateList tint); @Nullable static Drawable getTintedDrawable(@Nullable Drawable drawable,
            @ColorInt final int tint);  }