package androidx.media;

import android.util.SparseIntArray;
import ඓ.K.K.K.C1293;
import ῲ.ᑓ.AbstractC1615;

public class AudioAttributesCompat implements AbstractC1615 {

    /* renamed from: ῲ  reason: contains not printable characters */
    public static final SparseIntArray f1370 = new SparseIntArray();

    /* renamed from: K  reason: contains not printable characters */
    public AudioAttributesImpl f1371;

    static {
        f1370.put(5, 1);
        f1370.put(6, 2);
        f1370.put(7, 2);
        f1370.put(8, 1);
        f1370.put(9, 1);
        f1370.put(10, 1);
    }

    /* renamed from: K  reason: contains not printable characters */
    public static String m717(int i) {
        switch (i) {
            case 0:
                return "USAGE_UNKNOWN";
            case 1:
                return "USAGE_MEDIA";
            case 2:
                return "USAGE_VOICE_COMMUNICATION";
            case 3:
                return "USAGE_VOICE_COMMUNICATION_SIGNALLING";
            case 4:
                return "USAGE_ALARM";
            case 5:
                return "USAGE_NOTIFICATION";
            case 6:
                return "USAGE_NOTIFICATION_RINGTONE";
            case 7:
                return "USAGE_NOTIFICATION_COMMUNICATION_REQUEST";
            case 8:
                return "USAGE_NOTIFICATION_COMMUNICATION_INSTANT";
            case 9:
                return "USAGE_NOTIFICATION_COMMUNICATION_DELAYED";
            case 10:
                return "USAGE_NOTIFICATION_EVENT";
            case 11:
                return "USAGE_ASSISTANCE_ACCESSIBILITY";
            case 12:
                return "USAGE_ASSISTANCE_NAVIGATION_GUIDANCE";
            case 13:
                return "USAGE_ASSISTANCE_SONIFICATION";
            case 14:
                return "USAGE_GAME";
            case 15:
            default:
                return C1293.m3408("unknown usage ", i);
            case 16:
                return "USAGE_ASSISTANT";
        }
    }

    public boolean equals(Object obj) {
        if (!(obj instanceof AudioAttributesCompat)) {
            return false;
        }
        AudioAttributesCompat audioAttributesCompat = (AudioAttributesCompat) obj;
        AudioAttributesImpl audioAttributesImpl = this.f1371;
        if (audioAttributesImpl != null) {
            return audioAttributesImpl.equals(audioAttributesCompat.f1371);
        }
        if (audioAttributesCompat.f1371 == null) {
            return true;
        }
        return false;
    }

    public int hashCode() {
        return this.f1371.hashCode();
    }

    public String toString() {
        return this.f1371.toString();
    }

    /* renamed from: K  reason: contains not printable characters */
    public static int m716(boolean z, int i, int i2) {
        if ((i & 1) == 1) {
            return z ? 1 : 7;
        }
        if ((i & 4) == 4) {
            return z ? 0 : 6;
        }
        switch (i2) {
            case 0:
                return z ? Integer.MIN_VALUE : 3;
            case 1:
            case 12:
            case 14:
            case 16:
                return 3;
            case 2:
                return 0;
            case 3:
                return z ? 0 : 8;
            case 4:
                return 4;
            case 5:
            case 7:
            case 8:
            case 9:
            case 10:
                return 5;
            case 6:
                return 2;
            case 11:
                return 10;
            case 13:
                return 1;
            case 15:
            default:
                if (!z) {
                    return 3;
                }
                throw new IllegalArgumentException("Unknown usage value " + i2 + " in audio attributes");
        }
    }
}
