Lines Matching refs:resId

142     public static Drawable getDrawable(Context context, int resId) {
143 if (isInTintList(resId)) {
144 return TintManager.get(context).getDrawable(resId);
146 return ContextCompat.getDrawable(context, resId);
166 public Drawable getDrawable(int resId) {
167 return getDrawable(resId, false);
170 public Drawable getDrawable(int resId, boolean failIfNotKnown) {
174 Drawable drawable = ContextCompat.getDrawable(context, resId);
182 final ColorStateList tintList = getTintList(resId);
189 final PorterDuff.Mode tintMode = getTintMode(resId);
193 } else if (resId == R.drawable.abc_cab_background_top_material) {
199 final boolean usedColorFilter = tintDrawableUsingColorFilter(resId, drawable);
210 public final boolean tintDrawableUsingColorFilter(final int resId, Drawable drawable) {
219 if (arrayContains(COLORFILTER_TINT_COLOR_CONTROL_NORMAL, resId)) {
222 } else if (arrayContains(COLORFILTER_COLOR_CONTROL_ACTIVATED, resId)) {
225 } else if (arrayContains(COLORFILTER_COLOR_BACKGROUND_MULTIPLY, resId)) {
229 } else if (resId == R.drawable.abc_list_divider_mtrl_alpha) {
244 Log.d(TAG, "Tinted Drawable: " + context.getResources().getResourceName(resId) +
271 final PorterDuff.Mode getTintMode(final int resId) {
274 if (resId == R.drawable.abc_switch_thumb_material) {
281 public final ColorStateList getTintList(int resId) {
286 ColorStateList tint = mTintLists != null ? mTintLists.get(resId) : null;
290 if (resId == R.drawable.abc_edit_text_material) {
292 } else if (resId == R.drawable.abc_switch_track_mtrl_alpha) {
294 } else if (resId == R.drawable.abc_switch_thumb_material) {
296 } else if (resId == R.drawable.abc_btn_default_mtrl_shape
297 || resId == R.drawable.abc_btn_borderless_material) {
299 } else if (resId == R.drawable.abc_btn_colored_material) {
301 } else if (resId == R.drawable.abc_spinner_mtrl_am_alpha
302 || resId == R.drawable.abc_spinner_textfield_background_material) {
304 } else if (arrayContains(TINT_COLOR_CONTROL_NORMAL, resId)) {
306 } else if (arrayContains(TINT_COLOR_CONTROL_STATE_LIST, resId)) {
308 } else if (arrayContains(TINT_CHECKABLE_BUTTON_LIST, resId)) {
318 mTintLists.append(resId, tint);