Add decompiled APK source code (JADX)

- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-02-18 14:52:23 -08:00
parent cc210a65ea
commit f9d20bb3fc
26991 changed files with 2541449 additions and 0 deletions

View File

@@ -0,0 +1,435 @@
package com.google.android.gms.ads.internal.overlay;
import android.content.Intent;
import android.os.Bundle;
import android.os.IBinder;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.gms.ads.internal.client.zzbe;
import com.google.android.gms.ads.internal.util.client.VersionInfoParcel;
import com.google.android.gms.common.internal.ReflectedParcelable;
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
import com.google.android.gms.dynamic.IObjectWrapper;
import com.google.android.gms.dynamic.ObjectWrapper;
import com.google.android.gms.internal.ads.zzbcl;
import com.google.android.gms.internal.ads.zzbif;
import com.google.android.gms.internal.ads.zzbih;
import com.google.android.gms.internal.ads.zzbsx;
import com.google.android.gms.internal.ads.zzbzw;
import com.google.android.gms.internal.ads.zzcex;
import com.google.android.gms.internal.ads.zzcwg;
import com.google.android.gms.internal.ads.zzdds;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicLong;
@SafeParcelable.Class(creator = "AdOverlayInfoCreator")
@SafeParcelable.Reserved({1})
/* loaded from: classes2.dex */
public final class AdOverlayInfoParcel extends AbstractSafeParcelable implements ReflectedParcelable {
@NonNull
public static final Parcelable.Creator<AdOverlayInfoParcel> CREATOR = new zzo();
private static final AtomicLong zzy = new AtomicLong(0);
private static final ConcurrentHashMap zzz = new ConcurrentHashMap();
@SafeParcelable.Field(id = 2)
public final zzc zza;
@SafeParcelable.Field(getter = "getAdClickListenerAsBinder", id = 3, type = "android.os.IBinder")
public final com.google.android.gms.ads.internal.client.zza zzb;
@SafeParcelable.Field(getter = "getAdOverlayListenerAsBinder", id = 4, type = "android.os.IBinder")
public final zzr zzc;
@SafeParcelable.Field(getter = "getAdWebViewAsBinder", id = 5, type = "android.os.IBinder")
public final zzcex zzd;
@SafeParcelable.Field(getter = "getAppEventGmsgListenerAsBinder", id = 6, type = "android.os.IBinder")
public final zzbih zze;
@NonNull
@SafeParcelable.Field(id = 7)
public final String zzf;
@SafeParcelable.Field(id = 8)
public final boolean zzg;
@NonNull
@SafeParcelable.Field(id = 9)
public final String zzh;
@SafeParcelable.Field(getter = "getLeaveApplicationListenerAsBinder", id = 10, type = "android.os.IBinder")
public final zzac zzi;
@SafeParcelable.Field(id = 11)
public final int zzj;
@SafeParcelable.Field(id = 12)
public final int zzk;
@NonNull
@SafeParcelable.Field(id = 13)
public final String zzl;
@NonNull
@SafeParcelable.Field(id = 14)
public final VersionInfoParcel zzm;
@NonNull
@SafeParcelable.Field(id = 16)
public final String zzn;
@SafeParcelable.Field(id = 17)
public final com.google.android.gms.ads.internal.zzl zzo;
@SafeParcelable.Field(getter = "getAdMetadataGmsgListenerAsBinder", id = 18, type = "android.os.IBinder")
public final zzbif zzp;
@NonNull
@SafeParcelable.Field(id = 19)
public final String zzq;
@NonNull
@SafeParcelable.Field(id = 24)
public final String zzr;
@NonNull
@SafeParcelable.Field(id = 25)
public final String zzs;
@SafeParcelable.Field(getter = "getAdFailedToShowEventEmitterAsBinder", id = 26, type = "android.os.IBinder")
public final zzcwg zzt;
@SafeParcelable.Field(getter = "getPhysicalClickListenerAsBinder", id = 27, type = "android.os.IBinder")
public final zzdds zzu;
@SafeParcelable.Field(getter = "getOfflineUtilsAsBinder", id = 28, type = "android.os.IBinder")
public final zzbsx zzv;
@SafeParcelable.Field(id = 29)
public final boolean zzw;
@SafeParcelable.Field(id = 30)
public final long zzx;
public AdOverlayInfoParcel(com.google.android.gms.ads.internal.client.zza zzaVar, zzr zzrVar, zzbif zzbifVar, zzbih zzbihVar, zzac zzacVar, zzcex zzcexVar, boolean z, int i, String str, VersionInfoParcel versionInfoParcel, zzdds zzddsVar, zzbsx zzbsxVar, boolean z2) {
this.zza = null;
this.zzb = zzaVar;
this.zzc = zzrVar;
this.zzd = zzcexVar;
this.zzp = zzbifVar;
this.zze = zzbihVar;
this.zzf = null;
this.zzg = z;
this.zzh = null;
this.zzi = zzacVar;
this.zzj = i;
this.zzk = 3;
this.zzl = str;
this.zzm = versionInfoParcel;
this.zzn = null;
this.zzo = null;
this.zzq = null;
this.zzr = null;
this.zzs = null;
this.zzt = null;
this.zzu = zzddsVar;
this.zzv = zzbsxVar;
this.zzw = z2;
this.zzx = zzy.getAndIncrement();
}
@Nullable
public static AdOverlayInfoParcel zza(@NonNull Intent intent) {
try {
Bundle bundleExtra = intent.getBundleExtra("com.google.android.gms.ads.inernal.overlay.AdOverlayInfo");
bundleExtra.setClassLoader(AdOverlayInfoParcel.class.getClassLoader());
return (AdOverlayInfoParcel) bundleExtra.getParcelable("com.google.android.gms.ads.inernal.overlay.AdOverlayInfo");
} catch (Exception e) {
if (!((Boolean) zzbe.zzc().zza(zzbcl.zzmL)).booleanValue()) {
return null;
}
com.google.android.gms.ads.internal.zzv.zzp().zzw(e, "AdOverlayInfoParcel.getFromIntent");
return null;
}
}
@Nullable
private static final IBinder zzc(Object obj) {
if (((Boolean) zzbe.zzc().zza(zzbcl.zzmL)).booleanValue()) {
return null;
}
return ObjectWrapper.wrap(obj).asBinder();
}
@Override // android.os.Parcelable
public final void writeToParcel(@NonNull Parcel parcel, int i) {
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeParcelable(parcel, 2, this.zza, i, false);
SafeParcelWriter.writeIBinder(parcel, 3, zzc(this.zzb), false);
SafeParcelWriter.writeIBinder(parcel, 4, zzc(this.zzc), false);
SafeParcelWriter.writeIBinder(parcel, 5, zzc(this.zzd), false);
SafeParcelWriter.writeIBinder(parcel, 6, zzc(this.zze), false);
SafeParcelWriter.writeString(parcel, 7, this.zzf, false);
SafeParcelWriter.writeBoolean(parcel, 8, this.zzg);
SafeParcelWriter.writeString(parcel, 9, this.zzh, false);
SafeParcelWriter.writeIBinder(parcel, 10, zzc(this.zzi), false);
SafeParcelWriter.writeInt(parcel, 11, this.zzj);
SafeParcelWriter.writeInt(parcel, 12, this.zzk);
SafeParcelWriter.writeString(parcel, 13, this.zzl, false);
SafeParcelWriter.writeParcelable(parcel, 14, this.zzm, i, false);
SafeParcelWriter.writeString(parcel, 16, this.zzn, false);
SafeParcelWriter.writeParcelable(parcel, 17, this.zzo, i, false);
SafeParcelWriter.writeIBinder(parcel, 18, zzc(this.zzp), false);
SafeParcelWriter.writeString(parcel, 19, this.zzq, false);
SafeParcelWriter.writeString(parcel, 24, this.zzr, false);
SafeParcelWriter.writeString(parcel, 25, this.zzs, false);
SafeParcelWriter.writeIBinder(parcel, 26, zzc(this.zzt), false);
SafeParcelWriter.writeIBinder(parcel, 27, zzc(this.zzu), false);
SafeParcelWriter.writeIBinder(parcel, 28, zzc(this.zzv), false);
SafeParcelWriter.writeBoolean(parcel, 29, this.zzw);
SafeParcelWriter.writeLong(parcel, 30, this.zzx);
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
if (((Boolean) zzbe.zzc().zza(zzbcl.zzmL)).booleanValue()) {
zzz.put(Long.valueOf(this.zzx), new zzp(this.zzb, this.zzc, this.zzd, this.zzp, this.zze, this.zzi, this.zzt, this.zzu, this.zzv, zzbzw.zzd.schedule(new zzq(this.zzx), ((Integer) zzbe.zzc().zza(zzbcl.zzmN)).intValue(), TimeUnit.SECONDS)));
}
}
public AdOverlayInfoParcel(com.google.android.gms.ads.internal.client.zza zzaVar, zzr zzrVar, zzbif zzbifVar, zzbih zzbihVar, zzac zzacVar, zzcex zzcexVar, boolean z, int i, String str, String str2, VersionInfoParcel versionInfoParcel, zzdds zzddsVar, zzbsx zzbsxVar) {
this.zza = null;
this.zzb = zzaVar;
this.zzc = zzrVar;
this.zzd = zzcexVar;
this.zzp = zzbifVar;
this.zze = zzbihVar;
this.zzf = str2;
this.zzg = z;
this.zzh = str;
this.zzi = zzacVar;
this.zzj = i;
this.zzk = 3;
this.zzl = null;
this.zzm = versionInfoParcel;
this.zzn = null;
this.zzo = null;
this.zzq = null;
this.zzr = null;
this.zzs = null;
this.zzt = null;
this.zzu = zzddsVar;
this.zzv = zzbsxVar;
this.zzw = false;
this.zzx = zzy.getAndIncrement();
}
public AdOverlayInfoParcel(com.google.android.gms.ads.internal.client.zza zzaVar, zzr zzrVar, zzac zzacVar, zzcex zzcexVar, int i, VersionInfoParcel versionInfoParcel, String str, com.google.android.gms.ads.internal.zzl zzlVar, String str2, String str3, String str4, zzcwg zzcwgVar, zzbsx zzbsxVar, String str5) {
this.zza = null;
this.zzb = null;
this.zzc = zzrVar;
this.zzd = zzcexVar;
this.zzp = null;
this.zze = null;
this.zzg = false;
if (((Boolean) zzbe.zzc().zza(zzbcl.zzaT)).booleanValue()) {
this.zzf = null;
this.zzh = null;
} else {
this.zzf = str2;
this.zzh = str3;
}
this.zzi = null;
this.zzj = i;
this.zzk = 1;
this.zzl = null;
this.zzm = versionInfoParcel;
this.zzn = str;
this.zzo = zzlVar;
this.zzq = str5;
this.zzr = null;
this.zzs = str4;
this.zzt = zzcwgVar;
this.zzu = null;
this.zzv = zzbsxVar;
this.zzw = false;
this.zzx = zzy.getAndIncrement();
}
public AdOverlayInfoParcel(com.google.android.gms.ads.internal.client.zza zzaVar, zzr zzrVar, zzac zzacVar, zzcex zzcexVar, boolean z, int i, VersionInfoParcel versionInfoParcel, zzdds zzddsVar, zzbsx zzbsxVar) {
this.zza = null;
this.zzb = zzaVar;
this.zzc = zzrVar;
this.zzd = zzcexVar;
this.zzp = null;
this.zze = null;
this.zzf = null;
this.zzg = z;
this.zzh = null;
this.zzi = zzacVar;
this.zzj = i;
this.zzk = 2;
this.zzl = null;
this.zzm = versionInfoParcel;
this.zzn = null;
this.zzo = null;
this.zzq = null;
this.zzr = null;
this.zzs = null;
this.zzt = null;
this.zzu = zzddsVar;
this.zzv = zzbsxVar;
this.zzw = false;
this.zzx = zzy.getAndIncrement();
}
@SafeParcelable.Constructor
public AdOverlayInfoParcel(@SafeParcelable.Param(id = 2) zzc zzcVar, @SafeParcelable.Param(id = 3) IBinder iBinder, @SafeParcelable.Param(id = 4) IBinder iBinder2, @SafeParcelable.Param(id = 5) IBinder iBinder3, @SafeParcelable.Param(id = 6) IBinder iBinder4, @SafeParcelable.Param(id = 7) String str, @SafeParcelable.Param(id = 8) boolean z, @SafeParcelable.Param(id = 9) String str2, @SafeParcelable.Param(id = 10) IBinder iBinder5, @SafeParcelable.Param(id = 11) int i, @SafeParcelable.Param(id = 12) int i2, @SafeParcelable.Param(id = 13) String str3, @SafeParcelable.Param(id = 14) VersionInfoParcel versionInfoParcel, @SafeParcelable.Param(id = 16) String str4, @SafeParcelable.Param(id = 17) com.google.android.gms.ads.internal.zzl zzlVar, @SafeParcelable.Param(id = 18) IBinder iBinder6, @SafeParcelable.Param(id = 19) String str5, @SafeParcelable.Param(id = 24) String str6, @SafeParcelable.Param(id = 25) String str7, @SafeParcelable.Param(id = 26) IBinder iBinder7, @SafeParcelable.Param(id = 27) IBinder iBinder8, @SafeParcelable.Param(id = 28) IBinder iBinder9, @SafeParcelable.Param(id = 29) boolean z2, @SafeParcelable.Param(id = 30) long j) {
com.google.android.gms.ads.internal.client.zza zzaVar;
zzr zzrVar;
zzcex zzcexVar;
zzbif zzbifVar;
zzbih zzbihVar;
zzcwg zzcwgVar;
zzdds zzddsVar;
zzbsx zzbsxVar;
zzac zzacVar;
ScheduledFuture scheduledFuture;
this.zza = zzcVar;
this.zzf = str;
this.zzg = z;
this.zzh = str2;
this.zzj = i;
this.zzk = i2;
this.zzl = str3;
this.zzm = versionInfoParcel;
this.zzn = str4;
this.zzo = zzlVar;
this.zzq = str5;
this.zzr = str6;
this.zzs = str7;
this.zzw = z2;
this.zzx = j;
if (((Boolean) zzbe.zzc().zza(zzbcl.zzmL)).booleanValue()) {
zzp zzpVar = (zzp) zzz.remove(Long.valueOf(j));
if (zzpVar != null) {
zzaVar = zzpVar.zza;
this.zzb = zzaVar;
zzrVar = zzpVar.zzb;
this.zzc = zzrVar;
zzcexVar = zzpVar.zzc;
this.zzd = zzcexVar;
zzbifVar = zzpVar.zzd;
this.zzp = zzbifVar;
zzbihVar = zzpVar.zze;
this.zze = zzbihVar;
zzcwgVar = zzpVar.zzg;
this.zzt = zzcwgVar;
zzddsVar = zzpVar.zzh;
this.zzu = zzddsVar;
zzbsxVar = zzpVar.zzi;
this.zzv = zzbsxVar;
zzacVar = zzpVar.zzf;
this.zzi = zzacVar;
scheduledFuture = zzpVar.zzj;
scheduledFuture.cancel(false);
return;
}
throw new NullPointerException("AdOverlayObjects is null");
}
this.zzb = (com.google.android.gms.ads.internal.client.zza) ObjectWrapper.unwrap(IObjectWrapper.Stub.asInterface(iBinder));
this.zzc = (zzr) ObjectWrapper.unwrap(IObjectWrapper.Stub.asInterface(iBinder2));
this.zzd = (zzcex) ObjectWrapper.unwrap(IObjectWrapper.Stub.asInterface(iBinder3));
this.zzp = (zzbif) ObjectWrapper.unwrap(IObjectWrapper.Stub.asInterface(iBinder6));
this.zze = (zzbih) ObjectWrapper.unwrap(IObjectWrapper.Stub.asInterface(iBinder4));
this.zzi = (zzac) ObjectWrapper.unwrap(IObjectWrapper.Stub.asInterface(iBinder5));
this.zzt = (zzcwg) ObjectWrapper.unwrap(IObjectWrapper.Stub.asInterface(iBinder7));
this.zzu = (zzdds) ObjectWrapper.unwrap(IObjectWrapper.Stub.asInterface(iBinder8));
this.zzv = (zzbsx) ObjectWrapper.unwrap(IObjectWrapper.Stub.asInterface(iBinder9));
}
public AdOverlayInfoParcel(zzc zzcVar, com.google.android.gms.ads.internal.client.zza zzaVar, zzr zzrVar, zzac zzacVar, VersionInfoParcel versionInfoParcel, zzcex zzcexVar, zzdds zzddsVar, String str) {
this.zza = zzcVar;
this.zzb = zzaVar;
this.zzc = zzrVar;
this.zzd = zzcexVar;
this.zzp = null;
this.zze = null;
this.zzf = null;
this.zzg = false;
this.zzh = null;
this.zzi = zzacVar;
this.zzj = -1;
this.zzk = 4;
this.zzl = null;
this.zzm = versionInfoParcel;
this.zzn = null;
this.zzo = null;
this.zzq = str;
this.zzr = null;
this.zzs = null;
this.zzt = null;
this.zzu = zzddsVar;
this.zzv = null;
this.zzw = false;
this.zzx = zzy.getAndIncrement();
}
public AdOverlayInfoParcel(zzr zzrVar, zzcex zzcexVar, int i, VersionInfoParcel versionInfoParcel) {
this.zzc = zzrVar;
this.zzd = zzcexVar;
this.zzj = 1;
this.zzm = versionInfoParcel;
this.zza = null;
this.zzb = null;
this.zzp = null;
this.zze = null;
this.zzf = null;
this.zzg = false;
this.zzh = null;
this.zzi = null;
this.zzk = 1;
this.zzl = null;
this.zzn = null;
this.zzo = null;
this.zzq = null;
this.zzr = null;
this.zzs = null;
this.zzt = null;
this.zzu = null;
this.zzv = null;
this.zzw = false;
this.zzx = zzy.getAndIncrement();
}
public AdOverlayInfoParcel(zzcex zzcexVar, VersionInfoParcel versionInfoParcel, String str, String str2, int i, zzbsx zzbsxVar) {
this.zza = null;
this.zzb = null;
this.zzc = null;
this.zzd = zzcexVar;
this.zzp = null;
this.zze = null;
this.zzf = null;
this.zzg = false;
this.zzh = null;
this.zzi = null;
this.zzj = 14;
this.zzk = 5;
this.zzl = null;
this.zzm = versionInfoParcel;
this.zzn = null;
this.zzo = null;
this.zzq = str;
this.zzr = str2;
this.zzs = null;
this.zzt = null;
this.zzu = null;
this.zzv = zzbsxVar;
this.zzw = false;
this.zzx = zzy.getAndIncrement();
}
}

