- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
114 lines
3.7 KiB
Java
114 lines
3.7 KiB
Java
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: classes2.dex */
|
|
public class sk {
|
|
private final x1 a;
|
|
|
|
public sk(x1 x1Var) {
|
|
this.a = x1Var;
|
|
}
|
|
|
|
public void a() {
|
|
this.a.a(u1.RELOAD_AD, new HashMap());
|
|
}
|
|
|
|
public void a(int i) {
|
|
HashMap hashMap = new HashMap();
|
|
hashMap.put("sessionDepth", Integer.valueOf(i));
|
|
this.a.a(u1.DESTROY_AD, hashMap);
|
|
}
|
|
|
|
public void a(long j) {
|
|
HashMap hashMap = new HashMap();
|
|
hashMap.put(IronSourceConstants.EVENTS_DURATION, Long.valueOf(j));
|
|
this.a.a(u1.RELOAD_AD_SUCCESS, hashMap);
|
|
}
|
|
|
|
public void a(long j, int i) {
|
|
HashMap hashMap = new HashMap();
|
|
hashMap.put(IronSourceConstants.EVENTS_DURATION, Long.valueOf(j));
|
|
hashMap.put("errorCode", Integer.valueOf(i));
|
|
this.a.a(u1.LOAD_AD_FAILED, hashMap);
|
|
}
|
|
|
|
public void a(long j, int i, String str) {
|
|
HashMap hashMap = new HashMap();
|
|
hashMap.put(IronSourceConstants.EVENTS_DURATION, Long.valueOf(j));
|
|
hashMap.put("errorCode", Integer.valueOf(i));
|
|
if (!TextUtils.isEmpty(str)) {
|
|
hashMap.put("reason", str);
|
|
}
|
|
this.a.a(u1.LOAD_AD_FAILED_WITH_REASON, hashMap);
|
|
}
|
|
|
|
public void a(long j, boolean z) {
|
|
HashMap hashMap = new HashMap();
|
|
hashMap.put(IronSourceConstants.EVENTS_DURATION, Long.valueOf(j));
|
|
if (z) {
|
|
hashMap.put(IronSourceConstants.EVENTS_PUBLISHER_LOAD, Boolean.TRUE);
|
|
}
|
|
this.a.a(u1.LOAD_AD_SUCCESS, hashMap);
|
|
}
|
|
|
|
public void a(Boolean bool, String str) {
|
|
HashMap hashMap = new HashMap();
|
|
if (!TextUtils.isEmpty(str)) {
|
|
hashMap.put("reason", str);
|
|
}
|
|
this.a.a(bool.booleanValue() ? u1.AD_READY_TRUE : u1.AD_READY_FALSE, hashMap);
|
|
}
|
|
|
|
public void a(boolean z) {
|
|
HashMap hashMap = new HashMap();
|
|
if (z) {
|
|
hashMap.put(IronSourceConstants.EVENTS_PUBLISHER_LOAD, Boolean.TRUE);
|
|
}
|
|
this.a.a(u1.LOAD_AD, hashMap);
|
|
}
|
|
|
|
public void a(boolean z, long j, boolean z2) {
|
|
HashMap hashMap = new HashMap();
|
|
hashMap.put(IronSourceConstants.EVENTS_DURATION, Long.valueOf(j));
|
|
if (z2) {
|
|
hashMap.put("errorCode", Integer.valueOf(IronSourceError.ERROR_RV_EXPIRED_ADS));
|
|
hashMap.put("reason", "loaded ads are expired");
|
|
}
|
|
this.a.a(z ? u1.AD_AVAILABILITY_CHANGED_TRUE : u1.AD_AVAILABILITY_CHANGED_FALSE, hashMap);
|
|
}
|
|
|
|
public void b(int i) {
|
|
HashMap hashMap = new HashMap();
|
|
hashMap.put("errorCode", Integer.valueOf(i));
|
|
this.a.a(u1.SKIP_RELOAD_AD, hashMap);
|
|
}
|
|
|
|
public void b(long j, int i) {
|
|
HashMap hashMap = new HashMap();
|
|
hashMap.put(IronSourceConstants.EVENTS_DURATION, Long.valueOf(j));
|
|
hashMap.put("errorCode", Integer.valueOf(i));
|
|
this.a.a(u1.LOAD_AD_NO_FILL, hashMap);
|
|
}
|
|
|
|
public void b(long j, int i, String str) {
|
|
HashMap hashMap = new HashMap();
|
|
hashMap.put(IronSourceConstants.EVENTS_DURATION, Long.valueOf(j));
|
|
hashMap.put("errorCode", Integer.valueOf(i));
|
|
if (!TextUtils.isEmpty(str)) {
|
|
hashMap.put("reason", str);
|
|
}
|
|
this.a.a(u1.RELOAD_AD_FAILED_WITH_REASON, hashMap);
|
|
}
|
|
|
|
public void c(long j, int i) {
|
|
HashMap hashMap = new HashMap();
|
|
hashMap.put(IronSourceConstants.EVENTS_DURATION, Long.valueOf(j));
|
|
hashMap.put("errorCode", Integer.valueOf(i));
|
|
this.a.a(u1.RELOAD_AD_NO_FILL, hashMap);
|
|
}
|
|
}
|