MD5 校验值:d53ec1a251294bef920c76a08ee856d9
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.v; 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 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() { com.applovin.impl.sdk.ad.e eVar = this.aiL; if (eVar instanceof com.applovin.impl.sdk.ad.a) { float FK = ((com.applovin.impl.sdk.ad.a) eVar).FK(); if (FK <= 0.0f) { FK = (float) this.aiL.Gc(); } return (long) ((this.aiL.GD() / 100.0d) * u.C(FK)); } return 0L; } public void sV() { ArrayList arrayList = new ArrayList(); com.applovin.impl.adview.n nVar = this.aiR; if (nVar != null) { arrayList.add(new com.applovin.impl.sdk.a.d(nVar, FriendlyObstructionPurpose.CLOSE_AD, "close button")); } v vVar = this.agn; if (vVar != null && vVar.sh()) { v vVar2 = this.agn; arrayList.add(new com.applovin.impl.sdk.a.d(vVar2, FriendlyObstructionPurpose.NOT_VISIBLE, vVar2.getIdentifier())); } this.aiL.getAdEventTracker().a(this.aiQ, arrayList); } public void sW() { this.aiV = SystemClock.elapsedRealtime(); } public void sX() { 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); final int i = 0; if (!u.a(com.applovin.impl.sdk.c.b.aLW, this.sdk)) { checkCachedAdResourcesImmediately(false); } v vVar = this.agn; if (vVar != null) { vVar.sg(); } this.aiQ.renderAd(this.aiL); d("javascript:al_onPoststitialShow();", this.aiL.GG()); if (sK()) { long sU = sU(); this.ajo = sU; if (sU > 0) { if (x.Fk()) { this.logger.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(this) { public final b knZa8G5Dnyom3a; { this.knZa8G5Dnyom3a = this; } @Override public final void run() { int i2 = i; b bVar = this.knZa8G5Dnyom3a; switch (i2) { case 0: bVar.sX(); return; case 1: bVar.sW(); return; default: bVar.sV(); return; } } }); } } if (this.aiR != null) { if (this.aiL.Gc() >= 0) { final int i2 = 1; a(this.aiR, this.aiL.Gc(), new Runnable(this) { public final b knZa8G5Dnyom3a; { this.knZa8G5Dnyom3a = this; } @Override public final void run() { int i22 = i2; b bVar = this.knZa8G5Dnyom3a; switch (i22) { case 0: bVar.sX(); return; case 1: bVar.sW(); return; default: bVar.sV(); return; } } }); } else { this.aiR.setVisibility(0); } } sL(); final int i3 = 2; this.sdk.BM().a(new ab(this.sdk, "updateMainViewOM", new Runnable(this) { public final b knZa8G5Dnyom3a; { this.knZa8G5Dnyom3a = this; } @Override public final void run() { int i22 = i3; b bVar = this.knZa8G5Dnyom3a; switch (i22) { case 0: bVar.sX(); return; case 1: bVar.sW(); return; default: bVar.sV(); return; } } }), 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 public 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); } if (x.Fk()) { this.logger.f("AppLovinFullscreenActivity", "Ad engaged at " + i + "%"); } } super.a(i, false, sI, -2L); } @Override public boolean sI() { if (sK()) { return this.ajp.get(); } return true; } @Override public boolean sJ() { return false; } @Override public 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) ((this.aiL.GS() / 100.0d) * j); } bF(GS); } } @Override public void sN() { super.sN(); sT(); } @Override public void sR() { } @Override public void sS() { } }