View File

@@ -0,0 +1,116 @@
package com.google.android.gms.ads.internal.overlay;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.text.TextUtils;
import androidx.annotation.Nullable;
import com.google.android.gms.ads.internal.client.zzbe;
import com.google.android.gms.drive.DriveFile;
import com.google.android.gms.internal.ads.zzbcl;
import com.google.android.gms.internal.ads.zzdrw;
/* loaded from: classes2.dex */
public final class zza {
public static final boolean zza(Context context, Intent intent, zzac zzacVar, @Nullable zzaa zzaaVar, boolean z, @Nullable zzdrw zzdrwVar, String str) {
if (z) {
return zzc(context, intent.getData(), zzacVar, zzaaVar);
}
try {
com.google.android.gms.ads.internal.util.zze.zza("Launching an intent: " + intent.toURI());
if (((Boolean) zzbe.zzc().zza(zzbcl.zzmU)).booleanValue()) {
com.google.android.gms.ads.internal.zzv.zzq();
com.google.android.gms.ads.internal.util.zzs.zzX(context, intent, zzdrwVar, str);
} else {
com.google.android.gms.ads.internal.zzv.zzq();
com.google.android.gms.ads.internal.util.zzs.zzT(context, intent);
}
if (zzacVar != null) {
zzacVar.zzg();
}
if (zzaaVar != null) {
zzaaVar.zza(true);
}
return true;
} catch (ActivityNotFoundException e) {
com.google.android.gms.ads.internal.util.client.zzo.zzj(e.getMessage());
if (zzaaVar != null) {
zzaaVar.zza(false);
}
return false;
}
}
public static final boolean zzb(Context context, @Nullable zzc zzcVar, zzac zzacVar, @Nullable zzaa zzaaVar, @Nullable zzdrw zzdrwVar, String str) {
int i = 0;
if (zzcVar == null) {
com.google.android.gms.ads.internal.util.client.zzo.zzj("No intent data for launcher overlay.");
return false;
}
zzbcl.zza(context);
Intent intent = zzcVar.zzh;
if (intent != null) {
return zza(context, intent, zzacVar, zzaaVar, zzcVar.zzj, zzdrwVar, str);
}
Intent intent2 = new Intent();
if (TextUtils.isEmpty(zzcVar.zzb)) {
com.google.android.gms.ads.internal.util.client.zzo.zzj("Open GMSG did not contain a URL.");
return false;
}
if (TextUtils.isEmpty(zzcVar.zzc)) {
intent2.setData(Uri.parse(zzcVar.zzb));
} else {
String str2 = zzcVar.zzb;
intent2.setDataAndType(Uri.parse(str2), zzcVar.zzc);
}
intent2.setAction("android.intent.action.VIEW");
if (!TextUtils.isEmpty(zzcVar.zzd)) {
intent2.setPackage(zzcVar.zzd);
}
if (!TextUtils.isEmpty(zzcVar.zze)) {
String[] split = zzcVar.zze.split("/", 2);
if (split.length < 2) {
com.google.android.gms.ads.internal.util.client.zzo.zzj("Could not parse component name from open GMSG: ".concat(String.valueOf(zzcVar.zze)));
return false;
}
intent2.setClassName(split[0], split[1]);
}
String str3 = zzcVar.zzf;
if (!TextUtils.isEmpty(str3)) {
try {
i = Integer.parseInt(str3);
} catch (NumberFormatException unused) {
com.google.android.gms.ads.internal.util.client.zzo.zzj("Could not parse intent flags.");
}
intent2.addFlags(i);
}
if (((Boolean) zzbe.zzc().zza(zzbcl.zzeD)).booleanValue()) {
intent2.addFlags(DriveFile.MODE_READ_ONLY);
intent2.putExtra("android.support.customtabs.extra.user_opt_out", true);
} else {
if (((Boolean) zzbe.zzc().zza(zzbcl.zzeC)).booleanValue()) {
com.google.android.gms.ads.internal.zzv.zzq();
com.google.android.gms.ads.internal.util.zzs.zzp(context, intent2);
}
}
return zza(context, intent2, zzacVar, zzaaVar, zzcVar.zzj, zzdrwVar, str);
}
private static final boolean zzc(Context context, Uri uri, zzac zzacVar, zzaa zzaaVar) {
int i;
try {
i = com.google.android.gms.ads.internal.zzv.zzq().zzn(context, uri);
if (zzacVar != null) {
zzacVar.zzg();
}
} catch (ActivityNotFoundException e) {
com.google.android.gms.ads.internal.util.client.zzo.zzj(e.getMessage());
i = 6;
}
if (zzaaVar != null) {
zzaaVar.zzb(i);
}
return i == 5;
}
}

