package c.i.a.c.v1; import androidx.annotation.Nullable; import c.d.b.a.a; import java.util.Arrays; /* compiled from: AudioCapabilities */ public final class o { public static final o a = new o(new int[]{2}, 8); public static final o b = new o(new int[]{2, 5, 6}, 8); /* renamed from: c reason: collision with root package name */ public final int[] f992c; public final int d; public o(@Nullable int[] iArr, int i) { if (iArr != null) { int[] copyOf = Arrays.copyOf(iArr, iArr.length); this.f992c = copyOf; Arrays.sort(copyOf); } else { this.f992c = new int[0]; } this.d = i; } public boolean a(int i) { return Arrays.binarySearch(this.f992c, i) >= 0; } public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof o)) { return false; } o oVar = (o) obj; return Arrays.equals(this.f992c, oVar.f992c) && this.d == oVar.d; } public int hashCode() { return (Arrays.hashCode(this.f992c) * 31) + this.d; } public String toString() { StringBuilder L = a.L("AudioCapabilities[maxChannelCount="); L.append(this.d); L.append(", supportedEncodings="); L.append(Arrays.toString(this.f992c)); L.append("]"); return L.toString(); } }