Add Discord community version (64-bit only)

- 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
This commit is contained in:
2026-02-18 15:48:36 -08:00
parent c19eb3d7ff
commit c080f0d97f
26930 changed files with 2529574 additions and 0 deletions

View File

@@ -0,0 +1,76 @@
package com.fyber.inneractive.sdk.util;
import com.fyber.inneractive.sdk.logger.FMPLogger;
import com.ironsource.v8;
import java.util.Iterator;
import java.util.concurrent.CopyOnWriteArrayList;
/* loaded from: classes2.dex */
public class IAlog {
public static int a = 4;
public static final com.fyber.inneractive.sdk.logger.a b = new com.fyber.inneractive.sdk.logger.a();
public static final a c = new a();
public class a extends CopyOnWriteArrayList<FMPLogger> {
public a() {
add(IAlog.b);
}
}
public static void b(String str, Object... objArr) {
Iterator<FMPLogger> it = c.iterator();
while (it.hasNext()) {
it.next().error(str, null, objArr);
}
}
public static void c(String str, Object... objArr) {
Iterator<FMPLogger> it = c.iterator();
while (it.hasNext()) {
it.next().info(str, objArr);
}
}
public static void d(String str, Object... objArr) {
Iterator<FMPLogger> it = c.iterator();
while (it.hasNext()) {
it.next().log(1, null, str, objArr);
}
}
public static void e(String str, Object... objArr) {
Iterator<FMPLogger> it = c.iterator();
while (it.hasNext()) {
it.next().verbose(str, objArr);
}
}
public static void f(String str, Object... objArr) {
Iterator<FMPLogger> it = c.iterator();
while (it.hasNext()) {
it.next().warning(str, objArr);
}
}
public static void a(String str, Object... objArr) {
Iterator<FMPLogger> it = c.iterator();
while (it.hasNext()) {
it.next().debug(str, objArr);
}
}
public static void a(String str, Throwable th, Object... objArr) {
Iterator<FMPLogger> it = c.iterator();
while (it.hasNext()) {
it.next().error(str, th, objArr);
}
}
public static String a(Object obj) {
return "(" + Thread.currentThread().getName() + "): " + obj.getClass().getSimpleName() + v8.i.d + Integer.toHexString(System.identityHashCode(obj)) + "] ";
}
public static String a(Class<?> cls) {
return "(" + Thread.currentThread().getName() + "): " + cls.getSimpleName() + v8.i.d + Integer.toHexString(System.identityHashCode(cls)) + "] ";
}
}

View File

@@ -0,0 +1,68 @@
package com.fyber.inneractive.sdk.util;
import android.text.TextUtils;
import com.fyber.inneractive.sdk.external.InneractiveAdSpot;
import com.fyber.inneractive.sdk.network.s;
import java.util.Locale;
import java.util.concurrent.TimeUnit;
import org.json.JSONObject;
/* loaded from: classes2.dex */
public final class a {
public InneractiveAdSpot a;
public boolean c;
public boolean b = false;
public long d = 0;
public long e = 0;
public long f = 0;
public final void a(boolean z) {
this.c = z;
if (!this.b) {
Object[] objArr = new Object[2];
objArr[0] = "AdExperienceLatency: ";
objArr[1] = z ? "skip" : "close";
IAlog.a("%s%s timer started", objArr);
this.d = System.currentTimeMillis();
this.b = true;
return;
}
Object[] objArr2 = new Object[2];
objArr2[0] = "AdExperienceLatency: ";
objArr2[1] = z ? "skip" : "close";
IAlog.a("%s%s timer could not start. Timer is in action!", objArr2);
}
public final void a(String str) {
com.fyber.inneractive.sdk.config.global.s sVar;
if (this.b) {
long currentTimeMillis = (System.currentTimeMillis() - this.d) - this.f;
TimeUnit timeUnit = TimeUnit.MILLISECONDS;
long seconds = timeUnit.toSeconds(currentTimeMillis);
String format = String.format(Locale.US, "%d.%d", Long.valueOf(seconds), Long.valueOf(timeUnit.toMillis(currentTimeMillis - TimeUnit.SECONDS.toMillis(seconds))));
InneractiveAdSpot inneractiveAdSpot = this.a;
com.fyber.inneractive.sdk.flow.q adContent = inneractiveAdSpot != null ? inneractiveAdSpot.getAdContent() : null;
s.a aVar = new s.a(this.c ? com.fyber.inneractive.sdk.network.r.USER_SKIP_ACTION_LATENCY : com.fyber.inneractive.sdk.network.r.USER_CLOSE_ACTION_LATENCY, adContent != null ? adContent.a : null, adContent != null ? adContent.d() : null, (adContent == null || (sVar = adContent.c) == null) ? null : sVar.c());
JSONObject jSONObject = new JSONObject();
String str2 = this.c ? "skip_action_latency" : "close_action_latency";
try {
jSONObject.put(str2, format);
} catch (Exception unused) {
IAlog.f("Got exception adding param to json object: %s, %s", str2, format);
}
if (!TextUtils.isEmpty(str)) {
try {
jSONObject.put("origin", str);
} catch (Exception unused2) {
IAlog.f("Got exception adding param to json object: %s, %s", "origin", str);
}
}
aVar.f.put(jSONObject);
aVar.a((String) null);
this.d = 0L;
this.e = 0L;
this.f = 0L;
this.b = false;
}
}
}

View File

@@ -0,0 +1,77 @@
package com.fyber.inneractive.sdk.util;
import android.net.Uri;
import android.text.TextUtils;
import androidx.core.net.MailTo;
import com.fyber.inneractive.sdk.config.IAConfigManager;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.HashMap;
/* loaded from: classes2.dex */
public final class a0 extends o {
public static final class a {
public final d a;
public final Throwable b;
public a(d dVar, Throwable th) {
this.a = dVar;
this.b = th;
}
}
public static final class b extends Exception {
public b(String str) {
super(str);
}
}
public enum c {
DO_NOT_OPEN_IN_INTERNAL_BROWSER,
OPEN_EVERYTHING
}
public enum d {
FAILED,
OPENED_IN_INTERNAL_BROWSER,
OPEN_IN_EXTERNAL_APPLICATION,
OPEN_IN_EXTERNAL_BROWSER,
OPENED_USING_CHROME_NAVIGATE,
OPENED_INTERNAL_STORE
}
public static HashMap a(Uri uri) {
HashMap hashMap = new HashMap();
for (String str : uri.getQueryParameterNames()) {
hashMap.put(str, uri.getQueryParameter(str));
}
return hashMap;
}
public static boolean d(String str) {
return str.startsWith("http%3A%2F%2F") || str.startsWith("https%3A%2F%2F") || str.startsWith("%");
}
public static boolean e(String str) {
if (!str.startsWith("tel:") && !str.startsWith("voicemail:") && !str.startsWith("sms:") && !str.startsWith(MailTo.MAILTO_SCHEME) && !str.startsWith("geo:") && !str.startsWith("google.streetview:")) {
try {
new URL(str);
return false;
} catch (MalformedURLException unused) {
IAlog.f("Failed to open Url: %s", str);
}
}
return true;
}
public static boolean f(String str) {
if (TextUtils.isEmpty(str)) {
return true;
}
if (!s.a() || IAConfigManager.L.q) {
return (str.startsWith("http://") || str.startsWith("http%3A%2F%2F")) ? false : true;
}
return true;
}
}

View File

@@ -0,0 +1,19 @@
package com.fyber.inneractive.sdk.util;
import com.ironsource.ad;
/* loaded from: classes2.dex */
public final class a1 implements Runnable {
public final /* synthetic */ String a;
public final /* synthetic */ z0 b;
public a1(z0 z0Var, String str) {
this.b = z0Var;
this.a = str;
}
@Override // java.lang.Runnable
public final void run() {
this.b.b.getSharedPreferences("fyber.ua", 0).edit().putString(ad.U, this.a).apply();
}
}

View File

@@ -0,0 +1,92 @@
package com.fyber.inneractive.sdk.util;
import android.os.Handler;
import android.os.Looper;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.RejectedExecutionException;
import java.util.concurrent.ThreadFactory;
/* loaded from: classes2.dex */
public abstract class b<Params, Progress, Result> {
public d c;
public c d;
public Handler b = null;
public final Object e = new Object();
public boolean f = false;
public final ExecutorService a = Executors.newSingleThreadExecutor(new a());
public class a implements ThreadFactory {
@Override // java.util.concurrent.ThreadFactory
public final Thread newThread(Runnable runnable) {
Thread thread = new Thread(runnable);
thread.setDaemon(true);
return thread;
}
}
/* renamed from: com.fyber.inneractive.sdk.util.b$b, reason: collision with other inner class name */
public class RunnableC0109b implements Runnable {
public final /* synthetic */ Object[] a;
public RunnableC0109b(Object[] objArr) {
this.a = objArr;
}
@Override // java.lang.Runnable
public final void run() {
b.this.getClass();
b bVar = b.this;
boolean z = bVar.f;
if (z) {
return;
}
c cVar = new c(bVar, this.a);
bVar.d = cVar;
if (z) {
return;
}
try {
bVar.a.execute(cVar);
} catch (NullPointerException e) {
IAlog.f("AsyncTaskExecutor : execute(): Unable to execute the null task: %s", e.getMessage());
} catch (RejectedExecutionException e2) {
IAlog.f("AsyncTaskExecutor : execute(): Unable to execute the task: %s", e2.getMessage());
}
}
}
public abstract Result a(Params... paramsArr);
public abstract void a(Result result);
public final boolean a() {
return this.a.isTerminated() || this.a.isShutdown();
}
public final void b(Params... paramsArr) {
if (this.b == null) {
synchronized (this.e) {
this.b = new Handler(Looper.getMainLooper());
}
}
this.b.post(new RunnableC0109b(paramsArr));
}
public final void b() {
this.f = true;
this.a.shutdownNow();
Handler handler = this.b;
if (handler != null) {
c cVar = this.d;
if (cVar != null) {
handler.removeCallbacks(cVar);
}
d dVar = this.c;
if (dVar != null) {
this.b.removeCallbacks(dVar);
}
this.b = null;
}
}
}

View File

@@ -0,0 +1,154 @@
package com.fyber.inneractive.sdk.util;
import android.app.Activity;
import android.content.Context;
import android.graphics.Rect;
import android.util.Pair;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewTreeObserver;
import com.fyber.inneractive.sdk.util.l;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;
import java.util.WeakHashMap;
/* loaded from: classes2.dex */
public final class b0 {
public final WeakHashMap<Context, WeakHashMap<View, d>> b = new WeakHashMap<>();
public final WeakHashMap a = new WeakHashMap();
public final l<Rect> c = new l<>(16, new a());
public final l<HashSet<View>> d = new l<>(16, new b());
public class a implements l.a<Rect> {
@Override // com.fyber.inneractive.sdk.util.l.a
public final Rect a() {
return new Rect();
}
}
public class b implements l.a<HashSet<View>> {
@Override // com.fyber.inneractive.sdk.util.l.a
public final HashSet<View> a() {
return new HashSet<>();
}
}
public static class c {
public static final b0 a = new b0();
}
public interface d {
void a(float f, Rect rect);
}
public static b0 b() {
return c.a;
}
public final void a(Context context, ViewGroup viewGroup, d dVar) {
View rootView;
ViewTreeObserver viewTreeObserver;
IAlog.a("%strackView called with context: %s view: %s", "IAVisibilityTracker: ", context, viewGroup);
if (context == null) {
throw new IllegalStateException("View must be attached to an Activity context");
}
Context applicationContext = context.getApplicationContext();
WeakHashMap<View, d> weakHashMap = this.b.get(applicationContext);
if (weakHashMap == null) {
weakHashMap = new WeakHashMap<>();
this.b.put(applicationContext, weakHashMap);
if (context instanceof Activity) {
Activity activity = (Activity) context;
if (activity.getWindow() != null) {
rootView = activity.getWindow().getDecorView();
viewTreeObserver = rootView.getViewTreeObserver();
if (viewTreeObserver != null && viewTreeObserver.isAlive()) {
c0 c0Var = new c0(this, applicationContext);
viewTreeObserver.addOnPreDrawListener(c0Var);
this.a.put(applicationContext, new Pair(viewTreeObserver, c0Var));
}
}
}
rootView = viewGroup.getRootView();
viewTreeObserver = rootView.getViewTreeObserver();
if (viewTreeObserver != null) {
c0 c0Var2 = new c0(this, applicationContext);
viewTreeObserver.addOnPreDrawListener(c0Var2);
this.a.put(applicationContext, new Pair(viewTreeObserver, c0Var2));
}
}
weakHashMap.put(viewGroup, dVar);
c();
}
public final void c() {
for (Context context : this.b.keySet()) {
IAlog.a("%stracking context: %s", "IAVisibilityTracker: ", context);
WeakHashMap<View, d> weakHashMap = this.b.get(context);
if (weakHashMap != null) {
Iterator<View> it = weakHashMap.keySet().iterator();
while (it.hasNext()) {
IAlog.a("%stracking view: %s", "IAVisibilityTracker: ", it.next());
}
}
}
}
public final void a(ViewGroup viewGroup) {
IAlog.a("%sunTrackView called with view", "IAVisibilityTracker: ");
if (viewGroup == null) {
IAlog.a("%sunTrackView called with a null view!", "IAVisibilityTracker: ");
return;
}
Context context = viewGroup.getContext();
if (context == null) {
IAlog.a("%sview.getContext() returned null!", "IAVisibilityTracker: ");
return;
}
WeakHashMap<View, d> weakHashMap = this.b.get(context);
if (weakHashMap != null) {
a(context, weakHashMap, viewGroup);
} else {
Iterator it = new HashSet(this.b.keySet()).iterator();
while (it.hasNext()) {
Context context2 = (Context) it.next();
WeakHashMap<View, d> weakHashMap2 = this.b.get(context2);
if (weakHashMap2 != null) {
a(context2, weakHashMap2, viewGroup);
}
}
}
c();
}
public final void a(Context context, Map map, ViewGroup viewGroup) {
if (map.remove(viewGroup) != null) {
if (IAlog.a <= 2) {
IAlog.e("removeViewFromContext found view for removal!", new Object[0]);
}
if (map.isEmpty()) {
this.b.remove(context);
Pair pair = (Pair) this.a.get(context);
if (pair != null) {
if (((ViewTreeObserver) pair.first).isAlive()) {
((ViewTreeObserver) pair.first).removeOnPreDrawListener((ViewTreeObserver.OnPreDrawListener) pair.second);
}
this.a.remove(context);
}
}
}
}
public final void a() {
this.b.clear();
Iterator it = this.a.keySet().iterator();
while (it.hasNext()) {
Pair pair = (Pair) this.a.get((Context) it.next());
if (pair != null && ((ViewTreeObserver) pair.first).isAlive()) {
((ViewTreeObserver) pair.first).removeOnPreDrawListener((ViewTreeObserver.OnPreDrawListener) pair.second);
}
}
this.a.clear();
}
}

