- 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
116 lines
4.3 KiB
Java
116 lines
4.3 KiB
Java
package com.fyber.inneractive.sdk.network;
|
|
|
|
import android.graphics.Bitmap;
|
|
import android.graphics.BitmapFactory;
|
|
import com.fyber.inneractive.sdk.flow.m;
|
|
import com.fyber.inneractive.sdk.util.IAlog;
|
|
import java.io.InputStream;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.concurrent.atomic.AtomicInteger;
|
|
import org.apache.http.protocol.HTTP;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class n0 extends f0<a> {
|
|
public final String p;
|
|
|
|
public static class a {
|
|
public Bitmap a = null;
|
|
public String b = null;
|
|
}
|
|
|
|
public n0(m.e eVar, String str, com.fyber.inneractive.sdk.config.global.s sVar) {
|
|
super(eVar, x.a().b(), sVar);
|
|
this.p = str;
|
|
}
|
|
|
|
/* JADX WARN: Type inference failed for: r2v0, types: [T, com.fyber.inneractive.sdk.network.n0$a] */
|
|
@Override // com.fyber.inneractive.sdk.network.c0
|
|
public final b0 a(j jVar, Map<String, List<String>> map, int i) throws Exception {
|
|
b0 b0Var = new b0();
|
|
?? aVar = new a();
|
|
try {
|
|
InputStream inputStream = jVar.c;
|
|
if (inputStream != null) {
|
|
List<String> list = map != null ? map.get(HTTP.CONTENT_LEN) : null;
|
|
int i2 = -1;
|
|
int a2 = list != null ? com.fyber.inneractive.sdk.util.t.a(list.get(0), -1) : -1;
|
|
AtomicInteger atomicInteger = new AtomicInteger(0);
|
|
Bitmap decodeStream = atomicInteger.get() == a2 ? BitmapFactory.decodeStream(new com.fyber.inneractive.sdk.util.h0(inputStream, atomicInteger)) : null;
|
|
if (decodeStream != null) {
|
|
int width = decodeStream.getWidth();
|
|
int height = decodeStream.getHeight();
|
|
int i3 = width * height;
|
|
int[] iArr = new int[i3];
|
|
decodeStream.getPixels(iArr, 0, width, 0, 0, width, height);
|
|
for (int i4 = 0; i4 < i3; i4++) {
|
|
int i5 = iArr[i4];
|
|
if (i4 != 0) {
|
|
if (i5 != i2) {
|
|
aVar.a = decodeStream;
|
|
Object[] objArr = new Object[1];
|
|
objArr[0] = this.p;
|
|
IAlog.a("SimpleImageLoader: Got a valid bitmap %s", objArr);
|
|
break;
|
|
}
|
|
} else {
|
|
i2 = i5;
|
|
}
|
|
try {
|
|
} catch (Exception e) {
|
|
e = e;
|
|
IAlog.c("SimpleImageLoader: Exception on load image %s %s", e.getMessage(), e.toString());
|
|
aVar.b = e.getMessage();
|
|
b0Var.a = aVar;
|
|
return b0Var;
|
|
} catch (OutOfMemoryError e2) {
|
|
e = e2;
|
|
IAlog.c("SimpleImageLoader: OutOfMemoryError on load image %s", e.getMessage());
|
|
Bitmap bitmap = aVar.a;
|
|
if (bitmap != null) {
|
|
bitmap.recycle();
|
|
}
|
|
aVar.b = e.getMessage();
|
|
b0Var.a = aVar;
|
|
return b0Var;
|
|
}
|
|
}
|
|
}
|
|
IAlog.a("SimpleImageLoader: Got an invalid bitmap", new Object[0]);
|
|
aVar.b = "Got an invalid bitmap";
|
|
}
|
|
} catch (Exception e3) {
|
|
e = e3;
|
|
} catch (OutOfMemoryError e4) {
|
|
e = e4;
|
|
}
|
|
b0Var.a = aVar;
|
|
return b0Var;
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.network.c0
|
|
public final p0 d() {
|
|
return p0.LOW;
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.network.c0
|
|
public final boolean g() {
|
|
return false;
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.network.c0
|
|
public final z getMethod() {
|
|
return z.GET;
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.network.c0
|
|
public final String getUrl() {
|
|
return this.p;
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.network.c0
|
|
public final int s() {
|
|
return 0;
|
|
}
|
|
}
|