private ColorStateList createSwitchTrackColorStateList(Context paramContext) { int[] arrayOfInt1 = ThemeUtils.DISABLED_STATE_SET; int i = ThemeUtils.getThemeAttrColor(paramContext, 16842800, 0.1F); int[] arrayOfInt2 = ThemeUtils.CHECKED_STATE_SET; int j = ThemeUtils.getThemeAttrColor(paramContext, R.attr.colorControlActivated, 0.3F); int[] arrayOfInt3 = ThemeUtils.EMPTY_STATE_SET; int k = ThemeUtils.getThemeAttrColor(paramContext, 16842800, 0.3F); return new ColorStateList( new int[][] {arrayOfInt1, arrayOfInt2, arrayOfInt3}, new int[] {i, j, k}); }
private ColorStateList createSpinnerColorStateList(Context paramContext) { int[] arrayOfInt1 = ThemeUtils.DISABLED_STATE_SET; int i = ThemeUtils.getDisabledThemeAttrColor(paramContext, R.attr.colorControlNormal); int[] arrayOfInt2 = ThemeUtils.NOT_PRESSED_OR_FOCUSED_STATE_SET; int j = ThemeUtils.getThemeAttrColor(paramContext, R.attr.colorControlNormal); int[] arrayOfInt3 = ThemeUtils.EMPTY_STATE_SET; int k = ThemeUtils.getThemeAttrColor(paramContext, R.attr.colorControlActivated); return new ColorStateList( new int[][] {arrayOfInt1, arrayOfInt2, arrayOfInt3}, new int[] {i, j, k}); }
private ColorStateList createButtonColorStateList(Context paramContext, int paramInt) { paramInt = ThemeUtils.getThemeAttrColor(paramContext, paramInt); int k = ThemeUtils.getThemeAttrColor(paramContext, R.attr.colorControlHighlight); int[] arrayOfInt1 = ThemeUtils.DISABLED_STATE_SET; int i = ThemeUtils.getDisabledThemeAttrColor(paramContext, R.attr.colorButtonNormal); paramContext = ThemeUtils.PRESSED_STATE_SET; int j = android.support.v4.b.a.a(k, paramInt); int[] arrayOfInt2 = ThemeUtils.FOCUSED_STATE_SET; k = android.support.v4.b.a.a(k, paramInt); return new ColorStateList( new int[][] {arrayOfInt1, paramContext, arrayOfInt2, ThemeUtils.EMPTY_STATE_SET}, new int[] {i, j, k, paramInt}); }
private ColorStateList createSeekbarThumbColorStateList(Context paramContext) { int[] arrayOfInt1 = ThemeUtils.DISABLED_STATE_SET; int i = ThemeUtils.getDisabledThemeAttrColor(paramContext, R.attr.colorControlActivated); int[] arrayOfInt2 = ThemeUtils.EMPTY_STATE_SET; int j = ThemeUtils.getThemeAttrColor(paramContext, R.attr.colorControlActivated); return new ColorStateList(new int[][] {arrayOfInt1, arrayOfInt2}, new int[] {i, j}); }
private ColorStateList createDefaultColorStateList(Context paramContext) { int i = ThemeUtils.getThemeAttrColor(paramContext, R.attr.colorControlNormal); int j = ThemeUtils.getThemeAttrColor(paramContext, R.attr.colorControlActivated); int[] arrayOfInt = ThemeUtils.DISABLED_STATE_SET; int k = ThemeUtils.getDisabledThemeAttrColor(paramContext, R.attr.colorControlNormal); return new ColorStateList( new int[][] { arrayOfInt, ThemeUtils.FOCUSED_STATE_SET, ThemeUtils.ACTIVATED_STATE_SET, ThemeUtils.PRESSED_STATE_SET, ThemeUtils.CHECKED_STATE_SET, ThemeUtils.SELECTED_STATE_SET, ThemeUtils.EMPTY_STATE_SET }, new int[] {k, j, j, j, j, j, i}); }
private ColorStateList createSwitchThumbColorStateList(Context paramContext) { int[][] arrayOfInt = new int[3][]; int[] arrayOfInt1 = new int[3]; ColorStateList localColorStateList = ThemeUtils.getThemeAttrColorStateList(paramContext, R.attr.colorSwitchThumbNormal); if ((localColorStateList != null) && (localColorStateList.isStateful())) { arrayOfInt[0] = ThemeUtils.DISABLED_STATE_SET; arrayOfInt1[0] = localColorStateList.getColorForState(arrayOfInt[0], 0); arrayOfInt[1] = ThemeUtils.CHECKED_STATE_SET; arrayOfInt1[1] = ThemeUtils.getThemeAttrColor(paramContext, R.attr.colorControlActivated); arrayOfInt[2] = ThemeUtils.EMPTY_STATE_SET; arrayOfInt1[2] = localColorStateList.getDefaultColor(); } for (; ; ) { return new ColorStateList(arrayOfInt, arrayOfInt1); arrayOfInt[0] = ThemeUtils.DISABLED_STATE_SET; arrayOfInt1[0] = ThemeUtils.getDisabledThemeAttrColor(paramContext, R.attr.colorSwitchThumbNormal); arrayOfInt[1] = ThemeUtils.CHECKED_STATE_SET; arrayOfInt1[1] = ThemeUtils.getThemeAttrColor(paramContext, R.attr.colorControlActivated); arrayOfInt[2] = ThemeUtils.EMPTY_STATE_SET; arrayOfInt1[2] = ThemeUtils.getThemeAttrColor(paramContext, R.attr.colorSwitchThumbNormal); } }
private static boolean tintDrawableUsingColorFilter( Context paramContext, int paramInt, Drawable paramDrawable) { PorterDuff.Mode localMode = DEFAULT_MODE; int i; int j; if (arrayContains(COLORFILTER_TINT_COLOR_CONTROL_NORMAL, paramInt)) { i = R.attr.colorControlNormal; j = 1; paramInt = -1; } for (; ; ) { if (j != 0) { Drawable localDrawable = paramDrawable; if (DrawableUtils.canSafelyMutateDrawable(paramDrawable)) { localDrawable = paramDrawable.mutate(); } localDrawable.setColorFilter( getPorterDuffColorFilter(ThemeUtils.getThemeAttrColor(paramContext, i), localMode)); if (paramInt != -1) { localDrawable.setAlpha(paramInt); } return true; if (arrayContains(COLORFILTER_COLOR_CONTROL_ACTIVATED, paramInt)) { i = R.attr.colorControlActivated; j = 1; paramInt = -1; continue; } if (arrayContains(COLORFILTER_COLOR_BACKGROUND_MULTIPLY, paramInt)) { localMode = PorterDuff.Mode.MULTIPLY; j = 1; i = 16842801; paramInt = -1; continue; } if (paramInt == R.drawable.abc_list_divider_mtrl_alpha) { i = 16842800; paramInt = Math.round(40.8F); j = 1; } } else { return false; } paramInt = -1; i = 0; j = 0; } }
private Drawable tintDrawable( Context paramContext, int paramInt, boolean paramBoolean, Drawable paramDrawable) { Object localObject = getTintList(paramContext, paramInt); if (localObject != null) { paramContext = paramDrawable; if (DrawableUtils.canSafelyMutateDrawable(paramDrawable)) { paramContext = paramDrawable.mutate(); } paramContext = android.support.v4.b.a.a.f(paramContext); android.support.v4.b.a.a.a(paramContext, (ColorStateList) localObject); paramDrawable = getTintMode(paramInt); localObject = paramContext; if (paramDrawable != null) { android.support.v4.b.a.a.a(paramContext, paramDrawable); localObject = paramContext; } } do { do { return (Drawable) localObject; if (paramInt == R.drawable.abc_cab_background_top_material) { return new LayerDrawable( new Drawable[] { getDrawable(paramContext, R.drawable.abc_cab_background_internal_bg), getDrawable(paramContext, R.drawable.abc_cab_background_top_mtrl_alpha) }); } if (paramInt == R.drawable.abc_seekbar_track_material) { localObject = (LayerDrawable) paramDrawable; setPorterDuffColorFilter( ((LayerDrawable) localObject).findDrawableByLayerId(16908288), ThemeUtils.getThemeAttrColor(paramContext, R.attr.colorControlNormal), DEFAULT_MODE); setPorterDuffColorFilter( ((LayerDrawable) localObject).findDrawableByLayerId(16908303), ThemeUtils.getThemeAttrColor(paramContext, R.attr.colorControlNormal), DEFAULT_MODE); setPorterDuffColorFilter( ((LayerDrawable) localObject).findDrawableByLayerId(16908301), ThemeUtils.getThemeAttrColor(paramContext, R.attr.colorControlActivated), DEFAULT_MODE); return paramDrawable; } if ((paramInt == R.drawable.abc_ratingbar_indicator_material) || (paramInt == R.drawable.abc_ratingbar_small_material)) { localObject = (LayerDrawable) paramDrawable; setPorterDuffColorFilter( ((LayerDrawable) localObject).findDrawableByLayerId(16908288), ThemeUtils.getDisabledThemeAttrColor(paramContext, R.attr.colorControlNormal), DEFAULT_MODE); setPorterDuffColorFilter( ((LayerDrawable) localObject).findDrawableByLayerId(16908303), ThemeUtils.getThemeAttrColor(paramContext, R.attr.colorControlActivated), DEFAULT_MODE); setPorterDuffColorFilter( ((LayerDrawable) localObject).findDrawableByLayerId(16908301), ThemeUtils.getThemeAttrColor(paramContext, R.attr.colorControlActivated), DEFAULT_MODE); return paramDrawable; } localObject = paramDrawable; } while (tintDrawableUsingColorFilter(paramContext, paramInt, paramDrawable)); localObject = paramDrawable; } while (!paramBoolean); return null; }