- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
313 lines
12 KiB
Java
313 lines
12 KiB
Java
package com.google.android.gms.internal.ads;
|
|
|
|
import android.net.Uri;
|
|
import com.facebook.internal.security.CertificateUtil;
|
|
import java.io.IOException;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public final class zzcdn extends zzcde implements zzcbi {
|
|
public static final /* synthetic */ int zzd = 0;
|
|
private zzcbj zze;
|
|
private String zzf;
|
|
private boolean zzg;
|
|
private boolean zzh;
|
|
private zzccw zzi;
|
|
private long zzj;
|
|
private long zzk;
|
|
|
|
public zzcdn(zzcbs zzcbsVar, zzcbr zzcbrVar) {
|
|
super(zzcbsVar);
|
|
zzcef zzcefVar = new zzcef(zzcbsVar.getContext(), zzcbrVar, (zzcbs) this.zzc.get(), null);
|
|
com.google.android.gms.ads.internal.util.client.zzo.zzi("ExoPlayerAdapter initialized.");
|
|
this.zze = zzcefVar;
|
|
zzcefVar.zzL(this);
|
|
}
|
|
|
|
public static final String zzc(String str) {
|
|
return "cache:".concat(String.valueOf(com.google.android.gms.ads.internal.util.client.zzf.zzf(str)));
|
|
}
|
|
|
|
private static String zzd(String str, Exception exc) {
|
|
return str + "/" + exc.getClass().getCanonicalName() + CertificateUtil.DELIMITER + exc.getMessage();
|
|
}
|
|
|
|
private final void zzx(long j) {
|
|
com.google.android.gms.ads.internal.util.zzs.zza.postDelayed(new Runnable() { // from class: com.google.android.gms.internal.ads.zzcdm
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
zzcdn.this.zzb();
|
|
}
|
|
}, j);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.ads.zzcde, com.google.android.gms.common.api.Releasable
|
|
public final void release() {
|
|
zzcbj zzcbjVar = this.zze;
|
|
if (zzcbjVar != null) {
|
|
zzcbjVar.zzL(null);
|
|
this.zze.zzH();
|
|
}
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.ads.zzcbi
|
|
public final void zzD(int i, int i2) {
|
|
}
|
|
|
|
public final zzcbj zza() {
|
|
synchronized (this) {
|
|
this.zzh = true;
|
|
notify();
|
|
}
|
|
this.zze.zzL(null);
|
|
zzcbj zzcbjVar = this.zze;
|
|
this.zze = null;
|
|
return zzcbjVar;
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public final /* synthetic */ void zzb() {
|
|
String str;
|
|
zzcdn zzcdnVar;
|
|
zzcdn zzcdnVar2;
|
|
long longValue;
|
|
long intValue;
|
|
boolean booleanValue;
|
|
zzcdn zzcdnVar3;
|
|
long j;
|
|
long j2;
|
|
String str2;
|
|
zzcdn zzcdnVar4;
|
|
long j3;
|
|
String zzc = zzc(this.zzf);
|
|
try {
|
|
longValue = ((Long) com.google.android.gms.ads.internal.client.zzbe.zzc().zza(zzbcl.zzK)).longValue() * 1000;
|
|
intValue = ((Integer) com.google.android.gms.ads.internal.client.zzbe.zzc().zza(zzbcl.zzs)).intValue();
|
|
booleanValue = ((Boolean) com.google.android.gms.ads.internal.client.zzbe.zzc().zza(zzbcl.zzbY)).booleanValue();
|
|
try {
|
|
} catch (Throwable th) {
|
|
th = th;
|
|
zzcdnVar = booleanValue;
|
|
}
|
|
} catch (Exception e) {
|
|
e = e;
|
|
str = zzc;
|
|
zzcdnVar = this;
|
|
}
|
|
synchronized (this) {
|
|
try {
|
|
if (com.google.android.gms.ads.internal.zzv.zzC().currentTimeMillis() - this.zzj > longValue) {
|
|
throw new IOException("Timeout reached. Limit: " + longValue + " ms");
|
|
}
|
|
if (this.zzg) {
|
|
throw new IOException("Abort requested before buffering finished. ");
|
|
}
|
|
if (!this.zzh) {
|
|
if (!this.zze.zzV()) {
|
|
throw new IOException("ExoPlayer was released during preloading.");
|
|
}
|
|
long zzz = this.zze.zzz();
|
|
if (zzz > 0) {
|
|
long zzv = this.zze.zzv();
|
|
if (zzv != this.zzk) {
|
|
try {
|
|
j2 = intValue;
|
|
str2 = zzc;
|
|
try {
|
|
zzo(this.zzf, zzc, zzv, zzz, zzv > 0, booleanValue != 0 ? this.zze.zzA() : -1L, booleanValue != 0 ? this.zze.zzx() : -1L, booleanValue != 0 ? this.zze.zzB() : -1L, zzcbj.zzs(), zzcbj.zzu());
|
|
zzcdnVar4 = this;
|
|
j = zzv;
|
|
} catch (Throwable th2) {
|
|
th = th2;
|
|
zzcdnVar4 = this;
|
|
str = str2;
|
|
zzcdnVar = zzcdnVar4;
|
|
try {
|
|
throw th;
|
|
} catch (Exception e2) {
|
|
e = e2;
|
|
com.google.android.gms.ads.internal.util.client.zzo.zzj("Failed to preload url " + zzcdnVar.zzf + " Exception: " + e.getMessage());
|
|
com.google.android.gms.ads.internal.zzv.zzp().zzv(e, "VideoStreamExoPlayerCache.preload");
|
|
release();
|
|
zzcdnVar.zzg(zzcdnVar.zzf, str, "error", zzd("error", e));
|
|
zzcdnVar2 = zzcdnVar;
|
|
com.google.android.gms.ads.internal.zzv.zzz().zzc(zzcdnVar2.zzi);
|
|
}
|
|
}
|
|
} catch (Throwable th3) {
|
|
th = th3;
|
|
str2 = zzc;
|
|
zzcdnVar4 = this;
|
|
}
|
|
try {
|
|
zzcdnVar4.zzk = j;
|
|
j3 = zzz;
|
|
zzcdnVar4 = zzcdnVar4;
|
|
} catch (Throwable th4) {
|
|
th = th4;
|
|
str = str2;
|
|
zzcdnVar = zzcdnVar4;
|
|
throw th;
|
|
}
|
|
} else {
|
|
j = zzv;
|
|
j2 = intValue;
|
|
str2 = zzc;
|
|
zzcdnVar4 = this;
|
|
j3 = zzz;
|
|
}
|
|
if (j >= j3) {
|
|
zzcdnVar4.zzj(zzcdnVar4.zzf, str2, j3);
|
|
zzcdnVar2 = zzcdnVar4;
|
|
} else {
|
|
long zzw = zzcdnVar4.zze.zzw();
|
|
zzcdnVar3 = zzcdnVar4;
|
|
if (zzw >= j2) {
|
|
zzcdnVar3 = zzcdnVar4;
|
|
if (j > 0) {
|
|
zzcdnVar2 = zzcdnVar4;
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
zzcdnVar3 = this;
|
|
}
|
|
zzcdnVar3.zzx(((Long) com.google.android.gms.ads.internal.client.zzbe.zzc().zza(zzbcl.zzL)).longValue());
|
|
return;
|
|
}
|
|
zzcdnVar2 = this;
|
|
com.google.android.gms.ads.internal.zzv.zzz().zzc(zzcdnVar2.zzi);
|
|
} catch (Throwable th5) {
|
|
th = th5;
|
|
str = zzc;
|
|
zzcdnVar = this;
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.ads.zzcde
|
|
public final void zzf() {
|
|
synchronized (this) {
|
|
this.zzg = true;
|
|
notify();
|
|
release();
|
|
}
|
|
String str = this.zzf;
|
|
if (str != null) {
|
|
zzg(this.zzf, zzc(str), "externalAbort", "Programmatic precache abort.");
|
|
}
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.ads.zzcbi
|
|
public final void zzi(final boolean z, final long j) {
|
|
final zzcbs zzcbsVar = (zzcbs) this.zzc.get();
|
|
if (zzcbsVar != null) {
|
|
zzbzw.zzf.execute(new Runnable() { // from class: com.google.android.gms.internal.ads.zzcdl
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
zzcbs.this.zzv(z, j);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.ads.zzcbi
|
|
public final void zzk(String str, Exception exc) {
|
|
com.google.android.gms.ads.internal.util.client.zzo.zzk("Precache error", exc);
|
|
com.google.android.gms.ads.internal.zzv.zzp().zzv(exc, "VideoStreamExoPlayerCache.onError");
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.ads.zzcbi
|
|
public final void zzl(String str, Exception exc) {
|
|
com.google.android.gms.ads.internal.util.client.zzo.zzk("Precache exception", exc);
|
|
com.google.android.gms.ads.internal.zzv.zzp().zzv(exc, "VideoStreamExoPlayerCache.onException");
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.ads.zzcbi
|
|
public final void zzm(int i) {
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.ads.zzcde
|
|
public final void zzp(int i) {
|
|
this.zze.zzJ(i);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.ads.zzcde
|
|
public final void zzq(int i) {
|
|
this.zze.zzK(i);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.ads.zzcde
|
|
public final void zzr(int i) {
|
|
this.zze.zzM(i);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.ads.zzcde
|
|
public final void zzs(int i) {
|
|
this.zze.zzN(i);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.ads.zzcde
|
|
public final boolean zzt(String str) {
|
|
return zzu(str, new String[]{str});
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:51:0x0162, code lost:
|
|
|
|
return true;
|
|
*/
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX WARN: Type inference failed for: r5v10, types: [java.lang.Object] */
|
|
/* JADX WARN: Type inference failed for: r5v11, types: [int] */
|
|
/* JADX WARN: Type inference failed for: r5v15 */
|
|
/* JADX WARN: Type inference failed for: r5v8 */
|
|
/* JADX WARN: Type inference failed for: r5v9 */
|
|
/* JADX WARN: Type inference failed for: r6v12 */
|
|
/* JADX WARN: Type inference failed for: r6v18 */
|
|
/* JADX WARN: Type inference failed for: r6v3 */
|
|
@Override // com.google.android.gms.internal.ads.zzcde
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final boolean zzu(java.lang.String r46, java.lang.String[] r47) {
|
|
/*
|
|
Method dump skipped, instructions count: 512
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.ads.zzcdn.zzu(java.lang.String, java.lang.String[]):boolean");
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.ads.zzcbi
|
|
public final void zzv() {
|
|
com.google.android.gms.ads.internal.util.client.zzo.zzj("Precache onRenderedFirstFrame");
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.ads.zzcde
|
|
public final boolean zzw(String str, String[] strArr, zzccw zzccwVar) {
|
|
this.zzf = str;
|
|
this.zzi = zzccwVar;
|
|
String zzc = zzc(str);
|
|
try {
|
|
Uri[] uriArr = new Uri[strArr.length];
|
|
for (int i = 0; i < strArr.length; i++) {
|
|
uriArr[i] = Uri.parse(strArr[i]);
|
|
}
|
|
this.zze.zzF(uriArr, this.zzb);
|
|
zzcbs zzcbsVar = (zzcbs) this.zzc.get();
|
|
if (zzcbsVar != null) {
|
|
zzcbsVar.zzt(zzc, this);
|
|
}
|
|
this.zzj = com.google.android.gms.ads.internal.zzv.zzC().currentTimeMillis();
|
|
this.zzk = -1L;
|
|
zzx(0L);
|
|
return true;
|
|
} catch (Exception e) {
|
|
com.google.android.gms.ads.internal.util.client.zzo.zzj("Failed to preload url " + str + " Exception: " + e.getMessage());
|
|
com.google.android.gms.ads.internal.zzv.zzp().zzv(e, "VideoStreamExoPlayerCache.preload");
|
|
release();
|
|
zzg(str, zzc, "error", zzd("error", e));
|
|
return false;
|
|
}
|
|
}
|
|
}
|