View File

@@ -0,0 +1,18 @@
package com.fyber.inneractive.sdk.util;
import csdk.gluads.Consts;
/* loaded from: classes2.dex */
public final class b1 {
public static boolean a(String str, com.fyber.inneractive.sdk.model.vast.j jVar) {
String substring = str != null ? str.substring(str.lastIndexOf(Consts.STRING_PERIOD) + 1) : "";
String obj = jVar.toString();
if (obj.equalsIgnoreCase(substring)) {
return true;
}
if (substring.equals("jpeg") || substring.equals("jpg")) {
return obj.equals("Jpeg") || obj.equals("Jpg");
}
return false;
}
}

View File

@@ -0,0 +1,31 @@
package com.fyber.inneractive.sdk.util;
import android.os.Handler;
import android.os.Looper;
/* loaded from: classes2.dex */
public final class c implements Runnable {
public final /* synthetic */ Object[] a;
public final /* synthetic */ b b;
public c(b bVar, Object[] objArr) {
this.b = bVar;
this.a = objArr;
}
@Override // java.lang.Runnable
public final void run() {
Object a = this.b.a(this.a);
b bVar = this.b;
if (bVar.f) {
return;
}
bVar.c = new d(bVar, a);
if (bVar.b == null) {
synchronized (bVar.e) {
bVar.b = new Handler(Looper.getMainLooper());
}
}
bVar.b.post(this.b.c);
}
}

View File

@@ -0,0 +1,66 @@
package com.fyber.inneractive.sdk.util;
import android.content.Context;
import android.graphics.Rect;
import android.view.View;
import android.view.ViewTreeObserver;
import com.fyber.inneractive.sdk.util.b0;
import java.util.HashSet;
import java.util.Iterator;
import java.util.WeakHashMap;
/* loaded from: classes2.dex */
public final class c0 implements ViewTreeObserver.OnPreDrawListener {
public final /* synthetic */ Context a;
public final /* synthetic */ b0 b;
public c0(b0 b0Var, Context context) {
this.b = b0Var;
this.a = context;
}
@Override // android.view.ViewTreeObserver.OnPreDrawListener
public final boolean onPreDraw() {
float f;
b0 b0Var = this.b;
Context context = this.a;
if (context == null) {
b0Var.getClass();
return true;
}
WeakHashMap<View, b0.d> weakHashMap = b0Var.b.get(context);
if (weakHashMap == null) {
return true;
}
l<HashSet<View>> lVar = b0Var.d;
Object poll = lVar.a.poll();
if (poll == null) {
poll = lVar.b.a();
}
HashSet hashSet = (HashSet) poll;
hashSet.addAll(weakHashMap.keySet());
Iterator it = hashSet.iterator();
while (it.hasNext()) {
View view = (View) it.next();
b0.d dVar = weakHashMap.get(view);
if (dVar != null) {
l<Rect> lVar2 = b0Var.c;
Object poll2 = lVar2.a.poll();
if (poll2 == null) {
poll2 = lVar2.b.a();
}
Rect rect = (Rect) poll2;
if (view == null || view.getParent() == null || !view.isShown() || !view.getGlobalVisibleRect(rect)) {
f = 0.0f;
} else {
f = (rect.width() * rect.height()) / (view.getWidth() * view.getHeight());
}
dVar.a(f, rect);
b0Var.c.a.offer(rect);
}
}
hashSet.clear();
b0Var.d.a.offer(hashSet);
return true;
}
}

View File

@@ -0,0 +1,69 @@
package com.fyber.inneractive.sdk.util;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import android.os.SystemClock;
import java.lang.ref.WeakReference;
import java.util.concurrent.TimeUnit;
/* loaded from: classes2.dex */
public final class c1 {
public final TimeUnit a;
public final long b;
public a c;
public boolean d;
public b e;
public long f;
public static class a extends Handler {
public final WeakReference<c1> a;
public a(c1 c1Var) {
super(Looper.getMainLooper());
this.a = new WeakReference<>(c1Var);
}
@Override // android.os.Handler
public final void handleMessage(Message message) {
super.handleMessage(message);
c1 c1Var = this.a.get();
if (c1Var == null || message.what != 1932593528 || c1Var.d) {
return;
}
long when = message.getWhen();
long uptimeMillis = (SystemClock.uptimeMillis() - when) + 50 + c1Var.f;
c1Var.f = uptimeMillis;
if (c1Var.e != null && uptimeMillis > c1Var.a.toMillis(c1Var.b)) {
c1Var.e.a();
return;
}
a aVar = c1Var.c;
if (aVar == null || c1Var.e == null) {
return;
}
aVar.removeMessages(1932593528);
c1Var.c.sendEmptyMessageDelayed(1932593528, 50L);
}
}
public interface b {
void a();
}
public c1(TimeUnit timeUnit, long j) {
this.d = false;
this.f = 0L;
this.b = j;
this.a = timeUnit;
IAlog.a("Visible time counter init - time %d", Long.valueOf(j));
}
public c1(TimeUnit timeUnit, long j, long j2) {
this.d = false;
this.b = j;
this.a = timeUnit;
this.f = j2;
IAlog.a("Visible time counter init - time %d", Long.valueOf(j));
}
}

View File

@@ -0,0 +1,17 @@
package com.fyber.inneractive.sdk.util;
/* loaded from: classes2.dex */
public final class d implements Runnable {
public final /* synthetic */ Object a;
public final /* synthetic */ b b;
public d(b bVar, Object obj) {
this.b = bVar;
this.a = obj;
}
@Override // java.lang.Runnable
public final void run() {
this.b.a((b) this.a);
}
}

View File

@@ -0,0 +1,17 @@
package com.fyber.inneractive.sdk.util;
import android.webkit.WebView;
/* loaded from: classes2.dex */
public final class d0 implements Runnable {
public final /* synthetic */ WebView a;
public d0(WebView webView) {
this.a = webView;
}
@Override // java.lang.Runnable
public final void run() {
this.a.getSettings().setDisplayZoomControls(false);
}
}

View File

@@ -0,0 +1,62 @@
package com.fyber.inneractive.sdk.util;
import android.text.TextUtils;
import java.util.ArrayList;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
/* loaded from: classes2.dex */
public final class d1 {
public static Integer a(Node node, String str) {
String b = b(node, str);
if (TextUtils.isEmpty(b)) {
return null;
}
try {
return Integer.valueOf(b);
} catch (NumberFormatException unused) {
return null;
}
}
public static String b(Node node, String str) {
Node namedItem;
if (node == null || (namedItem = node.getAttributes().getNamedItem(str)) == null) {
return null;
}
return namedItem.getNodeValue();
}
public static ArrayList c(Node node, String str) {
ArrayList arrayList = new ArrayList();
NodeList childNodes = node.getChildNodes();
for (int i = 0; i < childNodes.getLength(); i++) {
Node item = childNodes.item(i);
if (item.getNodeName().equals(str)) {
arrayList.add(item);
}
}
return arrayList;
}
public static Node d(Node node, String str) {
if (node == null) {
return null;
}
NodeList childNodes = node.getChildNodes();
for (int i = 0; i < childNodes.getLength(); i++) {
Node item = childNodes.item(i);
if (item.getNodeName().equals(str)) {
return item;
}
}
return null;
}
public static String a(Node node) {
if (node == null || node.getFirstChild() == null || node.getFirstChild().getNodeValue() == null) {
return null;
}
return node.getFirstChild().getNodeValue().trim();
}
}

View File

