- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
129 lines
3.8 KiB
Java
129 lines
3.8 KiB
Java
package com.applovin.impl;
|
|
|
|
import android.net.Uri;
|
|
import java.lang.reflect.Constructor;
|
|
import java.util.ArrayList;
|
|
import java.util.HashMap;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class c6 implements o8 {
|
|
private static final int[] n = {5, 4, 12, 8, 3, 10, 9, 11, 6, 2, 0, 1, 7, 14};
|
|
private static final Constructor o;
|
|
private boolean b;
|
|
private boolean c;
|
|
private int d;
|
|
private int e;
|
|
private int f;
|
|
private int g;
|
|
private int h;
|
|
private int i;
|
|
private int j;
|
|
private int l;
|
|
private int k = 1;
|
|
private int m = 112800;
|
|
|
|
static {
|
|
Constructor constructor = null;
|
|
try {
|
|
if (Boolean.TRUE.equals(Class.forName("com.applovin.exoplayer2.ext.flac.FlacLibrary").getMethod("isAvailable", new Class[0]).invoke(null, new Object[0]))) {
|
|
constructor = Class.forName("com.applovin.exoplayer2.ext.flac.FlacExtractor").asSubclass(k8.class).getConstructor(Integer.TYPE);
|
|
}
|
|
} catch (ClassNotFoundException unused) {
|
|
} catch (Exception e) {
|
|
throw new RuntimeException("Error instantiating FLAC extension", e);
|
|
}
|
|
o = constructor;
|
|
}
|
|
|
|
private void a(int i, List list) {
|
|
switch (i) {
|
|
case 0:
|
|
list.add(new i());
|
|
return;
|
|
case 1:
|
|
list.add(new l());
|
|
return;
|
|
case 2:
|
|
list.add(new j0((this.c ? 2 : 0) | this.d | (this.b ? 1 : 0)));
|
|
return;
|
|
case 3:
|
|
list.add(new q0((this.c ? 2 : 0) | this.e | (this.b ? 1 : 0)));
|
|
return;
|
|
case 4:
|
|
Constructor constructor = o;
|
|
if (constructor != null) {
|
|
try {
|
|
list.add((k8) constructor.newInstance(Integer.valueOf(this.f)));
|
|
return;
|
|
} catch (Exception e) {
|
|
throw new IllegalStateException("Unexpected error creating FLAC extractor", e);
|
|
}
|
|
}
|
|
list.add(new v8(this.f));
|
|
return;
|
|
case 5:
|
|
list.add(new e9());
|
|
return;
|
|
case 6:
|
|
list.add(new yc(this.g));
|
|
return;
|
|
case 7:
|
|
list.add(new of((this.c ? 2 : 0) | this.j | (this.b ? 1 : 0)));
|
|
return;
|
|
case 8:
|
|
list.add(new j9(this.i));
|
|
list.add(new pf(this.h));
|
|
return;
|
|
case 9:
|
|
list.add(new hg());
|
|
return;
|
|
case 10:
|
|
list.add(new ii());
|
|
return;
|
|
case 11:
|
|
list.add(new cp(this.k, this.l, this.m));
|
|
return;
|
|
case 12:
|
|
list.add(new lr());
|
|
return;
|
|
case 13:
|
|
default:
|
|
return;
|
|
case 14:
|
|
list.add(new yb());
|
|
return;
|
|
}
|
|
}
|
|
|
|
@Override // com.applovin.impl.o8
|
|
public synchronized k8[] a() {
|
|
return a(Uri.EMPTY, new HashMap());
|
|
}
|
|
|
|
@Override // com.applovin.impl.o8
|
|
public synchronized k8[] a(Uri uri, Map map) {
|
|
ArrayList arrayList;
|
|
try {
|
|
arrayList = new ArrayList(14);
|
|
int a = q8.a(map);
|
|
if (a != -1) {
|
|
a(a, arrayList);
|
|
}
|
|
int a2 = q8.a(uri);
|
|
if (a2 != -1 && a2 != a) {
|
|
a(a2, arrayList);
|
|
}
|
|
for (int i : n) {
|
|
if (i != a && i != a2) {
|
|
a(i, arrayList);
|
|
}
|
|
}
|
|
} catch (Throwable th) {
|
|
throw th;
|
|
}
|
|
return (k8[]) arrayList.toArray(new k8[arrayList.size()]);
|
|
}
|
|
}
|