- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
187 lines
5.4 KiB
Java
187 lines
5.4 KiB
Java
package com.ironsource;
|
|
|
|
import android.app.Activity;
|
|
import android.text.TextUtils;
|
|
import com.ironsource.mediationsdk.utils.IronSourceConstants;
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class j0 {
|
|
private final x1 a;
|
|
|
|
public j0(x1 x1Var) {
|
|
this.a = x1Var;
|
|
}
|
|
|
|
public void a() {
|
|
this.a.a(u1.SESSION_CAPPED, null);
|
|
}
|
|
|
|
public void a(Activity activity, String str) {
|
|
HashMap hashMap = new HashMap();
|
|
if (!TextUtils.isEmpty(str)) {
|
|
hashMap.put("placement", str);
|
|
}
|
|
if (activity != null) {
|
|
hashMap.put(IronSourceConstants.EVENTS_EXT1, IronSourceConstants.EVENTS_INIT_CONTEXT_FLOW);
|
|
}
|
|
this.a.a(u1.SHOW_AD, hashMap);
|
|
}
|
|
|
|
public void a(String str) {
|
|
HashMap hashMap = new HashMap();
|
|
if (!TextUtils.isEmpty(str)) {
|
|
hashMap.put("placement", str);
|
|
}
|
|
this.a.a(u1.AD_CLICKED, hashMap);
|
|
}
|
|
|
|
public void a(String str, int i, String str2, String str3) {
|
|
HashMap hashMap = new HashMap();
|
|
if (!TextUtils.isEmpty(str)) {
|
|
hashMap.put("placement", str);
|
|
}
|
|
hashMap.put("errorCode", Integer.valueOf(i));
|
|
hashMap.put("reason", str2);
|
|
if (!TextUtils.isEmpty(str3)) {
|
|
hashMap.put(IronSourceConstants.EVENTS_EXT1, str3);
|
|
}
|
|
this.a.a(u1.SHOW_AD_FAILED, hashMap);
|
|
}
|
|
|
|
public void a(String str, String str2) {
|
|
HashMap hashMap = new HashMap();
|
|
if (!TextUtils.isEmpty(str)) {
|
|
hashMap.put("placement", str);
|
|
}
|
|
if (!TextUtils.isEmpty(str2)) {
|
|
hashMap.put(IronSourceConstants.EVENTS_EXT1, str2);
|
|
}
|
|
this.a.a(u1.AD_CLOSED, hashMap);
|
|
}
|
|
|
|
public void a(String str, String str2, int i, long j, String str3, long j2, Map<String, Object> map, String str4) {
|
|
HashMap hashMap = new HashMap();
|
|
if (!TextUtils.isEmpty(str)) {
|
|
hashMap.put("placement", str);
|
|
}
|
|
hashMap.put(IronSourceConstants.EVENTS_REWARD_NAME, str2);
|
|
hashMap.put(IronSourceConstants.EVENTS_REWARD_AMOUNT, Integer.valueOf(i));
|
|
hashMap.put(IronSourceConstants.EVENTS_TRANS_ID, str3);
|
|
if (j2 != 0) {
|
|
hashMap.put(IronSourceConstants.EVENTS_DURATION, Long.valueOf(j2));
|
|
}
|
|
if (map != null) {
|
|
hashMap.putAll(map);
|
|
}
|
|
if (!TextUtils.isEmpty(str4)) {
|
|
hashMap.put(IronSourceConstants.EVENTS_DYNAMIC_USER_ID, str4);
|
|
}
|
|
this.a.a(u1.AD_REWARDED, hashMap, j);
|
|
}
|
|
|
|
public void a(String str, String str2, boolean z) {
|
|
HashMap hashMap = new HashMap();
|
|
hashMap.put("isMultipleAdUnits", 1);
|
|
hashMap.put("placement", str);
|
|
if (!TextUtils.isEmpty(str2)) {
|
|
hashMap.put("reason", str2);
|
|
}
|
|
hashMap.put(IronSourceConstants.EVENTS_EXT1, z ? "true" : "false");
|
|
hashMap.put(IronSourceConstants.EVENTS_PROVIDER, "Mediation");
|
|
this.a.a(u1.CHECK_PLACEMENT_CAPPED, hashMap);
|
|
}
|
|
|
|
public void a(boolean z) {
|
|
HashMap hashMap = new HashMap();
|
|
hashMap.put("status", z ? "true" : "false");
|
|
this.a.a(u1.SHOW_AD_CHANCE, hashMap);
|
|
}
|
|
|
|
public void b(String str) {
|
|
a(str, (String) null);
|
|
}
|
|
|
|
public void b(String str, String str2) {
|
|
HashMap hashMap = new HashMap();
|
|
hashMap.put("placement", str);
|
|
if (!TextUtils.isEmpty(str2)) {
|
|
hashMap.put("reason", str2);
|
|
}
|
|
this.a.a(u1.PLACEMENT_CAPPED, hashMap);
|
|
}
|
|
|
|
public void c(String str) {
|
|
HashMap hashMap = new HashMap();
|
|
hashMap.put("placement", str);
|
|
this.a.a(u1.AD_DISMISS_SCREEN, hashMap);
|
|
}
|
|
|
|
public void d(String str) {
|
|
HashMap hashMap = new HashMap();
|
|
if (!TextUtils.isEmpty(str)) {
|
|
hashMap.put("placement", str);
|
|
}
|
|
this.a.a(u1.AD_ENDED, hashMap);
|
|
}
|
|
|
|
public void e(String str) {
|
|
HashMap hashMap = new HashMap();
|
|
if (!TextUtils.isEmpty(str)) {
|
|
hashMap.put("placement", str);
|
|
}
|
|
this.a.a(u1.AD_INFO_CHANGED, hashMap);
|
|
}
|
|
|
|
public void f(String str) {
|
|
HashMap hashMap = new HashMap();
|
|
hashMap.put("placement", str);
|
|
this.a.a(u1.AD_LEFT_APPLICATION, hashMap);
|
|
}
|
|
|
|
public void g(String str) {
|
|
HashMap hashMap = new HashMap();
|
|
if (!TextUtils.isEmpty(str)) {
|
|
hashMap.put("placement", str);
|
|
}
|
|
this.a.a(u1.AD_OPENED, hashMap);
|
|
}
|
|
|
|
public void h(String str) {
|
|
HashMap hashMap = new HashMap();
|
|
hashMap.put("placement", str);
|
|
this.a.a(u1.AD_PRESENT_SCREEN, hashMap);
|
|
}
|
|
|
|
public void i(String str) {
|
|
HashMap hashMap = new HashMap();
|
|
if (!TextUtils.isEmpty(str)) {
|
|
hashMap.put("placement", str);
|
|
}
|
|
this.a.a(u1.AD_STARTED, hashMap);
|
|
}
|
|
|
|
public void j(String str) {
|
|
HashMap hashMap = new HashMap();
|
|
hashMap.put("placement", str);
|
|
this.a.a(u1.AD_VIEW_BOUND, hashMap);
|
|
}
|
|
|
|
public void k(String str) {
|
|
HashMap hashMap = new HashMap();
|
|
if (!TextUtils.isEmpty(str)) {
|
|
hashMap.put("placement", str);
|
|
}
|
|
this.a.a(u1.AD_VISIBLE, hashMap);
|
|
}
|
|
|
|
public void l(String str) {
|
|
HashMap hashMap = new HashMap();
|
|
if (!TextUtils.isEmpty(str)) {
|
|
hashMap.put("placement", str);
|
|
}
|
|
this.a.a(u1.SHOW_AD_SUCCESS, hashMap);
|
|
}
|
|
}
|