54 lines
1.4 KiB
Java
54 lines
1.4 KiB
Java
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[] f1004c;
|
|
public final int d;
|
|
|
|
public o(@Nullable int[] iArr, int i) {
|
|
if (iArr != null) {
|
|
int[] copyOf = Arrays.copyOf(iArr, iArr.length);
|
|
this.f1004c = copyOf;
|
|
Arrays.sort(copyOf);
|
|
} else {
|
|
this.f1004c = new int[0];
|
|
}
|
|
this.d = i;
|
|
}
|
|
|
|
public boolean a(int i) {
|
|
return Arrays.binarySearch(this.f1004c, 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.f1004c, oVar.f1004c) && this.d == oVar.d;
|
|
}
|
|
|
|
public int hashCode() {
|
|
return (Arrays.hashCode(this.f1004c) * 31) + this.d;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder P = a.P("AudioCapabilities[maxChannelCount=");
|
|
P.append(this.d);
|
|
P.append(", supportedEncodings=");
|
|
P.append(Arrays.toString(this.f1004c));
|
|
P.append("]");
|
|
return P.toString();
|
|
}
|
|
}
|