package b3; import android.util.SparseArray; import java.util.HashMap; import o2.d; /* loaded from: classes.dex */ public abstract class a { /* renamed from: a, reason: collision with root package name */ private static SparseArray f3072a = new SparseArray(); /* renamed from: b, reason: collision with root package name */ private static HashMap f3073b; static { HashMap hashMap = new HashMap(); f3073b = hashMap; hashMap.put(d.DEFAULT, 0); f3073b.put(d.VERY_LOW, 1); f3073b.put(d.HIGHEST, 2); for (d dVar : f3073b.keySet()) { f3072a.append(((Integer) f3073b.get(dVar)).intValue(), dVar); } } public static int a(d dVar) { Integer num = (Integer) f3073b.get(dVar); if (num != null) { return num.intValue(); } throw new IllegalStateException("PriorityMapping is missing known Priority value " + dVar); } public static d b(int i10) { d dVar = (d) f3072a.get(i10); if (dVar != null) { return dVar; } throw new IllegalArgumentException("Unknown Priority for value " + i10); } }