恐 怖 老 奶 奶1破 解 版 中 文 版 无 敌 版 v4.15.00版本的 MD5 值为:2c4218ea002b12a6cce81f33a9f0144d

以下内容为反编译后的 c.java 源代码,内容仅作参考


package com.anythink.expressad.splash.c;

import android.content.Context;
import android.net.Uri;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import android.text.TextUtils;
import android.view.View;
import androidx.annotation.NonNull;
import com.anythink.core.common.b.n;
import com.anythink.expressad.foundation.h.o;
import com.anythink.expressad.foundation.h.p;
import com.anythink.expressad.foundation.h.t;
import com.anythink.expressad.foundation.h.x;
import com.anythink.expressad.splash.a.b;
import com.anythink.expressad.splash.c.a;
import com.anythink.expressad.splash.c.e;
import com.anythink.expressad.splash.view.ATSplashView;
import com.anythink.expressad.videocommon.b.i;
import java.io.File;
import java.io.FileOutputStream;
import java.util.ArrayList;
import java.util.List;
public final class c {
    public static String f7014c = "SplashLoadManager";
    public static final int l = 1;
    public static final int m = 2;
    public static final int n = 3;
    public int B;
    public com.anythink.expressad.foundation.d.c f7016b;
    public String f7017d;
    public String f7018e;
    public long f7019f;
    public long f7020g;
    public com.anythink.expressad.splash.b.c f7021h;
    public ATSplashView j;
    public com.anythink.expressad.d.c k;
    public boolean o;
    public int p;
    public int q;
    public int r;
    public String s;
    public int t;
    public boolean u;
    public volatile boolean v;
    public com.anythink.expressad.videocommon.d.b w;
    public i.d x;
    public String y;
    public int z;
    public String A = "";
    public Handler C = new Handler(Looper.getMainLooper()) {
        @Override
        public final void handleMessage(@NonNull Message message) {
            super.handleMessage(message);
            int i2 = message.what;
            if (i2 == 1) {
                Object obj = message.obj;
                int i3 = message.arg1;
                if (obj instanceof com.anythink.expressad.foundation.d.c) {
                    com.anythink.expressad.foundation.d.c cVar = (com.anythink.expressad.foundation.d.c) obj;
                    c.this.a(i.a().c(cVar.c()), cVar, i3);
                }
            } else if (i2 != 2) {
                if (i2 != 3) {
                    return;
                }
                Object obj2 = message.obj;
                if (obj2 instanceof com.anythink.expressad.foundation.d.c) {
                    c cVar2 = c.this;
                    cVar2.b((com.anythink.expressad.foundation.d.c) obj2, cVar2.t);
                }
            } else {
                Object obj3 = message.obj;
                if (obj3 instanceof String) {
                    c cVar3 = c.this;
                    String obj4 = obj3.toString();
                    String unused = c.this.s;
                    int unused2 = c.this.t;
                    cVar3.a(obj4);
                }
            }
        }
    };
    public Runnable D = new Runnable() {
        @Override
        public final void run() {
            c cVar = c.this;
            String unused = cVar.s;
            int unused2 = c.this.t;
            cVar.a("load timeout");
        }
    };
    public boolean f7015a = false;
    public Context f7022i = n.a().f();

    public c(String str, String str2, long j) {
        this.f7018e = str;
        this.f7017d = str2;
        this.f7020g = j;
    }

    private boolean e() {
        return this.o;
    }

    private int f() {
        return this.p;
    }

    private void g() {
        try {
            int i2 = this.z + 1;
            this.z = i2;
            if (this.k == null || i2 > this.k.t()) {
                o.b(f7014c, "onload 重置offset为0");
                this.z = 0;
            }
            String str = f7014c;
            o.b(str, "onload 算出 下次的offset是:" + this.z);
        } catch (Exception e2) {
            e2.printStackTrace();
        }
    }

    public static void h() {
    }

    private void h(com.anythink.expressad.foundation.d.c cVar, int i2) {
        if (this.j.isH5Ready()) {
            return;
        }
        this.j.setH5Ready(true);
        b(cVar, i2);
    }

