我要上王者 v1.1版本的 MD5 值为:b7d3566522def961cabeb92cb17f5db9
以下内容为反编译后的 b.java 源代码,内容仅作参考
package com.anythink.expressad.splash.c;
import android.graphics.Bitmap;
import android.text.TextUtils;
import com.anythink.core.common.b.n;
import com.anythink.expressad.foundation.h.s;
import com.anythink.expressad.foundation.h.w;
import com.anythink.expressad.splash.c.e;
import com.anythink.expressad.splash.view.ATSplashView;
import java.io.File;
import java.util.concurrent.ConcurrentHashMap;
public final class b {
private static String f4160a = "ResManager";
private static int f4161b = 1;
private static ConcurrentHashMap<String, Boolean> c = new ConcurrentHashMap<>();
private static com.anythink.expressad.foundation.d.c b(com.anythink.expressad.foundation.d.c cVar) {
if (!TextUtils.isEmpty(cVar.c()) || (!TextUtils.isEmpty(cVar.d()) && cVar.d().contains("<MBTPLMARK>"))) {
cVar.a(true);
cVar.b(false);
} else {
cVar.a(false);
cVar.b(true);
}
return cVar;
}
public static void a(final ATSplashView aTSplashView, final com.anythink.expressad.foundation.d.c cVar, final com.anythink.expressad.splash.view.a aVar) {
com.anythink.expressad.foundation.g.d.b.a(n.a().f()).a(cVar.be(), new com.anythink.expressad.foundation.g.d.c() {
@Override
public final void a(Bitmap bitmap, String str) {
b.c.put(com.anythink.expressad.foundation.d.c.this.be(), Boolean.TRUE);
com.anythink.expressad.splash.view.a aVar2 = aVar;
if (aVar2 != null) {
aVar2.a();
}
ATSplashView aTSplashView2 = aTSplashView;
if (aTSplashView2 != null) {
aTSplashView2.setImageReady(true);
}
}
@Override
public final void a(String str, String str2) {
b.c.put(com.anythink.expressad.foundation.d.c.this.be(), Boolean.FALSE);
com.anythink.expressad.splash.view.a aVar2 = aVar;
if (aVar2 != null) {
aVar2.b();
}
ATSplashView aTSplashView2 = aTSplashView;
if (aTSplashView2 != null) {
aTSplashView2.setImageReady(false);
}
}
});
if (TextUtils.isEmpty(cVar.bd())) {
return;
}
com.anythink.expressad.foundation.g.d.b.a(n.a().f()).a(cVar.bd(), new com.anythink.expressad.foundation.g.d.c() {
@Override
public final void a(Bitmap bitmap, String str) {
}
@Override
public final void a(String str, String str2) {
}
});
}
private static void a(ATSplashView aTSplashView, String str, com.anythink.expressad.foundation.d.c cVar, String str2, String str3, boolean z, int i, boolean z2) {
e.c cVar2 = new e.c();
cVar2.c(str3);
cVar2.b(str2);
cVar2.a(cVar);
cVar2.a(str);
cVar2.b(z);
cVar2.a(i);
cVar2.a(z2);
e.a.a().a(aTSplashView, cVar2, null);
}
private static String b(String str) {
try {
File file = new File(str);
if (file.exists()) {
return "file:///" + file.getAbsolutePath();
}
return "";
} catch (Throwable th) {
try {
throw th;
} catch (Exception e) {
e.getMessage();
return "";
}
}
}
public static boolean a(ATSplashView aTSplashView, com.anythink.expressad.foundation.d.c cVar) {
if (aTSplashView == null) {
return false;
}
boolean isVideoReady = TextUtils.isEmpty(cVar.S()) ? true : aTSplashView.isVideoReady();
if (isVideoReady && !TextUtils.isEmpty(cVar.c())) {
isVideoReady = aTSplashView.isH5Ready();
}
if (isVideoReady && TextUtils.isEmpty(cVar.c()) && !TextUtils.isEmpty(cVar.d())) {
isVideoReady = aTSplashView.isH5Ready();
}
if (TextUtils.isEmpty(cVar.c()) && TextUtils.isEmpty(cVar.d())) {
isVideoReady = false;
}
if (cVar.j()) {
if (TextUtils.isEmpty(cVar.be())) {
return false;
}
return aTSplashView.isImageReady();
}
return isVideoReady;
}
public static boolean a(com.anythink.expressad.foundation.d.c cVar) {
boolean z;
Bitmap a2;
if (!TextUtils.isEmpty(cVar.S())) {
com.anythink.expressad.videocommon.b.a.a();
String a3 = com.anythink.expressad.videocommon.b.a.a(cVar.S());
if (w.a(a3) || new File(a3).length() <= 0) {
z = false;
if (z && TextUtils.isEmpty(cVar.c()) && TextUtils.isEmpty(cVar.d())) {
z = false;
}
return !cVar.j() ? (TextUtils.isEmpty(cVar.be()) || (a2 = com.anythink.expressad.foundation.g.d.a.a(s.a(cVar.be()))) == null || a2.isRecycled()) ? false : true : z;
}
}
z = true;
if (z) {
z = false;
}
if (!cVar.j()) {
}
}
public static void a(String str) {
c.remove(str);
}
}