View File

@@ -0,0 +1,8 @@
package com.google.android.gms.ads.internal.overlay;
/* loaded from: classes2.dex */
public interface zzaa {
void zza(boolean z);
void zzb(int i);
}

View File

@@ -0,0 +1,168 @@
package com.google.android.gms.ads.internal.overlay;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.RemoteException;
import androidx.annotation.Nullable;
import com.google.android.gms.ads.internal.client.zzbe;
import com.google.android.gms.dynamic.IObjectWrapper;
import com.google.android.gms.internal.ads.zzbcl;
import com.google.android.gms.internal.ads.zzbtd;
import com.google.android.gms.internal.ads.zzdds;
/* loaded from: classes2.dex */
public final class zzab extends zzbtd {
private final AdOverlayInfoParcel zza;
private final Activity zzb;
private boolean zzc = false;
private boolean zzd = false;
private boolean zze = false;
public zzab(Activity activity, AdOverlayInfoParcel adOverlayInfoParcel) {
this.zza = adOverlayInfoParcel;
this.zzb = activity;
}
private final synchronized void zzb() {
try {
if (this.zzd) {
return;
}
zzr zzrVar = this.zza.zzc;
if (zzrVar != null) {
zzrVar.zzds(4);
}
this.zzd = true;
} catch (Throwable th) {
throw th;
}
}
@Override // com.google.android.gms.internal.ads.zzbte
public final boolean zzH() throws RemoteException {
return false;
}
@Override // com.google.android.gms.internal.ads.zzbte
public final void zzh(int i, int i2, Intent intent) throws RemoteException {
}
@Override // com.google.android.gms.internal.ads.zzbte
public final void zzi() throws RemoteException {
}
@Override // com.google.android.gms.internal.ads.zzbte
public final void zzk(IObjectWrapper iObjectWrapper) throws RemoteException {
}
@Override // com.google.android.gms.internal.ads.zzbte
public final void zzl(@Nullable Bundle bundle) {
zzr zzrVar;
if (((Boolean) zzbe.zzc().zza(zzbcl.zziL)).booleanValue() && !this.zze) {
this.zzb.requestWindowFeature(1);
}
boolean z = false;
if (bundle != null && bundle.getBoolean("com.google.android.gms.ads.internal.overlay.hasResumed", false)) {
z = true;
}
AdOverlayInfoParcel adOverlayInfoParcel = this.zza;
if (adOverlayInfoParcel == null) {
this.zzb.finish();
return;
}
if (z) {
this.zzb.finish();
return;
}
if (bundle == null) {
com.google.android.gms.ads.internal.client.zza zzaVar = adOverlayInfoParcel.zzb;
if (zzaVar != null) {
zzaVar.onAdClicked();
}
zzdds zzddsVar = this.zza.zzu;
if (zzddsVar != null) {
zzddsVar.zzdd();
}
if (this.zzb.getIntent() != null && this.zzb.getIntent().getBooleanExtra("shouldCallOnOverlayOpened", true) && (zzrVar = this.zza.zzc) != null) {
zzrVar.zzdp();
}
}
Activity activity = this.zzb;
AdOverlayInfoParcel adOverlayInfoParcel2 = this.zza;
com.google.android.gms.ads.internal.zzv.zzi();
zzc zzcVar = adOverlayInfoParcel2.zza;
if (zza.zzb(activity, zzcVar, adOverlayInfoParcel2.zzi, zzcVar.zzi, null, "")) {
return;
}
this.zzb.finish();
}
@Override // com.google.android.gms.internal.ads.zzbte
public final void zzm() throws RemoteException {
if (this.zzb.isFinishing()) {
zzb();
}
}
@Override // com.google.android.gms.internal.ads.zzbte
public final void zzo() throws RemoteException {
zzr zzrVar = this.zza.zzc;
if (zzrVar != null) {
zzrVar.zzdi();
}
if (this.zzb.isFinishing()) {
zzb();
}
}
@Override // com.google.android.gms.internal.ads.zzbte
public final void zzp(int i, String[] strArr, int[] iArr) {
}
@Override // com.google.android.gms.internal.ads.zzbte
public final void zzq() throws RemoteException {
}
@Override // com.google.android.gms.internal.ads.zzbte
public final void zzr() throws RemoteException {
if (this.zzc) {
this.zzb.finish();
return;
}
this.zzc = true;
zzr zzrVar = this.zza.zzc;
if (zzrVar != null) {
zzrVar.zzdE();
}
}
@Override // com.google.android.gms.internal.ads.zzbte
public final void zzs(Bundle bundle) throws RemoteException {
bundle.putBoolean("com.google.android.gms.ads.internal.overlay.hasResumed", this.zzc);
}
@Override // com.google.android.gms.internal.ads.zzbte
public final void zzt() throws RemoteException {
}
@Override // com.google.android.gms.internal.ads.zzbte
public final void zzu() throws RemoteException {
if (this.zzb.isFinishing()) {
zzb();
}
}
@Override // com.google.android.gms.internal.ads.zzbte
public final void zzv() throws RemoteException {
zzr zzrVar = this.zza.zzc;
if (zzrVar != null) {
zzrVar.zzdr();
}
}
@Override // com.google.android.gms.internal.ads.zzbte
public final void zzx() throws RemoteException {
this.zze = true;
}
}

View File

@@ -0,0 +1,6 @@
package com.google.android.gms.ads.internal.overlay;
/* loaded from: classes2.dex */
public interface zzac {
void zzg();
}

View File

@@ -0,0 +1,5 @@
package com.google.android.gms.ads.internal.overlay;
/* loaded from: classes2.dex */
public final class zzad {
}

View File

@@ -0,0 +1,5 @@
package com.google.android.gms.ads.internal.overlay;
/* loaded from: classes2.dex */
public final class zzae {
}

View File

@@ -0,0 +1,10 @@
package com.google.android.gms.ads.internal.overlay;
import android.app.Activity;
/* loaded from: classes2.dex */
public final class zzaf extends zzm {
public zzaf(Activity activity) {
super(activity);
}
}

View File

@@ -0,0 +1,6 @@
package com.google.android.gms.ads.internal.overlay;
/* loaded from: classes2.dex */
public interface zzag {
void zzj();
}

View File

@@ -0,0 +1,10 @@
package com.google.android.gms.ads.internal.overlay;
import android.app.Activity;
/* loaded from: classes2.dex */
public final class zzah extends zzm {
public zzah(Activity activity) {
super(activity);
}
}

View File

@@ -0,0 +1,10 @@
package com.google.android.gms.ads.internal.overlay;
import android.app.Activity;
/* loaded from: classes2.dex */
public final class zzai extends zzm {
public zzai(Activity activity) {
super(activity);
}
}

View File

@@ -0,0 +1,70 @@
package com.google.android.gms.ads.internal.overlay;
import android.content.Intent;
import android.os.IBinder;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
/* loaded from: classes2.dex */
public final class zzb implements Parcelable.Creator {
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
boolean z = false;
String str = null;
String str2 = null;
String str3 = null;
String str4 = null;
String str5 = null;
String str6 = null;
String str7 = null;
Intent intent = null;
IBinder iBinder = null;
while (parcel.dataPosition() < validateObjectHeader) {
int readHeader = SafeParcelReader.readHeader(parcel);
switch (SafeParcelReader.getFieldId(readHeader)) {
case 2:
str = SafeParcelReader.createString(parcel, readHeader);
break;
case 3:
str2 = SafeParcelReader.createString(parcel, readHeader);
break;
case 4:
str3 = SafeParcelReader.createString(parcel, readHeader);
break;
case 5:
str4 = SafeParcelReader.createString(parcel, readHeader);
break;
case 6:
str5 = SafeParcelReader.createString(parcel, readHeader);
break;
case 7:
str6 = SafeParcelReader.createString(parcel, readHeader);
break;
case 8:
str7 = SafeParcelReader.createString(parcel, readHeader);
break;
case 9:
intent = (Intent) SafeParcelReader.createParcelable(parcel, readHeader, Intent.CREATOR);
break;
case 10:
iBinder = SafeParcelReader.readIBinder(parcel, readHeader);
break;
case 11:
z = SafeParcelReader.readBoolean(parcel, readHeader);
break;
default:
SafeParcelReader.skipUnknownField(parcel, readHeader);
break;
}
}
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
return new zzc(str, str2, str3, str4, str5, str6, str7, intent, iBinder, z);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Object[] newArray(int i) {
return new zzc[i];
}
}

View File

