Files
rr3-apk/decompiled-community/sources/com/google/android/gms/internal/ads/zzbqf.java
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- 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
2026-02-18 15:48:36 -08:00

769 lines
36 KiB
Java

package com.google.android.gms.internal.ads;
import android.content.Context;
import android.os.Bundle;
import android.os.RemoteException;
import android.text.TextUtils;
import android.view.View;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.ads.mediation.admob.AdMobAdapter;
import com.google.android.gms.ads.AdFormat;
import com.google.android.gms.ads.AdSize;
import com.google.android.gms.ads.mediation.Adapter;
import com.google.android.gms.ads.mediation.MediationAdapter;
import com.google.android.gms.ads.mediation.MediationAppOpenAd;
import com.google.android.gms.ads.mediation.MediationAppOpenAdConfiguration;
import com.google.android.gms.ads.mediation.MediationBannerAdConfiguration;
import com.google.android.gms.ads.mediation.MediationBannerAdapter;
import com.google.android.gms.ads.mediation.MediationConfiguration;
import com.google.android.gms.ads.mediation.MediationInterscrollerAd;
import com.google.android.gms.ads.mediation.MediationInterstitialAd;
import com.google.android.gms.ads.mediation.MediationInterstitialAdConfiguration;
import com.google.android.gms.ads.mediation.MediationInterstitialAdapter;
import com.google.android.gms.ads.mediation.MediationNativeAdConfiguration;
import com.google.android.gms.ads.mediation.MediationNativeAdapter;
import com.google.android.gms.ads.mediation.MediationRewardedAd;
import com.google.android.gms.ads.mediation.MediationRewardedAdConfiguration;
import com.google.android.gms.ads.mediation.NativeAdMapper;
import com.google.android.gms.ads.mediation.OnContextChangedListener;
import com.google.android.gms.ads.mediation.OnImmersiveModeUpdatedListener;
import com.google.android.gms.ads.mediation.UnifiedNativeAdMapper;
import com.google.android.gms.dynamic.IObjectWrapper;
import com.google.android.gms.dynamic.ObjectWrapper;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Objects;
import org.json.JSONException;
import org.json.JSONObject;
/* loaded from: classes3.dex */
public final class zzbqf extends zzbpg {
private final Object zza;
private zzbqh zzb;
private zzbwh zzc;
private IObjectWrapper zzd;
private View zze;
private MediationInterstitialAd zzf;
private UnifiedNativeAdMapper zzg;
private NativeAdMapper zzh;
private MediationRewardedAd zzi;
private MediationInterscrollerAd zzj;
private MediationAppOpenAd zzk;
private final String zzl = "";
public zzbqf(@NonNull Adapter adapter) {
this.zza = adapter;
}
private final Bundle zzV(com.google.android.gms.ads.internal.client.zzm zzmVar) {
Bundle bundle;
Bundle bundle2 = zzmVar.zzm;
return (bundle2 == null || (bundle = bundle2.getBundle(this.zza.getClass().getName())) == null) ? new Bundle() : bundle;
}
private final Bundle zzW(String str, com.google.android.gms.ads.internal.client.zzm zzmVar, String str2) throws RemoteException {
com.google.android.gms.ads.internal.util.client.zzo.zze("Server parameters: ".concat(String.valueOf(str)));
try {
Bundle bundle = new Bundle();
if (str != null) {
JSONObject jSONObject = new JSONObject(str);
Bundle bundle2 = new Bundle();
Iterator<String> keys = jSONObject.keys();
while (keys.hasNext()) {
String next = keys.next();
bundle2.putString(next, jSONObject.getString(next));
}
bundle = bundle2;
}
if (this.zza instanceof AdMobAdapter) {
bundle.putString("adJson", str2);
if (zzmVar != null) {
bundle.putInt("tagForChildDirectedTreatment", zzmVar.zzg);
}
}
bundle.remove("max_ad_content_rating");
return bundle;
} catch (Throwable th) {
com.google.android.gms.ads.internal.util.client.zzo.zzh("", th);
throw new RemoteException();
}
}
private static final boolean zzX(com.google.android.gms.ads.internal.client.zzm zzmVar) {
if (zzmVar.zzf) {
return true;
}
com.google.android.gms.ads.internal.client.zzbc.zzb();
return com.google.android.gms.ads.internal.util.client.zzf.zzr();
}
@Nullable
private static final String zzY(String str, com.google.android.gms.ads.internal.client.zzm zzmVar) {
String str2 = zzmVar.zzu;
try {
return new JSONObject(str).getString("max_ad_content_rating");
} catch (JSONException unused) {
return str2;
}
}
@Override // com.google.android.gms.internal.ads.zzbph
public final void zzA(IObjectWrapper iObjectWrapper, com.google.android.gms.ads.internal.client.zzm zzmVar, String str, zzbpk zzbpkVar) throws RemoteException {
Object obj = this.zza;
if (!(obj instanceof Adapter)) {
com.google.android.gms.ads.internal.util.client.zzo.zzj(Adapter.class.getCanonicalName() + " #009 Class mismatch: " + obj.getClass().getCanonicalName());
throw new RemoteException();
}
com.google.android.gms.ads.internal.util.client.zzo.zze("Requesting rewarded ad from adapter.");
try {
((Adapter) this.zza).loadRewardedAd(new MediationRewardedAdConfiguration((Context) ObjectWrapper.unwrap(iObjectWrapper), "", zzW(str, zzmVar, null), zzV(zzmVar), zzX(zzmVar), zzmVar.zzk, zzmVar.zzg, zzmVar.zzt, zzY(str, zzmVar), ""), new zzbqd(this, zzbpkVar));
} catch (Exception e) {
com.google.android.gms.ads.internal.util.client.zzo.zzh("", e);
zzbpb.zza(iObjectWrapper, e, "adapter.loadRewardedAd");
throw new RemoteException();
}
}
@Override // com.google.android.gms.internal.ads.zzbph
public final void zzB(com.google.android.gms.ads.internal.client.zzm zzmVar, String str, String str2) throws RemoteException {
Object obj = this.zza;
if (obj instanceof Adapter) {
zzA(this.zzd, zzmVar, str, new zzbqi((Adapter) obj, this.zzc));
return;
}
com.google.android.gms.ads.internal.util.client.zzo.zzj(Adapter.class.getCanonicalName() + " #009 Class mismatch: " + obj.getClass().getCanonicalName());
throw new RemoteException();
}
@Override // com.google.android.gms.internal.ads.zzbph
public final void zzC(IObjectWrapper iObjectWrapper, com.google.android.gms.ads.internal.client.zzm zzmVar, String str, zzbpk zzbpkVar) throws RemoteException {
Object obj = this.zza;
if (obj instanceof Adapter) {
com.google.android.gms.ads.internal.util.client.zzo.zze("Requesting rewarded interstitial ad from adapter.");
try {
((Adapter) this.zza).loadRewardedInterstitialAd(new MediationRewardedAdConfiguration((Context) ObjectWrapper.unwrap(iObjectWrapper), "", zzW(str, zzmVar, null), zzV(zzmVar), zzX(zzmVar), zzmVar.zzk, zzmVar.zzg, zzmVar.zzt, zzY(str, zzmVar), ""), new zzbqd(this, zzbpkVar));
return;
} catch (Exception e) {
zzbpb.zza(iObjectWrapper, e, "adapter.loadRewardedInterstitialAd");
throw new RemoteException();
}
}
com.google.android.gms.ads.internal.util.client.zzo.zzj(Adapter.class.getCanonicalName() + " #009 Class mismatch: " + obj.getClass().getCanonicalName());
throw new RemoteException();
}
@Override // com.google.android.gms.internal.ads.zzbph
public final void zzD(IObjectWrapper iObjectWrapper) throws RemoteException {
Context context = (Context) ObjectWrapper.unwrap(iObjectWrapper);
Object obj = this.zza;
if (obj instanceof OnContextChangedListener) {
((OnContextChangedListener) obj).onContextChanged(context);
}
}
@Override // com.google.android.gms.internal.ads.zzbph
public final void zzE() throws RemoteException {
Object obj = this.zza;
if (obj instanceof MediationAdapter) {
try {
((MediationAdapter) obj).onPause();
} catch (Throwable th) {
com.google.android.gms.ads.internal.util.client.zzo.zzh("", th);
throw new RemoteException();
}
}
}
@Override // com.google.android.gms.internal.ads.zzbph
public final void zzF() throws RemoteException {
Object obj = this.zza;
if (obj instanceof MediationAdapter) {
try {
((MediationAdapter) obj).onResume();
} catch (Throwable th) {
com.google.android.gms.ads.internal.util.client.zzo.zzh("", th);
throw new RemoteException();
}
}
}
@Override // com.google.android.gms.internal.ads.zzbph
public final void zzG(boolean z) throws RemoteException {
Object obj = this.zza;
if (obj instanceof OnImmersiveModeUpdatedListener) {
try {
((OnImmersiveModeUpdatedListener) obj).onImmersiveModeUpdated(z);
return;
} catch (Throwable th) {
com.google.android.gms.ads.internal.util.client.zzo.zzh("", th);
return;
}
}
com.google.android.gms.ads.internal.util.client.zzo.zze(OnImmersiveModeUpdatedListener.class.getCanonicalName() + " #009 Class mismatch: " + obj.getClass().getCanonicalName());
}
@Override // com.google.android.gms.internal.ads.zzbph
public final void zzH(IObjectWrapper iObjectWrapper) throws RemoteException {
Object obj = this.zza;
if (!(obj instanceof Adapter)) {
com.google.android.gms.ads.internal.util.client.zzo.zzj(Adapter.class.getCanonicalName() + " #009 Class mismatch: " + obj.getClass().getCanonicalName());
throw new RemoteException();
}
com.google.android.gms.ads.internal.util.client.zzo.zze("Show app open ad from adapter.");
MediationAppOpenAd mediationAppOpenAd = this.zzk;
if (mediationAppOpenAd == null) {
com.google.android.gms.ads.internal.util.client.zzo.zzg("Can not show null mediation app open ad.");
throw new RemoteException();
}
try {
mediationAppOpenAd.showAd((Context) ObjectWrapper.unwrap(iObjectWrapper));
} catch (RuntimeException e) {
zzbpb.zza(iObjectWrapper, e, "adapter.appOpen.showAd");
throw e;
}
}
@Override // com.google.android.gms.internal.ads.zzbph
public final void zzI() throws RemoteException {
Object obj = this.zza;
if (obj instanceof MediationInterstitialAdapter) {
com.google.android.gms.ads.internal.util.client.zzo.zze("Showing interstitial from adapter.");
try {
((MediationInterstitialAdapter) this.zza).showInterstitial();
return;
} catch (Throwable th) {
com.google.android.gms.ads.internal.util.client.zzo.zzh("", th);
throw new RemoteException();
}
}
com.google.android.gms.ads.internal.util.client.zzo.zzj(MediationInterstitialAdapter.class.getCanonicalName() + " #009 Class mismatch: " + obj.getClass().getCanonicalName());
throw new RemoteException();
}
@Override // com.google.android.gms.internal.ads.zzbph
public final void zzJ(IObjectWrapper iObjectWrapper) throws RemoteException {
Object obj = this.zza;
if (!(obj instanceof Adapter) && !(obj instanceof MediationInterstitialAdapter)) {
com.google.android.gms.ads.internal.util.client.zzo.zzj(MediationInterstitialAdapter.class.getCanonicalName() + " or " + Adapter.class.getCanonicalName() + " #009 Class mismatch: " + obj.getClass().getCanonicalName());
throw new RemoteException();
}
if (obj instanceof MediationInterstitialAdapter) {
zzI();
return;
}
com.google.android.gms.ads.internal.util.client.zzo.zze("Show interstitial ad from adapter.");
MediationInterstitialAd mediationInterstitialAd = this.zzf;
if (mediationInterstitialAd == null) {
com.google.android.gms.ads.internal.util.client.zzo.zzg("Can not show null mediation interstitial ad.");
throw new RemoteException();
}
try {
mediationInterstitialAd.showAd((Context) ObjectWrapper.unwrap(iObjectWrapper));
} catch (RuntimeException e) {
zzbpb.zza(iObjectWrapper, e, "adapter.interstitial.showAd");
throw e;
}
}
@Override // com.google.android.gms.internal.ads.zzbph
public final void zzK(IObjectWrapper iObjectWrapper) throws RemoteException {
Object obj = this.zza;
if (!(obj instanceof Adapter)) {
com.google.android.gms.ads.internal.util.client.zzo.zzj(Adapter.class.getCanonicalName() + " #009 Class mismatch: " + obj.getClass().getCanonicalName());
throw new RemoteException();
}
com.google.android.gms.ads.internal.util.client.zzo.zze("Show rewarded ad from adapter.");
MediationRewardedAd mediationRewardedAd = this.zzi;
if (mediationRewardedAd == null) {
com.google.android.gms.ads.internal.util.client.zzo.zzg("Can not show null mediation rewarded ad.");
throw new RemoteException();
}
try {
mediationRewardedAd.showAd((Context) ObjectWrapper.unwrap(iObjectWrapper));
} catch (RuntimeException e) {
zzbpb.zza(iObjectWrapper, e, "adapter.rewarded.showAd");
throw e;
}
}
@Override // com.google.android.gms.internal.ads.zzbph
public final void zzL() throws RemoteException {
Object obj = this.zza;
if (!(obj instanceof Adapter)) {
com.google.android.gms.ads.internal.util.client.zzo.zzj(Adapter.class.getCanonicalName() + " #009 Class mismatch: " + obj.getClass().getCanonicalName());
throw new RemoteException();
}
MediationRewardedAd mediationRewardedAd = this.zzi;
if (mediationRewardedAd == null) {
com.google.android.gms.ads.internal.util.client.zzo.zzg("Can not show null mediated rewarded ad.");
throw new RemoteException();
}
try {
mediationRewardedAd.showAd((Context) ObjectWrapper.unwrap(this.zzd));
} catch (RuntimeException e) {
zzbpb.zza(this.zzd, e, "adapter.showVideo");
throw e;
}
}
@Override // com.google.android.gms.internal.ads.zzbph
public final boolean zzM() {
return false;
}
@Override // com.google.android.gms.internal.ads.zzbph
public final boolean zzN() throws RemoteException {
Object obj = this.zza;
if ((obj instanceof Adapter) || Objects.equals(obj.getClass().getCanonicalName(), "com.google.ads.mediation.admob.AdMobAdapter")) {
return this.zzc != null;
}
Object obj2 = this.zza;
com.google.android.gms.ads.internal.util.client.zzo.zzj(Adapter.class.getCanonicalName() + " #009 Class mismatch: " + obj2.getClass().getCanonicalName());
throw new RemoteException();
}
@Override // com.google.android.gms.internal.ads.zzbph
@Nullable
public final zzbpp zzO() {
return null;
}
@Override // com.google.android.gms.internal.ads.zzbph
@Nullable
public final zzbpq zzP() {
return null;
}
@Override // com.google.android.gms.internal.ads.zzbph
public final Bundle zze() {
return new Bundle();
}
@Override // com.google.android.gms.internal.ads.zzbph
public final Bundle zzf() {
return new Bundle();
}
@Override // com.google.android.gms.internal.ads.zzbph
public final Bundle zzg() {
return new Bundle();
}
@Override // com.google.android.gms.internal.ads.zzbph
@Nullable
public final com.google.android.gms.ads.internal.client.zzeb zzh() {
Object obj = this.zza;
if (obj instanceof com.google.android.gms.ads.mediation.zza) {
try {
return ((com.google.android.gms.ads.mediation.zza) obj).getVideoController();
} catch (Throwable th) {
com.google.android.gms.ads.internal.util.client.zzo.zzh("", th);
}
}
return null;
}
@Override // com.google.android.gms.internal.ads.zzbph
@Nullable
public final zzbgq zzi() {
zzbqh zzbqhVar = this.zzb;
if (zzbqhVar == null) {
return null;
}
zzbgr zzc = zzbqhVar.zzc();
if (zzc instanceof zzbgr) {
return zzc.zza();
}
return null;
}
@Override // com.google.android.gms.internal.ads.zzbph
@Nullable
public final zzbpn zzj() {
MediationInterscrollerAd mediationInterscrollerAd = this.zzj;
if (mediationInterscrollerAd != null) {
return new zzbqg(mediationInterscrollerAd);
}
return null;
}
@Override // com.google.android.gms.internal.ads.zzbph
@Nullable
public final zzbpt zzk() {
UnifiedNativeAdMapper zza;
Object obj = this.zza;
if (obj instanceof MediationNativeAdapter) {
zzbqh zzbqhVar = this.zzb;
if (zzbqhVar == null || (zza = zzbqhVar.zza()) == null) {
return null;
}
return new zzbql(zza);
}
if (!(obj instanceof Adapter)) {
return null;
}
NativeAdMapper nativeAdMapper = this.zzh;
if (nativeAdMapper != null) {
return new zzbqj(nativeAdMapper);
}
UnifiedNativeAdMapper unifiedNativeAdMapper = this.zzg;
if (unifiedNativeAdMapper != null) {
return new zzbql(unifiedNativeAdMapper);
}
return null;
}
@Override // com.google.android.gms.internal.ads.zzbph
@Nullable
public final zzbrs zzl() {
Object obj = this.zza;
if (obj instanceof Adapter) {
return zzbrs.zza(((Adapter) obj).getVersionInfo());
}
return null;
}
@Override // com.google.android.gms.internal.ads.zzbph
@Nullable
public final zzbrs zzm() {
Object obj = this.zza;
if (obj instanceof Adapter) {
return zzbrs.zza(((Adapter) obj).getSDKVersionInfo());
}
return null;
}
@Override // com.google.android.gms.internal.ads.zzbph
public final IObjectWrapper zzn() throws RemoteException {
Object obj = this.zza;
if (obj instanceof MediationBannerAdapter) {
try {
return ObjectWrapper.wrap(((MediationBannerAdapter) obj).getBannerView());
} catch (Throwable th) {
com.google.android.gms.ads.internal.util.client.zzo.zzh("", th);
throw new RemoteException();
}
}
if (obj instanceof Adapter) {
return ObjectWrapper.wrap(this.zze);
}
com.google.android.gms.ads.internal.util.client.zzo.zzj(MediationBannerAdapter.class.getCanonicalName() + " or " + Adapter.class.getCanonicalName() + " #009 Class mismatch: " + obj.getClass().getCanonicalName());
throw new RemoteException();
}
@Override // com.google.android.gms.internal.ads.zzbph
public final void zzo() throws RemoteException {
Object obj = this.zza;
if (obj instanceof MediationAdapter) {
try {
((MediationAdapter) obj).onDestroy();
} catch (Throwable th) {
com.google.android.gms.ads.internal.util.client.zzo.zzh("", th);
throw new RemoteException();
}
}
}
@Override // com.google.android.gms.internal.ads.zzbph
public final void zzp(IObjectWrapper iObjectWrapper, com.google.android.gms.ads.internal.client.zzm zzmVar, String str, zzbwh zzbwhVar, String str2) throws RemoteException {
Object obj = this.zza;
if ((obj instanceof Adapter) || Objects.equals(obj.getClass().getCanonicalName(), "com.google.ads.mediation.admob.AdMobAdapter")) {
this.zzd = iObjectWrapper;
this.zzc = zzbwhVar;
zzbwhVar.zzl(ObjectWrapper.wrap(this.zza));
return;
}
Object obj2 = this.zza;
com.google.android.gms.ads.internal.util.client.zzo.zzj(Adapter.class.getCanonicalName() + " #009 Class mismatch: " + obj2.getClass().getCanonicalName());
throw new RemoteException();
}
/* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
@Override // com.google.android.gms.internal.ads.zzbph
public final void zzq(IObjectWrapper iObjectWrapper, zzblr zzblrVar, List list) throws RemoteException {
char c;
if (!(this.zza instanceof Adapter)) {
throw new RemoteException();
}
zzbpy zzbpyVar = new zzbpy(this, zzblrVar);
ArrayList arrayList = new ArrayList();
Iterator it = list.iterator();
while (it.hasNext()) {
zzblx zzblxVar = (zzblx) it.next();
String str = zzblxVar.zza;
switch (str.hashCode()) {
case -1396342996:
if (str.equals("banner")) {
c = 0;
break;
}
c = 65535;
break;
case -1052618729:
if (str.equals("native")) {
c = 4;
break;
}
c = 65535;
break;
case -239580146:
if (str.equals("rewarded")) {
c = 2;
break;
}
c = 65535;
break;
case 604727084:
if (str.equals("interstitial")) {
c = 1;
break;
}
c = 65535;
break;
case 1167692200:
if (str.equals("app_open")) {
c = 5;
break;
}
c = 65535;
break;
case 1778294298:
if (str.equals("app_open_ad")) {
c = 6;
break;
}
c = 65535;
break;
case 1911491517:
if (str.equals("rewarded_interstitial")) {
c = 3;
break;
}
c = 65535;
break;
default:
c = 65535;
break;
}
AdFormat adFormat = null;
switch (c) {
case 0:
adFormat = AdFormat.BANNER;
break;
case 1:
adFormat = AdFormat.INTERSTITIAL;
break;
case 2:
adFormat = AdFormat.REWARDED;
break;
case 3:
adFormat = AdFormat.REWARDED_INTERSTITIAL;
break;
case 4:
adFormat = AdFormat.NATIVE;
break;
case 5:
adFormat = AdFormat.APP_OPEN_AD;
break;
case 6:
if (((Boolean) com.google.android.gms.ads.internal.client.zzbe.zzc().zza(zzbcl.zzlI)).booleanValue()) {
adFormat = AdFormat.APP_OPEN_AD;
break;
}
break;
}
if (adFormat != null) {
arrayList.add(new MediationConfiguration(adFormat, zzblxVar.zzb));
}
}
((Adapter) this.zza).initialize((Context) ObjectWrapper.unwrap(iObjectWrapper), zzbpyVar, arrayList);
}
@Override // com.google.android.gms.internal.ads.zzbph
public final void zzr(IObjectWrapper iObjectWrapper, zzbwh zzbwhVar, List list) throws RemoteException {
com.google.android.gms.ads.internal.util.client.zzo.zzj("Could not initialize rewarded video adapter.");
throw new RemoteException();
}
@Override // com.google.android.gms.internal.ads.zzbph
public final void zzs(com.google.android.gms.ads.internal.client.zzm zzmVar, String str) throws RemoteException {
zzB(zzmVar, str, null);
}
@Override // com.google.android.gms.internal.ads.zzbph
public final void zzt(IObjectWrapper iObjectWrapper, com.google.android.gms.ads.internal.client.zzm zzmVar, String str, zzbpk zzbpkVar) throws RemoteException {
Object obj = this.zza;
if (!(obj instanceof Adapter)) {
com.google.android.gms.ads.internal.util.client.zzo.zzj(Adapter.class.getCanonicalName() + " #009 Class mismatch: " + obj.getClass().getCanonicalName());
throw new RemoteException();
}
com.google.android.gms.ads.internal.util.client.zzo.zze("Requesting app open ad from adapter.");
try {
((Adapter) this.zza).loadAppOpenAd(new MediationAppOpenAdConfiguration((Context) ObjectWrapper.unwrap(iObjectWrapper), "", zzW(str, zzmVar, null), zzV(zzmVar), zzX(zzmVar), zzmVar.zzk, zzmVar.zzg, zzmVar.zzt, zzY(str, zzmVar), ""), new zzbqe(this, zzbpkVar));
} catch (Exception e) {
com.google.android.gms.ads.internal.util.client.zzo.zzh("", e);
zzbpb.zza(iObjectWrapper, e, "adapter.loadAppOpenAd");
throw new RemoteException();
}
}
@Override // com.google.android.gms.internal.ads.zzbph
public final void zzu(IObjectWrapper iObjectWrapper, com.google.android.gms.ads.internal.client.zzs zzsVar, com.google.android.gms.ads.internal.client.zzm zzmVar, String str, zzbpk zzbpkVar) throws RemoteException {
zzv(iObjectWrapper, zzsVar, zzmVar, str, null, zzbpkVar);
}
@Override // com.google.android.gms.internal.ads.zzbph
public final void zzv(IObjectWrapper iObjectWrapper, com.google.android.gms.ads.internal.client.zzs zzsVar, com.google.android.gms.ads.internal.client.zzm zzmVar, String str, String str2, zzbpk zzbpkVar) throws RemoteException {
Object obj = this.zza;
if (!(obj instanceof MediationBannerAdapter) && !(obj instanceof Adapter)) {
com.google.android.gms.ads.internal.util.client.zzo.zzj(MediationBannerAdapter.class.getCanonicalName() + " or " + Adapter.class.getCanonicalName() + " #009 Class mismatch: " + obj.getClass().getCanonicalName());
throw new RemoteException();
}
com.google.android.gms.ads.internal.util.client.zzo.zze("Requesting banner ad from adapter.");
AdSize zzd = zzsVar.zzn ? com.google.android.gms.ads.zzc.zzd(zzsVar.zze, zzsVar.zzb) : com.google.android.gms.ads.zzc.zzc(zzsVar.zze, zzsVar.zzb, zzsVar.zza);
Object obj2 = this.zza;
if (!(obj2 instanceof MediationBannerAdapter)) {
if (obj2 instanceof Adapter) {
try {
((Adapter) obj2).loadBannerAd(new MediationBannerAdConfiguration((Context) ObjectWrapper.unwrap(iObjectWrapper), "", zzW(str, zzmVar, str2), zzV(zzmVar), zzX(zzmVar), zzmVar.zzk, zzmVar.zzg, zzmVar.zzt, zzY(str, zzmVar), zzd, this.zzl), new zzbpz(this, zzbpkVar));
return;
} catch (Throwable th) {
com.google.android.gms.ads.internal.util.client.zzo.zzh("", th);
zzbpb.zza(iObjectWrapper, th, "adapter.loadBannerAd");
throw new RemoteException();
}
}
return;
}
try {
MediationBannerAdapter mediationBannerAdapter = (MediationBannerAdapter) obj2;
List list = zzmVar.zze;
HashSet hashSet = list != null ? new HashSet(list) : null;
long j = zzmVar.zzb;
zzbpw zzbpwVar = new zzbpw(j == -1 ? null : new Date(j), zzmVar.zzd, hashSet, zzmVar.zzk, zzX(zzmVar), zzmVar.zzg, zzmVar.zzr, zzmVar.zzt, zzY(str, zzmVar));
Bundle bundle = zzmVar.zzm;
mediationBannerAdapter.requestBannerAd((Context) ObjectWrapper.unwrap(iObjectWrapper), new zzbqh(zzbpkVar), zzW(str, zzmVar, str2), zzd, zzbpwVar, bundle != null ? bundle.getBundle(mediationBannerAdapter.getClass().getName()) : null);
} catch (Throwable th2) {
com.google.android.gms.ads.internal.util.client.zzo.zzh("", th2);
zzbpb.zza(iObjectWrapper, th2, "adapter.requestBannerAd");
throw new RemoteException();
}
}
@Override // com.google.android.gms.internal.ads.zzbph
public final void zzw(IObjectWrapper iObjectWrapper, com.google.android.gms.ads.internal.client.zzs zzsVar, com.google.android.gms.ads.internal.client.zzm zzmVar, String str, String str2, zzbpk zzbpkVar) throws RemoteException {
Object obj = this.zza;
if (!(obj instanceof Adapter)) {
com.google.android.gms.ads.internal.util.client.zzo.zzj(Adapter.class.getCanonicalName() + " #009 Class mismatch: " + obj.getClass().getCanonicalName());
throw new RemoteException();
}
com.google.android.gms.ads.internal.util.client.zzo.zze("Requesting interscroller ad from adapter.");
try {
Adapter adapter = (Adapter) this.zza;
adapter.loadInterscrollerAd(new MediationBannerAdConfiguration((Context) ObjectWrapper.unwrap(iObjectWrapper), "", zzW(str, zzmVar, str2), zzV(zzmVar), zzX(zzmVar), zzmVar.zzk, zzmVar.zzg, zzmVar.zzt, zzY(str, zzmVar), com.google.android.gms.ads.zzc.zze(zzsVar.zze, zzsVar.zzb), ""), new zzbpx(this, zzbpkVar, adapter));
} catch (Exception e) {
com.google.android.gms.ads.internal.util.client.zzo.zzh("", e);
zzbpb.zza(iObjectWrapper, e, "adapter.loadInterscrollerAd");
throw new RemoteException();
}
}
@Override // com.google.android.gms.internal.ads.zzbph
public final void zzx(IObjectWrapper iObjectWrapper, com.google.android.gms.ads.internal.client.zzm zzmVar, String str, zzbpk zzbpkVar) throws RemoteException {
zzy(iObjectWrapper, zzmVar, str, null, zzbpkVar);
}
@Override // com.google.android.gms.internal.ads.zzbph
public final void zzy(IObjectWrapper iObjectWrapper, com.google.android.gms.ads.internal.client.zzm zzmVar, String str, String str2, zzbpk zzbpkVar) throws RemoteException {
Object obj = this.zza;
if (!(obj instanceof MediationInterstitialAdapter) && !(obj instanceof Adapter)) {
com.google.android.gms.ads.internal.util.client.zzo.zzj(MediationInterstitialAdapter.class.getCanonicalName() + " or " + Adapter.class.getCanonicalName() + " #009 Class mismatch: " + obj.getClass().getCanonicalName());
throw new RemoteException();
}
com.google.android.gms.ads.internal.util.client.zzo.zze("Requesting interstitial ad from adapter.");
Object obj2 = this.zza;
if (!(obj2 instanceof MediationInterstitialAdapter)) {
if (obj2 instanceof Adapter) {
try {
((Adapter) obj2).loadInterstitialAd(new MediationInterstitialAdConfiguration((Context) ObjectWrapper.unwrap(iObjectWrapper), "", zzW(str, zzmVar, str2), zzV(zzmVar), zzX(zzmVar), zzmVar.zzk, zzmVar.zzg, zzmVar.zzt, zzY(str, zzmVar), this.zzl), new zzbqa(this, zzbpkVar));
return;
} catch (Throwable th) {
com.google.android.gms.ads.internal.util.client.zzo.zzh("", th);
zzbpb.zza(iObjectWrapper, th, "adapter.loadInterstitialAd");
throw new RemoteException();
}
}
return;
}
try {
MediationInterstitialAdapter mediationInterstitialAdapter = (MediationInterstitialAdapter) obj2;
List list = zzmVar.zze;
HashSet hashSet = list != null ? new HashSet(list) : null;
long j = zzmVar.zzb;
zzbpw zzbpwVar = new zzbpw(j == -1 ? null : new Date(j), zzmVar.zzd, hashSet, zzmVar.zzk, zzX(zzmVar), zzmVar.zzg, zzmVar.zzr, zzmVar.zzt, zzY(str, zzmVar));
Bundle bundle = zzmVar.zzm;
mediationInterstitialAdapter.requestInterstitialAd((Context) ObjectWrapper.unwrap(iObjectWrapper), new zzbqh(zzbpkVar), zzW(str, zzmVar, str2), zzbpwVar, bundle != null ? bundle.getBundle(mediationInterstitialAdapter.getClass().getName()) : null);
} catch (Throwable th2) {
com.google.android.gms.ads.internal.util.client.zzo.zzh("", th2);
zzbpb.zza(iObjectWrapper, th2, "adapter.requestInterstitialAd");
throw new RemoteException();
}
}
@Override // com.google.android.gms.internal.ads.zzbph
public final void zzz(IObjectWrapper iObjectWrapper, com.google.android.gms.ads.internal.client.zzm zzmVar, String str, String str2, zzbpk zzbpkVar, zzbfl zzbflVar, List list) throws RemoteException {
Object obj = this.zza;
if (!(obj instanceof MediationNativeAdapter) && !(obj instanceof Adapter)) {
com.google.android.gms.ads.internal.util.client.zzo.zzj(MediationNativeAdapter.class.getCanonicalName() + " or " + Adapter.class.getCanonicalName() + " #009 Class mismatch: " + obj.getClass().getCanonicalName());
throw new RemoteException();
}
com.google.android.gms.ads.internal.util.client.zzo.zze("Requesting native ad from adapter.");
Object obj2 = this.zza;
if (obj2 instanceof MediationNativeAdapter) {
try {
MediationNativeAdapter mediationNativeAdapter = (MediationNativeAdapter) obj2;
List list2 = zzmVar.zze;
HashSet hashSet = list2 != null ? new HashSet(list2) : null;
long j = zzmVar.zzb;
zzbqk zzbqkVar = new zzbqk(j == -1 ? null : new Date(j), zzmVar.zzd, hashSet, zzmVar.zzk, zzX(zzmVar), zzmVar.zzg, zzbflVar, list, zzmVar.zzr, zzmVar.zzt, zzY(str, zzmVar));
Bundle bundle = zzmVar.zzm;
Bundle bundle2 = bundle != null ? bundle.getBundle(mediationNativeAdapter.getClass().getName()) : null;
this.zzb = new zzbqh(zzbpkVar);
mediationNativeAdapter.requestNativeAd((Context) ObjectWrapper.unwrap(iObjectWrapper), this.zzb, zzW(str, zzmVar, str2), zzbqkVar, bundle2);
return;
} catch (Throwable th) {
com.google.android.gms.ads.internal.util.client.zzo.zzh("", th);
zzbpb.zza(iObjectWrapper, th, "adapter.requestNativeAd");
throw new RemoteException();
}
}
if (obj2 instanceof Adapter) {
try {
((Adapter) obj2).loadNativeAdMapper(new MediationNativeAdConfiguration((Context) ObjectWrapper.unwrap(iObjectWrapper), "", zzW(str, zzmVar, str2), zzV(zzmVar), zzX(zzmVar), zzmVar.zzk, zzmVar.zzg, zzmVar.zzt, zzY(str, zzmVar), this.zzl, zzbflVar), new zzbqc(this, zzbpkVar));
} catch (Throwable th2) {
com.google.android.gms.ads.internal.util.client.zzo.zzh("", th2);
zzbpb.zza(iObjectWrapper, th2, "adapter.loadNativeAdMapper");
String message = th2.getMessage();
if (TextUtils.isEmpty(message) || !message.equals("Method is not found")) {
throw new RemoteException();
}
try {
((Adapter) this.zza).loadNativeAd(new MediationNativeAdConfiguration((Context) ObjectWrapper.unwrap(iObjectWrapper), "", zzW(str, zzmVar, str2), zzV(zzmVar), zzX(zzmVar), zzmVar.zzk, zzmVar.zzg, zzmVar.zzt, zzY(str, zzmVar), this.zzl, zzbflVar), new zzbqb(this, zzbpkVar));
} catch (Throwable th3) {
com.google.android.gms.ads.internal.util.client.zzo.zzh("", th3);
zzbpb.zza(iObjectWrapper, th3, "adapter.loadNativeAd");
throw new RemoteException();
}
}
}
}
public zzbqf(@NonNull MediationAdapter mediationAdapter) {
this.zza = mediationAdapter;
}
}