Picsart v24.6版本的 MD5 值为:21a61631d94e54da68d2ad9268b8b9d9
以下内容为反编译后的 b.java 源代码,内容仅作参考
package com.applovin.impl.adview.activity.b;
import android.app.Activity;
import android.os.SystemClock;
import android.view.ViewGroup;
import com.applovin.impl.adview.p;
import com.applovin.impl.sdk.e.ab;
import com.applovin.impl.sdk.e.q;
import com.applovin.impl.sdk.n;
import com.applovin.impl.sdk.utils.t;
import com.applovin.impl.sdk.x;
import com.applovin.sdk.AppLovinAdClickListener;
import com.applovin.sdk.AppLovinAdDisplayListener;
import com.applovin.sdk.AppLovinAdVideoPlaybackListener;
import com.iab.omid.library.applovin.adsession.FriendlyObstructionPurpose;
import java.util.ArrayList;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicBoolean;
public class b extends a {
private final com.applovin.impl.adview.activity.a.b ajq;
private com.applovin.impl.sdk.utils.f ajr;
private long ajs;
private final AtomicBoolean ajt;
public b(com.applovin.impl.sdk.ad.e eVar, Activity activity, Map<String, Object> map, n nVar, AppLovinAdClickListener appLovinAdClickListener, AppLovinAdDisplayListener appLovinAdDisplayListener, AppLovinAdVideoPlaybackListener appLovinAdVideoPlaybackListener) {
super(eVar, activity, map, nVar, appLovinAdClickListener, appLovinAdDisplayListener, appLovinAdVideoPlaybackListener);
this.ajq = new com.applovin.impl.adview.activity.a.b(this.aiO, this.ahP, this.sdk);
this.ajt = new AtomicBoolean();
if (t.a(com.applovin.impl.sdk.c.b.aNG, nVar)) {
checkCachedAdResourcesAsync(false);
}
}
private void tc() {
this.ajq.a(this.aiV);
this.aiY = SystemClock.elapsedRealtime();
this.ajt.set(true);
}
private long td() {
com.applovin.impl.sdk.ad.e eVar = this.aiO;
if (eVar instanceof com.applovin.impl.sdk.ad.a) {
float Gq = ((com.applovin.impl.sdk.ad.a) eVar).Gq();
if (Gq <= 0.0f) {
Gq = (float) this.aiO.GI();
}
return (long) ((this.aiO.Hn() / 100.0d) * t.C(Gq));
}
return 0L;
}
private int te() {
com.applovin.impl.sdk.utils.f fVar;
int i = 100;
if (sS()) {
if (!sQ() && (fVar = this.ajr) != null) {
i = (int) Math.min(100.0d, ((this.ajs - fVar.Bc()) / this.ajs) * 100.0d);
}
if (x.FL()) {
x xVar = this.logger;
xVar.f("AppLovinFullscreenActivity", "Ad engaged at " + i + "%");
}
}
return i;
}
public void tf() {
ArrayList arrayList = new ArrayList();
p pVar = this.aiU;
if (pVar != null) {
arrayList.add(new com.applovin.impl.sdk.a.d(pVar, FriendlyObstructionPurpose.CLOSE_AD, "close button"));
}
com.applovin.impl.adview.x xVar = this.ago;
if (xVar != null && xVar.sp()) {
com.applovin.impl.adview.x xVar2 = this.ago;
arrayList.add(new com.applovin.impl.sdk.a.d(xVar2, FriendlyObstructionPurpose.NOT_VISIBLE, xVar2.getIdentifier()));
}
this.aiO.getAdEventTracker().a(this.aiT, arrayList);
}
public void tg() {
this.aiY = SystemClock.elapsedRealtime();
}
public void th() {
if (x.FL()) {
this.logger.f("AppLovinFullscreenActivity", "Marking ad as fully watched");
}
this.ajt.set(true);
}
@Override
public void a(ViewGroup viewGroup) {
this.ajq.a(this.aiU, this.ago, this.aiT, viewGroup);
if (!t.a(com.applovin.impl.sdk.c.b.aNG, this.sdk)) {
checkCachedAdResourcesImmediately(false);
}
com.applovin.impl.adview.x xVar = this.ago;
if (xVar != null) {
xVar.so();
}
this.aiT.renderAd(this.aiO);
d("javascript:al_onPoststitialShow();", this.aiO.Hq());
if (sS()) {
long td = td();
this.ajs = td;
if (td > 0) {
if (x.FL()) {
this.logger.f("AppLovinFullscreenActivity", com.appsflyer.internal.c.q(new StringBuilder("Scheduling timer for ad fully watched in "), this.ajs, "ms..."));
}
this.ajr = com.applovin.impl.sdk.utils.f.a(this.ajs, this.sdk, new myobfuscated.e.f(this, 12));
}
}
if (this.aiU != null) {
if (this.aiO.GI() >= 0) {
a(this.aiU, this.aiO.GI(), new myobfuscated.y3.g(this, 7));
} else {
this.aiU.setVisibility(0);
}
}
sT();
this.sdk.Cj().a(new ab(this.sdk, "updateMainViewOM", new myobfuscated.e.g(this, 7)), q.a.OTHER, TimeUnit.SECONDS.toMillis(1L));
sU();
super.au(t.S(this.sdk));
}
@Override
public void bE(long j) {
}
@Override
public void dismiss() {
sL();
com.applovin.impl.sdk.utils.f fVar = this.ajr;
if (fVar != null) {
fVar.ue();
this.ajr = null;
}
super.dismiss();
}
@Override
public void pauseVideo() {
}
@Override
public void sI() {
a((ViewGroup) null);
}
@Override
public void sL() {
super.a(te(), false, sQ(), -2L);
}
@Override
public boolean sQ() {
if (this.aiO.HF()) {
return this.ajm;
}
if (sS()) {
return this.ajt.get();
}
return true;
}
@Override
public boolean sR() {
return false;
}
@Override
public void sT() {
long HC;
long j = 0;
if (this.aiO.HB() >= 0 || this.aiO.HC() >= 0) {
if (this.aiO.HB() >= 0) {
HC = this.aiO.HB();
} else {
if (this.aiO.HD()) {
int Gq = (int) ((com.applovin.impl.sdk.ad.a) this.aiO).Gq();
if (Gq > 0) {
j = TimeUnit.SECONDS.toMillis(Gq);
} else {
int GI = (int) this.aiO.GI();
if (GI > 0) {
j = TimeUnit.SECONDS.toMillis(GI);
}
}
}
HC = (long) ((this.aiO.HC() / 100.0d) * j);
}
bF(HC);
}
}
@Override
public void sV() {
super.sV();
tc();
}
@Override
public void sW() {
super.sW();
tc();
}
@Override
public void ta() {
}
@Override
public void tb() {
}
}