Cyber Surfer v5.2.5版本的 MD5 值为:db13c5fce988de393e52d2679f934b22
以下内容为反编译后的 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.sdk.e.ab;
import com.applovin.impl.sdk.e.q;
import com.applovin.impl.sdk.n;
import com.applovin.impl.sdk.utils.u;
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 com.safedk.android.internal.special.SpecialsBridge;
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 ajm;
private com.applovin.impl.sdk.utils.f ajn;
private long ajo;
private final AtomicBoolean ajp;
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.ajm = new com.applovin.impl.adview.activity.a.b(this.aiL, this.ahM, this.sdk);
this.ajp = new AtomicBoolean();
if (u.a(com.applovin.impl.sdk.c.b.aLW, nVar)) {
checkCachedAdResourcesAsync(false);
}
}
private void sT() {
this.ajm.a(this.aiS);
this.aiV = SystemClock.elapsedRealtime();
this.ajp.set(true);
}
private long sU() {
if (this.aiL instanceof com.applovin.impl.sdk.ad.a) {
float FK = ((com.applovin.impl.sdk.ad.a) this.aiL).FK();
if (FK <= 0.0f) {
FK = (float) this.aiL.Gc();
}
return (long) (u.C(FK) * (this.aiL.GD() / 100.0d));
}
return 0L;
}
public void sV() {
ArrayList arrayList = new ArrayList();
if (this.aiR != null) {
arrayList.add(new com.applovin.impl.sdk.a.d(this.aiR, FriendlyObstructionPurpose.CLOSE_AD, "close button"));
}
if (this.agn != null && this.agn.sh()) {
arrayList.add(new com.applovin.impl.sdk.a.d(this.agn, FriendlyObstructionPurpose.NOT_VISIBLE, this.agn.getIdentifier()));
}
this.aiL.getAdEventTracker().a(this.aiQ, arrayList);
}
public void sW() {
this.aiV = SystemClock.elapsedRealtime();
}
public void sX() {
x xVar = this.logger;
if (x.Fk()) {
this.logger.f("AppLovinFullscreenActivity", "Marking ad as fully watched");
}
this.ajp.set(true);
}
@Override
public void a(ViewGroup viewGroup) {
this.ajm.a(this.aiR, this.agn, this.aiQ, viewGroup);
if (!u.a(com.applovin.impl.sdk.c.b.aLW, this.sdk)) {
checkCachedAdResourcesImmediately(false);
}
if (this.agn != null) {
this.agn.sg();
}
SpecialsBridge.appLovinAdViewRenderAd(this.aiQ, this.aiL);
d("javascript:al_onPoststitialShow();", this.aiL.GG());
if (sK()) {
long sU = sU();
this.ajo = sU;
if (sU > 0) {
x xVar = this.logger;
if (x.Fk()) {
x xVar2 = this.logger;
xVar2.f("AppLovinFullscreenActivity", "Scheduling timer for ad fully watched in " + this.ajo + "ms...");
}
this.ajn = com.applovin.impl.sdk.utils.f.a(this.ajo, this.sdk, new Runnable() {
@Override
public final void run() {
b.this.sX();
}
});
}
}
if (this.aiR != null) {
if (this.aiL.Gc() >= 0) {
a(this.aiR, this.aiL.Gc(), new Runnable() {
@Override
public final void run() {
b.this.sW();
}
});
} else {
this.aiR.setVisibility(0);
}
}
sL();
this.sdk.BM().a(new ab(this.sdk, "updateMainViewOM", new Runnable() {
@Override
public final void run() {
b.this.sV();
}
}), q.b.MAIN, TimeUnit.SECONDS.toMillis(1L));
sM();
super.au(u.P(this.sdk));
}
@Override
public void bE(long j) {
}
@Override
public void dismiss() {
sD();
com.applovin.impl.sdk.utils.f fVar = this.ajn;
if (fVar != null) {
fVar.tT();
this.ajn = null;
}
super.dismiss();
}
@Override
public void pauseVideo() {
}
@Override
public void rl() {
super.rl();
sT();
}
@Override
public void sA() {
a(null);
}
@Override
protected void sD() {
com.applovin.impl.sdk.utils.f fVar;
boolean sI = sI();
int i = 100;
if (sK()) {
if (!sI && (fVar = this.ajn) != null) {
i = (int) Math.min(100.0d, ((this.ajo - fVar.AF()) / this.ajo) * 100.0d);
}
x xVar = this.logger;
if (x.Fk()) {
x xVar2 = this.logger;
xVar2.f("AppLovinFullscreenActivity", "Ad engaged at " + i + "%");
}
}
super.a(i, false, sI, -2L);
}
@Override
protected boolean sI() {
if (sK()) {
return this.ajp.get();
}
return true;
}
@Override
protected boolean sJ() {
return false;
}
@Override
protected void sL() {
long GS;
long millis;
long j = 0;
if (this.aiL.GR() >= 0 || this.aiL.GS() >= 0) {
if (this.aiL.GR() >= 0) {
GS = this.aiL.GR();
} else {
if (this.aiL.GT()) {
int FK = (int) ((com.applovin.impl.sdk.ad.a) this.aiL).FK();
if (FK > 0) {
millis = TimeUnit.SECONDS.toMillis(FK);
} else {
int Gc = (int) this.aiL.Gc();
if (Gc > 0) {
millis = TimeUnit.SECONDS.toMillis(Gc);
}
}
j = 0 + millis;
}
GS = (long) (j * (this.aiL.GS() / 100.0d));
}
bF(GS);
}
}
@Override
public void sN() {
super.sN();
sT();
}
@Override
public void sR() {
}
@Override
public void sS() {
}
}