package p138.p176.p177.p242.p265.p266;

import android.os.Bundle;
import java.util.Iterator;
import java.util.Map;
import p000.p001.p002.p003.p004.C0567;
import p037.p057.C1714;

/* JADX INFO: renamed from: ދ.ހ.֏.ހ.ބ.֏.ޗ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C4923 extends C4797 {

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public final Map<String, Long> f14930;

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public final Map<String, Integer> f14931;

    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public long f14932;

    public C4923(C4974 c4974) {
        super(c4974);
        this.f14931 = new C1714();
        this.f14930 = new C1714();
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final void m8474(long j) {
        C4754 c4754M7989 = m8061().m7989(false);
        for (String str : this.f14930.keySet()) {
            m8477(str, j - this.f14930.get(str).longValue(), c4754M7989);
        }
        if (!this.f14930.isEmpty()) {
            m8475(j - this.f14932, c4754M7989);
        }
        m8478(j);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final void m8475(long j, C4754 c4754) {
        if (c4754 == null) {
            mo8165().f14452.m8034("Not logging ad exposure. No active activity");
            return;
        }
        if (j < 1000) {
            mo8165().f14452.m8035("Not logging ad exposure. Less than 1000 ms. exposure", Long.valueOf(j));
            return;
        }
        Bundle bundle = new Bundle();
        bundle.putLong("_xt", j);
        C4765.m7988(c4754, bundle, true);
        m8058().m7972("am", "_xa", bundle);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final void m8476(String str, long j) {
        if (str == null || str.length() == 0) {
            mo8165().f14444.m8034("Ad unit id must be a non-empty string");
            return;
        }
        C4771 c4771Mo8163 = mo8163();
        RunnableC4861 runnableC4861 = new RunnableC4861(this, str, j);
        c4771Mo8163.m8482();
        C0567.m1910(runnableC4861);
        c4771Mo8163.m8005(new C4894<>(c4771Mo8163, runnableC4861, "Task exception on worker thread"));
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final void m8477(String str, long j, C4754 c4754) {
        if (c4754 == null) {
            mo8165().f14452.m8034("Not logging ad unit exposure. No active activity");
            return;
        }
        if (j < 1000) {
            mo8165().f14452.m8035("Not logging ad unit exposure. Less than 1000 ms. exposure", Long.valueOf(j));
            return;
        }
        Bundle bundle = new Bundle();
        bundle.putString("_ai", str);
        bundle.putLong("_xt", j);
        C4765.m7988(c4754, bundle, true);
        m8058().m7972("am", "_xu", bundle);
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public final void m8478(long j) {
        Iterator<String> it = this.f14930.keySet().iterator();
        while (it.hasNext()) {
            this.f14930.put(it.next(), Long.valueOf(j));
        }
        if (this.f14930.isEmpty()) {
            return;
        }
        this.f14932 = j;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public final void m8479(String str, long j) {
        if (str == null || str.length() == 0) {
            mo8165().f14444.m8034("Ad unit id must be a non-empty string");
            return;
        }
        C4771 c4771Mo8163 = mo8163();
        RunnableC5025 runnableC5025 = new RunnableC5025(this, str, j);
        c4771Mo8163.m8482();
        C0567.m1910(runnableC5025);
        c4771Mo8163.m8005(new C4894<>(c4771Mo8163, runnableC5025, "Task exception on worker thread"));
    }
}
