- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
659 lines
28 KiB
Java
659 lines
28 KiB
Java
package com.fyber.inneractive.sdk.flow;
|
|
|
|
import android.os.Looper;
|
|
import android.text.TextUtils;
|
|
import com.fyber.inneractive.sdk.bidder.adm.AdmParametersOuterClass$AdmParameters;
|
|
import com.fyber.inneractive.sdk.bidder.adm.f;
|
|
import com.fyber.inneractive.sdk.config.IAConfigManager;
|
|
import com.fyber.inneractive.sdk.external.InneractiveAdManager;
|
|
import com.fyber.inneractive.sdk.external.InneractiveAdRequest;
|
|
import com.fyber.inneractive.sdk.external.InneractiveAdSpot;
|
|
import com.fyber.inneractive.sdk.external.InneractiveAdSpotManager;
|
|
import com.fyber.inneractive.sdk.external.InneractiveErrorCode;
|
|
import com.fyber.inneractive.sdk.external.InneractiveFullscreenUnitController;
|
|
import com.fyber.inneractive.sdk.external.InneractiveInfrastructureError;
|
|
import com.fyber.inneractive.sdk.external.InneractiveMediationName;
|
|
import com.fyber.inneractive.sdk.external.InneractiveUnitController;
|
|
import com.fyber.inneractive.sdk.flow.k;
|
|
import com.fyber.inneractive.sdk.network.s;
|
|
import com.fyber.inneractive.sdk.network.t0;
|
|
import com.fyber.inneractive.sdk.util.IAlog;
|
|
import java.util.Arrays;
|
|
import java.util.HashSet;
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
import java.util.UUID;
|
|
import java.util.concurrent.TimeUnit;
|
|
import org.json.JSONObject;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class t implements w, d0 {
|
|
public final String a;
|
|
public InneractiveAdSpot.RequestListener b;
|
|
public InneractiveAdRequest c;
|
|
public u d;
|
|
public q e;
|
|
public f0 f;
|
|
public final HashSet g;
|
|
public j h;
|
|
public c i;
|
|
public boolean j = true;
|
|
public boolean k = false;
|
|
public l l;
|
|
|
|
public class a implements f.a {
|
|
public final /* synthetic */ com.fyber.inneractive.sdk.bidder.adm.f a;
|
|
public final /* synthetic */ com.fyber.inneractive.sdk.config.global.s b;
|
|
public final /* synthetic */ String c;
|
|
|
|
public a(com.fyber.inneractive.sdk.bidder.adm.f fVar, com.fyber.inneractive.sdk.config.global.s sVar, String str) {
|
|
this.a = fVar;
|
|
this.b = sVar;
|
|
this.c = str;
|
|
}
|
|
|
|
public final void a() {
|
|
com.fyber.inneractive.sdk.config.global.b bVar;
|
|
com.fyber.inneractive.sdk.config.global.k kVar;
|
|
com.fyber.inneractive.sdk.config.global.l lVar;
|
|
t tVar = t.this;
|
|
tVar.getClass();
|
|
IAlog.a("%s : InneractiveAdSpotImpl markup data available", IAlog.a(tVar));
|
|
AdmParametersOuterClass$AdmParameters admParametersOuterClass$AdmParameters = this.a.a;
|
|
if (admParametersOuterClass$AdmParameters != null) {
|
|
com.fyber.inneractive.sdk.config.global.s sVar = this.b;
|
|
List<AdmParametersOuterClass$AdmParameters.Experiment> abExperimentsList = admParametersOuterClass$AdmParameters.getAbExperimentsList();
|
|
sVar.getClass();
|
|
com.fyber.inneractive.sdk.config.global.a aVar = IAConfigManager.L.y;
|
|
aVar.getClass();
|
|
for (com.fyber.inneractive.sdk.config.global.features.g gVar : sVar.c.values()) {
|
|
if (gVar != null && (lVar = aVar.a) != null) {
|
|
com.fyber.inneractive.sdk.config.global.q qVar = (com.fyber.inneractive.sdk.config.global.q) lVar.a.get(gVar.b);
|
|
if (qVar != null) {
|
|
gVar.a = qVar.a;
|
|
}
|
|
}
|
|
}
|
|
if (abExperimentsList == null || abExperimentsList.size() <= 0) {
|
|
return;
|
|
}
|
|
com.fyber.inneractive.sdk.config.global.a aVar2 = IAConfigManager.L.y;
|
|
aVar2.b = sVar;
|
|
for (com.fyber.inneractive.sdk.config.global.features.g gVar2 : sVar.c.values()) {
|
|
for (AdmParametersOuterClass$AdmParameters.Experiment experiment : abExperimentsList) {
|
|
String identifier = experiment.getIdentifier();
|
|
String variant = experiment.getVariant();
|
|
com.fyber.inneractive.sdk.config.global.l lVar2 = aVar2.a;
|
|
if (lVar2 != null) {
|
|
com.fyber.inneractive.sdk.config.global.q qVar2 = (com.fyber.inneractive.sdk.config.global.q) lVar2.a.get(gVar2.b);
|
|
if (qVar2 != null && (bVar = (com.fyber.inneractive.sdk.config.global.b) qVar2.c.get(identifier)) != null) {
|
|
Iterator it = bVar.c.iterator();
|
|
while (true) {
|
|
if (it.hasNext()) {
|
|
kVar = (com.fyber.inneractive.sdk.config.global.k) it.next();
|
|
if (kVar.b.equals(variant)) {
|
|
break;
|
|
}
|
|
} else {
|
|
kVar = null;
|
|
break;
|
|
}
|
|
}
|
|
gVar2.c.put(bVar.a, bVar);
|
|
if (kVar != null) {
|
|
gVar2.d.put(bVar.a, kVar);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void a(Exception exc, InneractiveErrorCode inneractiveErrorCode, com.fyber.inneractive.sdk.response.e... eVarArr) {
|
|
com.fyber.inneractive.sdk.network.q qVar;
|
|
t tVar = t.this;
|
|
tVar.getClass();
|
|
IAlog.a("%s : InneractiveAdSpotImpl data error", IAlog.a(tVar));
|
|
com.fyber.inneractive.sdk.response.e eVar = eVarArr.length > 0 ? eVarArr[0] : null;
|
|
InneractiveInfrastructureError inneractiveInfrastructureError = new InneractiveInfrastructureError(inneractiveErrorCode, g.ADM_FETCH_FAILED);
|
|
u uVar = t.this.d;
|
|
if (uVar != null) {
|
|
uVar.a(null, inneractiveInfrastructureError, eVar);
|
|
}
|
|
l lVar = t.this.l;
|
|
if (lVar != null) {
|
|
IAlog.e("%sgot handleFailedLoading! with: %s", lVar.d(), inneractiveInfrastructureError);
|
|
k.a aVar = lVar.b;
|
|
if (aVar != null) {
|
|
((u) aVar).a(null, inneractiveInfrastructureError, eVar);
|
|
}
|
|
lVar.a(null, eVar);
|
|
}
|
|
t tVar2 = t.this;
|
|
String str = this.c;
|
|
com.fyber.inneractive.sdk.config.global.s sVar = this.b;
|
|
tVar2.getClass();
|
|
if (!inneractiveErrorCode.equals(InneractiveErrorCode.CONNECTION_ERROR) && !inneractiveErrorCode.equals(InneractiveErrorCode.NO_FILL)) {
|
|
qVar = com.fyber.inneractive.sdk.network.q.FATAL_ADM_PARSING_ERROR;
|
|
} else {
|
|
qVar = com.fyber.inneractive.sdk.network.q.FATAL_ADM_MARKUP_FETCHING_ERROR;
|
|
}
|
|
if (eVar != null) {
|
|
eVar.B = false;
|
|
}
|
|
String name = exc.getClass().getName();
|
|
if (exc instanceof t0) {
|
|
name = "NetworkStackException";
|
|
}
|
|
s.a aVar2 = new s.a(qVar, (InneractiveAdRequest) null, eVar, sVar.c());
|
|
JSONObject jSONObject = new JSONObject();
|
|
try {
|
|
jSONObject.put("exception", name);
|
|
} catch (Exception unused) {
|
|
IAlog.f("Got exception adding param to json object: %s, %s", "exception", name);
|
|
}
|
|
String localizedMessage = exc.getLocalizedMessage();
|
|
String str2 = exc;
|
|
if (localizedMessage != null) {
|
|
str2 = exc.getLocalizedMessage();
|
|
}
|
|
try {
|
|
jSONObject.put("message", str2);
|
|
} catch (Exception unused2) {
|
|
IAlog.f("Got exception adding param to json object: %s, %s", "message", str2);
|
|
}
|
|
try {
|
|
jSONObject.put("admPayload", str);
|
|
} catch (Exception unused3) {
|
|
IAlog.f("Got exception adding param to json object: %s, %s", "admPayload", str);
|
|
}
|
|
aVar2.f.put(jSONObject);
|
|
aVar2.a((String) null);
|
|
}
|
|
}
|
|
|
|
public class b implements Runnable {
|
|
public b() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
t.this.b();
|
|
}
|
|
}
|
|
|
|
public interface c {
|
|
void onAdRefreshFailed(InneractiveAdSpot inneractiveAdSpot, InneractiveErrorCode inneractiveErrorCode);
|
|
|
|
void onAdRefreshed(InneractiveAdSpot inneractiveAdSpot);
|
|
}
|
|
|
|
public t() {
|
|
String uuid = UUID.randomUUID().toString();
|
|
this.a = uuid;
|
|
this.g = new HashSet();
|
|
IAlog.a("%sInneractiveAdSpotImpl created with UID: %s", c(), uuid);
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.external.InneractiveAdSpot
|
|
public final void addUnitController(InneractiveUnitController inneractiveUnitController) {
|
|
if (inneractiveUnitController != null) {
|
|
f0 f0Var = (f0) inneractiveUnitController;
|
|
f0Var.setAdSpot(this);
|
|
if (this.g.size() > 0) {
|
|
Iterator it = new HashSet(this.g).iterator();
|
|
while (it.hasNext()) {
|
|
InneractiveUnitController inneractiveUnitController2 = (InneractiveUnitController) it.next();
|
|
if (inneractiveUnitController2.getClass().equals(inneractiveUnitController.getClass())) {
|
|
removeUnitController(inneractiveUnitController2);
|
|
}
|
|
}
|
|
}
|
|
this.g.add(f0Var);
|
|
if (this.e != null) {
|
|
Iterator it2 = this.g.iterator();
|
|
while (it2.hasNext()) {
|
|
f0 f0Var2 = (f0) it2.next();
|
|
if (f0Var2.supports(this)) {
|
|
this.f = f0Var2;
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void b() {
|
|
Iterator it = this.g.iterator();
|
|
while (it.hasNext()) {
|
|
((InneractiveUnitController) it.next()).destroy();
|
|
}
|
|
this.g.clear();
|
|
l lVar = this.l;
|
|
if (lVar != null) {
|
|
lVar.a(true);
|
|
lVar.b = null;
|
|
this.l = null;
|
|
}
|
|
j jVar = this.h;
|
|
if (jVar != null) {
|
|
jVar.b(true);
|
|
this.h = null;
|
|
}
|
|
this.b = null;
|
|
a();
|
|
InneractiveAdSpotManager.get().removeSpot(this);
|
|
}
|
|
|
|
public final String c() {
|
|
return IAlog.a(this);
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.external.InneractiveAdSpot
|
|
public final q getAdContent() {
|
|
return this.e;
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.external.InneractiveAdSpot
|
|
public final InneractiveAdRequest getCurrentProcessedRequest() {
|
|
return this.c;
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.external.InneractiveAdSpot
|
|
public final String getLocalUniqueId() {
|
|
return this.a;
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.external.InneractiveAdSpot
|
|
public final InneractiveMediationName getMediationName() {
|
|
return IAConfigManager.L.m;
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.external.InneractiveAdSpot
|
|
public final String getMediationNameString() {
|
|
return IAConfigManager.L.l;
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.external.InneractiveAdSpot
|
|
public final String getMediationVersion() {
|
|
return IAConfigManager.L.n;
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.external.InneractiveAdSpot
|
|
public final String getRequestedSpotId() {
|
|
InneractiveAdRequest inneractiveAdRequest = this.c;
|
|
return inneractiveAdRequest != null ? inneractiveAdRequest.getSpotId() : "";
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.external.InneractiveAdSpot
|
|
public final InneractiveUnitController getSelectedUnitController() {
|
|
return this.f;
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.external.InneractiveAdSpot
|
|
public final void removeUnitController(InneractiveUnitController inneractiveUnitController) {
|
|
if (inneractiveUnitController != null) {
|
|
f0 f0Var = this.f;
|
|
if (f0Var != null && f0Var.equals(inneractiveUnitController)) {
|
|
this.f.destroy();
|
|
this.f = null;
|
|
}
|
|
this.g.remove(inneractiveUnitController);
|
|
}
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.external.InneractiveAdSpot
|
|
public final void requestAd(InneractiveAdRequest inneractiveAdRequest) {
|
|
if (IAConfigManager.g()) {
|
|
IAlog.a("%sIAB TCF purpose 1 disabled, dropping request", IAlog.a(this));
|
|
InneractiveAdSpot.RequestListener requestListener = this.b;
|
|
if (requestListener != null) {
|
|
requestListener.onInneractiveFailedAdRequest(this, InneractiveErrorCode.IAB_TCF_PURPOSE_1_DISABLED);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
IAlog.a("%srequestAd called with request: %s", IAlog.a(this), inneractiveAdRequest);
|
|
if (inneractiveAdRequest == null && this.c == null) {
|
|
IAlog.b("%srequestAd called with a null request, but no previous request is available! Cannot continue", IAlog.a(this));
|
|
InneractiveAdSpot.RequestListener requestListener2 = this.b;
|
|
if (requestListener2 != null) {
|
|
requestListener2.onInneractiveFailedAdRequest(this, InneractiveErrorCode.INVALID_INPUT);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (!InneractiveAdManager.wasInitialized()) {
|
|
InneractiveAdSpot.RequestListener requestListener3 = this.b;
|
|
if (requestListener3 != null) {
|
|
requestListener3.onInneractiveFailedAdRequest(this, InneractiveErrorCode.SDK_NOT_INITIALIZED);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
InneractiveAdRequest inneractiveAdRequest2 = inneractiveAdRequest != null ? inneractiveAdRequest : this.c;
|
|
String str = this.a;
|
|
inneractiveAdRequest2.b = str;
|
|
com.fyber.inneractive.sdk.metrics.d.d.a(str).g();
|
|
if (this.g.isEmpty()) {
|
|
IAlog.b("%srequestAd called but no AdUnitControllers exist! Cannot continue", IAlog.a(this));
|
|
if (this.b != null) {
|
|
if (inneractiveAdRequest == null) {
|
|
inneractiveAdRequest = this.c;
|
|
}
|
|
a(inneractiveAdRequest, null);
|
|
this.b.onInneractiveFailedAdRequest(this, InneractiveErrorCode.INVALID_INPUT);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
j jVar = this.h;
|
|
if (jVar != null) {
|
|
jVar.b(inneractiveAdRequest != null || this.c == null);
|
|
}
|
|
if (inneractiveAdRequest != null) {
|
|
InneractiveAdRequest inneractiveAdRequest3 = this.c;
|
|
if (inneractiveAdRequest3 != null) {
|
|
inneractiveAdRequest.setSelectedUnitConfig(inneractiveAdRequest3.getSelectedUnitConfig());
|
|
}
|
|
this.c = inneractiveAdRequest;
|
|
q qVar = this.e;
|
|
if (qVar != null) {
|
|
qVar.a();
|
|
this.j = true;
|
|
}
|
|
Iterator it = this.g.iterator();
|
|
while (true) {
|
|
if (!it.hasNext()) {
|
|
this.c.a = false;
|
|
break;
|
|
} else if (((f0) it.next()) instanceof InneractiveFullscreenUnitController) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
this.h = new j(this.a);
|
|
if (this.d == null) {
|
|
this.d = new u(this);
|
|
}
|
|
IAlog.a("%sFound ad source for request! %s", IAlog.a(this), this.h);
|
|
IAConfigManager iAConfigManager = IAConfigManager.L;
|
|
com.fyber.inneractive.sdk.measurement.a aVar = iAConfigManager.I;
|
|
if (aVar == null || !aVar.a) {
|
|
IAlog.a("%sinitOmidSdk", IAlog.a(this));
|
|
com.fyber.inneractive.sdk.util.p.a.execute(new com.fyber.inneractive.sdk.config.r(iAConfigManager, com.fyber.inneractive.sdk.util.o.a));
|
|
}
|
|
j jVar2 = this.h;
|
|
if (jVar2 != null) {
|
|
InneractiveAdRequest inneractiveAdRequest4 = this.c;
|
|
jVar2.b = this.d;
|
|
if (IAConfigManager.h()) {
|
|
jVar2.c(inneractiveAdRequest4);
|
|
return;
|
|
}
|
|
i iVar = new i(jVar2, inneractiveAdRequest4);
|
|
jVar2.g = iVar;
|
|
IAConfigManager.addListener(iVar);
|
|
IAConfigManager.a();
|
|
}
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.external.InneractiveAdSpot
|
|
public final void setMediationName(InneractiveMediationName inneractiveMediationName) {
|
|
InneractiveAdManager.setMediationName(inneractiveMediationName);
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.external.InneractiveAdSpot
|
|
public final void setMediationVersion(String str) {
|
|
InneractiveAdManager.setMediationVersion(str);
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.flow.d0
|
|
public final void a(c cVar) {
|
|
this.i = cVar;
|
|
requestAd(null);
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.external.InneractiveAdSpot
|
|
public final void destroy() {
|
|
IAlog.a("%sInneractiveAdSpotImpl spot destroy: %s", IAlog.a(this), this.a);
|
|
if (Looper.myLooper() == null || Looper.getMainLooper() != Looper.myLooper()) {
|
|
com.fyber.inneractive.sdk.util.p.b.post(new b());
|
|
} else {
|
|
b();
|
|
}
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.external.InneractiveAdSpot
|
|
public final void loadAd(String str) {
|
|
IAlog.a("%s : InneractiveAdSpotImpl Start load ad process", IAlog.a(this));
|
|
if (IAConfigManager.g()) {
|
|
IAlog.a("%sIAB TCF purpose 1 disabled, dropping request", IAlog.a(this));
|
|
InneractiveAdSpot.RequestListener requestListener = this.b;
|
|
if (requestListener != null) {
|
|
requestListener.onInneractiveFailedAdRequest(this, InneractiveErrorCode.IAB_TCF_PURPOSE_1_DISABLED);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (str == null || TextUtils.isEmpty(str)) {
|
|
InneractiveAdSpot.RequestListener requestListener2 = this.b;
|
|
if (requestListener2 != null) {
|
|
requestListener2.onInneractiveFailedAdRequest(this, InneractiveErrorCode.INVALID_INPUT);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (!InneractiveAdManager.wasInitialized()) {
|
|
InneractiveAdSpot.RequestListener requestListener3 = this.b;
|
|
if (requestListener3 != null) {
|
|
requestListener3.onInneractiveFailedAdRequest(this, InneractiveErrorCode.SDK_NOT_INITIALIZED);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
com.fyber.inneractive.sdk.metrics.d.d.a(this.a).g();
|
|
String str2 = this.a;
|
|
this.l = new l(str2);
|
|
if (this.d == null) {
|
|
this.d = new u(this);
|
|
}
|
|
com.fyber.inneractive.sdk.bidder.adm.f fVar = new com.fyber.inneractive.sdk.bidder.adm.f(str, str2);
|
|
com.fyber.inneractive.sdk.config.global.s b2 = com.fyber.inneractive.sdk.config.global.s.b();
|
|
a aVar = new a(fVar, b2, str);
|
|
IAConfigManager iAConfigManager = IAConfigManager.L;
|
|
com.fyber.inneractive.sdk.measurement.a aVar2 = iAConfigManager.I;
|
|
if (aVar2 == null || !aVar2.a) {
|
|
IAlog.a("%sinitOmidSdk", IAlog.a(this));
|
|
com.fyber.inneractive.sdk.util.p.a.execute(new com.fyber.inneractive.sdk.config.r(iAConfigManager, com.fyber.inneractive.sdk.util.o.a));
|
|
}
|
|
com.fyber.inneractive.sdk.util.p.a.execute(new com.fyber.inneractive.sdk.bidder.adm.b(fVar, aVar, b2));
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.external.InneractiveAdSpot
|
|
public final void setMediationName(String str) {
|
|
InneractiveAdManager.setMediationName(str);
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.external.InneractiveAdSpot
|
|
public final void setRequestListener(InneractiveAdSpot.RequestListener requestListener) {
|
|
IAlog.a("%ssetRequestListener called with: %s", IAlog.a(this), requestListener);
|
|
this.b = requestListener;
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.flow.w
|
|
public final void a() {
|
|
q qVar;
|
|
q qVar2 = this.e;
|
|
if (qVar2 != null) {
|
|
if (qVar2.e() && (qVar = this.e) != null && !qVar.e) {
|
|
com.fyber.inneractive.sdk.response.e d = qVar.d();
|
|
com.fyber.inneractive.sdk.util.p.b.post(new v(this, Arrays.toString(Thread.currentThread().getStackTrace()), this.e.a, d));
|
|
}
|
|
this.e.a();
|
|
this.e = null;
|
|
}
|
|
this.f = null;
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.external.InneractiveAdSpot
|
|
public final boolean isReady() {
|
|
boolean z;
|
|
q qVar;
|
|
com.fyber.inneractive.sdk.response.e d;
|
|
Long valueOf;
|
|
Long valueOf2;
|
|
q qVar2 = this.e;
|
|
if (qVar2 == null) {
|
|
return false;
|
|
}
|
|
if (qVar2.d() != null) {
|
|
com.fyber.inneractive.sdk.response.e d2 = this.e.d();
|
|
d2.getClass();
|
|
if (d2.a < System.currentTimeMillis()) {
|
|
z = true;
|
|
if (z && (qVar = this.e) != null) {
|
|
d = qVar.d();
|
|
if (!this.k && d != null) {
|
|
long minutes = TimeUnit.MILLISECONDS.toMinutes(System.currentTimeMillis() - d.c);
|
|
long j = d.b;
|
|
long j2 = minutes - j;
|
|
IAlog.a(String.format("Firing Event 802 - AdExpired - time passed- %s, sessionTimeOut - %s", Long.valueOf(j2), Long.valueOf(j)), new Object[0]);
|
|
s.a aVar = new s.a(com.fyber.inneractive.sdk.network.q.IA_AD_EXPIRED, qVar.a, d, qVar.c.c());
|
|
JSONObject jSONObject = new JSONObject();
|
|
valueOf = Long.valueOf(j2);
|
|
try {
|
|
jSONObject.put("time_passed", valueOf);
|
|
} catch (Exception unused) {
|
|
IAlog.f("Got exception adding param to json object: %s, %s", "time_passed", valueOf);
|
|
}
|
|
valueOf2 = Long.valueOf(j);
|
|
try {
|
|
jSONObject.put("timeout", valueOf2);
|
|
} catch (Exception unused2) {
|
|
IAlog.f("Got exception adding param to json object: %s, %s", "timeout", valueOf2);
|
|
}
|
|
aVar.f.put(jSONObject);
|
|
aVar.a((String) null);
|
|
this.k = true;
|
|
}
|
|
}
|
|
return !z && this.e.g();
|
|
}
|
|
}
|
|
z = false;
|
|
if (z) {
|
|
d = qVar.d();
|
|
if (!this.k) {
|
|
long minutes2 = TimeUnit.MILLISECONDS.toMinutes(System.currentTimeMillis() - d.c);
|
|
long j3 = d.b;
|
|
long j22 = minutes2 - j3;
|
|
IAlog.a(String.format("Firing Event 802 - AdExpired - time passed- %s, sessionTimeOut - %s", Long.valueOf(j22), Long.valueOf(j3)), new Object[0]);
|
|
s.a aVar2 = new s.a(com.fyber.inneractive.sdk.network.q.IA_AD_EXPIRED, qVar.a, d, qVar.c.c());
|
|
JSONObject jSONObject2 = new JSONObject();
|
|
valueOf = Long.valueOf(j22);
|
|
jSONObject2.put("time_passed", valueOf);
|
|
valueOf2 = Long.valueOf(j3);
|
|
jSONObject2.put("timeout", valueOf2);
|
|
aVar2.f.put(jSONObject2);
|
|
aVar2.a((String) null);
|
|
this.k = true;
|
|
}
|
|
}
|
|
if (z) {
|
|
return false;
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:22:0x006d */
|
|
/* JADX WARN: Removed duplicated region for block: B:25:0x007f */
|
|
/* JADX WARN: Removed duplicated region for block: B:27:0x0050 */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void a(com.fyber.inneractive.sdk.external.InneractiveAdRequest r10, com.fyber.inneractive.sdk.response.e r11) {
|
|
/*
|
|
r9 = this;
|
|
r0 = 0
|
|
if (r10 == 0) goto L33
|
|
com.fyber.inneractive.sdk.config.f0 r1 = r10.getSelectedUnitConfig()
|
|
if (r1 == 0) goto L33
|
|
com.fyber.inneractive.sdk.config.f0 r1 = r10.getSelectedUnitConfig()
|
|
com.fyber.inneractive.sdk.config.e0 r1 = (com.fyber.inneractive.sdk.config.e0) r1
|
|
com.fyber.inneractive.sdk.config.x r1 = r1.c
|
|
if (r1 == 0) goto L1e
|
|
com.fyber.inneractive.sdk.config.f0 r1 = r10.getSelectedUnitConfig()
|
|
com.fyber.inneractive.sdk.config.e0 r1 = (com.fyber.inneractive.sdk.config.e0) r1
|
|
com.fyber.inneractive.sdk.config.x r1 = r1.c
|
|
com.fyber.inneractive.sdk.config.enums.UnitDisplayType r1 = r1.b
|
|
goto L34
|
|
L1e:
|
|
com.fyber.inneractive.sdk.config.f0 r1 = r10.getSelectedUnitConfig()
|
|
com.fyber.inneractive.sdk.config.e0 r1 = (com.fyber.inneractive.sdk.config.e0) r1
|
|
com.fyber.inneractive.sdk.config.g0 r1 = r1.f
|
|
if (r1 == 0) goto L33
|
|
com.fyber.inneractive.sdk.config.f0 r1 = r10.getSelectedUnitConfig()
|
|
com.fyber.inneractive.sdk.config.e0 r1 = (com.fyber.inneractive.sdk.config.e0) r1
|
|
com.fyber.inneractive.sdk.config.g0 r1 = r1.f
|
|
com.fyber.inneractive.sdk.config.enums.UnitDisplayType r1 = r1.j
|
|
goto L34
|
|
L33:
|
|
r1 = r0
|
|
L34:
|
|
com.fyber.inneractive.sdk.flow.q r2 = r9.e
|
|
if (r2 == 0) goto L3e
|
|
T extends com.fyber.inneractive.sdk.response.e r2 = r2.b
|
|
if (r2 == 0) goto L3e
|
|
r4 = r2
|
|
goto L3f
|
|
L3e:
|
|
r4 = r11
|
|
L3f:
|
|
java.lang.String r11 = r9.a
|
|
if (r1 != 0) goto L47
|
|
if (r4 == 0) goto L47
|
|
com.fyber.inneractive.sdk.config.enums.UnitDisplayType r1 = r4.n
|
|
L47:
|
|
r7 = r1
|
|
com.fyber.inneractive.sdk.metrics.c r1 = new com.fyber.inneractive.sdk.metrics.c
|
|
com.fyber.inneractive.sdk.flow.q r2 = r9.e
|
|
if (r2 != 0) goto L50
|
|
L4e:
|
|
r8 = r0
|
|
goto L57
|
|
L50:
|
|
com.fyber.inneractive.sdk.config.global.s r0 = r2.c
|
|
org.json.JSONArray r0 = r0.c()
|
|
goto L4e
|
|
L57:
|
|
r3 = r1
|
|
r5 = r10
|
|
r6 = r11
|
|
r3.<init>(r4, r5, r6, r7, r8)
|
|
com.fyber.inneractive.sdk.metrics.d r10 = com.fyber.inneractive.sdk.metrics.d.d
|
|
com.fyber.inneractive.sdk.metrics.g r0 = r10.a(r11)
|
|
java.util.HashMap r2 = r0.j()
|
|
boolean r3 = r0.a()
|
|
if (r3 != 0) goto L7f
|
|
com.fyber.inneractive.sdk.metrics.g r10 = r10.a(r11)
|
|
java.lang.String r10 = r10.toString()
|
|
java.lang.Object[] r10 = new java.lang.Object[]{r10}
|
|
java.lang.String r11 = "MetricCreativeReporter: Metric data not valid, data: %s"
|
|
com.fyber.inneractive.sdk.util.IAlog.a(r11, r10)
|
|
goto L8e
|
|
L7f:
|
|
java.util.HashMap r10 = r10.a
|
|
r10.remove(r11)
|
|
com.fyber.inneractive.sdk.metrics.b r10 = new com.fyber.inneractive.sdk.metrics.b
|
|
r10.<init>(r1, r0, r2)
|
|
java.util.concurrent.ThreadPoolExecutor r11 = com.fyber.inneractive.sdk.util.p.a
|
|
r11.execute(r10)
|
|
L8e:
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.fyber.inneractive.sdk.flow.t.a(com.fyber.inneractive.sdk.external.InneractiveAdRequest, com.fyber.inneractive.sdk.response.e):void");
|
|
}
|
|
}
|