    public static void i() {
    }

    private void i(com.anythink.expressad.foundation.d.c cVar, int i2) {
        this.w = new AnonymousClass7(cVar);
        ArrayList arrayList = new ArrayList();
        arrayList.add(cVar);
        com.anythink.expressad.videocommon.b.e.a().a(this.f7017d, arrayList, com.anythink.expressad.foundation.g.a.aV, this.w);
        if (!com.anythink.expressad.videocommon.b.e.a().a(com.anythink.expressad.foundation.g.a.aV, this.f7017d, cVar.A())) {
            com.anythink.expressad.videocommon.b.e.a().d(this.f7017d);
            return;
        }
        this.j.setVideoReady(true);
        b(cVar, i2);
    }

    private void j() {
        this.z = 0;
    }

    public static void k() {
    }

    private void l() {
        this.C.removeCallbacks(this.D);
    }

    private void e(com.anythink.expressad.foundation.d.c cVar, int i2) {
        File file;
        File file2;
        FileOutputStream fileOutputStream = null;
        try {
            try {
                try {
                    file2 = new File(cVar.d());
                    try {
                        if (!file2.exists()) {
                            String b2 = com.anythink.expressad.foundation.g.c.d.b(com.anythink.expressad.foundation.g.c.a.ANYTHINK_700_HTML);
                            String a2 = p.a(x.a(cVar.d()));
                            if (TextUtils.isEmpty(a2)) {
                                a2 = String.valueOf(System.currentTimeMillis());
                            }
                            file = new File(b2, a2.concat(".html"));
                            try {
                                if (!file.exists()) {
                                    FileOutputStream fileOutputStream2 = new FileOutputStream(file);
                                    try {
                                        fileOutputStream2.write(("<script>" + com.anythink.expressad.d.b.a.a().b() + "</script>" + cVar.d()).getBytes());
                                        fileOutputStream2.flush();
                                        fileOutputStream = fileOutputStream2;
                                    } catch (Exception e2) {
                                        e = e2;
                                        fileOutputStream = fileOutputStream2;
                                        e.printStackTrace();
                                        cVar.j("");
                                        if (fileOutputStream != null) {
                                            fileOutputStream.close();
                                        }
                                        file2 = file;
                                        if (!file2.exists()) {
                                        }
                                        a("html file write failed");
                                    } catch (Throwable th) {
                                        th = th;
                                        fileOutputStream = fileOutputStream2;
                                        if (fileOutputStream != null) {
                                            fileOutputStream.close();
                                        }
                                        throw th;
                                    }
                                }
                                file2 = file;
                            } catch (Exception e3) {
                                e = e3;
                            }
                        }
                        if (fileOutputStream != null) {
                            fileOutputStream.close();
                        }
                    } catch (Exception e4) {
                        e = e4;
                        file = file2;
                    }
                } catch (Exception e5) {
                    e = e5;
                    file = null;
                }
                if (!file2.exists() && file2.isFile() && file2.canRead()) {
                    cVar.b(file2.getAbsolutePath());
                    a("file:////" + file2.getAbsolutePath(), cVar, i2);
                    return;
                }
                a("html file write failed");
            } catch (Throwable th2) {
                th = th2;
            }
        } catch (Exception e6) {
            a(e6.getMessage());
        }
    }

    private void f(com.anythink.expressad.foundation.d.c cVar, int i2) {
        if (cVar.j()) {
            return;
        }
        this.x = new AnonymousClass4(cVar, i2);
        i.a().b(cVar.c(), (i.a) this.x);
    }

    public final void b(boolean z) {
        this.o = z;
    }

    public final com.anythink.expressad.foundation.d.c c() {
        return this.f7016b;
    }

