- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
110 lines
4.1 KiB
Java
110 lines
4.1 KiB
Java
package com.google.android.gms.internal.ads;
|
|
|
|
import android.content.Context;
|
|
import android.view.View;
|
|
import androidx.annotation.Nullable;
|
|
import androidx.collection.ArrayMap;
|
|
import com.google.android.gms.ads.internal.util.client.VersionInfoParcel;
|
|
import csdk.gluads.Consts;
|
|
import java.util.Iterator;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public final class zzcqm implements zzcxh, zzcwn {
|
|
private final Context zza;
|
|
|
|
@Nullable
|
|
private final zzcex zzb;
|
|
private final zzfbo zzc;
|
|
private final VersionInfoParcel zzd;
|
|
|
|
@Nullable
|
|
private zzecr zze;
|
|
private boolean zzf;
|
|
private final zzecp zzg;
|
|
|
|
public zzcqm(Context context, @Nullable zzcex zzcexVar, zzfbo zzfboVar, VersionInfoParcel versionInfoParcel, zzecp zzecpVar) {
|
|
this.zza = context;
|
|
this.zzb = zzcexVar;
|
|
this.zzc = zzfboVar;
|
|
this.zzd = versionInfoParcel;
|
|
this.zzg = zzecpVar;
|
|
}
|
|
|
|
private final synchronized void zza() {
|
|
zzeco zzecoVar;
|
|
zzecn zzecnVar;
|
|
try {
|
|
if (this.zzc.zzT && this.zzb != null) {
|
|
if (com.google.android.gms.ads.internal.zzv.zzB().zzl(this.zza)) {
|
|
VersionInfoParcel versionInfoParcel = this.zzd;
|
|
String str = versionInfoParcel.buddyApkVersion + Consts.STRING_PERIOD + versionInfoParcel.clientJarVersion;
|
|
zzfcm zzfcmVar = this.zzc.zzV;
|
|
String zza = zzfcmVar.zza();
|
|
if (zzfcmVar.zzc() == 1) {
|
|
zzecnVar = zzecn.VIDEO;
|
|
zzecoVar = zzeco.DEFINED_BY_JAVASCRIPT;
|
|
} else {
|
|
zzfbo zzfboVar = this.zzc;
|
|
zzecn zzecnVar2 = zzecn.HTML_DISPLAY;
|
|
zzecoVar = zzfboVar.zze == 1 ? zzeco.ONE_PIXEL : zzeco.BEGIN_TO_RENDER;
|
|
zzecnVar = zzecnVar2;
|
|
}
|
|
this.zze = com.google.android.gms.ads.internal.zzv.zzB().zza(str, this.zzb.zzG(), "", "javascript", zza, zzecoVar, zzecnVar, this.zzc.zzal);
|
|
View zzF = this.zzb.zzF();
|
|
zzecr zzecrVar = this.zze;
|
|
if (zzecrVar != null) {
|
|
zzfkp zza2 = zzecrVar.zza();
|
|
if (((Boolean) com.google.android.gms.ads.internal.client.zzbe.zzc().zza(zzbcl.zzfe)).booleanValue()) {
|
|
com.google.android.gms.ads.internal.zzv.zzB().zzj(zza2, this.zzb.zzG());
|
|
Iterator it = this.zzb.zzV().iterator();
|
|
while (it.hasNext()) {
|
|
com.google.android.gms.ads.internal.zzv.zzB().zzg(zza2, (View) it.next());
|
|
}
|
|
} else {
|
|
com.google.android.gms.ads.internal.zzv.zzB().zzj(zza2, zzF);
|
|
}
|
|
this.zzb.zzat(this.zze);
|
|
com.google.android.gms.ads.internal.zzv.zzB().zzk(zza2);
|
|
this.zzf = true;
|
|
this.zzb.zzd("onSdkLoaded", new ArrayMap());
|
|
}
|
|
}
|
|
}
|
|
} catch (Throwable th) {
|
|
throw th;
|
|
}
|
|
}
|
|
|
|
private final boolean zzb() {
|
|
return ((Boolean) com.google.android.gms.ads.internal.client.zzbe.zzc().zza(zzbcl.zzff)).booleanValue() && this.zzg.zzd();
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.ads.zzcwn
|
|
public final synchronized void zzr() {
|
|
zzcex zzcexVar;
|
|
if (zzb()) {
|
|
this.zzg.zzb();
|
|
return;
|
|
}
|
|
if (!this.zzf) {
|
|
zza();
|
|
}
|
|
if (!this.zzc.zzT || this.zze == null || (zzcexVar = this.zzb) == null) {
|
|
return;
|
|
}
|
|
zzcexVar.zzd("onSdkImpression", new ArrayMap());
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.ads.zzcxh
|
|
public final synchronized void zzs() {
|
|
if (zzb()) {
|
|
this.zzg.zzc();
|
|
} else {
|
|
if (this.zzf) {
|
|
return;
|
|
}
|
|
zza();
|
|
}
|
|
}
|
|
}
|