- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
94 lines
3.6 KiB
Java
94 lines
3.6 KiB
Java
package com.applovin.impl;
|
|
|
|
import android.os.Bundle;
|
|
import com.applovin.adview.AppLovinAdView;
|
|
import com.applovin.impl.sdk.utils.StringUtils;
|
|
import com.unity3d.ads.core.domain.InitializeAndroidBoldSDK;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class qc {
|
|
private final StringBuilder a = new StringBuilder();
|
|
|
|
public String toString() {
|
|
return this.a.toString();
|
|
}
|
|
|
|
public qc a(com.applovin.impl.sdk.ad.b bVar) {
|
|
boolean z = bVar instanceof aq;
|
|
a("Format", bVar.getAdZone().d() != null ? bVar.getAdZone().d().getLabel() : null).a("Ad ID", Long.valueOf(bVar.getAdIdNumber())).a("Zone ID", bVar.getAdZone().e()).a("Ad Class", z ? "VastAd" : "AdServerAd");
|
|
String dspName = bVar.getDspName();
|
|
if (StringUtils.isValidString(dspName)) {
|
|
a("DSP Name", dspName);
|
|
}
|
|
if (z) {
|
|
a("VAST DSP", ((aq) bVar).r1());
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public qc b(com.applovin.impl.sdk.ad.b bVar) {
|
|
a("Target", bVar.e0()).a("close_style", bVar.m()).a("close_delay_graphic", Long.valueOf(bVar.o()), "s");
|
|
if (bVar instanceof com.applovin.impl.sdk.ad.a) {
|
|
com.applovin.impl.sdk.ad.a aVar = (com.applovin.impl.sdk.ad.a) bVar;
|
|
a("HTML", aVar.j1().substring(0, Math.min(aVar.j1().length(), 64)));
|
|
}
|
|
if (bVar.hasVideoUrl()) {
|
|
a("close_delay", Long.valueOf(bVar.l0()), "s").a("skip_style", bVar.c0()).a("Streaming", Boolean.valueOf(bVar.I0())).a("Video Location", bVar.P()).a("video_button_properties", bVar.j0());
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public qc b(String str) {
|
|
this.a.append(str);
|
|
return this;
|
|
}
|
|
|
|
public qc a(AppLovinAdView appLovinAdView) {
|
|
return a("Size", appLovinAdView.getSize().getWidth() + "x" + appLovinAdView.getSize().getHeight()).a("Alpha", Float.valueOf(appLovinAdView.getAlpha())).a("Visibility", zq.a(appLovinAdView.getVisibility()));
|
|
}
|
|
|
|
public qc a(Bundle bundle) {
|
|
if (bundle == null) {
|
|
return this;
|
|
}
|
|
for (String str : bundle.keySet()) {
|
|
a(str, bundle.get(str));
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public qc a() {
|
|
this.a.append("\n========================================");
|
|
return this;
|
|
}
|
|
|
|
public qc a(ge geVar) {
|
|
return a(InitializeAndroidBoldSDK.MSG_NETWORK, geVar.c()).a("Adapter Version", geVar.z()).a("Format", geVar.getFormat().getLabel()).a("Ad Unit ID", geVar.getAdUnitId()).a("Placement", geVar.getPlacement()).a("Network Placement", geVar.U()).a("Serve ID", geVar.S()).a("Creative ID", StringUtils.isValidString(geVar.getCreativeId()) ? geVar.getCreativeId() : "None").a("Ad Review Creative ID", StringUtils.isValidString(geVar.getAdReviewCreativeId()) ? geVar.getAdReviewCreativeId() : "None").a("Ad Domain", StringUtils.isValidString(geVar.v()) ? geVar.v() : "None").a("DSP Name", StringUtils.isValidString(geVar.getDspName()) ? geVar.getDspName() : "None").a("DSP ID", StringUtils.isValidString(geVar.getDspId()) ? geVar.getDspId() : "None").a("Server Parameters", geVar.l());
|
|
}
|
|
|
|
public qc a(com.applovin.impl.sdk.j jVar) {
|
|
return a("Muted", Boolean.valueOf(jVar.g0().isMuted()));
|
|
}
|
|
|
|
public qc a(String str) {
|
|
StringBuilder sb = this.a;
|
|
sb.append("\n");
|
|
sb.append(str);
|
|
return this;
|
|
}
|
|
|
|
public qc a(String str, Object obj) {
|
|
return a(str, obj, "");
|
|
}
|
|
|
|
public qc a(String str, Object obj, String str2) {
|
|
StringBuilder sb = this.a;
|
|
sb.append("\n");
|
|
sb.append(str);
|
|
sb.append(": ");
|
|
sb.append(obj);
|
|
sb.append(str2);
|
|
return this;
|
|
}
|
|
}
|