Weather Tracker v1.0.0版本的 MD5 值为:3edef27647e42a8ea0e7c0d2dbf56f97
以下内容为反编译后的 l.java 源代码,内容仅作参考
package sg.bigo.ads.controller.c;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Build;
import android.util.Pair;
import android.webkit.MimeTypeMap;
import androidx.annotation.IntRange;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.mbridge.msdk.foundation.entity.RewardPlus;
import java.io.File;
import java.util.ArrayList;
import java.util.Locale;
import org.json.JSONArray;
import org.json.JSONObject;
import sg.bigo.ads.api.core.n;
import sg.bigo.ads.core.f.a.a;
public final class l extends b implements sg.bigo.ads.api.core.n {
@Nullable
protected n.c A;
protected int B;
@Nullable
protected n.b C;
@Nullable
protected n.d D;
public int E;
@Nullable
private sg.bigo.ads.core.f.a.p F;
@Nullable
private sg.bigo.ads.api.core.m G;
private boolean H;
private String I;
@NonNull
private int f7749J;
private int K;
@NonNull
private long L;
private a.C0598a M;
private a.C0598a N;
private boolean O;
private Pair<Bitmap, Integer> P;
private int Q;
private int R;
private int S;
private int T;
private boolean U;
@Nullable
protected n.a y;
@Nullable
protected n.a[] z;
public l(long j, @NonNull sg.bigo.ads.api.core.h hVar, @NonNull sg.bigo.ads.api.a.i iVar, @NonNull JSONObject jSONObject) {
super(j, hVar, iVar, jSONObject);
this.E = 0;
this.H = false;
this.f7749J = 0;
this.K = 0;
this.O = false;
this.Q = 4;
this.R = 6;
this.S = 4;
this.T = 4;
this.U = false;
JSONObject optJSONObject = jSONObject.optJSONObject(RewardPlus.ICON);
if (optJSONObject != null) {
this.y = new i(optJSONObject);
}
JSONArray optJSONArray = jSONObject.optJSONArray("images");
if (optJSONArray != null) {
ArrayList arrayList = new ArrayList();
for (int i = 0; i < optJSONArray.length(); i++) {
JSONObject optJSONObject2 = optJSONArray.optJSONObject(i);
if (optJSONObject2 != null) {
arrayList.add(new i(optJSONObject2));
}
}
i[] iVarArr = new i[arrayList.size()];
this.z = iVarArr;
this.z = (n.a[]) arrayList.toArray(iVarArr);
}
JSONObject optJSONObject3 = jSONObject.optJSONObject("video");
if (optJSONObject3 != null) {
this.A = new q(optJSONObject3);
}
this.C = new j(jSONObject);
JSONObject optJSONObject4 = jSONObject.optJSONObject("ad_play_cfg");
if (optJSONObject4 != null) {
this.D = new r(optJSONObject4);
}
this.B = jSONObject.optInt("immersive_ad_type", 0);
}
@Nullable
private sg.bigo.ads.core.f.a.b aK() {
sg.bigo.ads.core.f.a.p pVar = this.F;
if (pVar != null) {
return pVar.n;
}
return null;
}
@Override
@Nullable
public final n.a Z() {
return this.y;
}
@Override
public final void a(Pair<Bitmap, Integer> pair) {
this.P = pair;
}
@Override
public final void a(String str) {
if (sg.bigo.ads.common.utils.q.a((CharSequence) str)) {
return;
}
this.I = str;
}
@Override
public final void a(sg.bigo.ads.api.core.m mVar) {
this.G = mVar;
}
@Override
public final void a(a.C0598a c0598a) {
this.M = c0598a;
}
@Override
public final void a(sg.bigo.ads.core.f.a.p pVar) {
this.F = pVar;
if (pVar != null && sg.bigo.ads.common.utils.q.b(pVar.m)) {
J().a(this.F.m);
}
this.D.a(ax());
}
@Override
public final void aA() {
this.H = true;
}
@Override
public final String aB() {
String av;
if (sg.bigo.ads.common.utils.q.a((CharSequence) this.I)) {
if (au()) {
sg.bigo.ads.core.f.a.b aK = aK();
if (aK != null) {
this.I = aK.d;
}
if (!sg.bigo.ads.common.utils.q.a((CharSequence) this.I)) {
return this.I;
}
av = al();
} else {
av = av();
}
String mimeTypeFromExtension = MimeTypeMap.getSingleton().getMimeTypeFromExtension(MimeTypeMap.getFileExtensionFromUrl(av));
this.I = mimeTypeFromExtension;
return mimeTypeFromExtension;
}
return this.I;
}
@Override
public final boolean aC() {
return this.U;
}
@Override
public final boolean aD() {
return this.O;
}
@Override
public final void aE() {
this.O = true;
}
@Override
public final Pair<Bitmap, Integer> aF() {
return this.P;
}
@Override
public final int aG() {
return this.Q;
}
@Override
public final int aH() {
return this.R;
}
@Override
public final int aI() {
return this.S;
}
@Override
public final int aJ() {
return this.T;
}
@Override
@Nullable
public final n.c aa() {
return this.A;
}
@Override
@Nullable
public final n.b ab() {
return this.C;
}
@Override
@Nullable
public final n.d ac() {
return this.D;
}
@Override
public final int ad() {
return this.f7749J;
}
@Override
public final int ae() {
return this.K;
}
@Override
public final long af() {
return this.L;
}
@Override
public final a.C0598a ag() {
return this.M;
}
@Override
public final a.C0598a ah() {
return this.N;
}
@Override
public final boolean ai() {
a.C0598a c0598a = this.N;
return c0598a != null && c0598a.a();
}
@Override
public final boolean aj() {
a.C0598a c0598a = this.M;
return c0598a != null && c0598a.a();
}
@Override
public final String ak() {
return String.valueOf(this.i);
}
@Override
@Nullable
public final String al() {
sg.bigo.ads.core.f.a.b aK = aK();
if (aK != null) {
return aK.c;
}
return null;
}
@Override
public final long am() {
n.d dVar = this.D;
if (dVar != null) {
return dVar.a();
}
return 0L;
}
@Override
public final int an() {
return this.E;
}
@Override
public final String ao() {
sg.bigo.ads.core.f.a.b aK = aK();
String str = aK != null ? aK.e : null;
if (sg.bigo.ads.common.utils.q.b(str)) {
return str;
}
sg.bigo.ads.core.f.a.p pVar = this.F;
if (pVar != null) {
return pVar.o;
}
return null;
}
@Override
public final boolean ap() {
n.d dVar;
if (Build.VERSION.SDK_INT >= 21 && (dVar = this.D) != null && dVar.b() && dVar.c() < 100) {
sg.bigo.ads.core.f.a.b aK = aK();
if (aK != null ? "video/mp4".equals(aK.d) : false) {
return true;
}
}
return false;
}
@Override
@Nullable
public final String aq() {
return al();
}
@Override
@Nullable
public final String ar() {
String ao = ao();
if (sg.bigo.ads.common.utils.q.a((CharSequence) ao)) {
StringBuilder sb = new StringBuilder();
sb.append(hashCode());
return sb.toString();
}
return ao;
}
@Override
@NonNull
public final String as() {
return sg.bigo.ads.common.j.b();
}
@Override
@NonNull
public final String at() {
return sg.bigo.ads.common.j.b() + File.separator + ar();
}
@Override
public final boolean au() {
return this.g == 2;
}
@Override
public final String av() {
n.a aVar;
n.a[] aVarArr = this.z;
if (aVarArr == null || aVarArr.length <= 0 || (aVar = aVarArr[0]) == null) {
return null;
}
return aVar.a();
}
@Override
public final String aw() {
Pair pair;
if (!ap()) {
this.E = 0;
return at();
}
sg.bigo.ads.core.player.a.d b2 = sg.bigo.ads.core.player.a.a().b();
String al = al();
String b3 = sg.bigo.ads.common.j.b();
String ar = ar();
File file = new File(b3, ar);
if (file.exists()) {
pair = new Pair(Uri.fromFile(file).toString(), 1);
} else if (b2.d.a()) {
StringBuilder sb = new StringBuilder(al);
if (al.contains("?")) {
sb.append("&");
} else {
sb.append("?");
}
sb.append("path=");
sb.append(b3);
sb.append("&");
sb.append("name=");
sb.append(ar);
pair = new Pair(String.format(Locale.US, "http://%s:%d/%s", "127.0.0.1", Integer.valueOf(b2.c), sg.bigo.ads.common.utils.q.f(sb.toString())), 2);
} else {
pair = new Pair(al, 3);
}
this.E = ((Integer) pair.second).intValue();
return (String) pair.first;
}
@Override
public final long ax() {
sg.bigo.ads.core.f.a.p pVar = this.F;
if (pVar != null) {
return pVar.s;
}
return 0L;
}
@Override
@Nullable
public final sg.bigo.ads.api.core.m ay() {
return this.G;
}
@Override
public final boolean az() {
return this.H;
}
@Override
public final void b(long j) {
this.L = j;
}
@Override
public final void b(a.C0598a c0598a) {
this.N = c0598a;
}
@Override
public final void b(boolean z) {
this.U = z;
}
@Override
public final boolean c(@IntRange(from = 1, to = 100) long j) {
n.d dVar = this.D;
return j >= ((long) (dVar != null ? dVar.c() : 50));
}
@Override
public final void d(int i) {
this.f7749J = i;
}
@Override
public final void e(int i) {
this.K = i;
}
@Override
public final void f(int i) {
this.Q = i;
}
@Override
public final void g(int i) {
this.R = i;
}
@Override
public final void h(int i) {
this.S = i;
}
@Override
public final void i(int i) {
this.T = i;
}
@Override
public final String p() {
sg.bigo.ads.core.f.a.p pVar = this.F;
return (pVar == null || !sg.bigo.ads.common.utils.q.b(pVar.p)) ? super.p() : this.F.p;
}
@Override
public final String q() {
sg.bigo.ads.core.f.a.p pVar = this.F;
return (pVar == null || !sg.bigo.ads.common.utils.q.b(pVar.q)) ? super.q() : this.F.q;
}
}