    private void c(com.anythink.expressad.foundation.d.c cVar, int i2) {
        this.j.clearResState();
        if (!TextUtils.isEmpty(cVar.c()) && !cVar.j()) {
            this.x = new AnonymousClass4(cVar, i2);
            i.a().b(cVar.c(), (i.a) this.x);
        }
        if (cVar.j()) {
            return;
        }
        if (!TextUtils.isEmpty(cVar.d())) {
            e(cVar, i2);
        }
        if (!TextUtils.isEmpty(cVar.S())) {
            this.w = new AnonymousClass7(cVar);
            ArrayList arrayList = new ArrayList();
            arrayList.add(cVar);
            com.anythink.expressad.videocommon.b.e.a().a(this.f7017d, arrayList, com.anythink.expressad.foundation.g.a.aV, this.w);
            if (!com.anythink.expressad.videocommon.b.e.a().a(com.anythink.expressad.foundation.g.a.aV, this.f7017d, cVar.A())) {
                com.anythink.expressad.videocommon.b.e.a().d(this.f7017d);
            } else {
                this.j.setVideoReady(true);
                b(cVar, i2);
            }
        }
        if (TextUtils.isEmpty(cVar.be())) {
            return;
        }
        d(cVar, i2);
    }

    private void d(final com.anythink.expressad.foundation.d.c cVar, final int i2) {
        b.a(this.j, cVar, new com.anythink.expressad.splash.view.a() {
            @Override
            public final void a() {
                if (cVar.j() && c.this.j != null) {
                    c.this.j.setImageReady(true);
                    c.b(c.this, cVar, i2);
                }
                c.this.b(cVar, i2);
            }

            @Override
            public final void b() {
                if (!cVar.j() || c.this.j == null) {
                    return;
                }
                c.this.j.setImageReady(false);
                c cVar2 = c.this;
                String unused = cVar2.s;
                cVar2.a("Image resource load faile");
            }
        });
    }

    public final void b(int i2) {
        this.p = i2;
    }

    public class AnonymousClass5 implements com.anythink.expressad.splash.b.a {
        public final com.anythink.expressad.foundation.d.c f7031a;
        public final int f7032b;

        public AnonymousClass5(com.anythink.expressad.foundation.d.c cVar, int i2) {
            this.f7031a = cVar;
            this.f7032b = i2;
        }

        @Override
        public final void a(View view) {
            if (c.this.j != null) {
                c.this.j.setDynamicView(true);
                c.this.j.setSplashNativeView(view);
                c.this.b(this.f7031a, this.f7032b);
            }
        }

        @Override
        public final void a(String str) {
            c cVar = c.this;
            String unused = cVar.s;
            cVar.a(str);
        }
    }

    public final void b() {
        if (this.f7021h != null) {
            this.f7021h = null;
        }
        if (this.w != null) {
            this.w = null;
        }
        if (this.x != null) {
            this.x = null;
        }
    }

    public class AnonymousClass4 implements i.d {
        public final com.anythink.expressad.foundation.d.c f7028a;
        public final int f7029b;

        public AnonymousClass4(com.anythink.expressad.foundation.d.c cVar, int i2) {
            this.f7028a = cVar;
            this.f7029b = i2;
        }

        @Override
        public final void a(String str) {
            Message obtain = Message.obtain();
            obtain.what = 1;
            obtain.obj = this.f7028a;
            obtain.arg1 = this.f7029b;
            c.this.C.sendMessage(obtain);
        }

        @Override
        public final void a(String str, String str2) {
            c cVar = c.this;
            String unused = cVar.s;
            cVar.a(str);
            Message obtain = Message.obtain();
            obtain.what = 2;
            obtain.obj = str;
            c.this.C.sendMessage(obtain);
        }
    }

    public final void a(int i2) {
        this.B = i2;
    }

    public class AnonymousClass7 implements com.anythink.expressad.videocommon.d.b {
        public final com.anythink.expressad.foundation.d.c f7037a;

        public AnonymousClass7(com.anythink.expressad.foundation.d.c cVar) {
            this.f7037a = cVar;
        }

        @Override
        public final void a(String str) {
            c.this.j.setVideoReady(true);
            o.a(c.f7014c, "========VIDEO SUC");
            Message obtain = Message.obtain();
            obtain.obj = this.f7037a;
            obtain.what = 3;
            c.this.C.sendMessage(obtain);
        }