@@ -0,0 +1,87 @@
package com.google.android.gms.ads.internal.overlay;
import android.content.Intent;
import android.os.IBinder;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
import com.google.android.gms.dynamic.IObjectWrapper;
import com.google.android.gms.dynamic.ObjectWrapper;
@SafeParcelable.Class(creator = "AdLauncherIntentInfoCreator")
@SafeParcelable.Reserved({1})
/* loaded from: classes2.dex */
public final class zzc extends AbstractSafeParcelable {
public static final Parcelable.Creator<zzc> CREATOR = new zzb();
@SafeParcelable.Field(id = 2)
public final String zza;
@SafeParcelable.Field(id = 3)
public final String zzb;
@SafeParcelable.Field(id = 4)
public final String zzc;
@SafeParcelable.Field(id = 5)
public final String zzd;
@SafeParcelable.Field(id = 6)
public final String zze;
@SafeParcelable.Field(id = 7)
public final String zzf;
@SafeParcelable.Field(id = 8)
public final String zzg;
@SafeParcelable.Field(id = 9)
public final Intent zzh;
@SafeParcelable.Field(getter = "getLaunchIntentListenerAsBinder", id = 10, type = "android.os.IBinder")
public final zzaa zzi;
@SafeParcelable.Field(id = 11)
public final boolean zzj;
public zzc(Intent intent, zzaa zzaaVar) {
this(null, null, null, null, null, null, null, intent, ObjectWrapper.wrap(zzaaVar).asBinder(), false);
}
@Override // android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
String str = this.zza;
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeString(parcel, 2, str, false);
SafeParcelWriter.writeString(parcel, 3, this.zzb, false);
SafeParcelWriter.writeString(parcel, 4, this.zzc, false);
SafeParcelWriter.writeString(parcel, 5, this.zzd, false);
SafeParcelWriter.writeString(parcel, 6, this.zze, false);
SafeParcelWriter.writeString(parcel, 7, this.zzf, false);
SafeParcelWriter.writeString(parcel, 8, this.zzg, false);
SafeParcelWriter.writeParcelable(parcel, 9, this.zzh, i, false);
SafeParcelWriter.writeIBinder(parcel, 10, ObjectWrapper.wrap(this.zzi).asBinder(), false);
SafeParcelWriter.writeBoolean(parcel, 11, this.zzj);
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
}
@SafeParcelable.Constructor
public zzc(@SafeParcelable.Param(id = 2) String str, @SafeParcelable.Param(id = 3) String str2, @SafeParcelable.Param(id = 4) String str3, @SafeParcelable.Param(id = 5) String str4, @SafeParcelable.Param(id = 6) String str5, @SafeParcelable.Param(id = 7) String str6, @SafeParcelable.Param(id = 8) String str7, @SafeParcelable.Param(id = 9) Intent intent, @SafeParcelable.Param(id = 10) IBinder iBinder, @SafeParcelable.Param(id = 11) boolean z) {
this.zza = str;
this.zzb = str2;
this.zzc = str3;
this.zzd = str4;
this.zze = str5;
this.zzf = str6;
this.zzg = str7;
this.zzh = intent;
this.zzi = (zzaa) ObjectWrapper.unwrap(IObjectWrapper.Stub.asInterface(iBinder));
this.zzj = z;
}
public zzc(String str, String str2, String str3, String str4, String str5, String str6, String str7, zzaa zzaaVar) {
this(str, str2, str3, str4, str5, str6, str7, null, ObjectWrapper.wrap(zzaaVar).asBinder(), false);
}
}

View File

@@ -0,0 +1,19 @@
package com.google.android.gms.ads.internal.overlay;
import android.view.View;
/* loaded from: classes2.dex */
final class zzf implements View.OnClickListener {
final /* synthetic */ zzm zza;
public zzf(zzm zzmVar) {
this.zza = zzmVar;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
zzm zzmVar = this.zza;
zzmVar.zzn = 2;
zzmVar.zzb.finish();
}
}

View File

@@ -0,0 +1,12 @@
package com.google.android.gms.ads.internal.overlay;
/* loaded from: classes2.dex */
final class zzg extends Exception {
public zzg(String str) {
super(str);
}
public zzg(String str, Throwable th) {
super(str, th);
}
}

View File

@@ -0,0 +1,35 @@
package com.google.android.gms.ads.internal.overlay;
import android.content.Context;
import android.view.MotionEvent;
import android.widget.RelativeLayout;
import androidx.annotation.VisibleForTesting;
import com.google.android.gms.ads.internal.util.zzau;
@VisibleForTesting
/* loaded from: classes2.dex */
final class zzh extends RelativeLayout {
@VisibleForTesting
final zzau zza;
@VisibleForTesting
boolean zzb;
public zzh(Context context, String str, String str2, String str3) {
super(context);
zzau zzauVar = new zzau(context, str);
this.zza = zzauVar;
zzauVar.zzo(str2);
zzauVar.zzn(str3);
}
@Override // android.view.ViewGroup
public final boolean onInterceptTouchEvent(MotionEvent motionEvent) {
if (this.zzb) {
return false;
}
this.zza.zzm(motionEvent);
return false;
}
}

View File

@@ -0,0 +1,30 @@
package com.google.android.gms.ads.internal.overlay;
import android.content.Context;
import android.view.ViewGroup;
import android.view.ViewParent;
import androidx.annotation.VisibleForTesting;
import com.google.android.gms.internal.ads.zzcex;
@VisibleForTesting
/* loaded from: classes2.dex */
public final class zzi {
public final int zza;
public final ViewGroup.LayoutParams zzb;
public final ViewGroup zzc;
public final Context zzd;
public zzi(zzcex zzcexVar) throws zzg {
this.zzb = zzcexVar.getLayoutParams();
ViewParent parent = zzcexVar.getParent();
this.zzd = zzcexVar.zzE();
if (parent == null || !(parent instanceof ViewGroup)) {
throw new zzg("Could not get the parent of the WebView for an overlay.");
}
ViewGroup viewGroup = (ViewGroup) parent;
this.zzc = viewGroup;
this.zza = viewGroup.indexOfChild(zzcexVar.zzF());
viewGroup.removeView(zzcexVar.zzF());
zzcexVar.zzaq(true);
}
}

View File

@@ -0,0 +1,57 @@
package com.google.android.gms.ads.internal.overlay;
import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.renderscript.Allocation;
import android.renderscript.Element;
import android.renderscript.RenderScript;
import android.renderscript.ScriptIntrinsicBlur;
/* loaded from: classes2.dex */
final class zzk extends com.google.android.gms.ads.internal.util.zzb {
final /* synthetic */ zzm zza;
public /* synthetic */ zzk(zzm zzmVar, zzl zzlVar) {
this.zza = zzmVar;
}
@Override // com.google.android.gms.ads.internal.util.zzb
public final void zza() {
final BitmapDrawable bitmapDrawable;
Bitmap zza = com.google.android.gms.ads.internal.zzv.zzv().zza(Integer.valueOf(this.zza.zzc.zzo.zzf));
if (zza != null) {
com.google.android.gms.ads.internal.zzv.zzq();
zzm zzmVar = this.zza;
com.google.android.gms.ads.internal.zzl zzlVar = zzmVar.zzc.zzo;
boolean z = zzlVar.zzd;
float f = zzlVar.zze;
Activity activity = zzmVar.zzb;
if (!z || f <= 0.0f || f > 25.0f) {
bitmapDrawable = new BitmapDrawable(activity.getResources(), zza);
} else {
try {
Bitmap createScaledBitmap = Bitmap.createScaledBitmap(zza, zza.getWidth(), zza.getHeight(), false);
Bitmap createBitmap = Bitmap.createBitmap(createScaledBitmap);
RenderScript create = RenderScript.create(activity);
ScriptIntrinsicBlur create2 = ScriptIntrinsicBlur.create(create, Element.U8_4(create));
Allocation createFromBitmap = Allocation.createFromBitmap(create, createScaledBitmap);
Allocation createFromBitmap2 = Allocation.createFromBitmap(create, createBitmap);
create2.setRadius(f);
create2.setInput(createFromBitmap);
create2.forEach(createFromBitmap2);
createFromBitmap2.copyTo(createBitmap);
bitmapDrawable = new BitmapDrawable(activity.getResources(), createBitmap);
} catch (RuntimeException unused) {
bitmapDrawable = new BitmapDrawable(activity.getResources(), zza);
}
}
com.google.android.gms.ads.internal.util.zzs.zza.post(new Runnable() { // from class: com.google.android.gms.ads.internal.overlay.zzj
@Override // java.lang.Runnable
public final void run() {
zzk.this.zza.zzb.getWindow().setBackgroundDrawable(bitmapDrawable);
}
});
}
}
}

View File

@@ -0,0 +1,5 @@
package com.google.android.gms.ads.internal.overlay;
/* loaded from: classes2.dex */
public abstract /* synthetic */ class zzm$$ExternalSyntheticApiModelOutline0 {
}

View File

