53 lines
1.5 KiB
Java
53 lines
1.5 KiB
Java
package c.i.a.c.v1;
|
|
|
|
import android.media.AudioAttributes;
|
|
import androidx.annotation.Nullable;
|
|
import androidx.annotation.RequiresApi;
|
|
import c.i.a.c.i2.f0;
|
|
/* compiled from: AudioAttributes */
|
|
public final class n {
|
|
public static final n a = new n(0, 0, 1, 1, null);
|
|
public final int b;
|
|
|
|
/* renamed from: c reason: collision with root package name */
|
|
public final int f1003c;
|
|
public final int d;
|
|
public final int e;
|
|
@Nullable
|
|
public AudioAttributes f;
|
|
|
|
public n(int i, int i2, int i3, int i4, a aVar) {
|
|
this.b = i;
|
|
this.f1003c = i2;
|
|
this.d = i3;
|
|
this.e = i4;
|
|
}
|
|
|
|
@RequiresApi(21)
|
|
public AudioAttributes a() {
|
|
if (this.f == null) {
|
|
AudioAttributes.Builder usage = new AudioAttributes.Builder().setContentType(this.b).setFlags(this.f1003c).setUsage(this.d);
|
|
if (f0.a >= 29) {
|
|
usage.setAllowedCapturePolicy(this.e);
|
|
}
|
|
this.f = usage.build();
|
|
}
|
|
return this.f;
|
|
}
|
|
|
|
public boolean equals(@Nullable Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (obj == null || n.class != obj.getClass()) {
|
|
return false;
|
|
}
|
|
n nVar = (n) obj;
|
|
return this.b == nVar.b && this.f1003c == nVar.f1003c && this.d == nVar.d && this.e == nVar.e;
|
|
}
|
|
|
|
public int hashCode() {
|
|
return ((((((527 + this.b) * 31) + this.f1003c) * 31) + this.d) * 31) + this.e;
|
|
}
|
|
}
|