package ti;

import android.util.SparseArray;
import gi.f;
import java.util.HashMap;

/* loaded from: classes.dex */
public abstract class a {

    /* renamed from: a, reason: collision with root package name */
    private static SparseArray f36313a = new SparseArray();

    /* renamed from: b, reason: collision with root package name */
    private static HashMap f36314b;

    static {
        HashMap hashMap = new HashMap();
        f36314b = hashMap;
        hashMap.put(f.DEFAULT, 0);
        f36314b.put(f.VERY_LOW, 1);
        f36314b.put(f.HIGHEST, 2);
        for (f fVar : f36314b.keySet()) {
            f36313a.append(((Integer) f36314b.get(fVar)).intValue(), fVar);
        }
    }

    public static int a(f fVar) {
        Integer num = (Integer) f36314b.get(fVar);
        if (num != null) {
            return num.intValue();
        }
        throw new IllegalStateException("PriorityMapping is missing known Priority value " + fVar);
    }

    public static f b(int i10) {
        f fVar = (f) f36313a.get(i10);
        if (fVar != null) {
            return fVar;
        }
        throw new IllegalArgumentException("Unknown Priority for value " + i10);
    }
}