        @Override
        public final void a(String str, String str2) {
            c.this.j.setVideoReady(false);
            o.a(c.f7014c, "========VIDEO FAI");
            Message obtain = Message.obtain();
            obtain.obj = str;
            obtain.what = 2;
            c.this.C.sendMessage(obtain);
        }
    }

    public final void a(boolean z) {
        this.f7015a = z;
    }

    private void g(com.anythink.expressad.foundation.d.c cVar, int i2) {
        if (cVar.j()) {
            b.a aVar = new b.a();
            aVar.b(this.f7017d).a(this.f7018e).a(this.o).a(cVar).a(this.p).h(this.B);
            try {
                if (!TextUtils.isEmpty(cVar.c())) {
                    Uri parse = Uri.parse(cVar.c());
                    String queryParameter = parse.getQueryParameter("hdbtn");
                    String queryParameter2 = parse.getQueryParameter(com.anythink.expressad.video.dynview.a.a.Q);
                    String queryParameter3 = parse.getQueryParameter("hdinfo");
                    String queryParameter4 = parse.getQueryParameter("shake_show");
                    String queryParameter5 = parse.getQueryParameter("shake_strength");
                    String queryParameter6 = parse.getQueryParameter("shake_time");
                    String queryParameter7 = parse.getQueryParameter("n_logo");
                    if (!TextUtils.isEmpty(queryParameter)) {
                        aVar.b(Integer.parseInt(queryParameter));
                    }
                    if (!TextUtils.isEmpty(queryParameter2)) {
                        aVar.c(Integer.parseInt(queryParameter2));
                    }
                    if (!TextUtils.isEmpty(queryParameter3)) {
                        aVar.d(Integer.parseInt(queryParameter3));
                    }
                    if (!TextUtils.isEmpty(queryParameter4)) {
                        aVar.e(Integer.parseInt(queryParameter4));
                    }
                    if (!TextUtils.isEmpty(queryParameter5)) {
                        aVar.f(Integer.parseInt(queryParameter5));
                    }
                    if (!TextUtils.isEmpty(queryParameter6)) {
                        aVar.g(Integer.parseInt(queryParameter6));
                    }
                    if (!TextUtils.isEmpty(queryParameter7)) {
                        aVar.i(Integer.parseInt(queryParameter7) == 0 ? 0 : 1);
                    }
                }
            } catch (Throwable th) {
                o.d(f7014c, th.getMessage());
            }
            a.C0195a.a();
            a.a(this.j, new com.anythink.expressad.splash.a.b(aVar), new AnonymousClass5(cVar, i2));
        }
    }

    public final void a(com.anythink.expressad.d.c cVar) {
        this.k = cVar;
    }

    public final void a(ATSplashView aTSplashView) {
        this.j = aTSplashView;
    }

    public final void a(int i2, int i3) {
        this.r = i2;
        this.q = i3;
    }

    public void b(com.anythink.expressad.foundation.d.c cVar, int i2) {
        if (!b.a(this.j, cVar) || this.v) {
            return;
        }
        l();
        this.f7016b = cVar;
        this.v = true;
        com.anythink.expressad.splash.b.c cVar2 = this.f7021h;
        if (cVar2 != null) {
            cVar2.a(cVar, i2);
        }
    }

    public final String a() {
        return this.A;
    }

