package v7;

import android.content.Context;
import android.os.RemoteException;
import androidx.annotation.Nullable;
import com.google.android.gms.ads.AdFormat;
import g7.z;
import n7.c1;
import n7.p3;
import q7.e;
import q7.j;

/* JADX INFO: loaded from: classes2.dex */
public abstract class b {

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final AdFormat f33741b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final Context f33742c;

    public b(Context context, AdFormat adFormat) {
        this.f33740a = z.g(context);
        this.f33742c = context.getApplicationContext();
        this.f33741b = adFormat;
    }

    public final void a() {
        try {
            this.f33740a.q(this.f33741b.a());
        } catch (RemoteException e10) {
            j.zzl("#007 Could not call remote method.", e10);
        }
    }

    @Nullable
    public final a zzi(String str) {
        try {
            p3 p3VarZzr = this.f33740a.zzr(this.f33741b.a(), str);
            if (p3VarZzr == null) {
                return null;
            }
            return e.zzq(p3VarZzr);
        } catch (RemoteException e10) {
            j.zzl("#007 Could not call remote method.", e10);
            return null;
        }
    }
}