@@ -0,0 +1,350 @@
package com.fyber.inneractive.sdk.util;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffColorFilter;
import android.renderscript.RSRuntimeException;
import androidx.core.view.MotionEventCompat;
import androidx.core.view.ViewCompat;
import java.lang.reflect.Array;
/* loaded from: classes2.dex */
public final class e {
public static Bitmap a(Context context, Bitmap bitmap, f fVar) {
Bitmap a;
int i = fVar.a;
int i2 = fVar.d;
int i3 = i / i2;
int i4 = fVar.b / i2;
int[] iArr = {i3, i4};
for (int i5 = 0; i5 < 2; i5++) {
if (iArr[i5] == 0) {
return null;
}
}
Bitmap createBitmap = Bitmap.createBitmap(i3, i4, Bitmap.Config.ARGB_8888);
Canvas canvas = new Canvas(createBitmap);
float f = 1.0f / fVar.d;
canvas.scale(f, f);
Paint paint = new Paint();
paint.setFlags(3);
paint.setColorFilter(new PorterDuffColorFilter(0, PorterDuff.Mode.SRC_ATOP));
canvas.drawBitmap(bitmap, 0.0f, 0.0f, paint);
try {
a = a(context, createBitmap, fVar.c);
} catch (RSRuntimeException unused) {
a = a(createBitmap, fVar.c);
}
if (fVar.d == 1) {
return a;
}
Bitmap createScaledBitmap = Bitmap.createScaledBitmap(a, fVar.a, fVar.b, true);
a.recycle();
return createScaledBitmap;
}
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Removed duplicated region for block: B:18:0x0052 */
/* JADX WARN: Removed duplicated region for block: B:20:0x0057 */
/* JADX WARN: Removed duplicated region for block: B:22:0x005c */
/* JADX WARN: Removed duplicated region for block: B:24:0x0061 */
/* JADX WARN: Type inference failed for: r0v3 */
/* JADX WARN: Type inference failed for: r0v5, types: [android.renderscript.BaseObj, android.renderscript.ScriptIntrinsicBlur] */
/* JADX WARN: Type inference failed for: r0v6 */
@android.annotation.TargetApi(18)
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static android.graphics.Bitmap a(android.content.Context r5, android.graphics.Bitmap r6, int r7) throws android.renderscript.RSRuntimeException {
/*
r0 = 0
android.renderscript.RenderScript r5 = android.renderscript.RenderScript.create(r5) // Catch: java.lang.Throwable -> L4c
android.renderscript.RenderScript$RSMessageHandler r1 = new android.renderscript.RenderScript$RSMessageHandler // Catch: java.lang.Throwable -> L48
r1.<init>() // Catch: java.lang.Throwable -> L48
r5.setMessageHandler(r1) // Catch: java.lang.Throwable -> L48
android.renderscript.Allocation$MipmapControl r1 = android.renderscript.Allocation.MipmapControl.MIPMAP_NONE // Catch: java.lang.Throwable -> L48
r2 = 1
android.renderscript.Allocation r1 = android.renderscript.Allocation.createFromBitmap(r5, r6, r1, r2) // Catch: java.lang.Throwable -> L48
android.renderscript.Type r2 = r1.getType() // Catch: java.lang.Throwable -> L43
android.renderscript.Allocation r2 = android.renderscript.Allocation.createTyped(r5, r2) // Catch: java.lang.Throwable -> L43
android.renderscript.Element r3 = android.renderscript.Element.U8_4(r5) // Catch: java.lang.Throwable -> L3e
android.renderscript.ScriptIntrinsicBlur r0 = android.renderscript.ScriptIntrinsicBlur.create(r5, r3) // Catch: java.lang.Throwable -> L3e
r0.setInput(r1) // Catch: java.lang.Throwable -> L3e
float r7 = (float) r7 // Catch: java.lang.Throwable -> L3e
r0.setRadius(r7) // Catch: java.lang.Throwable -> L3e
r0.forEach(r2) // Catch: java.lang.Throwable -> L3e
r2.copyTo(r6) // Catch: java.lang.Throwable -> L3e
r5.destroy()
r1.destroy()
r2.destroy()
r0.destroy()
return r6
L3e:
r6 = move-exception
r4 = r0
r0 = r5
r5 = r4
goto L50
L43:
r6 = move-exception
r2 = r0
L45:
r0 = r5
r5 = r2
goto L50
L48:
r6 = move-exception
r1 = r0
r2 = r1
goto L45
L4c:
r6 = move-exception
r5 = r0
r1 = r5
r2 = r1
L50:
if (r0 == 0) goto L55
r0.destroy()
L55:
if (r1 == 0) goto L5a
r1.destroy()
L5a:
if (r2 == 0) goto L5f
r2.destroy()
L5f:
if (r5 == 0) goto L64
r5.destroy()
L64:
throw r6
*/
throw new UnsupportedOperationException("Method not decompiled: com.fyber.inneractive.sdk.util.e.a(android.content.Context, android.graphics.Bitmap, int):android.graphics.Bitmap");
}
public static Bitmap a(Bitmap bitmap, int i) {
int[] iArr;
int i2 = i;
if (i2 < 1) {
return null;
}
int width = bitmap.getWidth();
int height = bitmap.getHeight();
int i3 = width * height;
int[] iArr2 = new int[i3];
bitmap.getPixels(iArr2, 0, width, 0, 0, width, height);
int i4 = width - 1;
int i5 = height - 1;
int i6 = i2 + i2;
int i7 = i6 + 1;
int[] iArr3 = new int[i3];
int[] iArr4 = new int[i3];
int[] iArr5 = new int[i3];
int[] iArr6 = new int[Math.max(width, height)];
int i8 = (i6 + 2) >> 1;
int i9 = i8 * i8;
int i10 = i9 * 256;
int[] iArr7 = new int[i10];
for (int i11 = 0; i11 < i10; i11++) {
iArr7[i11] = i11 / i9;
}
int[][] iArr8 = (int[][]) Array.newInstance((Class<?>) Integer.TYPE, i7, 3);
int i12 = i2 + 1;
int i13 = 0;
int i14 = 0;
int i15 = 0;
while (i13 < height) {
int i16 = -i2;
int i17 = 0;
int i18 = 0;
int i19 = 0;
int i20 = 0;
int i21 = 0;
int i22 = 0;
int i23 = 0;
int i24 = 0;
int i25 = 0;
while (i16 <= i2) {
int i26 = i5;
int i27 = height;
int i28 = iArr2[Math.min(i4, Math.max(i16, 0)) + i14];
int[] iArr9 = iArr8[i16 + i2];
iArr9[0] = (i28 & 16711680) >> 16;
iArr9[1] = (i28 & MotionEventCompat.ACTION_POINTER_INDEX_MASK) >> 8;
iArr9[2] = i28 & 255;
int abs = i12 - Math.abs(i16);
int i29 = iArr9[0];
i17 = (i29 * abs) + i17;
int i30 = iArr9[1];
i18 = (i30 * abs) + i18;
int i31 = iArr9[2];
i19 = (abs * i31) + i19;
if (i16 > 0) {
i23 += i29;
i25 += i30;
i24 += i31;
} else {
i22 += i29;
i21 += i30;
i20 += i31;
}
i16++;
height = i27;
i5 = i26;
}
int i32 = i5;
int i33 = height;
int i34 = i2;
int i35 = 0;
while (i35 < width) {
iArr3[i14] = iArr7[i17];
iArr4[i14] = iArr7[i18];
iArr5[i14] = iArr7[i19];
int i36 = i17 - i22;
int i37 = i18 - i21;
int i38 = i19 - i20;
int[] iArr10 = iArr8[((i34 - i2) + i7) % i7];
int i39 = i22 - iArr10[0];
int i40 = i21 - iArr10[1];
int i41 = i20 - iArr10[2];
if (i13 == 0) {
iArr = iArr7;
iArr6[i35] = Math.min(i35 + i2 + 1, i4);
} else {
iArr = iArr7;
}
int i42 = iArr2[i15 + iArr6[i35]];
int i43 = (i42 & 16711680) >> 16;
iArr10[0] = i43;
int i44 = (i42 & MotionEventCompat.ACTION_POINTER_INDEX_MASK) >> 8;
iArr10[1] = i44;
int i45 = i42 & 255;
iArr10[2] = i45;
int i46 = i23 + i43;
int i47 = i25 + i44;
int i48 = i24 + i45;
i17 = i36 + i46;
i18 = i37 + i47;
i19 = i38 + i48;
i34 = (i34 + 1) % i7;
int[] iArr11 = iArr8[i34 % i7];
int i49 = iArr11[0];
i22 = i39 + i49;
int i50 = iArr11[1];
i21 = i40 + i50;
int i51 = iArr11[2];
i20 = i41 + i51;
i23 = i46 - i49;
i25 = i47 - i50;
i24 = i48 - i51;
i14++;
i35++;
iArr7 = iArr;
}
i15 += width;
i13++;
height = i33;
i5 = i32;
}
int i52 = i5;
int i53 = height;
int[] iArr12 = iArr7;
int i54 = 0;
while (i54 < width) {
int i55 = -i2;
int i56 = i55 * width;
int i57 = 0;
int i58 = 0;
int i59 = 0;
int i60 = 0;
int i61 = 0;
int i62 = 0;
int i63 = 0;
int i64 = 0;
int i65 = 0;
while (i55 <= i2) {
int[] iArr13 = iArr6;
int max = Math.max(0, i56) + i54;
int[] iArr14 = iArr8[i55 + i2];
iArr14[0] = iArr3[max];
iArr14[1] = iArr4[max];
iArr14[2] = iArr5[max];
int abs2 = i12 - Math.abs(i55);
i57 = (iArr3[max] * abs2) + i57;
i58 = (iArr4[max] * abs2) + i58;
i59 = (iArr5[max] * abs2) + i59;
if (i55 > 0) {
i63 += iArr14[0];
i65 += iArr14[1];
i64 += iArr14[2];
} else {
i62 += iArr14[0];
i61 += iArr14[1];
i60 += iArr14[2];
}
int i66 = i52;
if (i55 < i66) {
i56 += width;
}
i55++;
i52 = i66;
iArr6 = iArr13;
}
int[] iArr15 = iArr6;
int i67 = i52;
int i68 = i2;
int i69 = i54;
int i70 = i53;
int i71 = 0;
while (i71 < i70) {
iArr2[i69] = (iArr2[i69] & ViewCompat.MEASURED_STATE_MASK) | (iArr12[i57] << 16) | (iArr12[i58] << 8) | iArr12[i59];
int i72 = i57 - i62;
int i73 = i58 - i61;
int i74 = i59 - i60;
int[] iArr16 = iArr8[((i68 - i2) + i7) % i7];
int i75 = i62 - iArr16[0];
int i76 = i61 - iArr16[1];
int i77 = i60 - iArr16[2];
if (i54 == 0) {
iArr15[i71] = Math.min(i71 + i12, i67) * width;
}
int i78 = iArr15[i71] + i54;
int i79 = iArr3[i78];
iArr16[0] = i79;
int i80 = iArr4[i78];
iArr16[1] = i80;
int i81 = iArr5[i78];
iArr16[2] = i81;
int i82 = i63 + i79;
int i83 = i65 + i80;
int i84 = i64 + i81;
i57 = i72 + i82;
i58 = i73 + i83;
i59 = i74 + i84;
i68 = (i68 + 1) % i7;
int[] iArr17 = iArr8[i68];
int i85 = iArr17[0];
i62 = i75 + i85;
int i86 = iArr17[1];
i61 = i76 + i86;
int i87 = iArr17[2];
i60 = i77 + i87;
i63 = i82 - i85;
i65 = i83 - i86;
i64 = i84 - i87;
i69 += width;
i71++;
i2 = i;
}
i54++;
i2 = i;
i53 = i70;
i52 = i67;
iArr6 = iArr15;
}
bitmap.setPixels(iArr2, 0, width, 0, 0, width, i53);
return bitmap;
}
}

View File

@@ -0,0 +1,11 @@
package com.fyber.inneractive.sdk.util;
import android.view.View;
/* loaded from: classes2.dex */
public final class e0 implements View.OnLongClickListener {
@Override // android.view.View.OnLongClickListener
public final boolean onLongClick(View view) {
return true;
}
}

View File

@@ -0,0 +1,9 @@
package com.fyber.inneractive.sdk.util;
/* loaded from: classes2.dex */
public final class f {
public int a;
public int b;
public int c = 20;
public int d = 1;
}

View File

