- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
324 lines
9.7 KiB
Java
324 lines
9.7 KiB
Java
package com.ironsource;
|
|
|
|
import com.ironsource.environment.thread.IronSourceThreadManager;
|
|
import com.ironsource.mediationsdk.adunit.adapter.utility.AdInfo;
|
|
import com.ironsource.mediationsdk.logger.IronLog;
|
|
import com.ironsource.mediationsdk.logger.IronSourceError;
|
|
import com.ironsource.mediationsdk.logger.IronSourceLogger;
|
|
import com.ironsource.mediationsdk.logger.IronSourceLoggerManager;
|
|
import com.ironsource.mediationsdk.sdk.LevelPlayInterstitialListener;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class gf extends n7 {
|
|
private static final gf d = new gf();
|
|
private LevelPlayInterstitialListener b = null;
|
|
private LevelPlayInterstitialListener c = null;
|
|
|
|
public class a implements Runnable {
|
|
final /* synthetic */ AdInfo a;
|
|
|
|
public a(AdInfo adInfo) {
|
|
this.a = adInfo;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
if (gf.this.b != null) {
|
|
gf.this.b.onAdShowSucceeded(gf.this.a(this.a));
|
|
IronLog.CALLBACK.info("onAdShowSucceeded() adInfo = " + gf.this.a(this.a));
|
|
}
|
|
}
|
|
}
|
|
|
|
public class b implements Runnable {
|
|
final /* synthetic */ IronSourceError a;
|
|
final /* synthetic */ AdInfo b;
|
|
|
|
public b(IronSourceError ironSourceError, AdInfo adInfo) {
|
|
this.a = ironSourceError;
|
|
this.b = adInfo;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
if (gf.this.c != null) {
|
|
gf.this.c.onAdShowFailed(this.a, gf.this.a(this.b));
|
|
IronLog.CALLBACK.info("onAdShowFailed() adInfo = " + gf.this.a(this.b) + ", error = " + this.a.getErrorMessage());
|
|
}
|
|
}
|
|
}
|
|
|
|
public class c implements Runnable {
|
|
final /* synthetic */ IronSourceError a;
|
|
final /* synthetic */ AdInfo b;
|
|
|
|
public c(IronSourceError ironSourceError, AdInfo adInfo) {
|
|
this.a = ironSourceError;
|
|
this.b = adInfo;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
if (gf.this.b != null) {
|
|
gf.this.b.onAdShowFailed(this.a, gf.this.a(this.b));
|
|
IronLog.CALLBACK.info("onAdShowFailed() adInfo = " + gf.this.a(this.b) + ", error = " + this.a.getErrorMessage());
|
|
}
|
|
}
|
|
}
|
|
|
|
public class d implements Runnable {
|
|
final /* synthetic */ AdInfo a;
|
|
|
|
public d(AdInfo adInfo) {
|
|
this.a = adInfo;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
if (gf.this.c != null) {
|
|
gf.this.c.onAdClicked(gf.this.a(this.a));
|
|
IronLog.CALLBACK.info("onAdClicked() adInfo = " + gf.this.a(this.a));
|
|
}
|
|
}
|
|
}
|
|
|
|
public class e implements Runnable {
|
|
final /* synthetic */ AdInfo a;
|
|
|
|
public e(AdInfo adInfo) {
|
|
this.a = adInfo;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
if (gf.this.b != null) {
|
|
gf.this.b.onAdClicked(gf.this.a(this.a));
|
|
IronLog.CALLBACK.info("onAdClicked() adInfo = " + gf.this.a(this.a));
|
|
}
|
|
}
|
|
}
|
|
|
|
public class f implements Runnable {
|
|
final /* synthetic */ AdInfo a;
|
|
|
|
public f(AdInfo adInfo) {
|
|
this.a = adInfo;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
if (gf.this.c != null) {
|
|
gf.this.c.onAdReady(gf.this.a(this.a));
|
|
IronLog.CALLBACK.info("onAdReady() adInfo = " + gf.this.a(this.a));
|
|
}
|
|
}
|
|
}
|
|
|
|
public class g implements Runnable {
|
|
final /* synthetic */ AdInfo a;
|
|
|
|
public g(AdInfo adInfo) {
|
|
this.a = adInfo;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
if (gf.this.b != null) {
|
|
gf.this.b.onAdReady(gf.this.a(this.a));
|
|
IronLog.CALLBACK.info("onAdReady() adInfo = " + gf.this.a(this.a));
|
|
}
|
|
}
|
|
}
|
|
|
|
public class h implements Runnable {
|
|
final /* synthetic */ IronSourceError a;
|
|
|
|
public h(IronSourceError ironSourceError) {
|
|
this.a = ironSourceError;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
if (gf.this.c != null) {
|
|
gf.this.c.onAdLoadFailed(this.a);
|
|
IronLog.CALLBACK.info("onAdLoadFailed() error = " + this.a.getErrorMessage());
|
|
}
|
|
}
|
|
}
|
|
|
|
public class i implements Runnable {
|
|
final /* synthetic */ IronSourceError a;
|
|
|
|
public i(IronSourceError ironSourceError) {
|
|
this.a = ironSourceError;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
if (gf.this.b != null) {
|
|
gf.this.b.onAdLoadFailed(this.a);
|
|
IronLog.CALLBACK.info("onAdLoadFailed() error = " + this.a.getErrorMessage());
|
|
}
|
|
}
|
|
}
|
|
|
|
public class j implements Runnable {
|
|
final /* synthetic */ AdInfo a;
|
|
|
|
public j(AdInfo adInfo) {
|
|
this.a = adInfo;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
if (gf.this.c != null) {
|
|
gf.this.c.onAdOpened(gf.this.a(this.a));
|
|
IronLog.CALLBACK.info("onAdOpened() adInfo = " + gf.this.a(this.a));
|
|
}
|
|
}
|
|
}
|
|
|
|
public class k implements Runnable {
|
|
final /* synthetic */ AdInfo a;
|
|
|
|
public k(AdInfo adInfo) {
|
|
this.a = adInfo;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
if (gf.this.b != null) {
|
|
gf.this.b.onAdOpened(gf.this.a(this.a));
|
|
IronLog.CALLBACK.info("onAdOpened() adInfo = " + gf.this.a(this.a));
|
|
}
|
|
}
|
|
}
|
|
|
|
public class l implements Runnable {
|
|
final /* synthetic */ AdInfo a;
|
|
|
|
public l(AdInfo adInfo) {
|
|
this.a = adInfo;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
if (gf.this.c != null) {
|
|
gf.this.c.onAdClosed(gf.this.a(this.a));
|
|
IronLog.CALLBACK.info("onAdClosed() adInfo = " + gf.this.a(this.a));
|
|
}
|
|
}
|
|
}
|
|
|
|
public class m implements Runnable {
|
|
final /* synthetic */ AdInfo a;
|
|
|
|
public m(AdInfo adInfo) {
|
|
this.a = adInfo;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
if (gf.this.b != null) {
|
|
gf.this.b.onAdClosed(gf.this.a(this.a));
|
|
IronLog.CALLBACK.info("onAdClosed() adInfo = " + gf.this.a(this.a));
|
|
}
|
|
}
|
|
}
|
|
|
|
public class n implements Runnable {
|
|
final /* synthetic */ AdInfo a;
|
|
|
|
public n(AdInfo adInfo) {
|
|
this.a = adInfo;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
if (gf.this.c != null) {
|
|
gf.this.c.onAdShowSucceeded(gf.this.a(this.a));
|
|
IronLog.CALLBACK.info("onAdShowSucceeded() adInfo = " + gf.this.a(this.a));
|
|
}
|
|
}
|
|
}
|
|
|
|
private gf() {
|
|
}
|
|
|
|
public static synchronized gf a() {
|
|
gf gfVar;
|
|
synchronized (gf.class) {
|
|
gfVar = d;
|
|
}
|
|
return gfVar;
|
|
}
|
|
|
|
private void a(String str) {
|
|
IronSourceLoggerManager.getLogger().log(IronSourceLogger.IronSourceTag.CALLBACK, str, 1);
|
|
}
|
|
|
|
public void a(IronSourceError ironSourceError) {
|
|
if (this.c != null) {
|
|
IronSourceThreadManager.INSTANCE.postOnUiThreadTask(new h(ironSourceError));
|
|
} else if (this.b != null) {
|
|
IronSourceThreadManager.INSTANCE.postOnUiThreadTask(new i(ironSourceError));
|
|
}
|
|
}
|
|
|
|
public void a(IronSourceError ironSourceError, AdInfo adInfo) {
|
|
if (this.c != null) {
|
|
IronSourceThreadManager.INSTANCE.postOnUiThreadTask(new b(ironSourceError, adInfo));
|
|
} else if (this.b != null) {
|
|
IronSourceThreadManager.INSTANCE.postOnUiThreadTask(new c(ironSourceError, adInfo));
|
|
}
|
|
}
|
|
|
|
public synchronized void a(LevelPlayInterstitialListener levelPlayInterstitialListener) {
|
|
this.b = levelPlayInterstitialListener;
|
|
}
|
|
|
|
public void b(AdInfo adInfo) {
|
|
if (this.c != null) {
|
|
IronSourceThreadManager.INSTANCE.postOnUiThreadTask(new d(adInfo));
|
|
} else if (this.b != null) {
|
|
IronSourceThreadManager.INSTANCE.postOnUiThreadTask(new e(adInfo));
|
|
}
|
|
}
|
|
|
|
public synchronized void b(LevelPlayInterstitialListener levelPlayInterstitialListener) {
|
|
this.c = levelPlayInterstitialListener;
|
|
}
|
|
|
|
public void c(AdInfo adInfo) {
|
|
if (this.c != null) {
|
|
IronSourceThreadManager.INSTANCE.postOnUiThreadTask(new l(adInfo));
|
|
} else if (this.b != null) {
|
|
IronSourceThreadManager.INSTANCE.postOnUiThreadTask(new m(adInfo));
|
|
}
|
|
}
|
|
|
|
public void d(AdInfo adInfo) {
|
|
if (this.c != null) {
|
|
IronSourceThreadManager.INSTANCE.postOnUiThreadTask(new j(adInfo));
|
|
} else if (this.b != null) {
|
|
IronSourceThreadManager.INSTANCE.postOnUiThreadTask(new k(adInfo));
|
|
}
|
|
}
|
|
|
|
public void e(AdInfo adInfo) {
|
|
if (this.c != null) {
|
|
IronSourceThreadManager.INSTANCE.postOnUiThreadTask(new f(adInfo));
|
|
} else if (this.b != null) {
|
|
IronSourceThreadManager.INSTANCE.postOnUiThreadTask(new g(adInfo));
|
|
}
|
|
}
|
|
|
|
public void f(AdInfo adInfo) {
|
|
if (this.c != null) {
|
|
IronSourceThreadManager.INSTANCE.postOnUiThreadTask(new n(adInfo));
|
|
} else if (this.b != null) {
|
|
IronSourceThreadManager.INSTANCE.postOnUiThreadTask(new a(adInfo));
|
|
}
|
|
}
|
|
}
|