package com.google.ads.mediation;

import android.os.RemoteException;
import com.google.android.gms.common.internal.w;
import com.google.android.gms.internal.ads.cw;
import com.google.android.gms.internal.ads.vu0;
import g7.k;
import q7.j;
import s7.i;

/* JADX INFO: loaded from: classes2.dex */
public final class b extends g7.b implements h7.d, n7.a {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final i f7708a;

    public b(AbstractAdViewAdapter abstractAdViewAdapter, i iVar) {
        this.f7708a = iVar;
    }

    @Override // g7.b
    public final void a() {
        vu0 vu0Var = (vu0) this.f7708a;
        vu0Var.getClass();
        w.d("#008 Must be called on the main UI thread.");
        j.a("Adapter called onAdClosed.");
        try {
            ((cw) vu0Var.f17778b).zzf();
        } catch (RemoteException e10) {
            j.zzl("#007 Could not call remote method.", e10);
        }
    }

    @Override // g7.b
    public final void d(k kVar) {
        ((vu0) this.f7708a).g(kVar);
    }

    @Override // h7.d
    public final void f(String str, String str2) {
        vu0 vu0Var = (vu0) this.f7708a;
        vu0Var.getClass();
        w.d("#008 Must be called on the main UI thread.");
        j.a("Adapter called onAppEvent.");
        try {
            ((cw) vu0Var.f17778b).q2(str, str2);
        } catch (RemoteException e10) {
            j.zzl("#007 Could not call remote method.", e10);
        }
    }

    @Override // g7.b
    public final void g() {
        vu0 vu0Var = (vu0) this.f7708a;
        vu0Var.getClass();
        w.d("#008 Must be called on the main UI thread.");
        j.a("Adapter called onAdLoaded.");
        try {
            ((cw) vu0Var.f17778b).zzj();
        } catch (RemoteException e10) {
            j.zzl("#007 Could not call remote method.", e10);
        }
    }

    @Override // g7.b
    public final void h() {
        vu0 vu0Var = (vu0) this.f7708a;
        vu0Var.getClass();
        w.d("#008 Must be called on the main UI thread.");
        j.a("Adapter called onAdOpened.");
        try {
            ((cw) vu0Var.f17778b).zzi();
        } catch (RemoteException e10) {
            j.zzl("#007 Could not call remote method.", e10);
        }
    }

    @Override // g7.b, n7.a
    public final void onAdClicked() {
        vu0 vu0Var = (vu0) this.f7708a;
        vu0Var.getClass();
        w.d("#008 Must be called on the main UI thread.");
        j.a("Adapter called onAdClicked.");
        try {
            ((cw) vu0Var.f17778b).zze();
        } catch (RemoteException e10) {
            j.zzl("#007 Could not call remote method.", e10);
        }
    }
}
