package com.ironsource;

import android.text.TextUtils;
import com.ironsource.mediationsdk.logger.IronSourceError;
import com.ironsource.mediationsdk.utils.IronSourceConstants;
import java.util.HashMap;
/* loaded from: classes4.dex */
public class wk {

    /* renamed from: a  reason: collision with root package name */
    private final b2 f3200a;

    public wk(b2 b2Var) {
        this.f3200a = b2Var;
    }

    public void a() {
        this.f3200a.a(y1.RELOAD_AD, new HashMap());
    }

    public void a(int i) {
        HashMap hashMap = new HashMap();
        hashMap.put("sessionDepth", Integer.valueOf(i));
        this.f3200a.a(y1.DESTROY_AD, hashMap);
    }

    public void a(long j) {
        HashMap hashMap = new HashMap();
        hashMap.put("duration", Long.valueOf(j));
        this.f3200a.a(y1.RELOAD_AD_SUCCESS, hashMap);
    }

    public void a(long j, int i) {
        HashMap hashMap = new HashMap();
        hashMap.put("duration", Long.valueOf(j));
        hashMap.put("errorCode", Integer.valueOf(i));
        this.f3200a.a(y1.LOAD_AD_FAILED, hashMap);
    }

    public void a(long j, int i, String str) {
        HashMap hashMap = new HashMap();
        hashMap.put("duration", Long.valueOf(j));
        hashMap.put("errorCode", Integer.valueOf(i));
        if (!TextUtils.isEmpty(str)) {
            hashMap.put("reason", str);
        }
        this.f3200a.a(y1.LOAD_AD_FAILED_WITH_REASON, hashMap);
    }

    public void a(long j, boolean z) {
        HashMap hashMap = new HashMap();
        hashMap.put("duration", Long.valueOf(j));
        if (z) {
            hashMap.put(IronSourceConstants.EVENTS_PUBLISHER_LOAD, Boolean.TRUE);
        }
        this.f3200a.a(y1.LOAD_AD_SUCCESS, hashMap);
    }

    public void a(Boolean bool, String str) {
        HashMap hashMap = new HashMap();
        if (!TextUtils.isEmpty(str)) {
            hashMap.put("reason", str);
        }
        this.f3200a.a(bool.booleanValue() ? y1.AD_READY_TRUE : y1.AD_READY_FALSE, hashMap);
    }

    public void a(boolean z) {
        HashMap hashMap = new HashMap();
        if (z) {
            hashMap.put(IronSourceConstants.EVENTS_PUBLISHER_LOAD, Boolean.TRUE);
        }
        this.f3200a.a(y1.LOAD_AD, hashMap);
    }

    public void a(boolean z, long j, boolean z2) {
        HashMap hashMap = new HashMap();
        hashMap.put("duration", Long.valueOf(j));
        if (z2) {
            hashMap.put("errorCode", Integer.valueOf((int) IronSourceError.ERROR_RV_EXPIRED_ADS));
            hashMap.put("reason", "loaded ads are expired");
        }
        this.f3200a.a(z ? y1.AD_AVAILABILITY_CHANGED_TRUE : y1.AD_AVAILABILITY_CHANGED_FALSE, hashMap);
    }

    public void b(int i) {
        HashMap hashMap = new HashMap();
        hashMap.put("errorCode", Integer.valueOf(i));
        this.f3200a.a(y1.SKIP_RELOAD_AD, hashMap);
    }

    public void b(long j, int i) {
        HashMap hashMap = new HashMap();
        hashMap.put("duration", Long.valueOf(j));
        hashMap.put("errorCode", Integer.valueOf(i));
        this.f3200a.a(y1.LOAD_AD_NO_FILL, hashMap);
    }

    public void b(long j, int i, String str) {
        HashMap hashMap = new HashMap();
        hashMap.put("duration", Long.valueOf(j));
        hashMap.put("errorCode", Integer.valueOf(i));
        if (!TextUtils.isEmpty(str)) {
            hashMap.put("reason", str);
        }
        this.f3200a.a(y1.RELOAD_AD_FAILED_WITH_REASON, hashMap);
    }

    public void c(long j, int i) {
        HashMap hashMap = new HashMap();
        hashMap.put("duration", Long.valueOf(j));
        hashMap.put("errorCode", Integer.valueOf(i));
        this.f3200a.a(y1.RELOAD_AD_NO_FILL, hashMap);
    }
}