    public final void a(com.anythink.expressad.foundation.d.d dVar) {
        ArrayList arrayList;
        this.v = false;
        this.s = "";
        this.t = 2;
        if (dVar == null || dVar.J == null) {
            arrayList = null;
        } else {
            arrayList = new ArrayList();
            com.anythink.expressad.foundation.d.c cVar = dVar.J.get(0);
            cVar.l(this.f7017d);
            this.y = dVar.c();
            if (cVar.O() != 99 && (!TextUtils.isEmpty(cVar.c()) || !TextUtils.isEmpty(cVar.d()))) {
                if (t.a(cVar)) {
                    cVar.i(t.a(this.f7022i, cVar.ba()) ? 1 : 2);
                }
                if (cVar.ae() != 1 && t.a(this.f7022i, cVar.ba())) {
                    if (t.a(cVar)) {
                        arrayList.add(cVar);
                    }
                } else {
                    arrayList.add(cVar);
                }
            }
        }
        if (arrayList != null && arrayList.size() > 0) {
            g();
            String str = f7014c;
            o.b(str, "onload load成功 size:" + arrayList.size());
            com.anythink.expressad.foundation.d.c cVar2 = (com.anythink.expressad.foundation.d.c) arrayList.get(0);
            if (TextUtils.isEmpty(cVar2.c()) && (TextUtils.isEmpty(cVar2.d()) || !cVar2.d().contains("<MBTPLMARK>"))) {
                cVar2.a(false);
                cVar2.b(true);
            } else {
                cVar2.a(true);
                cVar2.b(false);
            }
            ATSplashView aTSplashView = this.j;
            if (aTSplashView != null) {
                aTSplashView.setDynamicView(false);
            }
            if (cVar2.j()) {
                d(cVar2, 2);
            }
            if (b.a(this.j, cVar2)) {
                b(cVar2, 2);
                return;
            }
            this.j.clearResState();
            if (!TextUtils.isEmpty(cVar2.c()) && !cVar2.j()) {
                this.x = new AnonymousClass4(cVar2, 2);
                i.a().b(cVar2.c(), (i.a) this.x);
            }
            if (cVar2.j()) {
                return;
            }
            if (!TextUtils.isEmpty(cVar2.d())) {
                e(cVar2, 2);
            }
            if (!TextUtils.isEmpty(cVar2.S())) {
                this.w = new AnonymousClass7(cVar2);
                ArrayList arrayList2 = new ArrayList();
                arrayList2.add(cVar2);
                com.anythink.expressad.videocommon.b.e.a().a(this.f7017d, arrayList2, com.anythink.expressad.foundation.g.a.aV, this.w);
                if (!com.anythink.expressad.videocommon.b.e.a().a(com.anythink.expressad.foundation.g.a.aV, this.f7017d, cVar2.A())) {
                    com.anythink.expressad.videocommon.b.e.a().d(this.f7017d);
                } else {
                    this.j.setVideoReady(true);
                    b(cVar2, 2);
                }
            }
            if (TextUtils.isEmpty(cVar2.be())) {
                return;
            }
            d(cVar2, 2);
            return;
        }
        o.b(f7014c, "onload load失败 返回的compaign没有可以用的");
        a("invalid  campaign");
    }

    private void b(String str) {
        if (this.v) {
            return;
        }
        l();
        o.d(f7014c, "real failed ");
        this.v = true;
        com.anythink.expressad.splash.b.c cVar = this.f7021h;
        if (cVar != null) {
            cVar.a(str);
        }
    }

    private List<com.anythink.expressad.foundation.d.c> b(com.anythink.expressad.foundation.d.d dVar) {
        if (dVar == null || dVar.J == null) {
            return null;
        }
        ArrayList arrayList = new ArrayList();
        com.anythink.expressad.foundation.d.c cVar = dVar.J.get(0);
        cVar.l(this.f7017d);
        this.y = dVar.c();
        if (cVar.O() != 99) {
            if (TextUtils.isEmpty(cVar.c()) && TextUtils.isEmpty(cVar.d())) {
                return arrayList;
            }
            if (t.a(cVar)) {
                cVar.i(t.a(this.f7022i, cVar.ba()) ? 1 : 2);
            }
            if (cVar.ae() != 1 && t.a(this.f7022i, cVar.ba())) {
                if (t.a(cVar)) {
                    arrayList.add(cVar);
                    return arrayList;
                }
                return arrayList;
            }
            arrayList.add(cVar);
            return arrayList;
        }
        return arrayList;
    }

    private void c(String str) {
        a(str);
    }

    public static void c(c cVar, com.anythink.expressad.foundation.d.c cVar2, int i2) {
        if (cVar.j.isH5Ready()) {
            return;
        }
        cVar.j.setH5Ready(true);
        cVar.b(cVar2, i2);
    }

