正在查看: Cantique de Louanges v12 应用的 b.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Cantique de Louanges v12 应用的 b.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.applovin.impl.adview.activity.b;
import android.app.Activity;
import android.os.SystemClock;
import android.view.ViewGroup;
import androidx.annotation.Nullable;
import com.applovin.impl.sdk.e.ab;
import com.applovin.impl.sdk.e.q;
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, @Nullable Map<String, Object> map, com.applovin.impl.sdk.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 (com.applovin.impl.sdk.utils.u.a(com.applovin.impl.sdk.c.b.aMb, 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)) {
return 0L;
}
float FM = ((com.applovin.impl.sdk.ad.a) eVar).FM();
if (FM <= 0.0f) {
FM = this.aiL.Ge();
}
return (long) (com.applovin.impl.sdk.utils.u.C(FM) * (this.aiL.GF() / 100.0d));
}
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"));
}
com.applovin.impl.adview.v vVar = this.agn;
if (vVar != null && vVar.sh()) {
com.applovin.impl.adview.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 (com.applovin.impl.sdk.x.Fn()) {
this.logger.f("AppLovinFullscreenActivity", "Marking ad as fully watched");
}
this.ajp.set(true);
}
@Override
public void a(@Nullable ViewGroup viewGroup) {
this.ajm.a(this.aiR, this.agn, this.aiQ, viewGroup);
if (!com.applovin.impl.sdk.utils.u.a(com.applovin.impl.sdk.c.b.aMb, this.sdk)) {
checkCachedAdResourcesImmediately(false);
}
com.applovin.impl.adview.v vVar = this.agn;
if (vVar != null) {
vVar.sg();
}
this.aiQ.renderAd(this.aiL);
d("javascript:al_onPoststitialShow();", this.aiL.GI());
if (sK()) {
long sU = sU();
this.ajo = sU;
if (sU > 0) {
if (com.applovin.impl.sdk.x.Fn()) {
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() {
@Override
public final void run() {
b.this.sX();
}
});
}
}
if (this.aiR != null) {
if (this.aiL.Ge() >= 0) {
a(this.aiR, this.aiL.Ge(), new Runnable() {
@Override
public final void run() {
b.this.sW();
}
});
} else {
this.aiR.setVisibility(0);
}
}
sL();
this.sdk.BO().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(com.applovin.impl.sdk.utils.u.P(this.sdk));
}
@Override
public void bE(long j5) {
}
@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 i5 = 100;
if (sK()) {
if (!sI && (fVar = this.ajn) != null) {
i5 = (int) Math.min(100.0d, ((this.ajo - fVar.AH()) / this.ajo) * 100.0d);
}
if (com.applovin.impl.sdk.x.Fn()) {
this.logger.f("AppLovinFullscreenActivity", "Ad engaged at " + i5 + "%");
}
}
super.a(i5, 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 GU;
long millis;
long j5 = 0;
if (this.aiL.GT() >= 0 || this.aiL.GU() >= 0) {
if (this.aiL.GT() >= 0) {
GU = this.aiL.GT();
} else {
if (this.aiL.GV()) {
int FM = (int) ((com.applovin.impl.sdk.ad.a) this.aiL).FM();
if (FM > 0) {
millis = TimeUnit.SECONDS.toMillis(FM);
} else {
int Ge = (int) this.aiL.Ge();
if (Ge > 0) {
millis = TimeUnit.SECONDS.toMillis(Ge);
}
}
j5 = 0 + millis;
}
GU = (long) (j5 * (this.aiL.GU() / 100.0d));
}
bF(GU);
}
}
@Override
public void sN() {
super.sN();
sT();
}
@Override
public void sR() {
}
@Override
public void sS() {
}
}