Initial commit
This commit is contained in:
67
sources/androidx/media/AudioAttributesImplBase.java
Normal file
67
sources/androidx/media/AudioAttributesImplBase.java
Normal file
@@ -0,0 +1,67 @@
|
||||
package androidx.media;
|
||||
|
||||
import com.chad.library.adapter.base.BaseQuickAdapter;
|
||||
import java.util.Arrays;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
class AudioAttributesImplBase implements AudioAttributesImpl {
|
||||
int a = 0;
|
||||
int b = 0;
|
||||
int c = 0;
|
||||
int d = -1;
|
||||
|
||||
AudioAttributesImplBase() {
|
||||
}
|
||||
|
||||
public int a() {
|
||||
return this.b;
|
||||
}
|
||||
|
||||
public int b() {
|
||||
int i = this.c;
|
||||
int c = c();
|
||||
if (c == 6) {
|
||||
i |= 4;
|
||||
} else if (c == 7) {
|
||||
i |= 1;
|
||||
}
|
||||
return i & BaseQuickAdapter.HEADER_VIEW;
|
||||
}
|
||||
|
||||
public int c() {
|
||||
int i = this.d;
|
||||
return i != -1 ? i : AudioAttributesCompat.a(false, this.c, this.a);
|
||||
}
|
||||
|
||||
public int d() {
|
||||
return this.a;
|
||||
}
|
||||
|
||||
public boolean equals(Object obj) {
|
||||
if (!(obj instanceof AudioAttributesImplBase)) {
|
||||
return false;
|
||||
}
|
||||
AudioAttributesImplBase audioAttributesImplBase = (AudioAttributesImplBase) obj;
|
||||
return this.b == audioAttributesImplBase.a() && this.c == audioAttributesImplBase.b() && this.a == audioAttributesImplBase.d() && this.d == audioAttributesImplBase.d;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return Arrays.hashCode(new Object[]{Integer.valueOf(this.b), Integer.valueOf(this.c), Integer.valueOf(this.a), Integer.valueOf(this.d)});
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder("AudioAttributesCompat:");
|
||||
if (this.d != -1) {
|
||||
sb.append(" stream=");
|
||||
sb.append(this.d);
|
||||
sb.append(" derived");
|
||||
}
|
||||
sb.append(" usage=");
|
||||
sb.append(AudioAttributesCompat.a(this.a));
|
||||
sb.append(" content=");
|
||||
sb.append(this.b);
|
||||
sb.append(" flags=0x");
|
||||
sb.append(Integer.toHexString(this.c).toUpperCase());
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user