    public static void b(c cVar, com.anythink.expressad.foundation.d.c cVar2, int i2) {
        if (cVar2.j()) {
            b.a aVar = new b.a();
            aVar.b(cVar.f7017d).a(cVar.f7018e).a(cVar.o).a(cVar2).a(cVar.p).h(cVar.B);
            try {
                if (!TextUtils.isEmpty(cVar2.c())) {
                    Uri parse = Uri.parse(cVar2.c());
                    String queryParameter = parse.getQueryParameter("hdbtn");
                    String queryParameter2 = parse.getQueryParameter(com.anythink.expressad.video.dynview.a.a.Q);
                    String queryParameter3 = parse.getQueryParameter("hdinfo");
                    String queryParameter4 = parse.getQueryParameter("shake_show");
                    String queryParameter5 = parse.getQueryParameter("shake_strength");
                    String queryParameter6 = parse.getQueryParameter("shake_time");
                    String queryParameter7 = parse.getQueryParameter("n_logo");
                    if (!TextUtils.isEmpty(queryParameter)) {
                        aVar.b(Integer.parseInt(queryParameter));
                    }
                    if (!TextUtils.isEmpty(queryParameter2)) {
                        aVar.c(Integer.parseInt(queryParameter2));
                    }
                    if (!TextUtils.isEmpty(queryParameter3)) {
                        aVar.d(Integer.parseInt(queryParameter3));
                    }
                    if (!TextUtils.isEmpty(queryParameter4)) {
                        aVar.e(Integer.parseInt(queryParameter4));
                    }
                    if (!TextUtils.isEmpty(queryParameter5)) {
                        aVar.f(Integer.parseInt(queryParameter5));
                    }
                    if (!TextUtils.isEmpty(queryParameter6)) {
                        aVar.g(Integer.parseInt(queryParameter6));
                    }
                    if (!TextUtils.isEmpty(queryParameter7)) {
                        aVar.i(Integer.parseInt(queryParameter7) == 0 ? 0 : 1);
                    }
                }
            } catch (Throwable th) {
                o.d(f7014c, th.getMessage());
            }
            a.C0195a.a();
            a.a(cVar.j, new com.anythink.expressad.splash.a.b(aVar), new AnonymousClass5(cVar2, i2));
        }
    }

    private void a(long j) {
        this.C.postDelayed(this.D, j);
    }

    public final void a(com.anythink.expressad.splash.b.c cVar) {
        this.f7021h = cVar;
    }

    private void a(com.anythink.expressad.foundation.d.c cVar, int i2) {
        ATSplashView aTSplashView = this.j;
        if (aTSplashView != null) {
            aTSplashView.setDynamicView(false);
        }
        if (cVar.j()) {
            d(cVar, i2);
        }
        if (b.a(this.j, cVar)) {
            b(cVar, i2);
            return;
        }
        this.j.clearResState();
        if (!TextUtils.isEmpty(cVar.c()) && !cVar.j()) {
            this.x = new AnonymousClass4(cVar, i2);
            i.a().b(cVar.c(), (i.a) this.x);
        }
        if (cVar.j()) {
            return;
        }
        if (!TextUtils.isEmpty(cVar.d())) {
            e(cVar, i2);
        }
        if (!TextUtils.isEmpty(cVar.S())) {
            this.w = new AnonymousClass7(cVar);
            ArrayList arrayList = new ArrayList();
            arrayList.add(cVar);
            com.anythink.expressad.videocommon.b.e.a().a(this.f7017d, arrayList, com.anythink.expressad.foundation.g.a.aV, this.w);
            if (!com.anythink.expressad.videocommon.b.e.a().a(com.anythink.expressad.foundation.g.a.aV, this.f7017d, cVar.A())) {
                com.anythink.expressad.videocommon.b.e.a().d(this.f7017d);
            } else {
                this.j.setVideoReady(true);
                b(cVar, i2);
            }
        }
        if (TextUtils.isEmpty(cVar.be())) {
            return;
        }
        d(cVar, i2);
    }

    public void a(String str) {
        if (this.u) {
            this.u = false;
        } else {
            b(str);
        }
    }

