- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
128 lines
4.0 KiB
Java
128 lines
4.0 KiB
Java
package com.ironsource.mediationsdk;
|
|
|
|
import com.ironsource.environment.thread.IronSourceThreadManager;
|
|
import com.ironsource.gf;
|
|
import com.ironsource.m5;
|
|
import com.ironsource.mediationsdk.IronSource;
|
|
import com.ironsource.mediationsdk.logger.IronLog;
|
|
import com.ironsource.mediationsdk.logger.IronSourceError;
|
|
import com.ironsource.to;
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public class n {
|
|
private static final n f = new n();
|
|
private final Map<String, Long> a = new HashMap();
|
|
private final Map<String, Boolean> b = new HashMap();
|
|
private int c;
|
|
private int d;
|
|
private int e;
|
|
|
|
public class a implements Runnable {
|
|
final /* synthetic */ IronSource.AD_UNIT a;
|
|
final /* synthetic */ IronSourceError b;
|
|
final /* synthetic */ String c;
|
|
|
|
public a(IronSource.AD_UNIT ad_unit, IronSourceError ironSourceError, String str) {
|
|
this.a = ad_unit;
|
|
this.b = ironSourceError;
|
|
this.c = str;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
IronLog.INTERNAL.verbose("onAdLoadFailed - invokeCallback after delaying");
|
|
n.this.a(this.a, this.b);
|
|
n.this.b.put(this.c, Boolean.FALSE);
|
|
}
|
|
}
|
|
|
|
private n() {
|
|
}
|
|
|
|
private int a(IronSource.AD_UNIT ad_unit) {
|
|
if (ad_unit == IronSource.AD_UNIT.REWARDED_VIDEO) {
|
|
return this.d;
|
|
}
|
|
if (ad_unit == IronSource.AD_UNIT.INTERSTITIAL) {
|
|
return this.c;
|
|
}
|
|
if (ad_unit == IronSource.AD_UNIT.BANNER) {
|
|
return this.e;
|
|
}
|
|
IronLog.INTERNAL.warning("ad unit not supported - " + ad_unit);
|
|
return 0;
|
|
}
|
|
|
|
public static synchronized n a() {
|
|
n nVar;
|
|
synchronized (n.class) {
|
|
nVar = f;
|
|
}
|
|
return nVar;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public void a(IronSource.AD_UNIT ad_unit, IronSourceError ironSourceError) {
|
|
this.a.put(ad_unit.toString(), Long.valueOf(System.currentTimeMillis()));
|
|
if (ad_unit == IronSource.AD_UNIT.REWARDED_VIDEO) {
|
|
to.a().a(ironSourceError);
|
|
return;
|
|
}
|
|
if (ad_unit == IronSource.AD_UNIT.INTERSTITIAL) {
|
|
gf.a().a(ironSourceError);
|
|
return;
|
|
}
|
|
if (ad_unit == IronSource.AD_UNIT.BANNER) {
|
|
m5.a().a(ironSourceError);
|
|
return;
|
|
}
|
|
IronLog.INTERNAL.warning("ad unit not supported - " + ad_unit);
|
|
}
|
|
|
|
public void a(IronSource.AD_UNIT ad_unit, int i) {
|
|
if (ad_unit == IronSource.AD_UNIT.REWARDED_VIDEO) {
|
|
this.d = i;
|
|
return;
|
|
}
|
|
if (ad_unit == IronSource.AD_UNIT.INTERSTITIAL) {
|
|
this.c = i;
|
|
return;
|
|
}
|
|
if (ad_unit == IronSource.AD_UNIT.BANNER) {
|
|
this.e = i;
|
|
return;
|
|
}
|
|
IronLog.INTERNAL.warning("ad unit not supported - " + ad_unit);
|
|
}
|
|
|
|
public synchronized void b(IronSource.AD_UNIT ad_unit, IronSourceError ironSourceError) {
|
|
if (b(ad_unit)) {
|
|
return;
|
|
}
|
|
String ad_unit2 = ad_unit.toString();
|
|
if (!this.a.containsKey(ad_unit2)) {
|
|
a(ad_unit, ironSourceError);
|
|
return;
|
|
}
|
|
long a2 = a(ad_unit) * 1000;
|
|
long currentTimeMillis = System.currentTimeMillis() - this.a.get(ad_unit2).longValue();
|
|
if (currentTimeMillis > a2) {
|
|
a(ad_unit, ironSourceError);
|
|
return;
|
|
}
|
|
this.b.put(ad_unit2, Boolean.TRUE);
|
|
long j = a2 - currentTimeMillis;
|
|
IronLog.INTERNAL.verbose("delaying callback by " + j);
|
|
IronSourceThreadManager.INSTANCE.postOnUiThreadTask(new a(ad_unit, ironSourceError, ad_unit2), j);
|
|
}
|
|
|
|
public synchronized boolean b(IronSource.AD_UNIT ad_unit) {
|
|
if (!this.b.containsKey(ad_unit.toString())) {
|
|
return false;
|
|
}
|
|
return this.b.get(ad_unit.toString()).booleanValue();
|
|
}
|
|
}
|