- 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
595 lines
34 KiB
Java
595 lines
34 KiB
Java
package com.mbridge.msdk.mbnative.controller;
|
|
|
|
import android.content.Context;
|
|
import android.os.Handler;
|
|
import android.os.Looper;
|
|
import android.os.Message;
|
|
import android.text.TextUtils;
|
|
import android.util.Log;
|
|
import com.mbridge.msdk.MBridgeConstans;
|
|
import com.mbridge.msdk.c.j;
|
|
import com.mbridge.msdk.foundation.entity.CampaignEx;
|
|
import com.mbridge.msdk.foundation.entity.CampaignUnit;
|
|
import com.mbridge.msdk.foundation.entity.k;
|
|
import com.mbridge.msdk.foundation.same.c;
|
|
import com.mbridge.msdk.foundation.tools.af;
|
|
import com.mbridge.msdk.foundation.tools.ak;
|
|
import com.mbridge.msdk.nativex.view.MBMediaView;
|
|
import com.mbridge.msdk.out.Campaign;
|
|
import com.mbridge.msdk.out.Frame;
|
|
import com.mbridge.msdk.tracker.network.h;
|
|
import java.util.ArrayList;
|
|
import java.util.HashMap;
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Queue;
|
|
import java.util.concurrent.CopyOnWriteArrayList;
|
|
import org.json.JSONArray;
|
|
import org.json.JSONObject;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public class d extends com.mbridge.msdk.mbnative.controller.b {
|
|
private static final String e = "d";
|
|
private static Map<String, Map<Long, Object>> f = new HashMap();
|
|
private static Map<String, Boolean> g = new HashMap();
|
|
private static Map<String, k> h = new HashMap();
|
|
private static Map<String, Integer> i = new HashMap();
|
|
private static Map<String, Integer> j = new HashMap();
|
|
private static d k = null;
|
|
private static int u = -1;
|
|
private static int v = -2;
|
|
protected List<Integer> d;
|
|
private j l;
|
|
private com.mbridge.msdk.click.a m;
|
|
private com.mbridge.msdk.c.k n;
|
|
private String o;
|
|
private Map<String, Object> q;
|
|
private List<Integer> r;
|
|
private List<Integer> s;
|
|
private boolean t;
|
|
private boolean w;
|
|
private int x;
|
|
private int y;
|
|
Queue<Integer> b = null;
|
|
Queue<Long> c = null;
|
|
private int p = 0;
|
|
private com.mbridge.msdk.foundation.same.e.b z = new com.mbridge.msdk.foundation.same.e.b(com.mbridge.msdk.foundation.controller.c.m().c());
|
|
|
|
public static Map<String, Map<Long, Object>> a() {
|
|
return f;
|
|
}
|
|
|
|
public static Map<String, Boolean> b() {
|
|
return g;
|
|
}
|
|
|
|
public static Map<String, k> c() {
|
|
return h;
|
|
}
|
|
|
|
public static Map<String, Integer> d() {
|
|
return i;
|
|
}
|
|
|
|
public static Map<String, Integer> e() {
|
|
return j;
|
|
}
|
|
|
|
public d() {
|
|
if (Looper.myLooper() == null) {
|
|
Looper.prepare();
|
|
}
|
|
this.a = new Handler() { // from class: com.mbridge.msdk.mbnative.controller.d.1
|
|
@Override // android.os.Handler
|
|
public final void handleMessage(Message message) {
|
|
}
|
|
};
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:117:0x02f4 A[Catch: Exception -> 0x006c, TryCatch #3 {Exception -> 0x006c, blocks: (B:3:0x001c, B:7:0x0028, B:9:0x0051, B:12:0x006f, B:15:0x0076, B:17:0x007c, B:18:0x0088, B:20:0x008c, B:21:0x009f, B:23:0x00a5, B:24:0x00b1, B:26:0x00b7, B:27:0x00bf, B:29:0x00c8, B:31:0x00d6, B:33:0x0102, B:35:0x0108, B:37:0x011c, B:38:0x0123, B:40:0x0134, B:43:0x013b, B:54:0x016a, B:56:0x017b, B:58:0x0181, B:59:0x018b, B:61:0x01a1, B:63:0x01a7, B:65:0x01af, B:66:0x01bd, B:68:0x01c1, B:69:0x01c8, B:71:0x01e1, B:72:0x01e7, B:75:0x01f1, B:77:0x01f9, B:81:0x020d, B:83:0x0229, B:85:0x022f, B:86:0x023c, B:88:0x0242, B:90:0x024e, B:92:0x0252, B:94:0x0258, B:95:0x0265, B:97:0x026b, B:99:0x0282, B:115:0x02e4, B:117:0x02f4, B:118:0x02fd, B:161:0x0412, B:174:0x041d, B:179:0x0163, B:180:0x009c, B:120:0x0306, B:122:0x031c, B:124:0x0335, B:125:0x033d, B:127:0x0343, B:128:0x0345, B:130:0x0353, B:131:0x0359, B:133:0x0363, B:135:0x0369, B:137:0x0375, B:139:0x037b, B:141:0x0385, B:142:0x038b, B:144:0x0391, B:146:0x03a1, B:148:0x03a4, B:151:0x03a7, B:153:0x03ad, B:45:0x0144, B:47:0x014a, B:49:0x0158, B:50:0x015a, B:52:0x0160), top: B:2:0x001c, inners: #1, #5 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:122:0x031c A[Catch: all -> 0x0412, TryCatch #1 {all -> 0x0412, blocks: (B:120:0x0306, B:122:0x031c, B:124:0x0335, B:125:0x033d, B:127:0x0343, B:128:0x0345, B:130:0x0353, B:131:0x0359, B:133:0x0363, B:135:0x0369, B:137:0x0375, B:139:0x037b, B:141:0x0385, B:142:0x038b, B:144:0x0391, B:146:0x03a1, B:148:0x03a4, B:151:0x03a7, B:153:0x03ad), top: B:119:0x0306, outer: #3 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:160:? A[RETURN, SYNTHETIC] */
|
|
/* JADX WARN: Removed duplicated region for block: B:163:0x02fc */
|
|
/* JADX WARN: Removed duplicated region for block: B:174:0x041d A[Catch: Exception -> 0x006c, TRY_LEAVE, TryCatch #3 {Exception -> 0x006c, blocks: (B:3:0x001c, B:7:0x0028, B:9:0x0051, B:12:0x006f, B:15:0x0076, B:17:0x007c, B:18:0x0088, B:20:0x008c, B:21:0x009f, B:23:0x00a5, B:24:0x00b1, B:26:0x00b7, B:27:0x00bf, B:29:0x00c8, B:31:0x00d6, B:33:0x0102, B:35:0x0108, B:37:0x011c, B:38:0x0123, B:40:0x0134, B:43:0x013b, B:54:0x016a, B:56:0x017b, B:58:0x0181, B:59:0x018b, B:61:0x01a1, B:63:0x01a7, B:65:0x01af, B:66:0x01bd, B:68:0x01c1, B:69:0x01c8, B:71:0x01e1, B:72:0x01e7, B:75:0x01f1, B:77:0x01f9, B:81:0x020d, B:83:0x0229, B:85:0x022f, B:86:0x023c, B:88:0x0242, B:90:0x024e, B:92:0x0252, B:94:0x0258, B:95:0x0265, B:97:0x026b, B:99:0x0282, B:115:0x02e4, B:117:0x02f4, B:118:0x02fd, B:161:0x0412, B:174:0x041d, B:179:0x0163, B:180:0x009c, B:120:0x0306, B:122:0x031c, B:124:0x0335, B:125:0x033d, B:127:0x0343, B:128:0x0345, B:130:0x0353, B:131:0x0359, B:133:0x0363, B:135:0x0369, B:137:0x0375, B:139:0x037b, B:141:0x0385, B:142:0x038b, B:144:0x0391, B:146:0x03a1, B:148:0x03a4, B:151:0x03a7, B:153:0x03ad, B:45:0x0144, B:47:0x014a, B:49:0x0158, B:50:0x015a, B:52:0x0160), top: B:2:0x001c, inners: #1, #5 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:176:? A[RETURN, SYNTHETIC] */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void a(java.util.Map<java.lang.String, java.lang.Object> r24, int r25) {
|
|
/*
|
|
Method dump skipped, instructions count: 1069
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mbridge.msdk.mbnative.controller.d.a(java.util.Map, int):void");
|
|
}
|
|
|
|
private int a(String str) {
|
|
if (str == null) {
|
|
return 0;
|
|
}
|
|
try {
|
|
JSONArray jSONArray = new JSONArray(str);
|
|
if (jSONArray.length() > 0) {
|
|
for (int i2 = 0; i2 < jSONArray.length(); i2++) {
|
|
JSONObject jSONObject = (JSONObject) jSONArray.opt(i2);
|
|
if (2 == jSONObject.optInt("id", 0)) {
|
|
return jSONObject.optInt("ad_num");
|
|
}
|
|
}
|
|
}
|
|
} catch (Exception e2) {
|
|
af.b(e, com.mbridge.msdk.mbnative.b.a.a(e2));
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
private void a(int i2, com.mbridge.msdk.c.k kVar, String str, String str2, com.mbridge.msdk.b.a.a aVar) {
|
|
Queue<Integer> queue = this.b;
|
|
if (queue == null || queue.size() <= 0) {
|
|
return;
|
|
}
|
|
try {
|
|
int intValue = this.b.poll().intValue();
|
|
long j2 = MBridgeConstans.REQUEST_TIME_OUT;
|
|
Queue<Long> queue2 = this.c;
|
|
if (queue2 != null && queue2.size() > 0) {
|
|
j2 = this.c.poll().longValue();
|
|
}
|
|
af.c(e, "preload start queue adsource = " + intValue);
|
|
a(intValue, j2, str, str2, this.q, i2, kVar, aVar);
|
|
} catch (Throwable unused) {
|
|
af.b(e, "queue poll exception");
|
|
}
|
|
}
|
|
|
|
private void a(int i2, long j2, String str, String str2, Map<String, Object> map, int i3, com.mbridge.msdk.c.k kVar, com.mbridge.msdk.b.a.a aVar) {
|
|
com.mbridge.msdk.mbnative.a.b<String, List<Campaign>> a2;
|
|
if (i2 != 1 && (a2 = com.mbridge.msdk.mbnative.a.c.a(i2)) != null) {
|
|
List<Campaign> b2 = a2.b(str, this.y);
|
|
if (b2 != null && b2.size() > 0) {
|
|
a(true, aVar, (String) null);
|
|
return;
|
|
}
|
|
}
|
|
if (i2 == 1) {
|
|
a(i2, j2, i3, kVar, str, str2, true, aVar);
|
|
} else if (i2 == 2) {
|
|
a(2, j2, i3, kVar, str, str2, aVar, false);
|
|
} else {
|
|
a(i2, j2, i3, kVar, str, str2, aVar, false);
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:103:0x02b8 A[Catch: Exception -> 0x009c, TryCatch #3 {Exception -> 0x009c, blocks: (B:3:0x001c, B:6:0x0069, B:8:0x006f, B:10:0x0077, B:12:0x007f, B:14:0x0087, B:16:0x0091, B:17:0x009f, B:19:0x00a9, B:20:0x00b3, B:22:0x00bd, B:23:0x00c7, B:25:0x00cd, B:27:0x00d6, B:29:0x00ef, B:30:0x00f6, B:32:0x00fc, B:33:0x0101, B:35:0x0128, B:36:0x012d, B:42:0x0148, B:45:0x0150, B:47:0x0158, B:49:0x015e, B:52:0x0163, B:54:0x0167, B:59:0x017b, B:61:0x0183, B:63:0x0189, B:67:0x0194, B:68:0x01a6, B:70:0x01aa, B:71:0x01c0, B:73:0x01c8, B:75:0x01d7, B:77:0x01ed, B:81:0x01fe, B:83:0x0204, B:88:0x0211, B:90:0x0218, B:93:0x021e, B:98:0x0269, B:99:0x0276, B:101:0x028f, B:103:0x02b8, B:104:0x02be, B:106:0x02c6, B:108:0x02d8, B:109:0x02e1, B:111:0x02e9, B:117:0x02f9, B:118:0x0309, B:123:0x0316, B:124:0x0342, B:126:0x037d, B:127:0x0382, B:129:0x038a, B:131:0x0394, B:132:0x03b4, B:134:0x03be, B:136:0x03c8, B:137:0x03e8, B:140:0x041e, B:142:0x044c, B:143:0x047e, B:147:0x0465, B:148:0x041b, B:150:0x032e, B:152:0x02fe, B:153:0x0303, B:158:0x022b, B:160:0x0231, B:169:0x0252, B:181:0x0281, B:187:0x0484), top: B:2:0x001c }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:106:0x02c6 A[Catch: Exception -> 0x009c, TryCatch #3 {Exception -> 0x009c, blocks: (B:3:0x001c, B:6:0x0069, B:8:0x006f, B:10:0x0077, B:12:0x007f, B:14:0x0087, B:16:0x0091, B:17:0x009f, B:19:0x00a9, B:20:0x00b3, B:22:0x00bd, B:23:0x00c7, B:25:0x00cd, B:27:0x00d6, B:29:0x00ef, B:30:0x00f6, B:32:0x00fc, B:33:0x0101, B:35:0x0128, B:36:0x012d, B:42:0x0148, B:45:0x0150, B:47:0x0158, B:49:0x015e, B:52:0x0163, B:54:0x0167, B:59:0x017b, B:61:0x0183, B:63:0x0189, B:67:0x0194, B:68:0x01a6, B:70:0x01aa, B:71:0x01c0, B:73:0x01c8, B:75:0x01d7, B:77:0x01ed, B:81:0x01fe, B:83:0x0204, B:88:0x0211, B:90:0x0218, B:93:0x021e, B:98:0x0269, B:99:0x0276, B:101:0x028f, B:103:0x02b8, B:104:0x02be, B:106:0x02c6, B:108:0x02d8, B:109:0x02e1, B:111:0x02e9, B:117:0x02f9, B:118:0x0309, B:123:0x0316, B:124:0x0342, B:126:0x037d, B:127:0x0382, B:129:0x038a, B:131:0x0394, B:132:0x03b4, B:134:0x03be, B:136:0x03c8, B:137:0x03e8, B:140:0x041e, B:142:0x044c, B:143:0x047e, B:147:0x0465, B:148:0x041b, B:150:0x032e, B:152:0x02fe, B:153:0x0303, B:158:0x022b, B:160:0x0231, B:169:0x0252, B:181:0x0281, B:187:0x0484), top: B:2:0x001c }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:111:0x02e9 A[Catch: Exception -> 0x009c, TryCatch #3 {Exception -> 0x009c, blocks: (B:3:0x001c, B:6:0x0069, B:8:0x006f, B:10:0x0077, B:12:0x007f, B:14:0x0087, B:16:0x0091, B:17:0x009f, B:19:0x00a9, B:20:0x00b3, B:22:0x00bd, B:23:0x00c7, B:25:0x00cd, B:27:0x00d6, B:29:0x00ef, B:30:0x00f6, B:32:0x00fc, B:33:0x0101, B:35:0x0128, B:36:0x012d, B:42:0x0148, B:45:0x0150, B:47:0x0158, B:49:0x015e, B:52:0x0163, B:54:0x0167, B:59:0x017b, B:61:0x0183, B:63:0x0189, B:67:0x0194, B:68:0x01a6, B:70:0x01aa, B:71:0x01c0, B:73:0x01c8, B:75:0x01d7, B:77:0x01ed, B:81:0x01fe, B:83:0x0204, B:88:0x0211, B:90:0x0218, B:93:0x021e, B:98:0x0269, B:99:0x0276, B:101:0x028f, B:103:0x02b8, B:104:0x02be, B:106:0x02c6, B:108:0x02d8, B:109:0x02e1, B:111:0x02e9, B:117:0x02f9, B:118:0x0309, B:123:0x0316, B:124:0x0342, B:126:0x037d, B:127:0x0382, B:129:0x038a, B:131:0x0394, B:132:0x03b4, B:134:0x03be, B:136:0x03c8, B:137:0x03e8, B:140:0x041e, B:142:0x044c, B:143:0x047e, B:147:0x0465, B:148:0x041b, B:150:0x032e, B:152:0x02fe, B:153:0x0303, B:158:0x022b, B:160:0x0231, B:169:0x0252, B:181:0x0281, B:187:0x0484), top: B:2:0x001c }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:121:0x0313 */
|
|
/* JADX WARN: Removed duplicated region for block: B:126:0x037d A[Catch: Exception -> 0x009c, TryCatch #3 {Exception -> 0x009c, blocks: (B:3:0x001c, B:6:0x0069, B:8:0x006f, B:10:0x0077, B:12:0x007f, B:14:0x0087, B:16:0x0091, B:17:0x009f, B:19:0x00a9, B:20:0x00b3, B:22:0x00bd, B:23:0x00c7, B:25:0x00cd, B:27:0x00d6, B:29:0x00ef, B:30:0x00f6, B:32:0x00fc, B:33:0x0101, B:35:0x0128, B:36:0x012d, B:42:0x0148, B:45:0x0150, B:47:0x0158, B:49:0x015e, B:52:0x0163, B:54:0x0167, B:59:0x017b, B:61:0x0183, B:63:0x0189, B:67:0x0194, B:68:0x01a6, B:70:0x01aa, B:71:0x01c0, B:73:0x01c8, B:75:0x01d7, B:77:0x01ed, B:81:0x01fe, B:83:0x0204, B:88:0x0211, B:90:0x0218, B:93:0x021e, B:98:0x0269, B:99:0x0276, B:101:0x028f, B:103:0x02b8, B:104:0x02be, B:106:0x02c6, B:108:0x02d8, B:109:0x02e1, B:111:0x02e9, B:117:0x02f9, B:118:0x0309, B:123:0x0316, B:124:0x0342, B:126:0x037d, B:127:0x0382, B:129:0x038a, B:131:0x0394, B:132:0x03b4, B:134:0x03be, B:136:0x03c8, B:137:0x03e8, B:140:0x041e, B:142:0x044c, B:143:0x047e, B:147:0x0465, B:148:0x041b, B:150:0x032e, B:152:0x02fe, B:153:0x0303, B:158:0x022b, B:160:0x0231, B:169:0x0252, B:181:0x0281, B:187:0x0484), top: B:2:0x001c }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:129:0x038a A[Catch: Exception -> 0x009c, TryCatch #3 {Exception -> 0x009c, blocks: (B:3:0x001c, B:6:0x0069, B:8:0x006f, B:10:0x0077, B:12:0x007f, B:14:0x0087, B:16:0x0091, B:17:0x009f, B:19:0x00a9, B:20:0x00b3, B:22:0x00bd, B:23:0x00c7, B:25:0x00cd, B:27:0x00d6, B:29:0x00ef, B:30:0x00f6, B:32:0x00fc, B:33:0x0101, B:35:0x0128, B:36:0x012d, B:42:0x0148, B:45:0x0150, B:47:0x0158, B:49:0x015e, B:52:0x0163, B:54:0x0167, B:59:0x017b, B:61:0x0183, B:63:0x0189, B:67:0x0194, B:68:0x01a6, B:70:0x01aa, B:71:0x01c0, B:73:0x01c8, B:75:0x01d7, B:77:0x01ed, B:81:0x01fe, B:83:0x0204, B:88:0x0211, B:90:0x0218, B:93:0x021e, B:98:0x0269, B:99:0x0276, B:101:0x028f, B:103:0x02b8, B:104:0x02be, B:106:0x02c6, B:108:0x02d8, B:109:0x02e1, B:111:0x02e9, B:117:0x02f9, B:118:0x0309, B:123:0x0316, B:124:0x0342, B:126:0x037d, B:127:0x0382, B:129:0x038a, B:131:0x0394, B:132:0x03b4, B:134:0x03be, B:136:0x03c8, B:137:0x03e8, B:140:0x041e, B:142:0x044c, B:143:0x047e, B:147:0x0465, B:148:0x041b, B:150:0x032e, B:152:0x02fe, B:153:0x0303, B:158:0x022b, B:160:0x0231, B:169:0x0252, B:181:0x0281, B:187:0x0484), top: B:2:0x001c }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:134:0x03be A[Catch: Exception -> 0x009c, TryCatch #3 {Exception -> 0x009c, blocks: (B:3:0x001c, B:6:0x0069, B:8:0x006f, B:10:0x0077, B:12:0x007f, B:14:0x0087, B:16:0x0091, B:17:0x009f, B:19:0x00a9, B:20:0x00b3, B:22:0x00bd, B:23:0x00c7, B:25:0x00cd, B:27:0x00d6, B:29:0x00ef, B:30:0x00f6, B:32:0x00fc, B:33:0x0101, B:35:0x0128, B:36:0x012d, B:42:0x0148, B:45:0x0150, B:47:0x0158, B:49:0x015e, B:52:0x0163, B:54:0x0167, B:59:0x017b, B:61:0x0183, B:63:0x0189, B:67:0x0194, B:68:0x01a6, B:70:0x01aa, B:71:0x01c0, B:73:0x01c8, B:75:0x01d7, B:77:0x01ed, B:81:0x01fe, B:83:0x0204, B:88:0x0211, B:90:0x0218, B:93:0x021e, B:98:0x0269, B:99:0x0276, B:101:0x028f, B:103:0x02b8, B:104:0x02be, B:106:0x02c6, B:108:0x02d8, B:109:0x02e1, B:111:0x02e9, B:117:0x02f9, B:118:0x0309, B:123:0x0316, B:124:0x0342, B:126:0x037d, B:127:0x0382, B:129:0x038a, B:131:0x0394, B:132:0x03b4, B:134:0x03be, B:136:0x03c8, B:137:0x03e8, B:140:0x041e, B:142:0x044c, B:143:0x047e, B:147:0x0465, B:148:0x041b, B:150:0x032e, B:152:0x02fe, B:153:0x0303, B:158:0x022b, B:160:0x0231, B:169:0x0252, B:181:0x0281, B:187:0x0484), top: B:2:0x001c }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:139:0x0419 A[ADDED_TO_REGION] */
|
|
/* JADX WARN: Removed duplicated region for block: B:142:0x044c A[Catch: Exception -> 0x009c, TryCatch #3 {Exception -> 0x009c, blocks: (B:3:0x001c, B:6:0x0069, B:8:0x006f, B:10:0x0077, B:12:0x007f, B:14:0x0087, B:16:0x0091, B:17:0x009f, B:19:0x00a9, B:20:0x00b3, B:22:0x00bd, B:23:0x00c7, B:25:0x00cd, B:27:0x00d6, B:29:0x00ef, B:30:0x00f6, B:32:0x00fc, B:33:0x0101, B:35:0x0128, B:36:0x012d, B:42:0x0148, B:45:0x0150, B:47:0x0158, B:49:0x015e, B:52:0x0163, B:54:0x0167, B:59:0x017b, B:61:0x0183, B:63:0x0189, B:67:0x0194, B:68:0x01a6, B:70:0x01aa, B:71:0x01c0, B:73:0x01c8, B:75:0x01d7, B:77:0x01ed, B:81:0x01fe, B:83:0x0204, B:88:0x0211, B:90:0x0218, B:93:0x021e, B:98:0x0269, B:99:0x0276, B:101:0x028f, B:103:0x02b8, B:104:0x02be, B:106:0x02c6, B:108:0x02d8, B:109:0x02e1, B:111:0x02e9, B:117:0x02f9, B:118:0x0309, B:123:0x0316, B:124:0x0342, B:126:0x037d, B:127:0x0382, B:129:0x038a, B:131:0x0394, B:132:0x03b4, B:134:0x03be, B:136:0x03c8, B:137:0x03e8, B:140:0x041e, B:142:0x044c, B:143:0x047e, B:147:0x0465, B:148:0x041b, B:150:0x032e, B:152:0x02fe, B:153:0x0303, B:158:0x022b, B:160:0x0231, B:169:0x0252, B:181:0x0281, B:187:0x0484), top: B:2:0x001c }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:145:0x0460 */
|
|
/* JADX WARN: Removed duplicated region for block: B:150:0x032e A[Catch: Exception -> 0x009c, TryCatch #3 {Exception -> 0x009c, blocks: (B:3:0x001c, B:6:0x0069, B:8:0x006f, B:10:0x0077, B:12:0x007f, B:14:0x0087, B:16:0x0091, B:17:0x009f, B:19:0x00a9, B:20:0x00b3, B:22:0x00bd, B:23:0x00c7, B:25:0x00cd, B:27:0x00d6, B:29:0x00ef, B:30:0x00f6, B:32:0x00fc, B:33:0x0101, B:35:0x0128, B:36:0x012d, B:42:0x0148, B:45:0x0150, B:47:0x0158, B:49:0x015e, B:52:0x0163, B:54:0x0167, B:59:0x017b, B:61:0x0183, B:63:0x0189, B:67:0x0194, B:68:0x01a6, B:70:0x01aa, B:71:0x01c0, B:73:0x01c8, B:75:0x01d7, B:77:0x01ed, B:81:0x01fe, B:83:0x0204, B:88:0x0211, B:90:0x0218, B:93:0x021e, B:98:0x0269, B:99:0x0276, B:101:0x028f, B:103:0x02b8, B:104:0x02be, B:106:0x02c6, B:108:0x02d8, B:109:0x02e1, B:111:0x02e9, B:117:0x02f9, B:118:0x0309, B:123:0x0316, B:124:0x0342, B:126:0x037d, B:127:0x0382, B:129:0x038a, B:131:0x0394, B:132:0x03b4, B:134:0x03be, B:136:0x03c8, B:137:0x03e8, B:140:0x041e, B:142:0x044c, B:143:0x047e, B:147:0x0465, B:148:0x041b, B:150:0x032e, B:152:0x02fe, B:153:0x0303, B:158:0x022b, B:160:0x0231, B:169:0x0252, B:181:0x0281, B:187:0x0484), top: B:2:0x001c }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:151:0x032b */
|
|
/* JADX WARN: Unreachable blocks removed: 2, instructions: 2 */
|
|
@Override // com.mbridge.msdk.mbnative.controller.b
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void a(int r26, long r27, int r29, com.mbridge.msdk.c.k r30, java.lang.String r31, java.lang.String r32, com.mbridge.msdk.b.a.a r33, boolean r34) {
|
|
/*
|
|
Method dump skipped, instructions count: 1189
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mbridge.msdk.mbnative.controller.d.a(int, long, int, com.mbridge.msdk.c.k, java.lang.String, java.lang.String, com.mbridge.msdk.b.a.a, boolean):void");
|
|
}
|
|
|
|
public static void a(int i2, String str) {
|
|
k kVar;
|
|
if (h.containsKey(str)) {
|
|
kVar = h.get(str);
|
|
} else {
|
|
kVar = new k();
|
|
}
|
|
int intValue = i.get(str).intValue();
|
|
int intValue2 = j.containsKey(str) ? j.get(str).intValue() : 1;
|
|
if (i2 == 1) {
|
|
int a2 = intValue + kVar.a();
|
|
kVar.a(a2 <= intValue2 ? a2 : 0);
|
|
} else if (i2 == 2) {
|
|
int b2 = intValue + kVar.b();
|
|
kVar.b(b2 <= intValue2 ? b2 : 0);
|
|
}
|
|
h.put(str, kVar);
|
|
}
|
|
|
|
public static void b(int i2, String str) {
|
|
if (h.containsKey(str)) {
|
|
k kVar = h.get(str);
|
|
if (i2 == 1) {
|
|
kVar.a(0);
|
|
} else if (i2 == 2) {
|
|
kVar.b(0);
|
|
}
|
|
h.put(str, kVar);
|
|
}
|
|
}
|
|
|
|
public class a extends com.mbridge.msdk.mbnative.f.a.b implements com.mbridge.msdk.foundation.same.e.d {
|
|
private int b;
|
|
private int c;
|
|
private int d;
|
|
private int e;
|
|
private int f;
|
|
private Runnable i;
|
|
private com.mbridge.msdk.b.a.a k;
|
|
private List<String> g = null;
|
|
private boolean h = false;
|
|
private boolean j = true;
|
|
|
|
public final void a(int i) {
|
|
this.f = i;
|
|
}
|
|
|
|
public final void a(com.mbridge.msdk.b.a.a aVar) {
|
|
this.k = aVar;
|
|
}
|
|
|
|
public final void a(Runnable runnable) {
|
|
this.i = runnable;
|
|
}
|
|
|
|
public final void a(List<String> list) {
|
|
this.g = list;
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.foundation.same.e.d
|
|
public final void a(boolean z) {
|
|
this.h = z;
|
|
}
|
|
|
|
public final void b(int i) {
|
|
this.d = i;
|
|
}
|
|
|
|
public final void b(boolean z) {
|
|
this.j = z;
|
|
}
|
|
|
|
public final void c(int i) {
|
|
this.e = i;
|
|
}
|
|
|
|
public final void d(int i) {
|
|
this.c = i;
|
|
}
|
|
|
|
public a(int i) {
|
|
this.b = i;
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.mbnative.f.a.b
|
|
public final void a(List<h> list, final CampaignUnit campaignUnit) {
|
|
d.this.w = true;
|
|
d.this.a(true, this.k, (String) null);
|
|
d.this.a(new Thread(new Runnable() { // from class: com.mbridge.msdk.mbnative.controller.d.a.1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
boolean z;
|
|
if (MBridgeConstans.PRELOAD_RESULT_IN_SUBTHREAD && Looper.myLooper() == null) {
|
|
Looper.prepare();
|
|
z = true;
|
|
} else {
|
|
z = false;
|
|
}
|
|
if (a.this.i != null) {
|
|
a aVar = a.this;
|
|
d.this.a.removeCallbacks(aVar.i);
|
|
}
|
|
if (com.mbridge.msdk.e.b.a()) {
|
|
d dVar = d.this;
|
|
}
|
|
if (d.f.containsKey("0_" + a.this.unitId)) {
|
|
d.f.remove("0_" + a.this.unitId);
|
|
}
|
|
if (a.this.f > 0) {
|
|
if (campaignUnit.ads.size() > a.this.f) {
|
|
a aVar2 = a.this;
|
|
aVar2.c = aVar2.f;
|
|
} else {
|
|
a.this.c = campaignUnit.ads.size();
|
|
}
|
|
} else if (a.this.f == -1) {
|
|
a.this.c = 0;
|
|
} else if (a.this.f == -3) {
|
|
a.this.c = campaignUnit.ads.size();
|
|
} else if (a.this.f == -2) {
|
|
if (campaignUnit.getTemplate() == 3) {
|
|
if (a.this.e != 0) {
|
|
a aVar3 = a.this;
|
|
aVar3.c = aVar3.e;
|
|
}
|
|
} else if (a.this.d != 0) {
|
|
a aVar4 = a.this;
|
|
aVar4.c = aVar4.d;
|
|
}
|
|
if (a.this.c <= 0) {
|
|
a.this.c = ((Integer) d.i.get(a.this.unitId)).intValue();
|
|
}
|
|
}
|
|
if (campaignUnit.ads.size() < a.this.c) {
|
|
a.this.c = campaignUnit.ads.size();
|
|
}
|
|
ArrayList arrayList = new ArrayList();
|
|
ArrayList arrayList2 = new ArrayList();
|
|
for (int i = 0; i < campaignUnit.ads.size(); i++) {
|
|
CampaignEx campaignEx = campaignUnit.ads.get(i);
|
|
campaignEx.setCampaignUnitId(a.this.unitId);
|
|
boolean c = ak.c(com.mbridge.msdk.foundation.controller.c.m().c(), campaignEx.getPackageName());
|
|
d dVar2 = d.this;
|
|
com.mbridge.msdk.foundation.controller.c.m().c();
|
|
if (arrayList.size() < a.this.c && campaignEx.getOfferType() != 99) {
|
|
if (ak.c(campaignEx)) {
|
|
campaignEx.setRtinsType(c ? 1 : 2);
|
|
}
|
|
if (com.mbridge.msdk.foundation.same.c.a(com.mbridge.msdk.foundation.controller.c.m().c(), campaignEx)) {
|
|
arrayList.add(campaignEx);
|
|
if (!TextUtils.isEmpty(campaignEx.getVideoUrlEncode())) {
|
|
arrayList2.add(campaignEx);
|
|
}
|
|
} else {
|
|
ak.a(a.this.unitId, campaignEx, com.mbridge.msdk.foundation.same.a.x);
|
|
}
|
|
a.a(a.this, campaignEx, null, null);
|
|
}
|
|
d dVar3 = d.this;
|
|
dVar3.a(dVar3.t, campaignEx);
|
|
}
|
|
a aVar5 = a.this;
|
|
d.a(d.this, arrayList2, aVar5.unitId);
|
|
com.mbridge.msdk.mbnative.a.b<String, List<Campaign>> a = com.mbridge.msdk.mbnative.a.c.a(campaignUnit.getAds().get(0) != null ? campaignUnit.getAds().get(0).getType() : 1);
|
|
if (a != null) {
|
|
a.a((com.mbridge.msdk.mbnative.a.b<String, List<Campaign>>) a.this.unitId, (String) arrayList);
|
|
}
|
|
d.a(a.this.b, a.this.unitId);
|
|
if (Looper.myLooper() != null && z) {
|
|
Looper.loop();
|
|
}
|
|
if (campaignUnit.getAds().get(0) != null) {
|
|
com.mbridge.msdk.click.c.a(com.mbridge.msdk.foundation.controller.c.m().c(), campaignUnit.getAds().get(0).getMaitve(), campaignUnit.getAds().get(0).getMaitve_src());
|
|
}
|
|
}
|
|
}));
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.mbnative.f.a.b
|
|
public final void a(final int i, final String str) {
|
|
d.this.a(new Thread(new Runnable() { // from class: com.mbridge.msdk.mbnative.controller.d.a.3
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
boolean z;
|
|
if (MBridgeConstans.PRELOAD_RESULT_IN_SUBTHREAD && Looper.myLooper() == null) {
|
|
Looper.prepare();
|
|
z = true;
|
|
} else {
|
|
z = false;
|
|
}
|
|
if (!a.this.h) {
|
|
if (a.this.i != null) {
|
|
a aVar = a.this;
|
|
d.this.a.removeCallbacks(aVar.i);
|
|
}
|
|
if (a.this.b() == 1 || a.this.j) {
|
|
a aVar2 = a.this;
|
|
d dVar = d.this;
|
|
String str2 = str;
|
|
int b = aVar2.b();
|
|
a aVar3 = a.this;
|
|
dVar.a(str2, b, aVar3.unitId, aVar3.placementId, aVar3.k);
|
|
}
|
|
} else if (a.this.j) {
|
|
a aVar4 = a.this;
|
|
d dVar2 = d.this;
|
|
String str3 = str;
|
|
int b2 = aVar4.b();
|
|
a aVar5 = a.this;
|
|
dVar2.a(str3, b2, aVar5.unitId, aVar5.placementId, aVar5.k);
|
|
}
|
|
if (i == -1) {
|
|
d.b(a.this.b, a.this.unitId);
|
|
}
|
|
if (Looper.myLooper() == null || !z) {
|
|
return;
|
|
}
|
|
Looper.loop();
|
|
}
|
|
}));
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.mbnative.f.a.b
|
|
public final void b(final List<Frame> list) {
|
|
d.this.a(new Thread(new Runnable() { // from class: com.mbridge.msdk.mbnative.controller.d.a.4
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
boolean z;
|
|
if (MBridgeConstans.PRELOAD_RESULT_IN_SUBTHREAD && Looper.myLooper() == null) {
|
|
Looper.prepare();
|
|
z = true;
|
|
} else {
|
|
z = false;
|
|
}
|
|
if (!a.this.h && a.this.i != null) {
|
|
a aVar = a.this;
|
|
d.this.a.removeCallbacks(aVar.i);
|
|
}
|
|
List list2 = list;
|
|
if (list2 != null && list2.size() > 0) {
|
|
Iterator it = list.iterator();
|
|
while (it.hasNext()) {
|
|
for (CampaignEx campaignEx : ((Frame) it.next()).getCampaigns()) {
|
|
d dVar = d.this;
|
|
dVar.a(dVar.t, campaignEx);
|
|
}
|
|
}
|
|
HashMap hashMap = new HashMap();
|
|
hashMap.put(Long.valueOf(System.currentTimeMillis()), list);
|
|
if (d.f.containsKey("1_" + a.this.unitId)) {
|
|
d.f.remove("1_" + a.this.unitId);
|
|
}
|
|
d.f.put("1_" + a.this.unitId, hashMap);
|
|
}
|
|
if (Looper.myLooper() == null || !z) {
|
|
return;
|
|
}
|
|
Looper.loop();
|
|
}
|
|
}));
|
|
}
|
|
|
|
public static /* synthetic */ void a(a aVar, final CampaignEx campaignEx, com.mbridge.msdk.foundation.same.report.d.c cVar, final com.mbridge.msdk.foundation.same.report.d.a.a aVar2) {
|
|
try {
|
|
final Context c = com.mbridge.msdk.foundation.controller.c.m().c();
|
|
com.mbridge.msdk.foundation.same.c.a(campaignEx, c, cVar, new c.a() { // from class: com.mbridge.msdk.mbnative.controller.d.a.2
|
|
@Override // com.mbridge.msdk.foundation.same.c.a
|
|
public final void a(String str, com.mbridge.msdk.foundation.same.report.d.c cVar2) {
|
|
com.mbridge.msdk.mbnative.e.a.a(str, cVar2, campaignEx, c, aVar2);
|
|
}
|
|
});
|
|
} catch (Exception e) {
|
|
if (MBridgeConstans.DEBUG) {
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void a(String str, int i2, String str2, String str3, com.mbridge.msdk.b.a.a aVar) {
|
|
Log.e(e, str);
|
|
try {
|
|
Queue<Integer> queue = this.b;
|
|
if (queue != null) {
|
|
if (queue.size() > 0) {
|
|
}
|
|
a(false, aVar, str);
|
|
}
|
|
if (this.b != null) {
|
|
a(i2, this.n, str2, str3, aVar);
|
|
return;
|
|
}
|
|
a(false, aVar, str);
|
|
} catch (Exception e2) {
|
|
if (MBridgeConstans.DEBUG) {
|
|
e2.printStackTrace();
|
|
}
|
|
}
|
|
}
|
|
|
|
public class b implements Runnable {
|
|
private int b;
|
|
private com.mbridge.msdk.foundation.same.e.d c;
|
|
private int d;
|
|
private String e;
|
|
private String f;
|
|
private com.mbridge.msdk.b.a.a g;
|
|
private boolean h = false;
|
|
|
|
public final void a(com.mbridge.msdk.b.a.a aVar) {
|
|
this.g = aVar;
|
|
}
|
|
|
|
public final void a(String str) {
|
|
this.e = str;
|
|
}
|
|
|
|
public final void a(boolean z) {
|
|
this.h = z;
|
|
}
|
|
|
|
public b(int i, com.mbridge.msdk.foundation.same.e.d dVar, int i2, String str, String str2) {
|
|
this.b = i;
|
|
this.c = dVar;
|
|
this.d = i2;
|
|
this.e = str;
|
|
this.f = str2;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
this.c.a(true);
|
|
int i = this.b;
|
|
if (i != 1) {
|
|
if (i != 2) {
|
|
return;
|
|
}
|
|
d.this.a("REQUEST_TIMEOUT", this.d, this.e, this.f, this.g);
|
|
} else {
|
|
d.this.w = true;
|
|
if (this.h || this.d == 1) {
|
|
d.this.a("REQUEST_TIMEOUT", this.d, this.e, this.f, this.g);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void a(boolean z, com.mbridge.msdk.b.a.a aVar, String str) {
|
|
if (z) {
|
|
if (aVar == null || aVar.a()) {
|
|
return;
|
|
}
|
|
aVar.a(true);
|
|
aVar.onPreloadSucceed();
|
|
return;
|
|
}
|
|
if (aVar == null || aVar.a()) {
|
|
return;
|
|
}
|
|
aVar.a(true);
|
|
aVar.onPreloadFaild(str);
|
|
}
|
|
|
|
public final void a(boolean z, Campaign campaign) {
|
|
if (campaign == null) {
|
|
return;
|
|
}
|
|
if (z && campaign.getIconDrawable() == null) {
|
|
campaign.loadIconUrlAsyncWithBlock(null);
|
|
}
|
|
if (z && campaign.getBigDrawable() == null) {
|
|
campaign.loadImageUrlAsyncWithBlock(null);
|
|
}
|
|
}
|
|
|
|
public final void a(Thread thread) {
|
|
if (!MBridgeConstans.PRELOAD_RESULT_IN_SUBTHREAD) {
|
|
thread.run();
|
|
} else {
|
|
thread.start();
|
|
}
|
|
}
|
|
|
|
public static /* synthetic */ void a(d dVar, List list, String str) {
|
|
if (list != null) {
|
|
try {
|
|
if (list.size() > 0) {
|
|
try {
|
|
int i2 = MBMediaView.$r8$clinit;
|
|
Object invoke = com.mbridge.msdk.videocommon.download.b.class.getMethod("getInstance", new Class[0]).invoke(null, new Object[0]);
|
|
if (invoke != null) {
|
|
com.mbridge.msdk.videocommon.download.b.class.getMethod("createUnitCache", Context.class, String.class, CopyOnWriteArrayList.class, Integer.TYPE, com.mbridge.msdk.videocommon.listener.a.class).invoke(invoke, com.mbridge.msdk.foundation.controller.c.m().c(), str, new CopyOnWriteArrayList(list), 1, null);
|
|
com.mbridge.msdk.videocommon.download.b.class.getMethod("load", String.class).invoke(invoke, str);
|
|
}
|
|
} catch (Exception unused) {
|
|
af.b(e, "please import the videocommon aar");
|
|
}
|
|
}
|
|
} catch (Exception e2) {
|
|
af.b(e, com.mbridge.msdk.mbnative.b.a.a(e2));
|
|
}
|
|
}
|
|
}
|
|
}
|