@@ -0,0 +1,664 @@
package com.google.android.gms.ads.internal.overlay;
import android.app.Activity;
import android.content.Intent;
import android.content.res.Configuration;
import android.graphics.Color;
import android.os.Build;
import android.os.Bundle;
import android.os.RemoteException;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebChromeClient;
import android.widget.FrameLayout;
import android.widget.RelativeLayout;
import android.widget.Toolbar;
import androidx.annotation.Nullable;
import androidx.annotation.VisibleForTesting;
import androidx.core.view.ViewCompat;
import com.google.android.gms.ads.internal.client.zzbe;
import com.google.android.gms.dynamic.IObjectWrapper;
import com.google.android.gms.dynamic.ObjectWrapper;
import com.google.android.gms.internal.ads.zzbcc;
import com.google.android.gms.internal.ads.zzbcl;
import com.google.android.gms.internal.ads.zzbsi;
import com.google.android.gms.internal.ads.zzbsx;
import com.google.android.gms.internal.ads.zzbtd;
import com.google.android.gms.internal.ads.zzcex;
import com.google.android.gms.internal.ads.zzdrv;
import com.google.android.gms.internal.ads.zzdrw;
import com.google.android.gms.internal.ads.zzebw;
import com.google.android.gms.internal.ads.zzebx;
import com.google.android.gms.internal.ads.zzecp;
import com.google.android.gms.internal.ads.zzecr;
import com.google.android.gms.internal.ads.zzfqw;
import com.google.android.gms.internal.ads.zzfve;
import java.util.Collections;
/* loaded from: classes2.dex */
public class zzm extends zzbtd implements zzag {
@VisibleForTesting
static final int zza = Color.argb(0, 0, 0, 0);
protected final Activity zzb;
@Nullable
@VisibleForTesting
AdOverlayInfoParcel zzc;
@VisibleForTesting
zzcex zzd;
@VisibleForTesting
zzi zze;
@VisibleForTesting
zzu zzf;
@VisibleForTesting
FrameLayout zzh;
@VisibleForTesting
WebChromeClient.CustomViewCallback zzi;
@VisibleForTesting
zzh zzl;
private Runnable zzq;
private boolean zzr;
private boolean zzs;
private Toolbar zzw;
@VisibleForTesting
boolean zzg = false;
@VisibleForTesting
boolean zzj = false;
@VisibleForTesting
boolean zzk = false;
@VisibleForTesting
boolean zzm = false;
@VisibleForTesting
int zzn = 1;
private final Object zzo = new Object();
private final View.OnClickListener zzp = new zzf(this);
private boolean zzt = false;
private boolean zzu = false;
private boolean zzv = true;
public zzm(Activity activity) {
this.zzb = activity;
}
private final void zzJ(View view) {
zzecr zzQ;
zzecp zzP;
zzcex zzcexVar = this.zzd;
if (zzcexVar == null) {
return;
}
if (((Boolean) zzbe.zzc().zza(zzbcl.zzff)).booleanValue() && (zzP = zzcexVar.zzP()) != null) {
zzP.zza(view);
} else if (((Boolean) zzbe.zzc().zza(zzbcl.zzfe)).booleanValue() && (zzQ = zzcexVar.zzQ()) != null && zzQ.zzb()) {
com.google.android.gms.ads.internal.zzv.zzB().zzg(zzQ.zza(), view);
}
}
/* JADX WARN: Code restructure failed: missing block: B:12:0x0031, code lost:
if (((java.lang.Boolean) com.google.android.gms.ads.internal.client.zzbe.zzc().zza(com.google.android.gms.internal.ads.zzbcl.zzaQ)).booleanValue() != false) goto L17;
*/
/* JADX WARN: Code restructure failed: missing block: B:13:0x0034, code lost:
r1 = false;
*/
/* JADX WARN: Code restructure failed: missing block: B:36:0x0048, code lost:
if (((java.lang.Boolean) com.google.android.gms.ads.internal.client.zzbe.zzc().zza(com.google.android.gms.internal.ads.zzbcl.zzaP)).booleanValue() != false) goto L20;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private final void zzK(android.content.res.Configuration r6) {
/*
r5 = this;
com.google.android.gms.ads.internal.overlay.AdOverlayInfoParcel r0 = r5.zzc
r1 = 1
r2 = 0
if (r0 == 0) goto L10
com.google.android.gms.ads.internal.zzl r0 = r0.zzo
if (r0 == 0) goto L10
boolean r0 = r0.zzb
if (r0 == 0) goto L10
r0 = r1
goto L11
L10:
r0 = r2
L11:
android.app.Activity r3 = r5.zzb
com.google.android.gms.ads.internal.util.zzaa r4 = com.google.android.gms.ads.internal.zzv.zzr()
boolean r6 = r4.zzd(r3, r6)
boolean r3 = r5.zzk
if (r3 == 0) goto L36
if (r0 != 0) goto L36
com.google.android.gms.internal.ads.zzbcc r0 = com.google.android.gms.internal.ads.zzbcl.zzaQ
com.google.android.gms.internal.ads.zzbcj r3 = com.google.android.gms.ads.internal.client.zzbe.zzc()
java.lang.Object r0 = r3.zza(r0)
java.lang.Boolean r0 = (java.lang.Boolean) r0
boolean r0 = r0.booleanValue()
if (r0 == 0) goto L34
goto L36
L34:
r1 = r2
goto L57
L36:
if (r6 == 0) goto L4a
com.google.android.gms.internal.ads.zzbcc r6 = com.google.android.gms.internal.ads.zzbcl.zzaP
com.google.android.gms.internal.ads.zzbcj r0 = com.google.android.gms.ads.internal.client.zzbe.zzc()
java.lang.Object r6 = r0.zza(r6)
java.lang.Boolean r6 = (java.lang.Boolean) r6
boolean r6 = r6.booleanValue()
if (r6 == 0) goto L34
L4a:
com.google.android.gms.ads.internal.overlay.AdOverlayInfoParcel r6 = r5.zzc
if (r6 == 0) goto L57
com.google.android.gms.ads.internal.zzl r6 = r6.zzo
if (r6 == 0) goto L57
boolean r6 = r6.zzg
if (r6 == 0) goto L57
r2 = r1
L57:
android.app.Activity r6 = r5.zzb
android.view.Window r6 = r6.getWindow()
com.google.android.gms.internal.ads.zzbcc r0 = com.google.android.gms.internal.ads.zzbcl.zzbn
com.google.android.gms.internal.ads.zzbcj r3 = com.google.android.gms.ads.internal.client.zzbe.zzc()
java.lang.Object r0 = r3.zza(r0)
java.lang.Boolean r0 = (java.lang.Boolean) r0
boolean r0 = r0.booleanValue()
if (r0 == 0) goto L83
android.view.View r6 = r6.getDecorView()
if (r1 == 0) goto L7d
if (r2 == 0) goto L7a
r0 = 5894(0x1706, float:8.259E-42)
goto L7f
L7a:
r0 = 5380(0x1504, float:7.539E-42)
goto L7f
L7d:
r0 = 256(0x100, float:3.59E-43)
L7f:
r6.setSystemUiVisibility(r0)
return
L83:
r0 = 2048(0x800, float:2.87E-42)
r3 = 1024(0x400, float:1.435E-42)
if (r1 == 0) goto L9b
r6.addFlags(r3)
r6.clearFlags(r0)
if (r2 == 0) goto L9a
android.view.View r6 = r6.getDecorView()
r0 = 4098(0x1002, float:5.743E-42)
r6.setSystemUiVisibility(r0)
L9a:
return
L9b:
r6.addFlags(r0)
r6.clearFlags(r3)
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.ads.internal.overlay.zzm.zzK(android.content.res.Configuration):void");
}
private static final void zzL(@Nullable zzecr zzecrVar, @Nullable View view) {
if (zzecrVar == null || view == null) {
return;
}
if (((Boolean) zzbe.zzc().zza(zzbcl.zzfe)).booleanValue() && zzecrVar.zzb()) {
return;
}
com.google.android.gms.ads.internal.zzv.zzB().zzj(zzecrVar.zza(), view);
}
public final void zzA(int i) {
if (this.zzb.getApplicationInfo().targetSdkVersion >= ((Integer) zzbe.zzc().zza(zzbcl.zzfQ)).intValue()) {
if (this.zzb.getApplicationInfo().targetSdkVersion <= ((Integer) zzbe.zzc().zza(zzbcl.zzfR)).intValue()) {
int i2 = Build.VERSION.SDK_INT;
if (i2 >= ((Integer) zzbe.zzc().zza(zzbcl.zzfS)).intValue()) {
if (i2 <= ((Integer) zzbe.zzc().zza(zzbcl.zzfT)).intValue()) {
return;
}
}
}
}
try {
this.zzb.setRequestedOrientation(i);
} catch (Throwable th) {
com.google.android.gms.ads.internal.zzv.zzp().zzv(th, "AdOverlay.setRequestedOrientation");
}
}
public final void zzB(boolean z) {
if (z) {
this.zzl.setBackgroundColor(0);
} else {
this.zzl.setBackgroundColor(ViewCompat.MEASURED_STATE_MASK);
}
}
public final void zzC(View view, WebChromeClient.CustomViewCallback customViewCallback) {
FrameLayout frameLayout = new FrameLayout(this.zzb);
this.zzh = frameLayout;
frameLayout.setBackgroundColor(ViewCompat.MEASURED_STATE_MASK);
this.zzh.addView(view, -1, -1);
this.zzb.setContentView(this.zzh);
this.zzs = true;
this.zzi = customViewCallback;
this.zzg = true;
}
/* JADX WARN: Removed duplicated region for block: B:108:0x0096 */
/* JADX WARN: Removed duplicated region for block: B:24:0x008e */
/* JADX WARN: Removed duplicated region for block: B:27:0x0173 */
/* JADX WARN: Removed duplicated region for block: B:30:0x0184 */
/* JADX WARN: Removed duplicated region for block: B:33:0x019c */
/* JADX WARN: Removed duplicated region for block: B:36:0x01ac */
/* JADX WARN: Removed duplicated region for block: B:60:0x0276 */
/* JADX WARN: Removed duplicated region for block: B:66:0x0285 */
/* JADX WARN: Removed duplicated region for block: B:74:0x00a8 A[EXC_TOP_SPLITTER, SYNTHETIC] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void zzD(boolean r27) throws com.google.android.gms.ads.internal.overlay.zzg {
/*
Method dump skipped, instructions count: 700
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.ads.internal.overlay.zzm.zzD(boolean):void");
}
public final void zzE() {
synchronized (this.zzo) {
try {
this.zzr = true;
Runnable runnable = this.zzq;
if (runnable != null) {
zzfqw zzfqwVar = com.google.android.gms.ads.internal.util.zzs.zza;
zzfqwVar.removeCallbacks(runnable);
zzfqwVar.post(this.zzq);
}
} catch (Throwable th) {
throw th;
}
}
}
public final void zzF() {
AdOverlayInfoParcel adOverlayInfoParcel;
zzr zzrVar;
if (!this.zzb.isFinishing() || this.zzt) {
return;
}
this.zzt = true;
zzcex zzcexVar = this.zzd;
if (zzcexVar != null) {
zzcexVar.zzZ(this.zzn - 1);
synchronized (this.zzo) {
try {
if (!this.zzr && this.zzd.zzaC()) {
if (((Boolean) zzbe.zzc().zza(zzbcl.zzeQ)).booleanValue() && !this.zzu && (adOverlayInfoParcel = this.zzc) != null && (zzrVar = adOverlayInfoParcel.zzc) != null) {
zzrVar.zzdo();
}
Runnable runnable = new Runnable() { // from class: com.google.android.gms.ads.internal.overlay.zzd
@Override // java.lang.Runnable
public final void run() {
zzm.this.zzc();
}
};
this.zzq = runnable;
com.google.android.gms.ads.internal.util.zzs.zza.postDelayed(runnable, ((Long) zzbe.zzc().zza(zzbcl.zzbg)).longValue());
return;
}
} finally {
}
}
}
zzc();
}
public final void zzG(String str) {
Toolbar toolbar = this.zzw;
if (toolbar != null) {
toolbar.setSubtitle(str);
}
}
@Override // com.google.android.gms.internal.ads.zzbte
public final boolean zzH() {
this.zzn = 1;
if (this.zzd == null) {
return true;
}
if (((Boolean) zzbe.zzc().zza(zzbcl.zziN)).booleanValue() && this.zzd.canGoBack()) {
this.zzd.goBack();
return false;
}
boolean zzaH = this.zzd.zzaH();
if (!zzaH) {
this.zzd.zzd("onbackblocked", Collections.emptyMap());
}
return zzaH;
}
public final void zzb() {
this.zzn = 3;
this.zzb.finish();
AdOverlayInfoParcel adOverlayInfoParcel = this.zzc;
if (adOverlayInfoParcel == null || adOverlayInfoParcel.zzk != 5) {
return;
}
this.zzb.overridePendingTransition(0, 0);
zzcex zzcexVar = this.zzd;
if (zzcexVar != null) {
zzcexVar.zzai(null);
}
}
@VisibleForTesting
public final void zzc() {
zzcex zzcexVar;
zzr zzrVar;
if (this.zzu) {
return;
}
this.zzu = true;
zzcex zzcexVar2 = this.zzd;
if (zzcexVar2 != null) {
this.zzl.removeView(zzcexVar2.zzF());
zzi zziVar = this.zze;
if (zziVar != null) {
this.zzd.zzan(zziVar.zzd);
this.zzd.zzaq(false);
if (((Boolean) zzbe.zzc().zza(zzbcl.zzmz)).booleanValue() && this.zzd.getParent() != null) {
((ViewGroup) this.zzd.getParent()).removeView(this.zzd.zzF());
}
ViewGroup viewGroup = this.zze.zzc;
View zzF = this.zzd.zzF();
zzi zziVar2 = this.zze;
viewGroup.addView(zzF, zziVar2.zza, zziVar2.zzb);
this.zze = null;
} else if (this.zzb.getApplicationContext() != null) {
this.zzd.zzan(this.zzb.getApplicationContext());
}
this.zzd = null;
}
AdOverlayInfoParcel adOverlayInfoParcel = this.zzc;
if (adOverlayInfoParcel != null && (zzrVar = adOverlayInfoParcel.zzc) != null) {
zzrVar.zzds(this.zzn);
}
AdOverlayInfoParcel adOverlayInfoParcel2 = this.zzc;
if (adOverlayInfoParcel2 == null || (zzcexVar = adOverlayInfoParcel2.zzd) == null) {
return;
}
zzL(zzcexVar.zzQ(), this.zzc.zzd.zzF());
}
public final void zzd() {
this.zzl.zzb = true;
}
public final void zze() {
this.zzd.zzaa();
}
public final void zzf(zzebx zzebxVar) throws zzg, RemoteException {
zzbsx zzbsxVar;
AdOverlayInfoParcel adOverlayInfoParcel = this.zzc;
if (adOverlayInfoParcel == null || (zzbsxVar = adOverlayInfoParcel.zzv) == null) {
throw new zzg("noioou");
}
zzbsxVar.zzg(ObjectWrapper.wrap(zzebxVar));
}
public final void zzg() {
AdOverlayInfoParcel adOverlayInfoParcel = this.zzc;
if (adOverlayInfoParcel != null && this.zzg) {
zzA(adOverlayInfoParcel.zzj);
}
if (this.zzh != null) {
this.zzb.setContentView(this.zzl);
this.zzs = true;
this.zzh.removeAllViews();
this.zzh = null;
}
WebChromeClient.CustomViewCallback customViewCallback = this.zzi;
if (customViewCallback != null) {
customViewCallback.onCustomViewHidden();
this.zzi = null;
}
this.zzg = false;
}
@Override // com.google.android.gms.internal.ads.zzbte
public final void zzh(int i, int i2, Intent intent) {
zzdrw zze;
AdOverlayInfoParcel adOverlayInfoParcel;
if (i == 236) {
zzbcc zzbccVar = zzbcl.zzmV;
if (((Boolean) zzbe.zzc().zza(zzbccVar)).booleanValue()) {
com.google.android.gms.ads.internal.util.zze.zza("Callback from intent launch with requestCode: 236 and resultCode: " + i2);
zzcex zzcexVar = this.zzd;
if (zzcexVar == null || zzcexVar.zzN() == null || (zze = zzcexVar.zzN().zze()) == null || (adOverlayInfoParcel = this.zzc) == null || !((Boolean) zzbe.zzc().zza(zzbccVar)).booleanValue()) {
return;
}
zzdrv zza2 = zze.zza();
zza2.zzb("action", "hilca");
zza2.zzb("gqi", zzfve.zzc(adOverlayInfoParcel.zzq));
StringBuilder sb = new StringBuilder();
sb.append(i2);
zza2.zzb("hilr", sb.toString());
if (i2 == -1 && intent != null) {
String stringExtra = intent.getStringExtra("callerPackage");
String stringExtra2 = intent.getStringExtra("loadingStage");
if (stringExtra != null) {
zza2.zzb("hilcp", stringExtra);
}
if (stringExtra2 != null) {
zza2.zzb("hills", stringExtra2);
}
}
zza2.zzf();
}
}
}
@Override // com.google.android.gms.internal.ads.zzbte
public final void zzi() {
this.zzn = 1;
}
@Override // com.google.android.gms.ads.internal.overlay.zzag
public final void zzj() {
this.zzn = 2;
this.zzb.finish();
}
@Override // com.google.android.gms.internal.ads.zzbte
public final void zzk(IObjectWrapper iObjectWrapper) {
zzK((Configuration) ObjectWrapper.unwrap(iObjectWrapper));
}
/* JADX WARN: Removed duplicated region for block: B:36:0x0095 A[Catch: zzg -> 0x0039, TryCatch #0 {zzg -> 0x0039, blocks: (B:11:0x001b, B:13:0x0029, B:15:0x002d, B:17:0x0033, B:18:0x003c, B:19:0x0047, B:21:0x0052, B:22:0x0054, B:24:0x005c, B:25:0x006a, B:27:0x0071, B:30:0x007e, B:32:0x0082, B:34:0x0087, B:36:0x0095, B:38:0x0099, B:40:0x009f, B:41:0x00a2, B:43:0x00a8, B:44:0x00ab, B:46:0x00b1, B:48:0x00b5, B:49:0x00b8, B:51:0x00be, B:52:0x00c1, B:59:0x00f0, B:62:0x00f4, B:63:0x00fb, B:64:0x00fc, B:66:0x0100, B:68:0x010d, B:70:0x0078, B:72:0x007c, B:73:0x0091, B:74:0x0111, B:75:0x0118), top: B:10:0x001b }] */
/* JADX WARN: Removed duplicated region for block: B:54:0x00e8 */
/* JADX WARN: Removed duplicated region for block: B:68:0x010d A[Catch: zzg -> 0x0039, TryCatch #0 {zzg -> 0x0039, blocks: (B:11:0x001b, B:13:0x0029, B:15:0x002d, B:17:0x0033, B:18:0x003c, B:19:0x0047, B:21:0x0052, B:22:0x0054, B:24:0x005c, B:25:0x006a, B:27:0x0071, B:30:0x007e, B:32:0x0082, B:34:0x0087, B:36:0x0095, B:38:0x0099, B:40:0x009f, B:41:0x00a2, B:43:0x00a8, B:44:0x00ab, B:46:0x00b1, B:48:0x00b5, B:49:0x00b8, B:51:0x00be, B:52:0x00c1, B:59:0x00f0, B:62:0x00f4, B:63:0x00fb, B:64:0x00fc, B:66:0x0100, B:68:0x010d, B:70:0x0078, B:72:0x007c, B:73:0x0091, B:74:0x0111, B:75:0x0118), top: B:10:0x001b }] */
@Override // com.google.android.gms.internal.ads.zzbte
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public void zzl(android.os.Bundle r9) {
/*
Method dump skipped, instructions count: 296
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.ads.internal.overlay.zzm.zzl(android.os.Bundle):void");
}
@Override // com.google.android.gms.internal.ads.zzbte
public final void zzm() {
zzcex zzcexVar = this.zzd;
if (zzcexVar != null) {
try {
this.zzl.removeView(zzcexVar.zzF());
} catch (NullPointerException unused) {
}
}
zzF();
}
public final void zzn() {
if (this.zzm) {
this.zzm = false;
zze();
}
}
@Override // com.google.android.gms.internal.ads.zzbte
public final void zzo() {
zzr zzrVar;
zzg();
AdOverlayInfoParcel adOverlayInfoParcel = this.zzc;
if (adOverlayInfoParcel != null && (zzrVar = adOverlayInfoParcel.zzc) != null) {
zzrVar.zzdi();
}
if (!((Boolean) zzbe.zzc().zza(zzbcl.zzeS)).booleanValue() && this.zzd != null && (!this.zzb.isFinishing() || this.zze == null)) {
this.zzd.onPause();
}
zzF();
}
@Override // com.google.android.gms.internal.ads.zzbte
public final void zzp(int i, String[] strArr, int[] iArr) {
if (i == 12345) {
Activity activity = this.zzb;
zzebw zze = zzebx.zze();
zze.zza(activity);
zze.zzb(this.zzc.zzk == 5 ? this : null);
try {
this.zzc.zzv.zzf(strArr, iArr, ObjectWrapper.wrap(zze.zze()));
} catch (RemoteException unused) {
}
}
}
@Override // com.google.android.gms.internal.ads.zzbte
public final void zzq() {
}
@Override // com.google.android.gms.internal.ads.zzbte
public final void zzr() {
zzr zzrVar;
AdOverlayInfoParcel adOverlayInfoParcel = this.zzc;
if (adOverlayInfoParcel != null && (zzrVar = adOverlayInfoParcel.zzc) != null) {
zzrVar.zzdE();
}
zzK(this.zzb.getResources().getConfiguration());
if (((Boolean) zzbe.zzc().zza(zzbcl.zzeS)).booleanValue()) {
return;
}
zzcex zzcexVar = this.zzd;
if (zzcexVar == null || zzcexVar.zzaE()) {
com.google.android.gms.ads.internal.util.client.zzo.zzj("The webview does not exist. Ignoring action.");
} else {
this.zzd.onResume();
}
}
@Override // com.google.android.gms.internal.ads.zzbte
public final void zzs(Bundle bundle) {
bundle.putBoolean("com.google.android.gms.ads.internal.overlay.hasResumed", this.zzj);
}
@Override // com.google.android.gms.internal.ads.zzbte
public final void zzt() {
if (((Boolean) zzbe.zzc().zza(zzbcl.zzeS)).booleanValue()) {
zzcex zzcexVar = this.zzd;
if (zzcexVar == null || zzcexVar.zzaE()) {
com.google.android.gms.ads.internal.util.client.zzo.zzj("The webview does not exist. Ignoring action.");
} else {
this.zzd.onResume();
}
}
}
@Override // com.google.android.gms.internal.ads.zzbte
public final void zzu() {
if (((Boolean) zzbe.zzc().zza(zzbcl.zzeS)).booleanValue() && this.zzd != null && (!this.zzb.isFinishing() || this.zze == null)) {
this.zzd.onPause();
}
zzF();
}
@Override // com.google.android.gms.internal.ads.zzbte
public final void zzv() {
zzr zzrVar;
AdOverlayInfoParcel adOverlayInfoParcel = this.zzc;
if (adOverlayInfoParcel == null || (zzrVar = adOverlayInfoParcel.zzc) == null) {
return;
}
zzrVar.zzdr();
}
public final void zzw(boolean z) {
if (this.zzc.zzw) {
return;
}
int intValue = ((Integer) zzbe.zzc().zza(zzbcl.zzeV)).intValue();
boolean z2 = ((Boolean) zzbe.zzc().zza(zzbcl.zzbj)).booleanValue() || z;
zzt zztVar = new zzt();
zztVar.zzd = 50;
zztVar.zza = true != z2 ? 0 : intValue;
zztVar.zzb = true != z2 ? intValue : 0;
zztVar.zzc = intValue;
this.zzf = new zzu(this.zzb, zztVar, this);
RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(-2, -2);
layoutParams.addRule(10);
layoutParams.addRule(true != z2 ? 9 : 11);
zzy(z, this.zzc.zzg);
this.zzl.addView(this.zzf, layoutParams);
zzJ(this.zzf);
}
@Override // com.google.android.gms.internal.ads.zzbte
public final void zzx() {
this.zzs = true;
}
public final void zzy(boolean z, boolean z2) {
AdOverlayInfoParcel adOverlayInfoParcel;
com.google.android.gms.ads.internal.zzl zzlVar;
AdOverlayInfoParcel adOverlayInfoParcel2;
com.google.android.gms.ads.internal.zzl zzlVar2;
boolean z3 = true;
boolean z4 = ((Boolean) zzbe.zzc().zza(zzbcl.zzbh)).booleanValue() && (adOverlayInfoParcel2 = this.zzc) != null && (zzlVar2 = adOverlayInfoParcel2.zzo) != null && zzlVar2.zzh;
boolean z5 = ((Boolean) zzbe.zzc().zza(zzbcl.zzbi)).booleanValue() && (adOverlayInfoParcel = this.zzc) != null && (zzlVar = adOverlayInfoParcel.zzo) != null && zzlVar.zzi;
if (z && z2 && z4 && !z5) {
new zzbsi(this.zzd, "useCustomClose").zzh("Custom close has been disabled for interstitial ads in this ad slot.");
}
zzu zzuVar = this.zzf;
if (zzuVar != null) {
if (!z5 && (!z2 || z4)) {
z3 = false;
}
zzuVar.zzb(z3);
}
}
public final void zzz() {
this.zzl.removeView(this.zzf);
zzw(true);
}
}

View File

@@ -0,0 +1,57 @@
package com.google.android.gms.ads.internal.overlay;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import androidx.annotation.Nullable;
import com.google.android.gms.ads.AdActivity;
import com.google.android.gms.ads.internal.client.zzbe;
import com.google.android.gms.common.util.PlatformVersion;
import com.google.android.gms.drive.DriveFile;
import com.google.android.gms.internal.ads.zzbcl;
import com.google.android.gms.internal.ads.zzdds;
import com.google.android.gms.internal.ads.zzdrw;
/* loaded from: classes2.dex */
public final class zzn {
public static final void zza(Context context, AdOverlayInfoParcel adOverlayInfoParcel, boolean z, @Nullable zzdrw zzdrwVar) {
if (adOverlayInfoParcel.zzk == 4 && adOverlayInfoParcel.zzc == null) {
com.google.android.gms.ads.internal.client.zza zzaVar = adOverlayInfoParcel.zzb;
if (zzaVar != null) {
zzaVar.onAdClicked();
}
zzdds zzddsVar = adOverlayInfoParcel.zzu;
if (zzddsVar != null) {
zzddsVar.zzdd();
}
Activity zzi = adOverlayInfoParcel.zzd.zzi();
zzc zzcVar = adOverlayInfoParcel.zza;
Context context2 = (zzcVar == null || !zzcVar.zzj || zzi == null) ? context : zzi;
com.google.android.gms.ads.internal.zzv.zzi();
zzc zzcVar2 = adOverlayInfoParcel.zza;
zza.zzb(context2, zzcVar2, adOverlayInfoParcel.zzi, zzcVar2 != null ? zzcVar2.zzi : null, zzdrwVar, adOverlayInfoParcel.zzq);
return;
}
Intent intent = new Intent();
intent.setClassName(context, AdActivity.CLASS_NAME);
intent.putExtra("com.google.android.gms.ads.internal.overlay.useClientJar", adOverlayInfoParcel.zzm.isClientJar);
intent.putExtra("shouldCallOnOverlayOpened", z);
Bundle bundle = new Bundle(1);
bundle.putParcelable("com.google.android.gms.ads.inernal.overlay.AdOverlayInfo", adOverlayInfoParcel);
intent.putExtra("com.google.android.gms.ads.inernal.overlay.AdOverlayInfo", bundle);
if (!PlatformVersion.isAtLeastLollipop()) {
intent.addFlags(524288);
}
if (!(context instanceof Activity)) {
intent.addFlags(DriveFile.MODE_READ_ONLY);
}
if (((Boolean) zzbe.zzc().zza(zzbcl.zzmU)).booleanValue()) {
com.google.android.gms.ads.internal.zzv.zzq();
com.google.android.gms.ads.internal.util.zzs.zzX(context, intent, zzdrwVar, adOverlayInfoParcel.zzq);
} else {
com.google.android.gms.ads.internal.zzv.zzq();
com.google.android.gms.ads.internal.util.zzs.zzT(context, intent);
}
}
}

View File

@@ -0,0 +1,131 @@
package com.google.android.gms.ads.internal.overlay;
import android.os.IBinder;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.ads.internal.util.client.VersionInfoParcel;
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
/* loaded from: classes2.dex */
public final class zzo implements Parcelable.Creator {
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
long j = 0;
boolean z = false;
int i = 0;
int i2 = 0;
boolean z2 = false;
zzc zzcVar = null;
IBinder iBinder = null;
IBinder iBinder2 = null;
IBinder iBinder3 = null;
IBinder iBinder4 = null;
String str = null;
String str2 = null;
IBinder iBinder5 = null;
String str3 = null;
VersionInfoParcel versionInfoParcel = null;
String str4 = null;
com.google.android.gms.ads.internal.zzl zzlVar = null;
IBinder iBinder6 = null;
String str5 = null;
String str6 = null;
String str7 = null;
IBinder iBinder7 = null;
IBinder iBinder8 = null;
IBinder iBinder9 = null;
while (parcel.dataPosition() < validateObjectHeader) {
int readHeader = SafeParcelReader.readHeader(parcel);
switch (SafeParcelReader.getFieldId(readHeader)) {
case 2:
zzcVar = (zzc) SafeParcelReader.createParcelable(parcel, readHeader, zzc.CREATOR);
break;
case 3:
iBinder = SafeParcelReader.readIBinder(parcel, readHeader);
break;
case 4:
iBinder2 = SafeParcelReader.readIBinder(parcel, readHeader);
break;
case 5:
iBinder3 = SafeParcelReader.readIBinder(parcel, readHeader);
break;
case 6:
iBinder4 = SafeParcelReader.readIBinder(parcel, readHeader);
break;
case 7:
str = SafeParcelReader.createString(parcel, readHeader);
break;
case 8:
z = SafeParcelReader.readBoolean(parcel, readHeader);
break;
case 9:
str2 = SafeParcelReader.createString(parcel, readHeader);
break;
case 10:
iBinder5 = SafeParcelReader.readIBinder(parcel, readHeader);
break;
case 11:
i = SafeParcelReader.readInt(parcel, readHeader);
break;
case 12:
i2 = SafeParcelReader.readInt(parcel, readHeader);
break;
case 13:
str3 = SafeParcelReader.createString(parcel, readHeader);
break;
case 14:
versionInfoParcel = (VersionInfoParcel) SafeParcelReader.createParcelable(parcel, readHeader, VersionInfoParcel.CREATOR);
break;
case 15:
case 20:
case 21:
case 22:
case 23:
default:
SafeParcelReader.skipUnknownField(parcel, readHeader);
break;
case 16:
str4 = SafeParcelReader.createString(parcel, readHeader);
break;
case 17:
zzlVar = (com.google.android.gms.ads.internal.zzl) SafeParcelReader.createParcelable(parcel, readHeader, com.google.android.gms.ads.internal.zzl.CREATOR);
break;
case 18:
iBinder6 = SafeParcelReader.readIBinder(parcel, readHeader);
break;
case 19:
str5 = SafeParcelReader.createString(parcel, readHeader);
break;
case 24:
str6 = SafeParcelReader.createString(parcel, readHeader);
break;
case 25:
str7 = SafeParcelReader.createString(parcel, readHeader);
break;
case 26:
iBinder7 = SafeParcelReader.readIBinder(parcel, readHeader);
break;
case 27:
iBinder8 = SafeParcelReader.readIBinder(parcel, readHeader);
break;
case 28:
iBinder9 = SafeParcelReader.readIBinder(parcel, readHeader);
break;
case 29:
z2 = SafeParcelReader.readBoolean(parcel, readHeader);
break;
case 30:
j = SafeParcelReader.readLong(parcel, readHeader);
break;
}
}
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
return new AdOverlayInfoParcel(zzcVar, iBinder, iBinder2, iBinder3, iBinder4, str, z, str2, iBinder5, i, i2, str3, versionInfoParcel, str4, zzlVar, iBinder6, str5, str6, str7, iBinder7, iBinder8, iBinder9, z2, j);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Object[] newArray(int i) {
return new AdOverlayInfoParcel[i];
}
}

View File

@@ -0,0 +1,36 @@
package com.google.android.gms.ads.internal.overlay;
import com.google.android.gms.internal.ads.zzbif;
import com.google.android.gms.internal.ads.zzbih;
import com.google.android.gms.internal.ads.zzbsx;
import com.google.android.gms.internal.ads.zzcex;
import com.google.android.gms.internal.ads.zzcwg;
import com.google.android.gms.internal.ads.zzdds;
import java.util.concurrent.ScheduledFuture;
/* loaded from: classes2.dex */
final class zzp {
private final com.google.android.gms.ads.internal.client.zza zza;
private final zzr zzb;
private final zzcex zzc;
private final zzbif zzd;
private final zzbih zze;
private final zzac zzf;
private final zzcwg zzg;
private final zzdds zzh;
private final zzbsx zzi;
private final ScheduledFuture zzj;
public zzp(com.google.android.gms.ads.internal.client.zza zzaVar, zzr zzrVar, zzcex zzcexVar, zzbif zzbifVar, zzbih zzbihVar, zzac zzacVar, zzcwg zzcwgVar, zzdds zzddsVar, zzbsx zzbsxVar, ScheduledFuture scheduledFuture) {
this.zza = zzaVar;
this.zzb = zzrVar;
this.zzc = zzcexVar;
this.zzd = zzbifVar;
this.zze = zzbihVar;
this.zzf = zzacVar;
this.zzg = zzcwgVar;
this.zzh = zzddsVar;
this.zzi = zzbsxVar;
this.zzj = scheduledFuture;
}
}

View File

@@ -0,0 +1,25 @@
package com.google.android.gms.ads.internal.overlay;
import java.util.concurrent.Callable;
import java.util.concurrent.ConcurrentHashMap;
/* loaded from: classes2.dex */
final class zzq implements Callable {
private final long zza;
public zzq(long j) {
this.zza = j;
}
@Override // java.util.concurrent.Callable
public final Object call() {
ConcurrentHashMap concurrentHashMap;
long j = this.zza;
concurrentHashMap = AdOverlayInfoParcel.zzz;
if (concurrentHashMap.remove(Long.valueOf(j)) == null) {
return null;
}
com.google.android.gms.ads.internal.zzv.zzp().zzw(new Exception("Key was non-null in AdOverlayObjectsCleanupTask"), "AdOverlayObjectsCleanupTask");
return null;
}
}

View File

@@ -0,0 +1,16 @@
package com.google.android.gms.ads.internal.overlay;
/* loaded from: classes2.dex */
public interface zzr {
void zzdE();
void zzdi();
void zzdo();
void zzdp();
void zzdr();
void zzds(int i);
}

View File

@@ -0,0 +1,36 @@
package com.google.android.gms.ads.internal.overlay;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.widget.ImageButton;
/* loaded from: classes2.dex */
final class zzs extends AnimatorListenerAdapter {
final /* synthetic */ zzu zza;
public zzs(zzu zzuVar) {
this.zza = zzuVar;
}
private final void zza(boolean z) {
ImageButton imageButton;
this.zza.setEnabled(z);
imageButton = this.zza.zza;
imageButton.setEnabled(z);
}
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
public final void onAnimationCancel(Animator animator) {
zza(true);
}
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
public final void onAnimationEnd(Animator animator) {
zza(true);
}
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
public final void onAnimationStart(Animator animator) {
zza(false);
}
}

View File

@@ -0,0 +1,9 @@
package com.google.android.gms.ads.internal.overlay;
/* loaded from: classes2.dex */
public final class zzt {
public int zza = 0;
public int zzb = 0;
public int zzc = 0;
public int zzd = 32;
}

View File

@@ -0,0 +1,103 @@
package com.google.android.gms.ads.internal.overlay;
import android.R;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.drawable.Drawable;
import android.text.TextUtils;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.ImageButton;
import android.widget.ImageView;
import androidx.annotation.Nullable;
import com.google.android.gms.ads.internal.client.zzbc;
import com.google.android.gms.ads.internal.client.zzbe;
import com.google.android.gms.common.util.PlatformVersion;
import com.google.android.gms.internal.ads.zzbcl;
import com.mbridge.msdk.newreward.player.view.hybrid.util.MRAIDCommunicatorUtil;
/* loaded from: classes2.dex */
public final class zzu extends FrameLayout implements View.OnClickListener {
private final ImageButton zza;
private final zzag zzb;
public zzu(Context context, zzt zztVar, @Nullable zzag zzagVar) {
super(context);
this.zzb = zzagVar;
setOnClickListener(this);
ImageButton imageButton = new ImageButton(context);
this.zza = imageButton;
zzc();
imageButton.setBackgroundColor(0);
imageButton.setOnClickListener(this);
zzbc.zzb();
int zzx = com.google.android.gms.ads.internal.util.client.zzf.zzx(context, zztVar.zza);
zzbc.zzb();
int zzx2 = com.google.android.gms.ads.internal.util.client.zzf.zzx(context, 0);
zzbc.zzb();
int zzx3 = com.google.android.gms.ads.internal.util.client.zzf.zzx(context, zztVar.zzb);
zzbc.zzb();
imageButton.setPadding(zzx, zzx2, zzx3, com.google.android.gms.ads.internal.util.client.zzf.zzx(context, zztVar.zzc));
imageButton.setContentDescription("Interstitial close button");
zzbc.zzb();
int zzx4 = com.google.android.gms.ads.internal.util.client.zzf.zzx(context, zztVar.zzd + zztVar.zza + zztVar.zzb);
zzbc.zzb();
addView(imageButton, new FrameLayout.LayoutParams(zzx4, com.google.android.gms.ads.internal.util.client.zzf.zzx(context, zztVar.zzd + zztVar.zzc), 17));
long longValue = ((Long) zzbe.zzc().zza(zzbcl.zzbl)).longValue();
if (longValue <= 0) {
return;
}
zzs zzsVar = ((Boolean) zzbe.zzc().zza(zzbcl.zzbm)).booleanValue() ? new zzs(this) : null;
imageButton.setAlpha(0.0f);
imageButton.animate().alpha(1.0f).setDuration(longValue).setListener(zzsVar);
}
private final void zzc() {
String str = (String) zzbe.zzc().zza(zzbcl.zzbk);
if (!PlatformVersion.isAtLeastLollipop() || TextUtils.isEmpty(str) || MRAIDCommunicatorUtil.STATES_DEFAULT.equals(str)) {
this.zza.setImageResource(R.drawable.btn_dialog);
return;
}
Resources zze = com.google.android.gms.ads.internal.zzv.zzp().zze();
if (zze == null) {
this.zza.setImageResource(R.drawable.btn_dialog);
return;
}
Drawable drawable = null;
try {
if ("white".equals(str)) {
drawable = zze.getDrawable(com.google.android.gms.ads.impl.R.drawable.admob_close_button_white_circle_black_cross);
} else if ("black".equals(str)) {
drawable = zze.getDrawable(com.google.android.gms.ads.impl.R.drawable.admob_close_button_black_circle_white_cross);
}
} catch (Resources.NotFoundException unused) {
com.google.android.gms.ads.internal.util.client.zzo.zze("Close button resource not found, falling back to default.");
}
if (drawable == null) {
this.zza.setImageResource(R.drawable.btn_dialog);
} else {
this.zza.setImageDrawable(drawable);
this.zza.setScaleType(ImageView.ScaleType.CENTER);
}
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
zzag zzagVar = this.zzb;
if (zzagVar != null) {
zzagVar.zzj();
}
}
public final void zzb(boolean z) {
if (!z) {
this.zza.setVisibility(0);
return;
}
this.zza.setVisibility(8);
if (((Long) zzbe.zzc().zza(zzbcl.zzbl)).longValue() > 0) {
this.zza.animate().cancel();
this.zza.clearAnimation();
}
}
}

View File

@@ -0,0 +1,10 @@
package com.google.android.gms.ads.internal.overlay;
import android.app.Activity;
/* loaded from: classes2.dex */
public final class zzv extends zzm {
public zzv(Activity activity) {
super(activity);
}
}

View File

@@ -0,0 +1,19 @@
package com.google.android.gms.ads.internal.overlay;
import android.app.Activity;
import android.os.Bundle;
import androidx.annotation.Nullable;
/* loaded from: classes2.dex */
public final class zzw extends zzm {
public zzw(Activity activity) {
super(activity);
}
@Override // com.google.android.gms.ads.internal.overlay.zzm, com.google.android.gms.internal.ads.zzbte
public final void zzl(@Nullable Bundle bundle) {
com.google.android.gms.ads.internal.util.zze.zza("AdOverlayParcel is null or does not contain valid overlay type.");
this.zzn = 4;
this.zzb.finish();
}
}

View File

@@ -0,0 +1,18 @@
package com.google.android.gms.ads.internal.overlay;
import com.google.android.gms.internal.ads.zzfta;
import com.google.android.gms.internal.ads.zzftb;
/* loaded from: classes2.dex */
final class zzy implements zzftb {
final /* synthetic */ zzz zza;
public zzy(zzz zzzVar) {
this.zza = zzzVar;
}
@Override // com.google.android.gms.internal.ads.zzftb
public final void zza(zzfta zzftaVar) {
this.zza.zzi(zzftaVar);
}
}

View File

@@ -0,0 +1,216 @@
package com.google.android.gms.ads.internal.overlay;
import android.content.Context;
import android.text.TextUtils;
import androidx.annotation.Nullable;
import androidx.annotation.VisibleForTesting;
import com.google.android.gms.ads.internal.client.zzbe;
import com.google.android.gms.internal.ads.zzbcl;
import com.google.android.gms.internal.ads.zzbzw;
import com.google.android.gms.internal.ads.zzcex;
import com.google.android.gms.internal.ads.zzfsc;
import com.google.android.gms.internal.ads.zzfsd;
import com.google.android.gms.internal.ads.zzfse;
import com.google.android.gms.internal.ads.zzfsf;
import com.google.android.gms.internal.ads.zzfsy;
import com.google.android.gms.internal.ads.zzfta;
import com.google.android.gms.internal.ads.zzftb;
import com.google.android.gms.internal.ads.zzftc;
import com.google.android.gms.internal.ads.zzftd;
import com.google.android.gms.internal.ads.zzftq;
import java.util.HashMap;
import java.util.Map;
/* loaded from: classes2.dex */
public final class zzz {
private zzftb zzf;
@Nullable
private zzcex zzc = null;
private boolean zze = false;
@Nullable
private String zza = null;
@Nullable
private zzfse zzd = null;
@Nullable
private String zzb = null;
private final zzftd zzl() {
zzftc zzc = zzftd.zzc();
if (!((Boolean) zzbe.zzc().zza(zzbcl.zzlq)).booleanValue() || TextUtils.isEmpty(this.zzb)) {
String str = this.zza;
if (str != null) {
zzc.zzb(str);
} else {
zzf("Missing session token and/or appId", "onLMDupdate");
}
} else {
zzc.zza(this.zzb);
}
return zzc.zzc();
}
private final void zzm() {
if (this.zzf == null) {
this.zzf = new zzy(this);
}
}
public final synchronized void zza(@Nullable zzcex zzcexVar, Context context) {
this.zzc = zzcexVar;
if (!zzk(context)) {
zzf("Unable to bind", "on_play_store_bind");
return;
}
HashMap hashMap = new HashMap();
hashMap.put("action", "fetch_completed");
zze("on_play_store_bind", hashMap);
}
public final void zzc() {
zzfse zzfseVar;
if (!this.zze || (zzfseVar = this.zzd) == null) {
com.google.android.gms.ads.internal.util.zze.zza("LastMileDelivery not connected");
return;
}
zzfsc zzc = zzfsd.zzc();
if (!((Boolean) zzbe.zzc().zza(zzbcl.zzlq)).booleanValue() || TextUtils.isEmpty(this.zzb)) {
String str = this.zza;
if (str != null) {
zzc.zzb(str);
} else {
zzf("Missing session token and/or appId", "onLMDupdate");
}
} else {
zzc.zza(this.zzb);
}
zzfseVar.zzb(zzc.zzc(), this.zzf);
}
@VisibleForTesting
public final void zzd(String str) {
zze(str, new HashMap());
}
@VisibleForTesting
public final void zze(final String str, final Map map) {
zzbzw.zzf.execute(new Runnable() { // from class: com.google.android.gms.ads.internal.overlay.zzx
@Override // java.lang.Runnable
public final void run() {
zzz.this.zzh(str, map);
}
});
}
@VisibleForTesting
public final void zzf(String str, String str2) {
com.google.android.gms.ads.internal.util.zze.zza(str);
if (this.zzc != null) {
HashMap hashMap = new HashMap();
hashMap.put("message", str);
hashMap.put("action", str2);
zze("onError", hashMap);
}
}
public final /* synthetic */ void zzh(String str, Map map) {
zzcex zzcexVar = this.zzc;
if (zzcexVar != null) {
zzcexVar.zzd(str, map);
}
}
@VisibleForTesting
public final void zzi(zzfta zzftaVar) {
if (!TextUtils.isEmpty(zzftaVar.zzb())) {
if (!((Boolean) zzbe.zzc().zza(zzbcl.zzlq)).booleanValue()) {
this.zza = zzftaVar.zzb();
}
}
switch (zzftaVar.zza()) {
case 8152:
zzd("onLMDOverlayOpened");
break;
case 8153:
zzd("onLMDOverlayClicked");
break;
case 8155:
zzd("onLMDOverlayClose");
break;
case 8157:
this.zza = null;
this.zzb = null;
this.zze = false;
break;
case 8160:
case 8161:
case 8162:
HashMap hashMap = new HashMap();
hashMap.put("error", String.valueOf(zzftaVar.zza()));
zze("onLMDOverlayFailedToOpen", hashMap);
break;
}
}
public final void zzj(@Nullable zzcex zzcexVar, @Nullable zzfsy zzfsyVar) {
if (zzcexVar == null) {
zzf("adWebview missing", "onLMDShow");
return;
}
this.zzc = zzcexVar;
if (!this.zze && !zzk(zzcexVar.getContext())) {
zzf("LMDOverlay not bound", "on_play_store_bind");
return;
}
if (((Boolean) zzbe.zzc().zza(zzbcl.zzlq)).booleanValue()) {
this.zzb = zzfsyVar.zzh();
}
zzm();
zzfse zzfseVar = this.zzd;
if (zzfseVar != null) {
zzfseVar.zzd(zzfsyVar, this.zzf);
}
}
public final synchronized boolean zzk(Context context) {
if (!zzftq.zza(context)) {
return false;
}
try {
this.zzd = zzfsf.zza(context);
} catch (NullPointerException e) {
com.google.android.gms.ads.internal.util.zze.zza("Error connecting LMD Overlay service");
com.google.android.gms.ads.internal.zzv.zzp().zzw(e, "LastMileDeliveryOverlay.bindLastMileDeliveryService");
}
if (this.zzd == null) {
this.zze = false;
return false;
}
zzm();
this.zze = true;
return true;
}
public final void zzb() {
zzfse zzfseVar;
if (!this.zze || (zzfseVar = this.zzd) == null) {
com.google.android.gms.ads.internal.util.zze.zza("LastMileDelivery not connected");
} else {
zzfseVar.zza(zzl(), this.zzf);
zzd("onLMDOverlayCollapse");
}
}
public final void zzg() {
zzfse zzfseVar;
if (!this.zze || (zzfseVar = this.zzd) == null) {
com.google.android.gms.ads.internal.util.zze.zza("LastMileDelivery not connected");
} else {
zzfseVar.zzc(zzl(), this.zzf);
zzd("onLMDOverlayExpand");
}
}
}