@@ -0,0 +1,205 @@
package com.fyber.inneractive.sdk.util;
import com.facebook.AuthenticationTokenClaims;
import com.facebook.appevents.UserDataStore;
import com.fyber.inneractive.sdk.util.g0;
import com.ironsource.ad;
import com.ironsource.nb;
import java.util.HashMap;
/* loaded from: classes2.dex */
public final class f0 {
public static final String[][] b;
public static final String[][] c;
public static final String[][] d;
public static final String[][] e = {new String[]{"fnof", "402"}, new String[]{"Alpha", "913"}, new String[]{"Beta", "914"}, new String[]{"Gamma", "915"}, new String[]{"Delta", "916"}, new String[]{"Epsilon", "917"}, new String[]{"Zeta", "918"}, new String[]{"Eta", "919"}, new String[]{"Theta", "920"}, new String[]{"Iota", "921"}, new String[]{"Kappa", "922"}, new String[]{"Lambda", "923"}, new String[]{"Mu", "924"}, new String[]{"Nu", "925"}, new String[]{"Xi", "926"}, new String[]{"Omicron", "927"}, new String[]{"Pi", "928"}, new String[]{"Rho", "929"}, new String[]{"Sigma", "931"}, new String[]{"Tau", "932"}, new String[]{"Upsilon", "933"}, new String[]{"Phi", "934"}, new String[]{"Chi", "935"}, new String[]{"Psi", "936"}, new String[]{"Omega", "937"}, new String[]{"alpha", "945"}, new String[]{"beta", "946"}, new String[]{"gamma", "947"}, new String[]{"delta", "948"}, new String[]{"epsilon", "949"}, new String[]{"zeta", "950"}, new String[]{"eta", "951"}, new String[]{"theta", "952"}, new String[]{"iota", "953"}, new String[]{"kappa", "954"}, new String[]{"lambda", "955"}, new String[]{"mu", "956"}, new String[]{"nu", "957"}, new String[]{"xi", "958"}, new String[]{"omicron", "959"}, new String[]{"pi", "960"}, new String[]{"rho", "961"}, new String[]{"sigmaf", "962"}, new String[]{"sigma", "963"}, new String[]{"tau", "964"}, new String[]{"upsilon", "965"}, new String[]{"phi", "966"}, new String[]{"chi", "967"}, new String[]{"psi", "968"}, new String[]{"omega", "969"}, new String[]{"thetasym", "977"}, new String[]{"upsih", "978"}, new String[]{"piv", "982"}, new String[]{"bull", "8226"}, new String[]{"hellip", "8230"}, new String[]{"prime", "8242"}, new String[]{"Prime", "8243"}, new String[]{"oline", "8254"}, new String[]{"frasl", "8260"}, new String[]{"weierp", "8472"}, new String[]{"image", "8465"}, new String[]{"real", "8476"}, new String[]{"trade", "8482"}, new String[]{"alefsym", "8501"}, new String[]{"larr", "8592"}, new String[]{"uarr", "8593"}, new String[]{"rarr", "8594"}, new String[]{"darr", "8595"}, new String[]{"harr", "8596"}, new String[]{"crarr", "8629"}, new String[]{"lArr", "8656"}, new String[]{"uArr", "8657"}, new String[]{"rArr", "8658"}, new String[]{"dArr", "8659"}, new String[]{"hArr", "8660"}, new String[]{"forall", "8704"}, new String[]{"part", "8706"}, new String[]{"exist", "8707"}, new String[]{"empty", "8709"}, new String[]{"nabla", "8711"}, new String[]{"isin", "8712"}, new String[]{"notin", "8713"}, new String[]{"ni", "8715"}, new String[]{nb.t, "8719"}, new String[]{"sum", "8721"}, new String[]{"minus", "8722"}, new String[]{"lowast", "8727"}, new String[]{"radic", "8730"}, new String[]{"prop", "8733"}, new String[]{"infin", "8734"}, new String[]{"ang", "8736"}, new String[]{"and", "8743"}, new String[]{"or", "8744"}, new String[]{"cap", "8745"}, new String[]{"cup", "8746"}, new String[]{"int", "8747"}, new String[]{"there4", "8756"}, new String[]{"sim", "8764"}, new String[]{"cong", "8773"}, new String[]{"asymp", "8776"}, new String[]{"ne", "8800"}, new String[]{"equiv", "8801"}, new String[]{"le", "8804"}, new String[]{UserDataStore.GENDER, "8805"}, new String[]{AuthenticationTokenClaims.JSON_KEY_SUB, "8834"}, new String[]{"sup", "8835"}, new String[]{"sube", "8838"}, new String[]{"supe", "8839"}, new String[]{"oplus", "8853"}, new String[]{"otimes", "8855"}, new String[]{"perp", "8869"}, new String[]{"sdot", "8901"}, new String[]{"lceil", "8968"}, new String[]{"rceil", "8969"}, new String[]{"lfloor", "8970"}, new String[]{"rfloor", "8971"}, new String[]{ad.p, "9001"}, new String[]{"rang", "9002"}, new String[]{"loz", "9674"}, new String[]{"spades", "9824"}, new String[]{"clubs", "9827"}, new String[]{"hearts", "9829"}, new String[]{"diams", "9830"}, new String[]{"OElig", "338"}, new String[]{"oelig", "339"}, new String[]{"Scaron", "352"}, new String[]{"scaron", "353"}, new String[]{"Yuml", "376"}, new String[]{"circ", "710"}, new String[]{"tilde", "732"}, new String[]{"ensp", "8194"}, new String[]{"emsp", "8195"}, new String[]{"thinsp", "8201"}, new String[]{"zwnj", "8204"}, new String[]{"zwj", "8205"}, new String[]{"lrm", "8206"}, new String[]{"rlm", "8207"}, new String[]{"ndash", "8211"}, new String[]{"mdash", "8212"}, new String[]{"lsquo", "8216"}, new String[]{"rsquo", "8217"}, new String[]{"sbquo", "8218"}, new String[]{"ldquo", "8220"}, new String[]{"rdquo", "8221"}, new String[]{"bdquo", "8222"}, new String[]{"dagger", "8224"}, new String[]{"Dagger", "8225"}, new String[]{"permil", "8240"}, new String[]{"lsaquo", "8249"}, new String[]{"rsaquo", "8250"}, new String[]{"euro", "8364"}};
public static final f0 f;
public static final f0 g;
public final a a = new a();
public static class a extends b {
}
public static class b {
public final HashMap a = new HashMap();
public final g0 b = new g0();
}
public static void a(f0 f0Var) {
f0Var.a(b);
f0Var.a(d);
f0Var.a(e);
f0Var.a(c);
}
public final void a(String[][] strArr) {
char c2 = 0;
int i = 0;
while (i < strArr.length) {
String[] strArr2 = strArr[i];
String str = strArr2[c2];
int parseInt = Integer.parseInt(strArr2[1]);
a aVar = this.a;
aVar.a.put(str, Integer.valueOf(parseInt));
g0 g0Var = aVar.b;
g0.a[] aVarArr = g0Var.a;
int i2 = Integer.MAX_VALUE;
int i3 = parseInt & Integer.MAX_VALUE;
int length = i3 % aVarArr.length;
g0.a aVar2 = aVarArr[length];
while (true) {
if (aVar2 != null) {
if (aVar2.a == parseInt) {
aVar2.b = str;
break;
}
aVar2 = aVar2.c;
} else {
if (g0Var.b >= g0Var.c) {
g0.a[] aVarArr2 = g0Var.a;
int length2 = aVarArr2.length;
int i4 = (length2 * 2) + 1;
g0.a[] aVarArr3 = new g0.a[i4];
g0Var.c = (int) (i4 * 0.75f);
g0Var.a = aVarArr3;
while (true) {
int i5 = length2 - 1;
if (length2 <= 0) {
break;
}
g0.a aVar3 = aVarArr2[i5];
while (aVar3 != null) {
g0.a aVar4 = aVar3.c;
int i6 = (aVar3.a & i2) % i4;
aVar3.c = aVarArr3[i6];
aVarArr3[i6] = aVar3;
aVar3 = aVar4;
i2 = Integer.MAX_VALUE;
}
length2 = i5;
}
aVarArr = g0Var.a;
length = i3 % aVarArr.length;
}
aVarArr[length] = new g0.a(parseInt, str, aVarArr[length]);
g0Var.b++;
}
}
i++;
c2 = 0;
}
}
/* JADX WARN: Code restructure failed: missing block: B:27:0x0068, code lost:
if (r2 > 65535) goto L29;
*/
/* JADX WARN: Removed duplicated region for block: B:29:0x007f */
/* JADX WARN: Removed duplicated region for block: B:32:0x0089 */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void a(java.io.StringWriter r11, java.lang.String r12, int r13) throws java.io.IOException {
/*
r10 = this;
r0 = 0
r11.write(r12, r0, r13)
int r1 = r12.length()
L8:
if (r13 >= r1) goto L94
char r2 = r12.charAt(r13)
r3 = 38
r4 = 1
if (r2 != r3) goto L8e
int r5 = r13 + 1
r6 = 59
int r7 = r12.indexOf(r6, r5)
r8 = -1
if (r7 != r8) goto L23
r11.write(r2)
goto L91
L23:
int r9 = r12.indexOf(r3, r5)
if (r9 == r8) goto L2f
if (r9 >= r7) goto L2f
r11.write(r2)
goto L91
L2f:
java.lang.String r13 = r12.substring(r5, r7)
int r2 = r13.length()
if (r2 <= 0) goto L75
char r5 = r13.charAt(r0)
r9 = 35
if (r5 != r9) goto L6b
if (r2 <= r4) goto L75
char r2 = r13.charAt(r4)
r5 = 88
if (r2 == r5) goto L5a
r5 = 120(0x78, float:1.68E-43)
if (r2 == r5) goto L5a
java.lang.String r2 = r13.substring(r4) // Catch: java.lang.NumberFormatException -> L75
r5 = 10
int r2 = java.lang.Integer.parseInt(r2, r5) // Catch: java.lang.NumberFormatException -> L75
goto L65
L5a:
r2 = 2
java.lang.String r2 = r13.substring(r2) // Catch: java.lang.NumberFormatException -> L75
r5 = 16
int r2 = java.lang.Integer.parseInt(r2, r5) // Catch: java.lang.NumberFormatException -> L75
L65:
r5 = 65535(0xffff, float:9.1834E-41)
if (r2 <= r5) goto L7d
goto L75
L6b:
com.fyber.inneractive.sdk.util.f0$a r2 = r10.a
java.util.HashMap r2 = r2.a
java.lang.Object r2 = r2.get(r13)
if (r2 != 0) goto L77
L75:
r2 = r8
goto L7d
L77:
java.lang.Integer r2 = (java.lang.Integer) r2
int r2 = r2.intValue()
L7d:
if (r2 != r8) goto L89
r11.write(r3)
r11.write(r13)
r11.write(r6)
goto L8c
L89:
r11.write(r2)
L8c:
r13 = r7
goto L91
L8e:
r11.write(r2)
L91:
int r13 = r13 + r4
goto L8
L94:
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.fyber.inneractive.sdk.util.f0.a(java.io.StringWriter, java.lang.String, int):void");
}
static {
String[][] strArr = {new String[]{"quot", "34"}, new String[]{"amp", "38"}, new String[]{"lt", "60"}, new String[]{"gt", "62"}};
b = strArr;
String[][] strArr2 = {new String[]{"apos", "39"}};
c = strArr2;
String[][] strArr3 = {new String[]{"nbsp", "160"}, new String[]{"iexcl", "161"}, new String[]{"cent", "162"}, new String[]{"pound", "163"}, new String[]{"curren", "164"}, new String[]{"yen", "165"}, new String[]{"brvbar", "166"}, new String[]{"sect", "167"}, new String[]{"uml", "168"}, new String[]{"copy", "169"}, new String[]{"ordf", "170"}, new String[]{"laquo", "171"}, new String[]{"not", "172"}, new String[]{"shy", "173"}, new String[]{"reg", "174"}, new String[]{"macr", "175"}, new String[]{"deg", "176"}, new String[]{"plusmn", "177"}, new String[]{"sup2", "178"}, new String[]{"sup3", "179"}, new String[]{"acute", "180"}, new String[]{"micro", "181"}, new String[]{"para", "182"}, new String[]{"middot", "183"}, new String[]{"cedil", "184"}, new String[]{"sup1", "185"}, new String[]{"ordm", "186"}, new String[]{"raquo", "187"}, new String[]{"frac14", "188"}, new String[]{"frac12", "189"}, new String[]{"frac34", "190"}, new String[]{"iquest", "191"}, new String[]{"Agrave", "192"}, new String[]{"Aacute", "193"}, new String[]{"Acirc", "194"}, new String[]{"Atilde", "195"}, new String[]{"Auml", "196"}, new String[]{"Aring", "197"}, new String[]{"AElig", "198"}, new String[]{"Ccedil", "199"}, new String[]{"Egrave", "200"}, new String[]{"Eacute", "201"}, new String[]{"Ecirc", "202"}, new String[]{"Euml", "203"}, new String[]{"Igrave", "204"}, new String[]{"Iacute", "205"}, new String[]{"Icirc", "206"}, new String[]{"Iuml", "207"}, new String[]{"ETH", "208"}, new String[]{"Ntilde", "209"}, new String[]{"Ograve", "210"}, new String[]{"Oacute", "211"}, new String[]{"Ocirc", "212"}, new String[]{"Otilde", "213"}, new String[]{"Ouml", "214"}, new String[]{"times", "215"}, new String[]{"Oslash", "216"}, new String[]{"Ugrave", "217"}, new String[]{"Uacute", "218"}, new String[]{"Ucirc", "219"}, new String[]{"Uuml", "220"}, new String[]{"Yacute", "221"}, new String[]{"THORN", "222"}, new String[]{"szlig", "223"}, new String[]{"agrave", "224"}, new String[]{"aacute", "225"}, new String[]{"acirc", "226"}, new String[]{"atilde", "227"}, new String[]{"auml", "228"}, new String[]{"aring", "229"}, new String[]{"aelig", "230"}, new String[]{"ccedil", "231"}, new String[]{"egrave", "232"}, new String[]{"eacute", "233"}, new String[]{"ecirc", "234"}, new String[]{"euml", "235"}, new String[]{"igrave", "236"}, new String[]{"iacute", "237"}, new String[]{"icirc", "238"}, new String[]{"iuml", "239"}, new String[]{"eth", "240"}, new String[]{"ntilde", "241"}, new String[]{"ograve", "242"}, new String[]{"oacute", "243"}, new String[]{"ocirc", "244"}, new String[]{"otilde", "245"}, new String[]{"ouml", "246"}, new String[]{"divide", "247"}, new String[]{"oslash", "248"}, new String[]{"ugrave", "249"}, new String[]{"uacute", "250"}, new String[]{"ucirc", "251"}, new String[]{"uuml", "252"}, new String[]{"yacute", "253"}, new String[]{"thorn", "254"}, new String[]{"yuml", "255"}};
d = strArr3;
f0 f0Var = new f0();
f = f0Var;
f0Var.a(strArr);
f0Var.a(strArr2);
f0 f0Var2 = new f0();
f0Var2.a(strArr);
f0Var2.a(strArr3);
f0 f0Var3 = new f0();
g = f0Var3;
a(f0Var3);
}
}

View File

@@ -0,0 +1,20 @@
package com.fyber.inneractive.sdk.util;
import java.nio.ByteBuffer;
import java.util.concurrent.ConcurrentLinkedQueue;
/* loaded from: classes2.dex */
public final class g {
public static final g b = new g();
public final ConcurrentLinkedQueue a = new ConcurrentLinkedQueue();
public g() {
for (int i = 0; i < 2; i++) {
this.a.offer(a());
}
}
public static ByteBuffer a() {
return ByteBuffer.allocateDirect(16384);
}
}

View File

@@ -0,0 +1,29 @@
package com.fyber.inneractive.sdk.util;
/* loaded from: classes2.dex */
public final class g0 {
public transient a[] a;
public transient int b;
public int c;
public static class a {
public final int a;
public Object b;
public a c;
public a(int i, String str, a aVar) {
this.a = i;
this.b = str;
this.c = aVar;
}
}
public g0() {
this(0);
}
public g0(int i) {
this.a = new a[20];
this.c = (int) (20 * 0.75f);
}
}

View File

@@ -0,0 +1,39 @@
package com.fyber.inneractive.sdk.util;
import java.util.Locale;
/* loaded from: classes2.dex */
public enum h {
DISPLAY("DISPLAY"),
VIDEO_CTA("VIDEO_CTA"),
VIDEO_CLICK("VIDEO_CLICK"),
VAST_ENDCARD("VAST_ENDCARD"),
DEFAULT_ENDCARD("DEFAULT_ENDCARD"),
VIDEO_APP_INFO("VIDEO_APP_INFO"),
FMP_ENDCARD("FMP_ENDCARD");
private final String key;
private String mVersion = "";
private int mOrderShown = 0;
h(String str) {
this.key = str;
}
public final void a(int i) {
this.mOrderShown = i;
}
public final void a(String str) {
this.mVersion = str;
}
public final String e() {
return this.mVersion;
}
@Override // java.lang.Enum
public final String toString() {
return ((this == FMP_ENDCARD && this.mOrderShown == 1) || this.mOrderShown == 2) ? String.format(Locale.US, "%s_%d", this.key, Integer.valueOf(this.mOrderShown)) : this.key;
}
}

View File

@@ -0,0 +1,41 @@
package com.fyber.inneractive.sdk.util;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.concurrent.atomic.AtomicInteger;
/* loaded from: classes2.dex */
public final class h0 extends BufferedInputStream {
public final /* synthetic */ AtomicInteger a;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public h0(InputStream inputStream, AtomicInteger atomicInteger) {
super(inputStream);
this.a = atomicInteger;
}
@Override // java.io.BufferedInputStream, java.io.FilterInputStream, java.io.InputStream
public final synchronized int read(byte[] bArr, int i, int i2) throws IOException {
int read;
read = super.read(bArr, i, i2);
if (read != -1) {
this.a.getAndAdd(read);
}
return read;
}
@Override // java.io.BufferedInputStream, java.io.FilterInputStream, java.io.InputStream
public final synchronized void reset() throws IOException {
this.a.set(0);
super.reset();
}
@Override // java.io.BufferedInputStream, java.io.FilterInputStream, java.io.InputStream
public final synchronized long skip(long j) throws IOException {
long skip;
skip = super.skip(j);
this.a.addAndGet((int) skip);
return skip;
}
}

View File

@@ -0,0 +1,42 @@
package com.fyber.inneractive.sdk.util;
import android.graphics.Bitmap;
import android.media.MediaMetadataRetriever;
import com.fyber.inneractive.sdk.player.cache.j;
import java.io.File;
/* loaded from: classes2.dex */
public final class i implements j.f {
public File a;
public Bitmap b;
public final void a(File file) {
long currentTimeMillis = System.currentTimeMillis();
MediaMetadataRetriever mediaMetadataRetriever = new MediaMetadataRetriever();
try {
try {
try {
mediaMetadataRetriever.setDataSource(file.getPath());
mediaMetadataRetriever.extractMetadata(8192);
Bitmap frameAtTime = mediaMetadataRetriever.getFrameAtTime(1L);
this.b = frameAtTime;
if (frameAtTime != null && frameAtTime.getWidth() > 0 && this.b.getHeight() > 0) {
this.a = file;
}
mediaMetadataRetriever.release();
} catch (Throwable th) {
try {
mediaMetadataRetriever.release();
} catch (Throwable unused) {
}
throw th;
}
} catch (Exception e) {
IAlog.a("Failed getting frame from video file%s", t.a(e));
mediaMetadataRetriever.release();
}
} catch (Throwable unused2) {
}
IAlog.e("FirstFrameDownloadMediaProcessor processing finished in %dms", Long.valueOf(System.currentTimeMillis() - currentTimeMillis));
}
}

View File

@@ -0,0 +1,25 @@
package com.fyber.inneractive.sdk.util;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.util.Base64;
import java.io.ByteArrayOutputStream;
/* loaded from: classes2.dex */
public final class i0 {
public static String a(Bitmap bitmap) {
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
bitmap.compress(Bitmap.CompressFormat.PNG, 100, byteArrayOutputStream);
return Base64.encodeToString(byteArrayOutputStream.toByteArray(), 0);
}
public static Bitmap a(String str) {
try {
byte[] decode = Base64.decode(str, 0);
return BitmapFactory.decodeByteArray(decode, 0, decode.length);
} catch (Exception e) {
IAlog.a("IAimageLoaderUtil failed stringToBitMap with %s", e.getMessage());
return null;
}
}
}

View File

@@ -0,0 +1,10 @@
package com.fyber.inneractive.sdk.util;
import com.fyber.inneractive.sdk.config.enums.UnitDisplayType;
/* loaded from: classes2.dex */
public final class j {
public static boolean a(UnitDisplayType unitDisplayType, com.fyber.inneractive.sdk.config.k kVar) {
return !(unitDisplayType == null || unitDisplayType.isFullscreenUnit()) || kVar.a(true, "use_fraud_detection_fullscreen");
}
}

View File

@@ -0,0 +1,8 @@
package com.fyber.inneractive.sdk.util;
import com.fyber.inneractive.sdk.external.OnGlobalImpressionDataListener;
/* loaded from: classes2.dex */
public final class j0 {
public OnGlobalImpressionDataListener a = null;
}

View File

@@ -0,0 +1,8 @@
package com.fyber.inneractive.sdk.util;
import java.util.PriorityQueue;
/* loaded from: classes2.dex */
public final class k {
public final PriorityQueue a = new PriorityQueue();
}

View File

@@ -0,0 +1,79 @@
package com.fyber.inneractive.sdk.util;
import com.ironsource.r8;
/* loaded from: classes2.dex */
public enum k0 {
UNKNOWN(""),
ETHERNET(r8.a),
WIFI("wifi"),
MOBILE_3G(r8.a),
MOBILE_4G("4g");
final String key;
k0(String str) {
this.key = str;
}
public final String f() {
return this.key;
}
/* JADX WARN: Removed duplicated region for block: B:31:0x0048 */
/* JADX WARN: Removed duplicated region for block: B:9:0x0023 */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static com.fyber.inneractive.sdk.util.k0 e() {
/*
android.app.Application r0 = com.fyber.inneractive.sdk.util.o.a // Catch: java.lang.Exception -> L1d
java.lang.String r1 = "connectivity"
java.lang.Object r0 = r0.getSystemService(r1) // Catch: java.lang.Exception -> L1d
android.net.ConnectivityManager r0 = (android.net.ConnectivityManager) r0 // Catch: java.lang.Exception -> L1d
java.lang.String r1 = "android.permission.ACCESS_NETWORK_STATE"
boolean r1 = com.fyber.inneractive.sdk.util.o.b(r1) // Catch: java.lang.Exception -> L1d
if (r1 == 0) goto L1d
android.net.NetworkInfo r0 = r0.getActiveNetworkInfo() // Catch: java.lang.Exception -> L1d
if (r0 == 0) goto L1d
int r0 = r0.getType() // Catch: java.lang.Exception -> L1d
goto L1f
L1d:
r0 = 8
L1f:
r1 = 9
if (r0 == r1) goto L48
if (r0 == 0) goto L3a
r1 = 1
if (r0 == r1) goto L37
r1 = 2
if (r0 == r1) goto L3a
r1 = 3
if (r0 == r1) goto L3a
r1 = 4
if (r0 == r1) goto L3a
r1 = 5
if (r0 == r1) goto L3a
com.fyber.inneractive.sdk.util.k0 r0 = com.fyber.inneractive.sdk.util.k0.UNKNOWN
return r0
L37:
com.fyber.inneractive.sdk.util.k0 r0 = com.fyber.inneractive.sdk.util.k0.WIFI
return r0
L3a:
int r0 = com.fyber.inneractive.sdk.util.m.l()
r1 = 13
if (r0 != r1) goto L45
com.fyber.inneractive.sdk.util.k0 r0 = com.fyber.inneractive.sdk.util.k0.MOBILE_4G
goto L47
L45:
com.fyber.inneractive.sdk.util.k0 r0 = com.fyber.inneractive.sdk.util.k0.MOBILE_3G
L47:
return r0
L48:
com.fyber.inneractive.sdk.util.k0 r0 = com.fyber.inneractive.sdk.util.k0.ETHERNET
return r0
*/
throw new UnsupportedOperationException("Method not decompiled: com.fyber.inneractive.sdk.util.k0.e():com.fyber.inneractive.sdk.util.k0");
}
}

View File

@@ -0,0 +1,20 @@
package com.fyber.inneractive.sdk.util;
import java.util.concurrent.ConcurrentLinkedQueue;
/* loaded from: classes2.dex */
public final class l<T> {
public final ConcurrentLinkedQueue a = new ConcurrentLinkedQueue();
public final a<T> b;
public interface a<TT> {
TT a();
}
public l(int i, a<T> aVar) {
for (int i2 = 0; i2 < i; i2++) {
this.a.offer(aVar.a());
}
this.b = aVar;
}
}

View File

@@ -0,0 +1,15 @@
package com.fyber.inneractive.sdk.util;
import com.fyber.inneractive.sdk.external.InneractiveAdSpot;
/* loaded from: classes2.dex */
public final class l0 {
public final InneractiveAdSpot a;
public long b = 0;
public long c = 0;
public long d = 0;
public l0(InneractiveAdSpot inneractiveAdSpot) {
this.a = inneractiveAdSpot;
}
}

View File

@@ -0,0 +1,70 @@
package com.fyber.inneractive.sdk.util;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Build;
import android.telephony.TelephonyManager;
/* loaded from: classes2.dex */
public final class m extends o {
public static String k() {
return Build.MANUFACTURER + " " + Build.MODEL;
}
@SuppressLint({"MissingPermission"})
public static int l() {
try {
if (o.b("android.permission.READ_PHONE_STATE")) {
return ((TelephonyManager) o.a.getSystemService("phone")).getDataNetworkType();
}
return 0;
} catch (Throwable unused) {
return 0;
}
}
public static boolean p() {
try {
return o.a.getPackageManager().queryIntentActivities(new Intent("android.intent.action.INSERT").setType("vnd.android.cursor.item/event"), 0).size() > 0;
} catch (Throwable unused) {
return false;
}
}
public static String j() {
try {
return ((TelephonyManager) o.a.getSystemService("phone")).getNetworkCountryIso();
} catch (Exception unused) {
return null;
}
}
public static String m() {
TelephonyManager telephonyManager;
try {
TelephonyManager telephonyManager2 = (TelephonyManager) o.a.getSystemService("phone");
String networkOperator = telephonyManager2.getNetworkOperator();
return (telephonyManager2.getPhoneType() == 2 && (telephonyManager = (TelephonyManager) o.a.getSystemService("phone")) != null && telephonyManager.getSimState() == 5) ? telephonyManager2.getSimOperator() : networkOperator;
} catch (Exception unused) {
return null;
}
}
public static String n() {
return o.a.getPackageName();
}
public static String o() {
try {
return o.a.getPackageManager().getPackageInfo(o.a.getPackageName(), 0).versionName;
} catch (Exception unused) {
return null;
}
}
public static boolean q() {
boolean z = (o.a.getResources().getConfiguration().screenLayout & 15) == 4;
IAlog.e("This device has a tablet resolution? %s", Boolean.valueOf(z));
return z;
}
}

View File

@@ -0,0 +1,25 @@
package com.fyber.inneractive.sdk.util;
import org.json.JSONException;
import org.json.JSONObject;
/* loaded from: classes2.dex */
public final class m0 {
public interface a {
JSONObject a();
}
public static void a(JSONObject jSONObject, String str, Object obj) {
if (obj != null) {
try {
if (obj instanceof a) {
jSONObject.putOpt(str, ((a) obj).a());
} else {
jSONObject.putOpt(str, obj);
}
} catch (JSONException unused) {
}
}
}
}

View File

@@ -0,0 +1,22 @@
package com.fyber.inneractive.sdk.util;
/* loaded from: classes2.dex */
public final class n implements Runnable {
public final /* synthetic */ com.fyber.inneractive.sdk.cache.a a;
public n(com.fyber.inneractive.sdk.cache.d dVar) {
this.a = dVar;
}
@Override // java.lang.Runnable
public final void run() {
com.fyber.inneractive.sdk.cache.a aVar;
try {
if (o.a == null || (aVar = this.a) == null) {
return;
}
o.a.getSharedPreferences("IAConfigurationPreferences", 0).edit().remove(aVar.a()).apply();
} catch (Throwable unused) {
}
}
}

View File

@@ -0,0 +1,25 @@
package com.fyber.inneractive.sdk.util;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import java.lang.ref.WeakReference;
/* loaded from: classes2.dex */
public final class n0 extends Handler {
public final WeakReference<o0> a;
public n0(Looper looper, o0 o0Var) {
super(looper);
this.a = new WeakReference<>(o0Var);
}
@Override // android.os.Handler
public final void handleMessage(Message message) {
super.handleMessage(message);
o0 o0Var = (o0) t.a(this.a);
if (o0Var != null) {
o0Var.handleMessage(message);
}
}
}

View File

@@ -0,0 +1,274 @@
package com.fyber.inneractive.sdk.util;
import android.annotation.SuppressLint;
import android.app.Application;
import android.content.Context;
import android.content.pm.Signature;
import android.content.res.Resources;
import android.graphics.Point;
import android.graphics.drawable.Drawable;
import android.provider.Settings;
import android.text.TextUtils;
import android.util.DisplayMetrics;
import android.util.TypedValue;
import android.view.Display;
import android.view.View;
import android.view.WindowManager;
import com.fyber.inneractive.sdk.config.IAConfigManager;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.security.MessageDigest;
import java.util.HashMap;
import java.util.List;
/* loaded from: classes2.dex */
public class o {
public static Application a;
public static class a {
public static final HashMap a = new HashMap();
}
public static void a() {
}
public static Application b() {
return a;
}
public static int d() {
return ((WindowManager) IAConfigManager.L.u.a().getSystemService("window")).getDefaultDisplay().getRotation();
}
public static void h() {
}
public static void i() {
}
@SuppressLint({"NewApi"})
public static Drawable c(int i) {
return IAConfigManager.L.u.a().getDrawable(i);
}
public static int e() {
Application application = a;
int i = (application == null || application.getResources() == null || application.getResources().getConfiguration() == null) ? 1 : application.getResources().getConfiguration().orientation;
try {
if (Settings.System.getInt(application.getContentResolver(), "accelerometer_rotation", 0) != 1) {
i = 1;
}
} catch (Throwable th) {
IAlog.a("failed getOrientation. returning portrait orientation", th, new Object[0]);
}
Object[] objArr = new Object[1];
objArr[0] = i == 1 ? "portrait" : "landscape";
IAlog.a("The device orientation: %s", objArr);
return i;
}
public static int f() {
int i;
WindowManager windowManager;
Display defaultDisplay;
if (a == null || (windowManager = (WindowManager) IAConfigManager.L.u.a().getSystemService("window")) == null || (defaultDisplay = windowManager.getDefaultDisplay()) == null) {
i = -1;
} else {
Point point = new Point();
defaultDisplay.getSize(point);
i = point.y;
}
if (i != -1) {
return i;
}
try {
DisplayMetrics displayMetrics = Resources.getSystem().getDisplayMetrics();
if (displayMetrics != null) {
i = displayMetrics.heightPixels;
}
} catch (Throwable unused) {
}
if (i == -1) {
return 480;
}
return i;
}
/* JADX WARN: Removed duplicated region for block: B:11:0x002b A[EXC_TOP_SPLITTER, SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:21:? A[RETURN, SYNTHETIC] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static int g() {
/*
r0 = -1
android.app.Application r1 = com.fyber.inneractive.sdk.util.o.a // Catch: java.lang.Throwable -> L28
if (r1 == 0) goto L28
com.fyber.inneractive.sdk.config.IAConfigManager r1 = com.fyber.inneractive.sdk.config.IAConfigManager.L // Catch: java.lang.Throwable -> L28
com.fyber.inneractive.sdk.config.e r1 = r1.u // Catch: java.lang.Throwable -> L28
android.content.Context r1 = r1.a() // Catch: java.lang.Throwable -> L28
java.lang.String r2 = "window"
java.lang.Object r1 = r1.getSystemService(r2) // Catch: java.lang.Throwable -> L28
android.view.WindowManager r1 = (android.view.WindowManager) r1 // Catch: java.lang.Throwable -> L28
if (r1 == 0) goto L28
android.view.Display r1 = r1.getDefaultDisplay() // Catch: java.lang.Throwable -> L28
if (r1 == 0) goto L28
android.graphics.Point r2 = new android.graphics.Point // Catch: java.lang.Throwable -> L28
r2.<init>() // Catch: java.lang.Throwable -> L28
r1.getSize(r2) // Catch: java.lang.Throwable -> L28
int r1 = r2.x // Catch: java.lang.Throwable -> L28
goto L29
L28:
r1 = r0
L29:
if (r1 != r0) goto L3b
android.content.res.Resources r2 = android.content.res.Resources.getSystem() // Catch: java.lang.Throwable -> L37
android.util.DisplayMetrics r2 = r2.getDisplayMetrics() // Catch: java.lang.Throwable -> L37
if (r2 == 0) goto L37
int r1 = r2.widthPixels // Catch: java.lang.Throwable -> L37
L37:
if (r1 != r0) goto L3b
r1 = 320(0x140, float:4.48E-43)
L3b:
return r1
*/
throw new UnsupportedOperationException("Method not decompiled: com.fyber.inneractive.sdk.util.o.g():int");
}
public static boolean b(String str) {
try {
return a.checkCallingOrSelfPermission(str) == 0;
} catch (Throwable unused) {
return false;
}
}
public static int b(int i) {
try {
return (int) ((i / c()) + 0.5f);
} catch (Exception unused) {
return -1;
}
}
public static float c() {
return IAConfigManager.L.u.a().getResources().getConfiguration().densityDpi / 160.0f;
}
public static String c(String str) {
String str2 = (String) a.a.get(str);
if (TextUtils.isEmpty(str2)) {
IAlog.a("Assets cache: reading file: %s", str);
try {
InputStream open = a.getAssets().open(str, 3);
StringBuffer stringBuffer = new StringBuffer();
byte[] bArr = new byte[4096];
for (int i = 0; i != -1; i = open.read(bArr)) {
stringBuffer.append(new String(bArr, 0, i));
}
open.close();
str2 = stringBuffer.toString();
IAlog.a("Assets cache: success - %s", str);
} catch (IOException e) {
IAlog.a("Assets cache: Could not read response from file", new Object[0]);
IAlog.e(t.a(e), new Object[0]);
}
if (!TextUtils.isEmpty(str2)) {
a.a.put(str, str2);
}
} else {
IAlog.a("Assets cache: returning cached assets for %s", str);
}
return str2;
}
public static String a(List list) {
return String.join(",", list);
}
public static void a(Application application, byte[] bArr) {
FileOutputStream fileOutputStream;
try {
fileOutputStream = application.openFileOutput("session_details.json", 0);
} catch (Throwable unused) {
fileOutputStream = null;
}
try {
fileOutputStream.write(bArr);
fileOutputStream.flush();
} catch (Throwable unused2) {
try {
IAlog.a("writeFileWithContext failed writing %s", "session_details.json");
} finally {
t.a(fileOutputStream);
}
}
}
public static int a(int i) {
return (int) ((c() * i) + 0.5f);
}
public static boolean a(String str) {
try {
Class.forName(str);
return true;
} catch (ClassNotFoundException unused) {
return false;
}
}
public static boolean a(String... strArr) {
for (String str : strArr) {
if (!a(str)) {
return false;
}
}
return true;
}
public static void a(View view, Drawable drawable) {
view.setBackground(drawable);
}
public static int a(float f) {
return (int) (TypedValue.applyDimension(1, f, IAConfigManager.L.u.a().getResources().getDisplayMetrics()) + 0.5f);
}
public static String a(Context context) {
if (context == null) {
return "";
}
try {
Signature[] signatureArr = context.getPackageManager().getPackageInfo(context.getPackageName(), 64).signatures;
if (signatureArr.length <= 0) {
return "";
}
Signature signature = signatureArr[0];
MessageDigest messageDigest = MessageDigest.getInstance("SHA-256");
messageDigest.update(signature.toByteArray());
byte[] digest = messageDigest.digest();
StringBuilder sb = new StringBuilder();
for (byte b : digest) {
String hexString = Integer.toHexString(b & 255);
if (hexString.length() == 1) {
sb.append("0");
}
sb.append(hexString);
}
return sb.toString();
} catch (Exception unused) {
return "";
}
}
public static void a(View view, int i, int i2) {
if (view == null || view.getLayoutParams() == null) {
return;
}
view.getLayoutParams().width = a(i);
view.getLayoutParams().height = a(i2);
}
}

View File

@@ -0,0 +1,8 @@
package com.fyber.inneractive.sdk.util;
import android.os.Message;
/* loaded from: classes2.dex */
public interface o0 {
void handleMessage(Message message);
}

View File

@@ -0,0 +1,42 @@
package com.fyber.inneractive.sdk.util;
import android.os.Handler;
import android.os.Looper;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
/* loaded from: classes2.dex */
public final class p {
public static final ThreadPoolExecutor a;
public static final Handler b = new Handler(Looper.getMainLooper());
public class a implements ThreadFactory {
public final AtomicInteger a = new AtomicInteger(1);
@Override // java.util.concurrent.ThreadFactory
public final Thread newThread(Runnable runnable) {
return new Thread(runnable, "IAConcurrencyUtil#" + this.a.getAndIncrement());
}
}
public class b implements RejectedExecutionHandler {
@Override // java.util.concurrent.RejectedExecutionHandler
public final void rejectedExecution(Runnable runnable, ThreadPoolExecutor threadPoolExecutor) {
IAlog.a("rejectedExecution received for - %s", runnable);
}
}
static {
ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(2, 4, 30L, TimeUnit.SECONDS, new LinkedBlockingQueue(32), new a(), new b());
threadPoolExecutor.allowCoreThreadTimeOut(true);
a = threadPoolExecutor;
}
public static void a(Runnable runnable) {
a.execute(runnable);
}
}

View File

@@ -0,0 +1,16 @@
package com.fyber.inneractive.sdk.util;
/* loaded from: classes2.dex */
public final class p0 {
public boolean c = false;
public float a = -1.0f;
public float b = -1.0f;
public static p0 a() {
return new p0();
}
public final String toString() {
return "PointLocation{x=" + this.a + ", y=" + this.b + '}';
}
}

View File

@@ -0,0 +1,58 @@
package com.fyber.inneractive.sdk.util;
import android.app.Activity;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.text.TextUtils;
import com.google.android.gms.drive.DriveFile;
import java.util.PriorityQueue;
/* loaded from: classes2.dex */
public final class q {
public static boolean a(Context context, k kVar) {
v0 v0Var;
PriorityQueue priorityQueue = kVar.a;
do {
v0Var = (v0) priorityQueue.poll();
if (v0Var == null) {
break;
}
} while (!a(context, v0Var.b));
boolean z = false;
if (v0Var == null) {
return false;
}
Intent intent = new Intent("android.intent.action.VIEW", v0Var.b);
if (context != null) {
if (!(context instanceof Activity)) {
intent.addFlags(DriveFile.MODE_READ_ONLY);
}
try {
context.startActivity(intent);
z = true;
} catch (ActivityNotFoundException unused) {
}
}
if (z) {
for (String str : v0Var.c) {
TextUtils.isEmpty(str);
com.fyber.inneractive.sdk.network.j0.b(str);
}
}
return z;
}
public static boolean a(Context context, Uri uri) {
if (context == null || uri == null) {
return false;
}
try {
return !context.getPackageManager().queryIntentActivities(new Intent("android.intent.action.VIEW", uri), 0).isEmpty();
} catch (Exception unused) {
IAlog.a("%sFyberDeepLink: Invalid url ", uri);
return false;
}
}
}

View File

@@ -0,0 +1,27 @@
package com.fyber.inneractive.sdk.util;
/* loaded from: classes2.dex */
public final class q0 {
public int a;
public int b;
public q0(int i, int i2) {
this.a = i;
this.b = i2;
}
public final boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || q0.class != obj.getClass()) {
return false;
}
q0 q0Var = (q0) obj;
return this.a == q0Var.a && this.b == q0Var.b;
}
public final int hashCode() {
return (this.a * 31) + this.b;
}
}

