package com.google.android.gms.internal.ads;

import android.content.Context;
import android.os.RemoteException;
import androidx.annotation.Nullable;
import java.util.concurrent.atomic.AtomicLong;
import java.util.concurrent.atomic.AtomicReference;

/* JADX INFO: loaded from: classes2.dex */
public final class b10 extends x7.c {

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

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

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

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final long f9337d;

    @Nullable
    private x7.a zze;

    @Nullable
    private g7.n zzf;

    @Nullable
    private g7.j zzg;

    public b10(Context context, s00 s00Var) {
        this.f9337d = System.currentTimeMillis();
        new AtomicLong();
        this.f9335b = context.getApplicationContext();
        new AtomicReference();
        this.f9334a = s00Var;
        this.f9336c = new h10();
    }

    public final void b(n7.u2 u2Var, vs0 vs0Var) {
        try {
            s00 s00Var = this.f9334a;
            if (s00Var != null) {
                u2Var.f31062n = this.f9337d;
                s00Var.O2(n7.e4.a(this.f9335b, u2Var), new e10(vs0Var, this, 0));
            }
        } catch (RemoteException e10) {
            q7.j.zzl("#007 Could not call remote method.", e10);
        }
    }

    @Override // x7.c
    @Nullable
    public final g7.j getFullScreenContentCallback() {
        return this.zzg;
    }

    @Override // x7.c
    @Nullable
    public final x7.a getOnAdMetadataChangedListener() {
        return this.zze;
    }

    @Override // x7.c
    @Nullable
    public final g7.n getOnPaidEventListener() {
        return null;
    }

    @Override // x7.c
    public final void setFullScreenContentCallback(@Nullable g7.j jVar) {
        this.zzg = jVar;
        this.f9336c.zzb(jVar);
    }

    @Override // x7.c
    public final void setOnAdMetadataChangedListener(@Nullable x7.a aVar) {
        try {
            this.zze = aVar;
            s00 s00Var = this.f9334a;
            if (s00Var != null) {
                s00Var.Q(new n7.n3(aVar));
            }
        } catch (RemoteException e10) {
            q7.j.zzl("#007 Could not call remote method.", e10);
        }
    }

    @Override // x7.c
    public final void setOnPaidEventListener(@Nullable g7.n nVar) {
        try {
            s00 s00Var = this.f9334a;
            if (s00Var != null) {
                s00Var.Q1(new n7.o3(nVar));
            }
        } catch (RemoteException e10) {
            q7.j.zzl("#007 Could not call remote method.", e10);
        }
    }

    @Override // x7.c
    public final void setServerSideVerificationOptions(@Nullable x7.d dVar) {
    }

    public b10(Context context, String str, s00 s00Var) {
        this.f9337d = System.currentTimeMillis();
        new AtomicLong();
        this.f9335b = context.getApplicationContext();
        new AtomicReference(str);
        this.f9334a = s00Var;
        this.f9336c = new h10();
    }

    public b10(Context context, String str) {
        n7.u uVar = n7.x.f31085g.f31087b;
        uv uvVar = new uv();
        uVar.getClass();
        this(context, str, (s00) new n7.b(uVar, context, str, uvVar).a(context, false));
    }
}