    public void a(String str, final com.anythink.expressad.foundation.d.c cVar, final int i2) {
        e.c cVar2 = new e.c();
        cVar2.c(this.f7017d);
        cVar2.b(this.f7018e);
        cVar2.a(cVar);
        cVar2.a(str);
        cVar2.b(this.o);
        cVar2.a(this.p);
        cVar2.a(this.f7015a);
        e.a.a().a(this.j, cVar2, new e.b() {
            @Override
            public final void a() {
                if (cVar.s()) {
                    return;
                }
                c.c(c.this, cVar, i2);
            }

            @Override
            public final void a(String str2) {
                c.this.a(str2);
            }

            @Override
            public final void a(int i3) {
                if (i3 == 1) {
                    c.c(c.this, cVar, i2);
                } else {
                    c.this.a("readyState 2");
                }
            }
        });
    }

    private void a(com.anythink.expressad.foundation.d.d dVar, int i2) {
        ArrayList arrayList;
        if (dVar == null || dVar.J == null) {
            arrayList = null;
        } else {
            arrayList = new ArrayList();
            com.anythink.expressad.foundation.d.c cVar = dVar.J.get(0);
            cVar.l(this.f7017d);
            this.y = dVar.c();
            if (cVar.O() != 99 && (!TextUtils.isEmpty(cVar.c()) || !TextUtils.isEmpty(cVar.d()))) {
                if (t.a(cVar)) {
                    cVar.i(t.a(this.f7022i, cVar.ba()) ? 1 : 2);
                }
                if (cVar.ae() != 1 && t.a(this.f7022i, cVar.ba())) {
                    if (t.a(cVar)) {
                        arrayList.add(cVar);
                    }
                } else {
                    arrayList.add(cVar);
                }
            }
        }
        if (arrayList != null && arrayList.size() > 0) {
            g();
            String str = f7014c;
            o.b(str, "onload load成功 size:" + arrayList.size());
            com.anythink.expressad.foundation.d.c cVar2 = (com.anythink.expressad.foundation.d.c) arrayList.get(0);
            if (TextUtils.isEmpty(cVar2.c()) && (TextUtils.isEmpty(cVar2.d()) || !cVar2.d().contains("<MBTPLMARK>"))) {
                cVar2.a(false);
                cVar2.b(true);
            } else {
                cVar2.a(true);
                cVar2.b(false);
            }
            ATSplashView aTSplashView = this.j;
            if (aTSplashView != null) {
                aTSplashView.setDynamicView(false);
            }
            if (cVar2.j()) {
                d(cVar2, i2);
            }
            if (b.a(this.j, cVar2)) {
                b(cVar2, i2);
                return;
            }
            this.j.clearResState();
            if (!TextUtils.isEmpty(cVar2.c()) && !cVar2.j()) {
                this.x = new AnonymousClass4(cVar2, i2);
                i.a().b(cVar2.c(), (i.a) this.x);
            }
            if (cVar2.j()) {
                return;
            }
            if (!TextUtils.isEmpty(cVar2.d())) {
                e(cVar2, i2);
            }
            if (!TextUtils.isEmpty(cVar2.S())) {
                this.w = new AnonymousClass7(cVar2);
                ArrayList arrayList2 = new ArrayList();
                arrayList2.add(cVar2);
                com.anythink.expressad.videocommon.b.e.a().a(this.f7017d, arrayList2, com.anythink.expressad.foundation.g.a.aV, this.w);
                if (!com.anythink.expressad.videocommon.b.e.a().a(com.anythink.expressad.foundation.g.a.aV, this.f7017d, cVar2.A())) {
                    com.anythink.expressad.videocommon.b.e.a().d(this.f7017d);
                } else {
                    this.j.setVideoReady(true);
                    b(cVar2, i2);
                }
            }
            if (TextUtils.isEmpty(cVar2.be())) {
                return;
            }
            d(cVar2, i2);
            return;
        }
        o.b(f7014c, "onload load失败 返回的compaign没有可以用的");
        a("invalid  campaign");
    }
}