View File

@@ -0,0 +1,84 @@
package com.fyber.inneractive.sdk.util;
import android.graphics.Bitmap;
import java.io.File;
/* loaded from: classes2.dex */
public final class r extends b<Void, Void, Bitmap> {
public final File g;
public a h;
public final String i;
public final String j = null;
public final int k = 81920;
public interface a {
}
public r(File file, a aVar, String str) {
this.g = file;
this.h = aVar;
this.i = str;
}
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Removed duplicated region for block: B:66:0x00d6 A[Catch: all -> 0x00da, TRY_LEAVE, TryCatch #8 {all -> 0x00da, blocks: (B:64:0x00c7, B:66:0x00d6), top: B:63:0x00c7 }] */
/* JADX WARN: Removed duplicated region for block: B:70:0x00e3 A[Catch: all -> 0x00ec, DONT_GENERATE, TryCatch #1 {all -> 0x00ec, blocks: (B:76:0x00de, B:70:0x00e3, B:72:0x00e8), top: B:75:0x00de }] */
/* JADX WARN: Removed duplicated region for block: B:72:0x00e8 A[Catch: all -> 0x00ec, DONT_GENERATE, TRY_LEAVE, TryCatch #1 {all -> 0x00ec, blocks: (B:76:0x00de, B:70:0x00e3, B:72:0x00e8), top: B:75:0x00de }] */
/* JADX WARN: Removed duplicated region for block: B:75:0x00de A[EXC_TOP_SPLITTER, SYNTHETIC] */
/* JADX WARN: Type inference failed for: r6v0 */
/* JADX WARN: Type inference failed for: r6v1 */
/* JADX WARN: Type inference failed for: r6v12, types: [java.net.HttpURLConnection, java.net.URLConnection] */
/* JADX WARN: Type inference failed for: r6v2, types: [java.net.HttpURLConnection] */
/* JADX WARN: Type inference failed for: r6v7 */
@Override // com.fyber.inneractive.sdk.util.b
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final android.graphics.Bitmap a(java.lang.Void[] r12) {
/*
Method dump skipped, instructions count: 260
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.fyber.inneractive.sdk.util.r.a(java.lang.Object[]):java.lang.Object");
}
@Override // com.fyber.inneractive.sdk.util.b
public final void a(Bitmap bitmap) {
Bitmap bitmap2 = bitmap;
a aVar = this.h;
if (aVar == null) {
return;
}
if (bitmap2 != null) {
com.fyber.inneractive.sdk.player.b bVar = (com.fyber.inneractive.sdk.player.b) aVar;
com.fyber.inneractive.sdk.player.c cVar = bVar.a;
if (cVar.m != null) {
IAlog.a("IAMediaPlayerFlowManager: saving snapshot %s", bitmap2);
cVar.k = bitmap2;
r rVar = bVar.a.l;
rVar.b();
rVar.h = null;
com.fyber.inneractive.sdk.player.c cVar2 = bVar.a;
cVar2.l = null;
cVar2.m = null;
}
IAlog.a("MediaPlayerController: fetching video frame success!", new Object[0]);
} else {
com.fyber.inneractive.sdk.player.b bVar2 = (com.fyber.inneractive.sdk.player.b) aVar;
com.fyber.inneractive.sdk.player.c cVar3 = bVar2.a;
if (cVar3.m != null) {
IAlog.a("IAMediaPlayerFlowManager: saving snapshot %s", null);
cVar3.k = null;
r rVar2 = bVar2.a.l;
rVar2.b();
rVar2.h = null;
com.fyber.inneractive.sdk.player.c cVar4 = bVar2.a;
cVar4.l = null;
cVar4.m = null;
}
IAlog.a("MediaPlayerController: fetching video frame failed!", new Object[0]);
}
this.h = null;
}
}

View File

@@ -0,0 +1,91 @@
package com.fyber.inneractive.sdk.util;
import android.content.Context;
import android.graphics.Bitmap;
import android.view.View;
/* loaded from: classes2.dex */
public final class r0 implements Runnable {
public final /* synthetic */ View a;
public final /* synthetic */ Context b;
public final /* synthetic */ s0 c;
public class a implements Runnable {
public final /* synthetic */ Bitmap a;
public a(Bitmap bitmap) {
this.a = bitmap;
}
@Override // java.lang.Runnable
public final void run() {
s0 s0Var = r0.this.c;
if (s0Var != null) {
s0Var.a(this.a);
}
}
}
public r0(Context context, View view, com.fyber.inneractive.sdk.player.ui.t tVar) {
this.a = view;
this.b = context;
this.c = tVar;
}
/* JADX WARN: Removed duplicated region for block: B:5:0x0035 */
/* JADX WARN: Removed duplicated region for block: B:8:? A[RETURN, SYNTHETIC] */
@Override // java.lang.Runnable
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void run() {
/*
r4 = this;
android.view.View r0 = r4.a
if (r0 == 0) goto L32
int r1 = r0.getWidth() // Catch: java.lang.Throwable -> L24
int r1 = r1 / 4
int r2 = r0.getHeight() // Catch: java.lang.Throwable -> L24
int r2 = r2 / 4
android.graphics.Bitmap$Config r3 = android.graphics.Bitmap.Config.RGB_565 // Catch: java.lang.Throwable -> L24
android.graphics.Bitmap r1 = android.graphics.Bitmap.createBitmap(r1, r2, r3) // Catch: java.lang.Throwable -> L24
android.graphics.Canvas r2 = new android.graphics.Canvas // Catch: java.lang.Throwable -> L24
r2.<init>(r1) // Catch: java.lang.Throwable -> L24
r3 = 1048576000(0x3e800000, float:0.25)
r2.scale(r3, r3) // Catch: java.lang.Throwable -> L24
r0.draw(r2) // Catch: java.lang.Throwable -> L24
goto L33
L24:
r0 = move-exception
java.lang.String r0 = r0.getLocalizedMessage()
java.lang.Object[] r0 = new java.lang.Object[]{r0}
java.lang.String r1 = "Failed creating a bitmap with exception %s"
com.fyber.inneractive.sdk.util.IAlog.a(r1, r0)
L32:
r1 = 0
L33:
if (r1 == 0) goto L60
android.content.Context r0 = r4.b
com.fyber.inneractive.sdk.util.f r2 = new com.fyber.inneractive.sdk.util.f
r2.<init>()
r3 = 20
r2.c = r3
r3 = 1
r2.d = r3
int r3 = r1.getWidth()
r2.a = r3
int r3 = r1.getHeight()
r2.b = r3
android.graphics.Bitmap r0 = com.fyber.inneractive.sdk.util.e.a(r0, r1, r2)
r1.recycle()
android.os.Handler r1 = com.fyber.inneractive.sdk.util.p.b
com.fyber.inneractive.sdk.util.r0$a r2 = new com.fyber.inneractive.sdk.util.r0$a
r2.<init>(r0)
r1.post(r2)
L60:
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.fyber.inneractive.sdk.util.r0.run():void");
}
}

View File

@@ -0,0 +1,83 @@
package com.fyber.inneractive.sdk.util;
import android.annotation.TargetApi;
import android.security.NetworkSecurityPolicy;
import android.text.TextUtils;
import com.google.firebase.perf.network.FirebasePerfUrlConnection;
import java.io.BufferedInputStream;
import java.io.FilterInputStream;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLConnection;
import java.util.zip.GZIPInputStream;
/* loaded from: classes2.dex */
public final class s {
public static String b(HttpURLConnection httpURLConnection) throws Exception {
int responseCode = httpURLConnection.getResponseCode();
if (responseCode != 302 && responseCode != 303 && responseCode != 307) {
return null;
}
IAlog.a("getRedirectUrl: received redirect code %s", Integer.toString(responseCode));
String headerField = httpURLConnection.getHeaderField(com.fyber.inneractive.sdk.network.m.LOCATION.e());
if (!TextUtils.isEmpty(headerField)) {
IAlog.a("getRedirectUrl: redirecting target url: %s", headerField);
return headerField;
}
throw new Exception("Server returned HTTP " + Integer.toString(responseCode) + " with empty location header!");
}
public static boolean c(HttpURLConnection httpURLConnection) throws Exception {
int responseCode = httpURLConnection.getResponseCode();
if (responseCode == 200) {
return true;
}
IAlog.a("isResponseValid: found invalid response status: %s", Integer.toString(responseCode));
return false;
}
@TargetApi(23)
public static boolean a() {
return NetworkSecurityPolicy.getInstance().isCleartextTrafficPermitted();
}
public static String a(String str, int i, int i2) throws Exception {
try {
HttpURLConnection httpURLConnection = (HttpURLConnection) ((URLConnection) FirebasePerfUrlConnection.instrument(new URL(str).openConnection()));
httpURLConnection.setConnectTimeout(i);
httpURLConnection.setReadTimeout(i2);
httpURLConnection.connect();
FilterInputStream a = a(httpURLConnection);
String b = b(httpURLConnection);
if (!TextUtils.isEmpty(b)) {
httpURLConnection.disconnect();
return a(b, i2, i);
}
String stringBuffer = c(httpURLConnection) ? t.a((InputStream) a).toString() : null;
httpURLConnection.disconnect();
return stringBuffer;
} catch (Exception e) {
IAlog.a("getBodyFromUrl failed with exception", e, new Object[0]);
throw e;
} catch (Throwable th) {
IAlog.a("getBodyFromUrl failed with error", th, new Object[0]);
return null;
}
}
public static FilterInputStream a(HttpURLConnection httpURLConnection) {
FilterInputStream bufferedInputStream;
try {
InputStream inputStream = httpURLConnection.getInputStream();
if (TextUtils.equals("gzip", httpURLConnection.getContentEncoding())) {
bufferedInputStream = new GZIPInputStream(inputStream);
} else {
bufferedInputStream = new BufferedInputStream(inputStream);
}
return bufferedInputStream;
} catch (Exception unused) {
return null;
}
}
}

View File

@@ -0,0 +1,8 @@
package com.fyber.inneractive.sdk.util;
import android.graphics.Bitmap;
/* loaded from: classes2.dex */
public interface s0 {
void a(Bitmap bitmap);
}

View File

@@ -0,0 +1,124 @@
package com.fyber.inneractive.sdk.util;
import android.text.TextUtils;
import android.view.View;
import android.view.ViewGroup;
import android.widget.RelativeLayout;
import java.io.Closeable;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.lang.ref.WeakReference;
import java.nio.ByteBuffer;
/* loaded from: classes2.dex */
public final class t {
public static StringBuffer a(InputStream inputStream) throws IOException {
ByteBuffer byteBuffer = (ByteBuffer) g.b.a.poll();
if (byteBuffer == null) {
byteBuffer = ByteBuffer.allocateDirect(16384);
}
StringBuffer stringBuffer = new StringBuffer();
byte[] array = (byteBuffer == null || !byteBuffer.hasArray()) ? new byte[8192] : byteBuffer.array();
int i = 0;
while (i != -1) {
stringBuffer.append(new String(array, 0, i));
i = inputStream.read(array);
}
g.b.a.offer(byteBuffer);
return stringBuffer;
}
public static void b(Closeable closeable) {
if (closeable == null) {
return;
}
try {
closeable.close();
} catch (IOException unused) {
}
}
public static void a(InputStream inputStream, FileOutputStream fileOutputStream) throws IOException {
if (inputStream == null) {
throw new IOException("Unable to copy from or to a null stream.");
}
byte[] bArr = new byte[65536];
int i = 0;
while (true) {
int read = inputStream.read(bArr);
if (read != -1) {
i += read;
fileOutputStream.write(bArr, 0, read);
} else {
IAlog.a("Copied stream content length = %d", Integer.valueOf(i));
return;
}
}
}
public static String a(Throwable th) {
try {
StringWriter stringWriter = new StringWriter();
th.printStackTrace(new PrintWriter(stringWriter));
return "------\r\n" + stringWriter.toString() + "------\r\n";
} catch (Exception unused) {
return "bad stackToString";
}
}
public static void a(View view) {
if (view == null || view.getParent() == null) {
return;
}
try {
if (view.getParent() instanceof ViewGroup) {
((ViewGroup) view.getParent()).removeView(view);
}
} catch (Exception unused) {
}
}
public static RelativeLayout.LayoutParams a(int i, int i2, int... iArr) {
RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(i, i2);
if (iArr != null && iArr.length > 0) {
for (int i3 : iArr) {
layoutParams.addRule(i3);
}
}
return layoutParams;
}
public static Object a(WeakReference weakReference) {
if (weakReference == null) {
return null;
}
return weakReference.get();
}
public static int a(String str, int i) {
if (TextUtils.isEmpty(str)) {
return i;
}
try {
return Integer.parseInt(str);
} catch (NumberFormatException unused) {
return i;
}
}
public static void a(Closeable closeable) {
if (closeable != null) {
try {
closeable.close();
} catch (Throwable unused) {
}
}
}
public static int a(int i, int i2) {
return Integer.compare(i, i2);
}
}

View File

@@ -0,0 +1,11 @@
package com.fyber.inneractive.sdk.util;
/* loaded from: classes2.dex */
public final class t0 {
public static String a(String str, int i) {
if (i <= 0 || str.length() <= i) {
return str;
}
return str.substring(0, i - 3) + "...";
}
}

View File

@@ -0,0 +1,19 @@
package com.fyber.inneractive.sdk.util;
/* loaded from: classes2.dex */
public final /* synthetic */ class u {
public static final /* synthetic */ int[] a;
static {
int[] iArr = new int[w.values().length];
a = iArr;
try {
iArr[w.Mraid.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
a[w.Video.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
}
}

View File

@@ -0,0 +1,12 @@
package com.fyber.inneractive.sdk.util;
import com.google.android.gms.measurement.AppMeasurement;
/* loaded from: classes2.dex */
public final class u0 {
public static boolean a(String str) {
int i = com.fyber.inneractive.sdk.config.g.a;
String property = System.getProperty("ia.testEnvironmentConfiguration.response");
return property != null && property.trim().length() > 0 && str != null && str.toLowerCase().startsWith("fyberInternalTesting".toLowerCase()) && str.contains(AppMeasurement.CRASH_ORIGIN);
}
}

View File

@@ -0,0 +1,8 @@
package com.fyber.inneractive.sdk.util;
/* loaded from: classes2.dex */
public interface v {
boolean a();
w getType();
}

View File

@@ -0,0 +1,33 @@
package com.fyber.inneractive.sdk.util;
import android.net.Uri;
import java.util.List;
/* loaded from: classes2.dex */
public final class v0 implements Comparable<v0> {
public final a a;
public final Uri b;
public final List<String> c;
public enum a {
Primary(1),
FallBack(2);
Integer mPriority;
a(Integer num) {
this.mPriority = num;
}
}
public v0(a aVar, Uri uri, List<String> list) {
this.a = aVar;
this.b = uri;
this.c = list;
}
@Override // java.lang.Comparable
public final int compareTo(v0 v0Var) {
return this.a.mPriority.compareTo(v0Var.a.mPriority);
}
}

View File

@@ -0,0 +1,7 @@
package com.fyber.inneractive.sdk.util;
/* loaded from: classes2.dex */
public enum w {
Mraid,
Video
}

View File

@@ -0,0 +1,31 @@
package com.fyber.inneractive.sdk.util;
import com.fyber.inneractive.sdk.config.enums.UnitDisplayType;
/* loaded from: classes2.dex */
public final class w0 {
public static void a(UnitDisplayType unitDisplayType, q0 q0Var, int i, int i2, int i3, int i4) {
if (i > 0 && i2 > 0) {
float f = i;
float f2 = i2;
float f3 = f / f2;
if (unitDisplayType == UnitDisplayType.SQUARE) {
i3 = (int) (i4 * f3);
} else {
float min = Math.min(i3 / f, 10.0f);
float f4 = i4;
float f5 = min * f2;
if (f4 > f5) {
i3 = (int) (min * f);
i4 = (int) f5;
} else {
float min2 = Math.min(f4 / f2, 10.0f);
i3 = (int) (f * min2);
i4 = (int) (min2 * f2);
}
}
}
q0Var.a = i3;
q0Var.b = i4;
}
}

View File

@@ -0,0 +1,22 @@
package com.fyber.inneractive.sdk.util;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
/* loaded from: classes2.dex */
public final class x extends BroadcastReceiver {
public final /* synthetic */ y a;
public x(y yVar) {
this.a = yVar;
}
@Override // android.content.BroadcastReceiver
public final void onReceive(Context context, Intent intent) {
y yVar = this.a;
yVar.getClass();
IAlog.a("%sonReceive. action = %s", IAlog.a(yVar), intent.getAction());
y.a(this.a, context, intent);
}
}

View File

@@ -0,0 +1,42 @@
package com.fyber.inneractive.sdk.util;
import com.fyber.inneractive.sdk.config.IAConfigManager;
import com.fyber.inneractive.sdk.config.enums.UnitDisplayType;
import java.util.HashMap;
import java.util.Locale;
/* loaded from: classes2.dex */
public final class x0 {
public static String a(String str) {
com.fyber.inneractive.sdk.config.x xVar;
UnitDisplayType unitDisplayType;
UnitDisplayType unitDisplayType2;
IAConfigManager iAConfigManager = IAConfigManager.L;
HashMap hashMap = iAConfigManager.a;
com.fyber.inneractive.sdk.config.d0 d0Var = (hashMap == null || !hashMap.containsKey(str)) ? null : (com.fyber.inneractive.sdk.config.d0) iAConfigManager.a.get(str);
UnitDisplayType unitDisplayType3 = UnitDisplayType.BANNER;
if (d0Var == null) {
return unitDisplayType3.name().toLowerCase(Locale.US);
}
for (int i = 0; i < d0Var.a.size(); i++) {
com.fyber.inneractive.sdk.config.e0 e0Var = (com.fyber.inneractive.sdk.config.e0) d0Var.a.get(i);
if (e0Var != null && ((xVar = e0Var.c) != null || e0Var.f != null)) {
if (xVar == null || (unitDisplayType2 = xVar.b) == null || unitDisplayType2.isDeprecated() || UnitDisplayType.DEFAULT == unitDisplayType2) {
com.fyber.inneractive.sdk.config.g0 g0Var = e0Var.f;
if (g0Var != null && (unitDisplayType = g0Var.j) != null && !unitDisplayType.isDeprecated() && UnitDisplayType.DEFAULT != unitDisplayType) {
unitDisplayType3 = e0Var.f.j;
}
} else {
unitDisplayType3 = e0Var.c.b;
}
if (UnitDisplayType.MRECT == unitDisplayType3) {
unitDisplayType3 = UnitDisplayType.BANNER;
}
if (UnitDisplayType.REWARDED == unitDisplayType3 || UnitDisplayType.INTERSTITIAL == unitDisplayType3 || UnitDisplayType.BANNER == unitDisplayType3) {
return unitDisplayType3.name().toLowerCase(Locale.US);
}
}
}
return UnitDisplayType.BANNER.name().toLowerCase(Locale.US);
}
}

View File

@@ -0,0 +1,45 @@
package com.fyber.inneractive.sdk.util;
import android.app.KeyguardManager;
import android.content.Context;
import android.content.Intent;
import java.util.Iterator;
import java.util.concurrent.CopyOnWriteArrayList;
/* loaded from: classes2.dex */
public final class y {
public final CopyOnWriteArrayList a = new CopyOnWriteArrayList();
public boolean b;
public Context c;
public x d;
public static class a {
public static final y a = new y();
}
public interface b {
void b(boolean z);
}
public static void a(y yVar, Context context, Intent intent) {
boolean z;
synchronized (yVar) {
try {
z = ((KeyguardManager) context.getSystemService("keyguard")).isKeyguardLocked();
} catch (Exception unused) {
IAlog.a("%sFailed to get lock screen status", IAlog.a(yVar));
z = false;
}
if ("android.intent.action.SCREEN_OFF".equals(intent.getAction())) {
yVar.b = true;
} else if (("android.intent.action.SCREEN_ON".equals(intent.getAction()) && !z) || "android.intent.action.USER_PRESENT".equals(intent.getAction())) {
yVar.b = false;
}
IAlog.a("%sNew screen state is locked: %s. number of listeners: %d", IAlog.a(yVar), Boolean.valueOf(yVar.b), Integer.valueOf(yVar.a.size()));
Iterator it = yVar.a.iterator();
while (it.hasNext()) {
((b) it.next()).b(yVar.b);
}
}
}
}

View File

@@ -0,0 +1,27 @@
package com.fyber.inneractive.sdk.util;
import android.text.TextUtils;
import com.ironsource.ad;
/* loaded from: classes2.dex */
public final class y0 implements Runnable {
public final /* synthetic */ z0 a;
public y0(z0 z0Var) {
this.a = z0Var;
}
@Override // java.lang.Runnable
public final void run() {
z0 z0Var = this.a;
if (z0Var.b == null || !TextUtils.isEmpty(z0Var.a)) {
return;
}
z0Var.a = z0Var.b.getSharedPreferences("fyber.ua", 0).getString(ad.U, null);
if (!TextUtils.isEmpty(z0Var.a)) {
IAlog.a("UserAgentProvider | populated user agent from shared prefs", new Object[0]);
z0Var.c.compareAndSet(false, true);
}
z0Var.e();
}
}

View File

@@ -0,0 +1,21 @@
package com.fyber.inneractive.sdk.util;
import java.util.concurrent.TimeUnit;
/* loaded from: classes2.dex */
public final class z {
public static String a(int i) {
if (i <= 0) {
return "00:00:00.000";
}
TimeUnit timeUnit = TimeUnit.MILLISECONDS;
long j = i;
long hours = timeUnit.toHours(j);
TimeUnit timeUnit2 = TimeUnit.HOURS;
long minutes = timeUnit.toMinutes(j - timeUnit2.toMillis(hours));
long millis = j - timeUnit2.toMillis(hours);
TimeUnit timeUnit3 = TimeUnit.MINUTES;
long seconds = timeUnit.toSeconds(millis - timeUnit3.toMillis(minutes));
return String.format("%02d:%02d:%02d.%03d", Long.valueOf(hours), Long.valueOf(minutes), Long.valueOf(seconds), Long.valueOf(timeUnit.toMillis(((j - timeUnit2.toMillis(hours)) - timeUnit3.toMillis(minutes)) - TimeUnit.SECONDS.toMillis(seconds))));
}
}

View File

@@ -0,0 +1,127 @@
package com.fyber.inneractive.sdk.util;
import android.content.Context;
import android.os.Handler;
import android.text.TextUtils;
import android.webkit.WebSettings;
import android.webkit.WebView;
import androidx.annotation.RequiresApi;
import com.ironsource.ad;
import java.util.concurrent.atomic.AtomicBoolean;
/* loaded from: classes2.dex */
public final class z0 {
public volatile String a = null;
public Context b = null;
public final AtomicBoolean c = new AtomicBoolean(false);
public final a d = new a();
public class a implements Runnable {
public a() {
}
@Override // java.lang.Runnable
public final void run() {
z0.this.e();
}
}
public class b implements Runnable {
public b() {
}
@Override // java.lang.Runnable
public final void run() {
z0.this.c();
}
}
public class c implements Runnable {
public c() {
}
@Override // java.lang.Runnable
public final void run() {
z0.this.b();
}
}
public final String a() {
if (!TextUtils.isEmpty(this.a)) {
return this.a;
}
a aVar = this.d;
if (aVar != null) {
Handler handler = p.b;
handler.removeCallbacks(aVar);
handler.postDelayed(this.d, 50L);
}
return System.getProperty("http.agent");
}
public final void b() {
WebView webView;
String str = null;
try {
webView = new WebView(this.b);
try {
str = webView.getSettings().getUserAgentString();
} catch (Throwable unused) {
}
} catch (Throwable unused2) {
webView = null;
}
if (!TextUtils.isEmpty(str)) {
this.a = str;
if (!TextUtils.isEmpty(this.a)) {
IAlog.a("UserAgentProvider | populated user agent form updateUserAgentIfPossible", new Object[0]);
this.c.compareAndSet(false, true);
}
p.a(new a1(this, str));
}
if (webView != null) {
webView.destroy();
}
}
public final void d() {
if (this.b != null && TextUtils.isEmpty(this.a)) {
this.a = this.b.getSharedPreferences("fyber.ua", 0).getString(ad.U, null);
if (!TextUtils.isEmpty(this.a)) {
IAlog.a("UserAgentProvider | populated user agent from shared prefs", new Object[0]);
this.c.compareAndSet(false, true);
}
e();
}
if (this.c.get()) {
return;
}
c();
}
public final void e() {
p.a(new b());
}
@RequiresApi(api = 17)
public final void c() {
String str;
Context context = this.b;
if (context != null) {
try {
str = WebSettings.getDefaultUserAgent(context);
} catch (Throwable unused) {
str = null;
}
if (TextUtils.isEmpty(str)) {
return;
}
this.a = str;
if (!TextUtils.isEmpty(this.a)) {
IAlog.a("UserAgentProvider | populated user agent form updateUserAgentIfPossible", new Object[0]);
this.c.compareAndSet(false, true);
}
p.a(new a1(this, str));
}
}
}