- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
174 lines
5.0 KiB
Java
174 lines
5.0 KiB
Java
package com.applovin.impl.sdk.ad;
|
|
|
|
import android.os.Bundle;
|
|
import com.applovin.impl.h0;
|
|
import com.applovin.impl.mg;
|
|
import com.applovin.impl.sdk.j;
|
|
import com.applovin.sdk.AppLovinAd;
|
|
import com.applovin.sdk.AppLovinAdSize;
|
|
import com.applovin.sdk.AppLovinAdType;
|
|
import java.util.List;
|
|
import org.json.JSONObject;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class c extends AppLovinAdImpl {
|
|
private AppLovinAd f;
|
|
private final h0 g;
|
|
|
|
private AppLovinAd c() {
|
|
return (AppLovinAd) this.sdk.g().f(this.g);
|
|
}
|
|
|
|
private String d() {
|
|
h0 adZone = getAdZone();
|
|
if (adZone == null || adZone.i()) {
|
|
return null;
|
|
}
|
|
return adZone.e();
|
|
}
|
|
|
|
public void a(AppLovinAd appLovinAd) {
|
|
this.f = appLovinAd;
|
|
}
|
|
|
|
public AppLovinAd b() {
|
|
AppLovinAd appLovinAd = this.f;
|
|
return appLovinAd != null ? appLovinAd : c();
|
|
}
|
|
|
|
public AppLovinAd e() {
|
|
return this.f;
|
|
}
|
|
|
|
@Override // com.applovin.impl.sdk.ad.AppLovinAdImpl
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (obj == null || c.class != obj.getClass()) {
|
|
return false;
|
|
}
|
|
AppLovinAd b = b();
|
|
return b != null ? b.equals(obj) : super.equals(obj);
|
|
}
|
|
|
|
@Override // com.applovin.impl.sdk.AppLovinAdBase, com.applovin.impl.lg
|
|
public mg getAdEventTracker() {
|
|
return null;
|
|
}
|
|
|
|
@Override // com.applovin.impl.sdk.ad.AppLovinAdImpl, com.applovin.impl.sdk.AppLovinAdBase
|
|
public long getAdIdNumber() {
|
|
AppLovinAd b = b();
|
|
if (b instanceof AppLovinAdImpl) {
|
|
return ((AppLovinAdImpl) b).getAdIdNumber();
|
|
}
|
|
return 0L;
|
|
}
|
|
|
|
@Override // com.applovin.impl.sdk.AppLovinAdBase
|
|
public long getCreatedAtMillis() {
|
|
AppLovinAd b = b();
|
|
if (b instanceof AppLovinAdImpl) {
|
|
return ((AppLovinAdImpl) b).getCreatedAtMillis();
|
|
}
|
|
return 0L;
|
|
}
|
|
|
|
@Override // com.applovin.impl.sdk.array.ArrayDirectDownloadAd
|
|
public Bundle getDirectDownloadParameters() {
|
|
return new Bundle();
|
|
}
|
|
|
|
@Override // com.applovin.impl.sdk.array.ArrayDirectDownloadAd
|
|
public String getDirectDownloadToken() {
|
|
return null;
|
|
}
|
|
|
|
@Override // com.applovin.impl.sdk.AppLovinAdBase, com.applovin.impl.lg
|
|
public String getOpenMeasurementContentUrl() {
|
|
return null;
|
|
}
|
|
|
|
@Override // com.applovin.impl.sdk.AppLovinAdBase, com.applovin.impl.lg
|
|
public String getOpenMeasurementCustomReferenceData() {
|
|
return null;
|
|
}
|
|
|
|
@Override // com.applovin.impl.sdk.AppLovinAdBase, com.applovin.impl.lg
|
|
public List getOpenMeasurementVerificationScriptResources() {
|
|
return null;
|
|
}
|
|
|
|
@Override // com.applovin.impl.sdk.ad.AppLovinAdImpl
|
|
public JSONObject getOriginalFullResponse() {
|
|
AppLovinAd b = b();
|
|
if (b instanceof AppLovinAdImpl) {
|
|
return ((AppLovinAdImpl) b).getOriginalFullResponse();
|
|
}
|
|
return null;
|
|
}
|
|
|
|
@Override // com.applovin.impl.sdk.ad.AppLovinAdImpl, com.applovin.sdk.AppLovinAd
|
|
public AppLovinAdSize getSize() {
|
|
return getAdZone().f();
|
|
}
|
|
|
|
@Override // com.applovin.impl.sdk.ad.AppLovinAdImpl, com.applovin.sdk.AppLovinAd
|
|
public AppLovinAdType getType() {
|
|
return getAdZone().g();
|
|
}
|
|
|
|
@Override // com.applovin.impl.sdk.ad.AppLovinAdImpl, com.applovin.sdk.AppLovinAd
|
|
public String getZoneId() {
|
|
if (this.g.i()) {
|
|
return null;
|
|
}
|
|
return this.g.e();
|
|
}
|
|
|
|
@Override // com.applovin.impl.sdk.ad.AppLovinAdImpl
|
|
public int hashCode() {
|
|
AppLovinAd b = b();
|
|
return b != null ? b.hashCode() : super.hashCode();
|
|
}
|
|
|
|
@Override // com.applovin.impl.sdk.array.ArrayDirectDownloadAd
|
|
public boolean isDirectDownloadEnabled() {
|
|
return false;
|
|
}
|
|
|
|
@Override // com.applovin.impl.sdk.ad.AppLovinAdImpl
|
|
public boolean isExpired() {
|
|
AppLovinAdImpl appLovinAdImpl = (AppLovinAdImpl) b();
|
|
return appLovinAdImpl != null && appLovinAdImpl.isExpired();
|
|
}
|
|
|
|
@Override // com.applovin.impl.sdk.AppLovinAdBase, com.applovin.impl.lg
|
|
public boolean isOpenMeasurementEnabled() {
|
|
return false;
|
|
}
|
|
|
|
@Override // com.applovin.impl.sdk.ad.AppLovinAdImpl
|
|
public boolean isVideoAd() {
|
|
AppLovinAd b = b();
|
|
return (b instanceof AppLovinAdImpl) && ((AppLovinAdImpl) b).isVideoAd();
|
|
}
|
|
|
|
@Override // com.applovin.impl.sdk.ad.AppLovinAdImpl
|
|
public String toString() {
|
|
return "AppLovinAd{ #" + getAdIdNumber() + ", adType=" + getType() + ", adSize=" + getSize() + ", zoneId='" + d() + "'}";
|
|
}
|
|
|
|
public c(h0 h0Var, j jVar) {
|
|
super(new JSONObject(), new JSONObject(), jVar);
|
|
this.g = h0Var;
|
|
}
|
|
|
|
@Override // com.applovin.impl.sdk.ad.AppLovinAdImpl
|
|
public h0 getAdZone() {
|
|
AppLovinAdImpl appLovinAdImpl = (AppLovinAdImpl) b();
|
|
return appLovinAdImpl != null ? appLovinAdImpl.getAdZone() : this.g;
|
|
}
|
|
}
|