package n3; import android.R; import android.content.res.ColorStateList; import android.graphics.Color; import android.os.Build; import android.util.Log; /* loaded from: classes2.dex */ public abstract class b { /* renamed from: a, reason: collision with root package name */ public static final boolean f11961a = true; /* renamed from: b, reason: collision with root package name */ private static final int[] f11962b = {R.attr.state_pressed}; /* renamed from: c, reason: collision with root package name */ private static final int[] f11963c = {R.attr.state_hovered, R.attr.state_focused}; /* renamed from: d, reason: collision with root package name */ private static final int[] f11964d = {R.attr.state_focused}; /* renamed from: e, reason: collision with root package name */ private static final int[] f11965e = {R.attr.state_hovered}; /* renamed from: f, reason: collision with root package name */ private static final int[] f11966f = {R.attr.state_selected, R.attr.state_pressed}; /* renamed from: g, reason: collision with root package name */ private static final int[] f11967g = {R.attr.state_selected, R.attr.state_hovered, R.attr.state_focused}; /* renamed from: h, reason: collision with root package name */ private static final int[] f11968h = {R.attr.state_selected, R.attr.state_focused}; /* renamed from: i, reason: collision with root package name */ private static final int[] f11969i = {R.attr.state_selected, R.attr.state_hovered}; /* renamed from: j, reason: collision with root package name */ private static final int[] f11970j = {R.attr.state_selected}; /* renamed from: k, reason: collision with root package name */ private static final int[] f11971k = {R.attr.state_enabled, R.attr.state_pressed}; /* renamed from: l, reason: collision with root package name */ static final String f11972l = b.class.getSimpleName(); public static ColorStateList a(ColorStateList colorStateList) { if (colorStateList == null) { return ColorStateList.valueOf(0); } int i10 = Build.VERSION.SDK_INT; if (i10 >= 22 && i10 <= 27 && Color.alpha(colorStateList.getDefaultColor()) == 0 && Color.alpha(colorStateList.getColorForState(f11971k, 0)) != 0) { Log.w(f11972l, "Use a non-transparent color for the default color as it will be used to finish ripple animations."); } return colorStateList; } public static boolean b(int[] iArr) { boolean z10 = false; boolean z11 = false; for (int i10 : iArr) { if (i10 == 16842910) { z10 = true; } else if (i10 == 16842908 || i10 == 16842919 || i10 == 16843623) { z11 = true; } } return z10 && z11; } }