package o;

import android.content.Context;
import com.google.android.gms.common.internal.MethodInvocation;
import com.google.android.gms.common.internal.TelemetryData;
import com.google.android.gms.common.internal.TelemetryLogging;
import com.google.android.gms.common.internal.TelemetryLoggingClient;
import com.google.android.gms.common.internal.TelemetryLoggingOptions;
import java.util.Arrays;
import java.util.concurrent.atomic.AtomicLong;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class Iq0 {
    public static Iq0 d;
    public final Kr0 a;
    public final TelemetryLoggingClient b;
    public final AtomicLong c = new AtomicLong(-1);

    public Iq0(Context context, Kr0 kr0) {
        this.b = TelemetryLogging.getClient(context, TelemetryLoggingOptions.builder().setApi("measurement:api").build());
        this.a = kr0;
    }

    public final synchronized void a(int i, int i2, long j, long j2) {
        long jElapsedRealtime = this.a.k.elapsedRealtime();
        AtomicLong atomicLong = this.c;
        if (atomicLong.get() != -1 && jElapsedRealtime - atomicLong.get() <= 1800000) {
            return;
        }
        Pc0 pc0Log = this.b.log(new TelemetryData(0, Arrays.asList(new MethodInvocation(36301, i, 0, j, j2, null, null, 0, i2))));
        C0189Hh c0189Hh = new C0189Hh(3, jElapsedRealtime, this);
        Hw0 hw0 = (Hw0) pc0Log;
        hw0.getClass();
        hw0.b(Rc0.a, c0189Hh);
    }
}
