Files
rr3-apk/decompiled/sources/com/applovin/impl/oq.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

144 lines
4.4 KiB
Java

package com.applovin.impl;
import android.net.Uri;
import android.webkit.URLUtil;
import com.applovin.impl.sdk.utils.StringUtils;
import java.util.Locale;
import java.util.Map;
/* loaded from: classes.dex */
public class oq {
private Uri a;
private Uri b;
private a c;
private String d;
private int e;
private int f;
private long g;
public enum a {
Progressive,
Streaming
}
private oq() {
}
public long a() {
return this.g;
}
public void a(Uri uri) {
this.b = uri;
}
public String b() {
return this.d;
}
public Uri c() {
return this.a;
}
public Uri d() {
return this.b;
}
public String toString() {
return "VastVideoFile{sourceVideoUri=" + this.a + ", videoUri=" + this.b + ", deliveryType=" + this.c + ", fileType='" + this.d + "', width=" + this.e + ", height=" + this.f + ", bitrate=" + this.g + '}';
}
public static oq a(es esVar, com.applovin.impl.sdk.j jVar) {
if (esVar == null) {
throw new IllegalArgumentException("No node specified.");
}
if (jVar != null) {
try {
String d = esVar.d();
if (URLUtil.isValidUrl(d)) {
Uri parse = Uri.parse(d);
oq oqVar = new oq();
oqVar.a = parse;
oqVar.b = parse;
oqVar.g = a(esVar);
oqVar.c = a((String) esVar.a().get(com.ironsource.gi.h));
oqVar.f = StringUtils.parseInt((String) esVar.a().get("height"));
oqVar.e = StringUtils.parseInt((String) esVar.a().get("width"));
oqVar.d = ((String) esVar.a().get("type")).toLowerCase(Locale.ENGLISH);
return oqVar;
}
jVar.J();
if (!com.applovin.impl.sdk.n.a()) {
return null;
}
jVar.J().b("VastVideoFile", "Unable to create video file. Could not find URL.");
return null;
} catch (Throwable th) {
jVar.J();
if (com.applovin.impl.sdk.n.a()) {
jVar.J().a("VastVideoFile", "Error occurred while initializing", th);
}
jVar.E().a("VastVideoFile", th);
return null;
}
}
throw new IllegalArgumentException("No sdk specified.");
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof oq)) {
return false;
}
oq oqVar = (oq) obj;
if (this.e != oqVar.e || this.f != oqVar.f || this.g != oqVar.g) {
return false;
}
Uri uri = this.a;
if (uri == null ? oqVar.a != null : !uri.equals(oqVar.a)) {
return false;
}
Uri uri2 = this.b;
if (uri2 == null ? oqVar.b != null : !uri2.equals(oqVar.b)) {
return false;
}
if (this.c != oqVar.c) {
return false;
}
String str = this.d;
String str2 = oqVar.d;
return str != null ? str.equals(str2) : str2 == null;
}
public int hashCode() {
Uri uri = this.a;
int hashCode = (uri != null ? uri.hashCode() : 0) * 31;
Uri uri2 = this.b;
int hashCode2 = (hashCode + (uri2 != null ? uri2.hashCode() : 0)) * 31;
a aVar = this.c;
int hashCode3 = (hashCode2 + (aVar != null ? aVar.hashCode() : 0)) * 31;
String str = this.d;
return ((((((hashCode3 + (str != null ? str.hashCode() : 0)) * 31) + this.e) * 31) + this.f) * 31) + Long.valueOf(this.g).hashCode();
}
private static long a(es esVar) {
Map a2 = esVar.a();
long parseLong = StringUtils.parseLong((String) a2.get("bitrate"), 0L);
return parseLong != 0 ? parseLong : (StringUtils.parseLong((String) a2.get("minBitrate"), 0L) + StringUtils.parseLong((String) a2.get("maxBitrate"), 0L)) / 2;
}
private static a a(String str) {
if (StringUtils.isValidString(str)) {
if ("progressive".equalsIgnoreCase(str)) {
return a.Progressive;
}
if ("streaming".equalsIgnoreCase(str)) {
return a.Streaming;
}
}
return a.Progressive;
}
}