- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
93 lines
3.3 KiB
Java
93 lines
3.3 KiB
Java
package com.fyber.inneractive.sdk.model.vast;
|
|
|
|
import android.text.TextUtils;
|
|
import com.facebook.internal.security.CertificateUtil;
|
|
import com.firemint.realracing.Platform;
|
|
import com.fyber.inneractive.sdk.util.IAlog;
|
|
import java.util.ArrayList;
|
|
import java.util.Comparator;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class d {
|
|
public final String a;
|
|
public final String b;
|
|
public int c = a();
|
|
public final int d;
|
|
|
|
public static class a implements Comparator<d> {
|
|
@Override // java.util.Comparator
|
|
public final int compare(d dVar, d dVar2) {
|
|
return dVar.c - dVar2.c;
|
|
}
|
|
}
|
|
|
|
public d(String str, String str2) {
|
|
this.a = str;
|
|
this.b = str2;
|
|
this.d = b(str2);
|
|
}
|
|
|
|
public final int b(String str) {
|
|
int parseInt;
|
|
if (!TextUtils.isEmpty(str) && !str.startsWith("-")) {
|
|
if (str.endsWith("%") && str.endsWith("%")) {
|
|
try {
|
|
if (TextUtils.isEmpty(this.b)) {
|
|
parseInt = -1;
|
|
} else {
|
|
String str2 = this.b;
|
|
parseInt = Integer.parseInt(str2.substring(0, str2.length() - 1));
|
|
}
|
|
if (parseInt >= 0 && parseInt <= 100) {
|
|
return 1;
|
|
}
|
|
} catch (NumberFormatException e) {
|
|
IAlog.f("ProgressTrackingEvent: failed isPercentageOffsetValid with %s", e.getMessage());
|
|
}
|
|
}
|
|
if (str.contains(CertificateUtil.DELIMITER)) {
|
|
ArrayList a2 = a(str);
|
|
if (!a2.isEmpty() && ((Integer) a2.get(0)).intValue() >= 0 && ((Integer) a2.get(1)).intValue() >= 0 && ((Integer) a2.get(2)).intValue() >= 0 && ((Integer) a2.get(3)).intValue() >= 0) {
|
|
return 2;
|
|
}
|
|
}
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
public final int a() {
|
|
String str;
|
|
if (this.d != 2 || (str = this.b) == null) {
|
|
return -1;
|
|
}
|
|
ArrayList a2 = a(str);
|
|
return ((Integer) a2.get(3)).intValue() + ((((Integer) a2.get(2)).intValue() + (((Integer) a2.get(1)).intValue() * 60) + (((Integer) a2.get(0)).intValue() * Platform.INTERNET_CONNECTION_DELAY)) * 1000);
|
|
}
|
|
|
|
public static ArrayList a(String str) {
|
|
ArrayList arrayList = new ArrayList();
|
|
if (str == null) {
|
|
return arrayList;
|
|
}
|
|
String[] split = str.split(CertificateUtil.DELIMITER);
|
|
if (split.length != 3) {
|
|
return arrayList;
|
|
}
|
|
String str2 = split[0];
|
|
String str3 = split[1];
|
|
String[] split2 = split[2].split("\\.");
|
|
String str4 = split2[0];
|
|
String str5 = split2.length > 1 ? split2[1] : "000";
|
|
try {
|
|
arrayList.add(Integer.valueOf(Integer.parseInt(str2)));
|
|
arrayList.add(Integer.valueOf(Integer.parseInt(str3)));
|
|
arrayList.add(Integer.valueOf(Integer.parseInt(str4)));
|
|
arrayList.add(Integer.valueOf(Integer.parseInt(str5)));
|
|
return arrayList;
|
|
} catch (NumberFormatException e) {
|
|
IAlog.f("ProgressTrackingEvent: failed convertOffsetToTimeList with %s", e.getMessage());
|
|
return new ArrayList();
|
|
}
|
|
}
|
|
}
|