package com.opos.mobad.c.a; import android.content.Context; import android.graphics.Point; import android.os.Bundle; import android.text.TextUtils; import com.baidu.mobads.sdk.internal.an; import com.kwad.sdk.core.imageloader.KSImageLoader; import com.opos.cmn.biz.a.e; import com.opos.cmn.func.a.b.d; import com.opos.cmn.i.a; import com.opos.cmn.i.g; import com.opos.mobad.c.a.c; import com.opos.mobad.provider.strategy.PosInfo; import com.opos.mobad.r.a.b; import com.opos.mobad.r.a.f; import com.opos.mobad.r.a.h; import com.opos.mobad.r.a.i; import com.opos.mobad.r.a.j; import com.opos.mobad.r.a.k; import com.opos.mobad.r.a.l; import com.opos.mobad.r.a.m; import com.opos.mobad.r.a.n; import com.opos.mobad.r.a.o; import com.opos.mobad.r.a.p; import com.opos.mobad.r.a.q; import com.opos.mobad.r.a.r; import com.opos.mobad.r.a.s; import com.opos.mobad.r.a.t; import com.opos.mobad.r.a.u; import com.opos.mobad.r.a.x; import com.opos.mobad.r.a.y; import com.opos.mobad.service.d.a; import com.opos.mobad.service.e.d; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicReference; import org.json.JSONException; public class d { public static final int a = o.HORIZONTAL.getValue(); public static final int b = o.VERTICAL.getValue(); private Context c; private int d; /* renamed from: e reason: collision with root package name */ private String f13943e; /* renamed from: f reason: collision with root package name */ private String f13944f; /* renamed from: g reason: collision with root package name */ private int f13945g; /* renamed from: h reason: collision with root package name */ private c f13946h; /* renamed from: i reason: collision with root package name */ private com.opos.cmn.i.a f13947i; private Integer j = null; private volatile c k = new c(); private AtomicReference<Map<String, e>> l = new AtomicReference<>(null); private AbstractC0291d m; private AtomicBoolean n = new AtomicBoolean(false); private long o = 0; private Map<String, String> p = new ConcurrentHashMap(); private Map<String, String> q = new ConcurrentHashMap(); private Map<String, String> r = new ConcurrentHashMap(); private Map<String, String> s = new ConcurrentHashMap(); private com.opos.mobad.c.d t; private Bundle u; /* renamed from: com.opos.mobad.c.a.d$5 reason: invalid class name */ static /* synthetic */ class AnonymousClass5 { static final /* synthetic */ int[] a; /* JADX WARNING: Can't wrap try/catch for region: R(8:0|1|2|3|4|5|6|(3:7|8|10)) */ /* JADX WARNING: Failed to process nested try/catch */ /* JADX WARNING: Missing exception handler attribute for start block: B:3:0x0012 */ /* JADX WARNING: Missing exception handler attribute for start block: B:5:0x001d */ /* JADX WARNING: Missing exception handler attribute for start block: B:7:0x0028 */ static { int[] iArr = new int[k.values().length]; a = iArr; iArr[k.BIDDING_MODE.ordinal()] = 1; a[k.PERCENTAGE_MODE.ordinal()] = 2; a[k.UNKNOWN_MODE.ordinal()] = 3; try { a[k.RANKER_MODE.ordinal()] = 4; } catch (NoSuchFieldError unused) { } } } public static class a { public static final int a = com.opos.mobad.r.a.d.UNION.getValue(); public static final int b = com.opos.mobad.r.a.d.TT.getValue(); public static final int c = com.opos.mobad.r.a.d.BD.getValue(); public static final int d = com.opos.mobad.r.a.d.GDT.getValue(); /* renamed from: e reason: collision with root package name */ public static final int f13948e = com.opos.mobad.r.a.d.MIX.getValue(); /* renamed from: f reason: collision with root package name */ public static final int f13949f = com.opos.mobad.r.a.d.GG.getValue(); /* renamed from: g reason: collision with root package name */ public static final int f13950g = com.opos.mobad.r.a.d.FB.getValue(); /* renamed from: h reason: collision with root package name */ public static final int f13951h = com.opos.mobad.r.a.d.f14425i.getValue(); /* renamed from: i reason: collision with root package name */ public static final int f13952i = com.opos.mobad.r.a.d.MTG.getValue(); public static final int j = com.opos.mobad.r.a.d.PANGLE.getValue(); public static final int k = com.opos.mobad.r.a.d.KS.getValue(); public static final int l = com.opos.mobad.r.a.d.TOPON.getValue(); public final int m; public final String n; public final long o; public final int p; public final int q; public final int r; public final int s; private final float t; public a(int i2, String str, int i3, long j2, int i4, int i5) { this(i2, str, i3, j2, i4, i5, 0, 1.0f); } public a(int i2, String str, int i3, long j2, int i4, int i5, int i6, float f2) { this.m = i2; this.n = str; this.o = j2; this.p = i4; this.q = i5; this.r = i3; this.s = i6; this.t = f2; } public float a() { float f2 = this.t; if (f2 < 0.0f || f2 > 1.0f) { return 0.8f; } return f2; } public String toString() { return "channel:" + this.m + ",posId:" + this.n + ",percnet:" + this.r + ",timeout:" + this.o + ",factor:" + this.t; } } public static class b { public final List<a> a; public final a b; public final long c; public final long d; /* renamed from: e reason: collision with root package name */ public final int f13953e; public b(List<a> list, int i2, a aVar, long j, long j2) { this.a = list; this.b = aVar; this.c = j; this.d = j2; this.f13953e = i2; } public b(List<a> list, a aVar, long j, long j2) { this(list, 2, aVar, j, j2); } public String toString() { return "DispatchChannelStrategy{channelList=" + this.a + ", baseChannel=" + this.b + ", unionTimeout=" + this.c + ", strategyVersion=" + this.d + ", dispatch=" + this.f13953e + '}'; } } /* access modifiers changed from: private */ public static class c { private final Map<Integer, f> a; private final com.opos.mobad.r.a.c b; private final long c; private final long d; /* renamed from: e reason: collision with root package name */ private final long f13954e; /* renamed from: f reason: collision with root package name */ private final String f13955f; /* renamed from: g reason: collision with root package name */ private final Map<Integer, String> f13956g; /* renamed from: h reason: collision with root package name */ private final String f13957h; /* renamed from: i reason: collision with root package name */ private final String f13958i; public c() { this(null, null, Long.MIN_VALUE, Long.MIN_VALUE, 0, "", null, "", ""); } public c(List<f> list, com.opos.mobad.r.a.c cVar, long j, long j2, long j3, String str, List<p> list2, String str2, String str3) { this.a = new HashMap(); if (list != null && list.size() > 0) { for (f fVar : list) { if (d.b(fVar.f14427e)) { this.a.put(Integer.valueOf(fVar.f14427e.getValue()), fVar); } } } this.b = cVar; this.c = j; this.d = j2; this.f13954e = j3; this.f13955f = str; this.f13956g = a(list2); this.f13957h = str2; this.f13958i = str3; } private Map<Integer, String> a(List<p> list) { Integer num; HashMap hashMap = new HashMap(); if (list != null && list.size() > 0) { for (p pVar : list) { if (!(pVar == null || TextUtils.isEmpty(pVar.f14479f) || (num = pVar.f14478e) == null)) { hashMap.put(num, pVar.f14479f); } } } return hashMap; } public boolean a() { com.opos.cmn.an.f.a.b("DispatchController", "current:" + System.currentTimeMillis() + ", exp:" + this.c); return System.currentTimeMillis() >= this.c; } public boolean b() { com.opos.cmn.an.f.a.b("DispatchController", "current:" + System.currentTimeMillis() + ", enable:" + this.d); return System.currentTimeMillis() >= this.d; } } /* renamed from: com.opos.mobad.c.a.d$d reason: collision with other inner class name */ public interface AbstractC0291d { void a(); } public d(com.opos.mobad.c.d dVar) { this.t = dVar; } private void A() { com.opos.cmn.an.f.a.b("DispatchController", "readStrategyFromLocal"); this.f13946h.a(new c.b() { /* class com.opos.mobad.c.a.d.AnonymousClass2 */ @Override // com.opos.mobad.c.a.c.b public void a() { com.opos.cmn.an.f.a.a("DispatchController", "read strategy local fail"); } @Override // com.opos.mobad.c.a.c.b public void a(Bundle bundle) { d.this.a((d) bundle); } }); } private void B() { this.f13947i = new com.opos.cmn.i.a(new a.b() { /* class com.opos.mobad.c.a.d.AnonymousClass3 */ @Override // com.opos.cmn.i.a.b public void a(a.AbstractC0249a aVar) { if (d.this.n.get() || !d.this.n.compareAndSet(false, true)) { d.this.b((d) aVar); } else { d.this.a((d) aVar); } } }, KSImageLoader.InnerImageLoadingListener.MAX_DURATION, 300000); } /* access modifiers changed from: private */ /* access modifiers changed from: public */ private String C() { return "https://uapi.ads.heytapmobi.com/union/strategy/v3/select"; } private void D() { if (this.c != null && this.k.a() && this.f13947i != null) { com.opos.cmn.an.f.a.b("DispatchController", "refresh"); this.f13947i.a(); } } private int E() { if (this.k == null || this.k.b == null || this.k.b.t == null) { return 1; } return this.k.b.t.intValue(); } /* access modifiers changed from: private */ /* access modifiers changed from: public */ private void a(Bundle bundle) { com.opos.cmn.an.f.a.a("DispatchController", "read local strategy size:" + bundle.size()); this.u = bundle; HashMap hashMap = new HashMap(); for (String str : bundle.keySet()) { PosInfo posInfo = (PosInfo) bundle.getParcelable(str); try { hashMap.put(str, new e(posInfo.b, t.c.a(posInfo.a))); } catch (Exception e2) { com.opos.cmn.an.f.a.b("DispatchController", "decode local fail", e2); } } com.opos.cmn.an.f.a.b("DispatchController", "decode local strategy size:" + hashMap.size()); if (this.l.compareAndSet(null, hashMap)) { com.opos.cmn.an.f.a.b("DispatchController", "local strategy size:" + hashMap.size()); AbstractC0291d dVar = this.m; if (dVar != null) { dVar.a(); } } this.u = null; } /* access modifiers changed from: private */ /* access modifiers changed from: public */ private void a(final a.AbstractC0249a aVar) { com.opos.cmn.an.f.a.a("DispatchController", "init from local"); this.f13946h.a(new c.a() { /* class com.opos.mobad.c.a.d.AnonymousClass1 */ @Override // com.opos.mobad.c.a.c.a public void a() { com.opos.cmn.an.f.a.a("DispatchController", "read app info local fail"); aVar.b(); d.this.a(); } @Override // com.opos.mobad.c.a.c.a public void a(s sVar, long j) { com.opos.cmn.an.f.a.a("DispatchController", "read app info local succ:", sVar); Long l = sVar.j; d.this.a(sVar.f14498f, sVar.f14501i, j, sVar.f14500h.longValue(), l != null ? l.longValue() : 0, sVar.k, sVar.l, sVar.m, sVar.n); com.opos.mobad.service.b.b.a().a(d.this.v()); if (d.this.k == null || !d.this.k.a()) { com.opos.cmn.an.f.a.a("DispatchController", "do not need to refresh"); aVar.b(); return; } d.this.b((d) aVar); } }); A(); } /* access modifiers changed from: private */ /* access modifiers changed from: public */ private void a(r rVar) throws JSONException { if (rVar.f14491f.intValue() != 0) { com.opos.cmn.an.f.a.b("DispatchController", "response fail ret:" + rVar.f14491f + ",msg:" + rVar.f14492g); return; } s sVar = rVar.f14493h; if (sVar == null) { com.opos.cmn.an.f.a.b("DispatchController", "response data null"); return; } Long l2 = sVar.j; long longValue = l2 != null ? l2.longValue() : 0; HashMap hashMap = new HashMap(); for (t tVar : sVar.f14499g) { hashMap.put(tVar.p, new e(longValue, tVar)); } this.f13946h.a(sVar, rVar.f14494i.longValue()); this.k = new c(sVar.f14498f, sVar.f14501i, rVar.f14494i.longValue(), sVar.f14500h.longValue(), longValue, sVar.k, sVar.l, sVar.m, sVar.n); a(hashMap); } /* access modifiers changed from: private */ /* access modifiers changed from: public */ private void a(List<f> list, com.opos.mobad.r.a.c cVar, long j2, long j3, long j4, String str, List<p> list2, String str2, String str3) { this.k = new c(list, cVar, j2, j3, j4, str, list2, str2, str3); AbstractC0291d dVar = this.m; if (dVar != null) { dVar.a(); } } private void a(Map<String, e> map) { com.opos.cmn.an.f.a.b("DispatchController", "refresh strategy size:" + map.size()); this.l.set(map); AbstractC0291d dVar = this.m; if (dVar != null) { dVar.a(); } } /* access modifiers changed from: private */ /* access modifiers changed from: public */ private void b(final a.AbstractC0249a aVar) { com.opos.cmn.an.j.b.b(new Runnable() { /* class com.opos.mobad.c.a.d.AnonymousClass4 */ public void run() { u uVar; q.a c = new q.a().a(d.this.f13943e).b(d.this.f13944f).a(Integer.valueOf(d.this.d)).b(Integer.valueOf(d.this.f13945g)).a(Long.valueOf(d.this.o)).c(d.this.c.getPackageName()); try { h.a g2 = new h.a().b(com.opos.mobad.service.e.b.k().f()).c(com.opos.cmn.f.c.b()).d(com.opos.mobad.service.d.a.a().f()).e(com.opos.mobad.service.d.a.a().g()).f(com.opos.mobad.service.d.a.a().h()).a(Boolean.valueOf(com.opos.mobad.service.d.a.a().j())).b(Boolean.valueOf(com.opos.mobad.service.d.a.a().d())).g(com.opos.mobad.service.d.a.a().l()); a.C0324a k = com.opos.mobad.service.d.a.a().k(); if (k != null) { h.a a2 = g2.a(k.a); k.getClass(); a2.a((Integer) 1); } else { g2.a(""); } i b2 = new i.a().a(g2.b()).a(new j.a().c(com.opos.cmn.an.c.c.c()).a(com.opos.cmn.an.c.d.b()).b(com.opos.cmn.an.c.d.a()).b()).b(com.opos.cmn.an.c.a.a(d.this.c)).a(com.opos.cmn.an.c.c.a()).b(); l b3 = new l.a().a(Boolean.valueOf(com.opos.mobad.service.e.d.a().c())).b(com.opos.mobad.service.e.d.a().b()).a(com.opos.mobad.service.e.d.a().d()).b(); y b4 = new y.a().a(Boolean.valueOf(com.opos.mobad.service.e.d.a().e())).b(com.opos.mobad.service.e.d.a().g()).a(com.opos.mobad.service.e.d.a().f()).b(); n b5 = new n.a().a(Integer.valueOf(g.a(d.this.c))).a(g.b(d.this.c)).b(); String b6 = d.this.t.b().b(); int i2 = -1; r rVar = null; if (!TextUtils.isEmpty(b6)) { u.a a3 = new u.a().a(b6); int c2 = d.this.t.b().c(); a3.a(c2 != -1 ? c2 != 0 ? c2 != 1 ? x.UNKNOWN_STATUS : x.VIP : x.NORMAL : x.UNKNOWN_STATUS); uVar = a3.b(); i2 = c2; } else { uVar = null; } m.a a4 = new m.a().a(com.opos.cmn.a.a.b()); d.b l = com.opos.mobad.service.e.d.a().l(); if (l != null) { c.a(new b.a().a(l.b).a(Integer.valueOf(l.a)).b()); } try { a4.b(com.opos.cmn.an.c.b.a()); a4.c(com.opos.cmn.an.c.b.b()); } catch (Exception unused) { com.opos.cmn.an.f.a.b("DispatchController", "local fail"); } q b7 = c.a(b2).a(b3).a(b4).a(b5).a(a4.b()).b(Long.valueOf(d.this.g())).a(uVar).b(); com.opos.cmn.an.f.a.a("DispatchController", "refresh request", b7); HashMap hashMap = new HashMap(); hashMap.put("Content-Type", "application/x-protobuf"); hashMap.put("Route-Data", e.a(d.this.c)); d.a b8 = new d.a().a(q.c.b(b7)).a(hashMap).b(d.this.C()); b8.a(an.b); com.opos.cmn.func.a.b.e a5 = com.opos.cmn.func.a.b.b.a().a(d.this.c, b8.a()); if (a5 != null) { try { if (200 == a5.a) { try { rVar = r.c.a(a5.c); } catch (Throwable th) { com.opos.cmn.an.f.a.a("DispatchController", "decode fail", th); d.this.t.e().b(th); } if (rVar == null) { com.opos.cmn.an.f.a.a("DispatchController", "get dispatch parse fail"); aVar.b(); if (a5 == null) { return; } return; } com.opos.cmn.an.f.a.a("DispatchController", "response dispatch strategy:", rVar); d.this.a((d) rVar); d.this.j = Integer.valueOf(i2); com.opos.mobad.service.b.b.a().a(d.this.v()); aVar.a(); if (a5 != null) { a5.a(); return; } return; } } finally { if (a5 != null) { a5.a(); } } } com.opos.cmn.an.f.a.a("DispatchController", "get dispatch fail code:", a5); if (a5 != null) { a5.a(); } } catch (Throwable th2) { com.opos.cmn.an.f.a.a("", "", th2); } aVar.b(); } }); } /* access modifiers changed from: private */ public static boolean b(com.opos.mobad.r.a.d dVar) { return dVar == com.opos.mobad.r.a.d.TT || dVar == com.opos.mobad.r.a.d.GDT || dVar == com.opos.mobad.r.a.d.UNION || dVar == com.opos.mobad.r.a.d.MIX || dVar == com.opos.mobad.r.a.d.FB || dVar == com.opos.mobad.r.a.d.GG || dVar == com.opos.mobad.r.a.d.f14425i || dVar == com.opos.mobad.r.a.d.MTG || dVar == com.opos.mobad.r.a.d.PANGLE || dVar == com.opos.mobad.r.a.d.KS || dVar == com.opos.mobad.r.a.d.TOPON; } private e f(String str) { Bundle bundle = this.u; if (bundle != null) { com.opos.cmn.an.f.a.b("DispatchController", "getCacheStrategy"); PosInfo posInfo = (PosInfo) bundle.getParcelable(str); if (!TextUtils.isEmpty(str) && posInfo != null) { try { return new e(posInfo.b, t.c.a(posInfo.a)); } catch (Exception e2) { com.opos.cmn.an.f.a.b("DispatchController", "decode pos fail" + str, e2); } } } return null; } public int a(String str) { o oVar; o oVar2; Map<String, e> map = this.l.get(); if (map == null) { e f2 = f(str); if (!(f2 == null || (oVar2 = f2.a.s) == null)) { return oVar2.getValue(); } } else { e eVar = map.get(str); if (!(eVar == null || (oVar = eVar.a.s) == null)) { return oVar.getValue(); } } return o.HORIZONTAL.getValue(); } /* JADX WARNING: Code restructure failed: missing block: B:63:0x010e, code lost: if (r3 != 2) goto L_0x011b; */ /* JADX WARNING: Code restructure failed: missing block: B:66:0x0119, code lost: if (r3.r.booleanValue() != false) goto L_0x011b; */ /* JADX WARNING: Code restructure failed: missing block: B:68:0x011d, code lost: r3 = 1; */ public b a(String str, boolean z) { e eVar; int i2; D(); ArrayList arrayList = new ArrayList(); Map<String, e> map = this.l.get(); a aVar = null; if (map == null) { com.opos.cmn.an.f.a.b("DispatchController", "strategyInfo map null"); eVar = z ? f(str) : null; } else { eVar = map.get(str); } if (eVar == null) { return null; } if (eVar.b != g()) { com.opos.cmn.an.f.a.b("DispatchController", "stg ver fail"); return null; } t tVar = eVar.a; List<com.opos.mobad.r.a.g> list = tVar != null ? tVar.q : null; Long l2 = tVar.u; if (l2 == null) { l2 = t.f14509g; } long longValue = l2.longValue(); if (list == null || list.size() <= 0) { return new b(null, null, longValue, g()); } for (com.opos.mobad.r.a.g gVar : list) { if (b(gVar.n)) { int value = gVar.n.getValue(); String str2 = gVar.k; int intValue = gVar.l.intValue(); long longValue2 = gVar.m.longValue(); Integer num = gVar.o; int intValue2 = num != null ? num.intValue() : 0; Integer num2 = gVar.p; int intValue3 = num2 != null ? num2.intValue() : 0; Integer num3 = gVar.q; int intValue4 = num3 != null ? num3.intValue() : 0; Float f2 = gVar.r; a aVar2 = new a(value, str2, intValue, longValue2, intValue2, intValue3, intValue4, f2 != null ? f2.floatValue() : 0.8f); if (aVar2.m == a.d) { Map<String, String> map2 = this.q; String str3 = aVar2.n; map2.put(str3, str3); } if (aVar2.m == a.b) { Map<String, String> map3 = this.p; String str4 = aVar2.n; map3.put(str4, str4); } if (aVar2.m == a.f13951h) { Map<String, String> map4 = this.r; String str5 = aVar2.n; map4.put(str5, str5); } arrayList.add(aVar2); com.opos.mobad.r.a.d dVar = tVar.t; if (dVar != null && dVar == gVar.n) { aVar = aVar2; } } } k kVar = tVar.x; if (kVar != null) { int i3 = AnonymousClass5.a[kVar.ordinal()]; if (i3 == 1) { i2 = 3; return new b(arrayList, i2, aVar, longValue, eVar.b); } } i2 = 2; return new b(arrayList, i2, aVar, longValue, eVar.b); } public void a() { com.opos.cmn.i.a aVar; if (this.c != null && (aVar = this.f13947i) != null) { aVar.a(); } } public void a(Context context, String str, String str2, int i2, int i3, long j2) { this.c = context; this.f13943e = str; this.f13944f = str2; this.d = i2; this.f13945g = i3; this.o = j2; this.f13946h = new c(context, str, str2); B(); this.f13947i.a(); } public void a(AbstractC0291d dVar) { this.m = dVar; } public boolean a(int i2) { boolean a2 = i2 == a.b ? this.t.c().a() : i2 == a.d ? this.t.c().b() : i2 == a.f13949f ? this.t.c().d() : i2 == a.f13950g ? this.t.c().e() : i2 == a.f13952i ? this.t.c().f() : i2 == a.f13951h ? this.t.c().g() : i2 == a.j ? this.t.c().h() : i2 == 1001 ? this.t.c().i() : i2 == a.k ? this.t.c().j() : i2 == a.l ? this.t.c().k() : true; com.opos.cmn.an.f.a.b("DispatchController", "check enable:" + i2 + "," + a2); return a2; } public String b(int i2) { if (a.a == i2) { return this.f13943e; } f fVar = (f) this.k.a.get(Integer.valueOf(i2)); if (fVar == null) { return null; } return fVar.f14428f; } public boolean b() { return this.k.b(); } public boolean b(String str) { Boolean bool; Map<String, e> map = this.l.get(); e f2 = map == null ? f(str) : map.get(str); return (f2 == null || (bool = f2.a.y) == null) ? t.k.booleanValue() : bool.booleanValue(); } public String c(int i2) { f fVar = (f) this.k.a.get(Integer.valueOf(i2)); if (fVar == null) { return null; } return fVar.f14429g; } public boolean c() { if (this.k.b == null || this.k.b.p == null) { return false; } return this.k.b.p.booleanValue(); } public boolean c(String str) { Boolean bool; Map<String, e> map = this.l.get(); e f2 = map == null ? f(str) : map.get(str); return (f2 == null || (bool = f2.a.z) == null) ? t.l.booleanValue() : bool.booleanValue(); } public int d() { return ((this.k.b == null || this.k.b.q == null) ? com.opos.mobad.r.a.c.f14411e : this.k.b.q).intValue(); } public Point d(String str) { t tVar; Map<String, e> map = this.l.get(); e f2 = map == null ? f(str) : map.get(str); if (f2 == null || (tVar = f2.a) == null || tVar.B == null || tVar.A == null) { return null; } return new Point(f2.a.B.intValue(), f2.a.A.intValue()); } public String d(int i2) { if (a.f13952i != i2 && a.l != i2) { return ""; } f fVar = (f) this.k.a.get(Integer.valueOf(i2)); if (fVar == null) { return null; } return fVar.o; } public boolean e() { if (this.k.b == null || this.k.b.r == null) { return true; } return this.k.b.r.booleanValue(); } public boolean e(String str) { t tVar; Boolean bool; Map<String, e> map = this.l.get(); e f2 = map == null ? f(str) : map.get(str); if (f2 == null || (tVar = f2.a) == null || (bool = tVar.C) == null) { return false; } return bool.booleanValue(); } public boolean f() { if (this.k.b == null || this.k.b.s == null) { return true; } return this.k.b.s.booleanValue(); } public long g() { if (this.k != null) { return this.k.f13954e; } return 0; } public String h() { return this.k != null ? this.k.f13955f : ""; } public int i() { return (this.k.b == null || this.k.b.n == null) ? KSImageLoader.InnerImageLoadingListener.MAX_DURATION : this.k.b.n.f14405h.intValue(); } public int j() { return ((this.k.b == null || this.k.b.n == null || this.k.b.n.f14406i == null) ? com.opos.mobad.r.a.a.f14402e : this.k.b.n.f14406i).intValue(); } public int k() { return (this.k.b == null || this.k.b.o == null) ? KSImageLoader.InnerImageLoadingListener.MAX_DURATION : this.k.b.o.f14405h.intValue(); } public int l() { return ((this.k.b == null || this.k.b.o == null || this.k.b.o.f14406i == null) ? com.opos.mobad.r.a.a.f14402e : this.k.b.o.f14406i).intValue(); } public a m() { return (this.k.b == null || this.k.b.o == null) ? new a() : new a(this.k.b.o); } public int n() { return (this.k.b == null || this.k.b.f14415i == null) ? KSImageLoader.InnerImageLoadingListener.MAX_DURATION : this.k.b.f14415i.f14405h.intValue(); } public int o() { return ((this.k.b == null || this.k.b.f14415i == null || this.k.b.f14415i.f14406i == null) ? com.opos.mobad.r.a.a.f14402e : this.k.b.f14415i.f14406i).intValue(); } public int p() { return (this.k.b == null || this.k.b.j == null) ? KSImageLoader.InnerImageLoadingListener.MAX_DURATION : this.k.b.j.f14405h.intValue(); } public int q() { return (this.k.b == null || this.k.b.k == null) ? KSImageLoader.InnerImageLoadingListener.MAX_DURATION : this.k.b.k.f14405h.intValue(); } public int r() { return ((this.k.b == null || this.k.b.k == null || this.k.b.k.f14406i == null) ? com.opos.mobad.r.a.a.f14402e : this.k.b.k.f14406i).intValue(); } public int s() { return (this.k.b == null || this.k.b.l == null) ? KSImageLoader.InnerImageLoadingListener.MAX_DURATION : this.k.b.l.f14405h.intValue(); } public int t() { return ((this.k.b == null || this.k.b.l == null || this.k.b.l.f14406i == null) ? com.opos.mobad.r.a.a.f14402e : this.k.b.l.f14406i).intValue(); } public int u() { return (this.k.b == null || this.k.b.m == null) ? KSImageLoader.InnerImageLoadingListener.MAX_DURATION : this.k.b.m.f14405h.intValue(); } public Map<Integer, String> v() { if (this.k == null) { return null; } return this.k.f13956g; } public String w() { return this.k == null ? "" : this.k.f13957h; } public boolean x() { return (E() & 1) == 1; } public boolean y() { return (E() & 2) == 2; } public String z() { return this.k == null ? "" : this.k.f13958i; } }