AI Chat v1.1.8版本的 MD5 值为:1bcdce875f86738c8cfbf1e5f4064353
以下内容为反编译后的 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.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 a = "ResManager";
private static int b = 1;
private static ConcurrentHashMap<String, Boolean> c = new ConcurrentHashMap<>();
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 "";
}
}
}
private static com.anythink.expressad.foundation.d.c a(com.anythink.expressad.foundation.d.c cVar) {
if (TextUtils.isEmpty(cVar.c()) && (TextUtils.isEmpty(cVar.d()) || !cVar.d().contains("<MBTPLMARK>"))) {
cVar.a(false);
cVar.b(true);
} else {
cVar.a(true);
cVar.b(false);
}
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);
}
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 void a(String str) {
c.remove(str);
}
}