package com.ss.android.ugc.aweme.legoImp.task;

import X.2HX;
import X.4Sh;
import X.AnonymousClass9FH;
import X.C05477ku;
import X.C22428Zd;
import X.C22438Ze;
import X.C25518ec;
import X.C29988lp;
import X.C42869Ft;
import X.C42909Fx;
import android.content.Context;
import android.os.SystemClock;
import com.bytedance.covode.number.Covode;
import com.bytedance.librarian.Librarian;
import java.util.List;

public class ColdBootPreloadPlayerSoTask implements AnonymousClass9FH, C22438Ze {
    public static final String[] LIZ = {"c++_shared", "ttcrypto", "ttboringssl", "vcnverify", "vcn", "avmdlbase", "avmdl", "avmdlttnet"};
    public static final String[] LIZIZ = {"c++_shared", "ttcrypto", "ttboringssl", "vcnverify", "vcn", "avmdlbase", "avmdl", "vcbasekit"};
    public static final String[] LIZJ = {"c++_shared", "vcbasekit"};
    public static final String[] LIZLLL = {"c++_shared", "vcn", "vcbasekit"};

    public String[] deps() {
        return null;
    }

    public boolean meetTrigger() {
        return true;
    }

    public String prefix() {
        return "task_";
    }

    public int priority() {
        return 1;
    }

    public boolean serialExecute() {
        return false;
    }

    public int targetProcess() {
        return 1;
    }

    public List triggerOtherLegoComponents() {
        return null;
    }

    public C42869Ft triggerType() {
        return C22428Zd.LIZ(this);
    }

    public C42909Fx scenesType() {
        return C42909Fx.DEFAULT;
    }

    public C29988lp threadType() {
        return C29988lp.IO;
    }

    public C25518ec type() {
        return C25518ec.BACKGROUND;
    }

    public String key() {
        return getClass().getSimpleName();
    }

    static {
        Covode.recordClassIndex(90417);
    }

    public static void LIZ(String str) {
        long uptimeMillis = SystemClock.uptimeMillis();
        Librarian.LIZ(str);
        4Sh.LIZ(uptimeMillis, str);
    }

    public void run(Context context) {
        long currentTimeMillis = System.currentTimeMillis();
        try {
            int intValue = ((Number) C05477ku.LJIILL.getValue()).intValue();
            int i = 0;
            if (intValue == 5) {
                String[] strArr = LIZ;
                int length = strArr.length;
                while (i < length) {
                    LIZ(strArr[i]);
                    i++;
                }
            } else if (intValue == 6) {
                String[] strArr2 = LIZIZ;
                int length2 = strArr2.length;
                while (i < length2) {
                    LIZ(strArr2[i]);
                    i++;
                }
            } else if (intValue == 7) {
                String[] strArr3 = LIZJ;
                int length3 = strArr3.length;
                while (i < length3) {
                    LIZ(strArr3[i]);
                    i++;
                }
            } else if (intValue == 8) {
                String[] strArr4 = LIZLLL;
                int length4 = strArr4.length;
                while (i < length4) {
                    LIZ(strArr4[i]);
                    i++;
                }
            }
        } catch (Throwable unused) {
        }
        2HX.LIZ.LIZIZ("preload_data_player_so_duration", System.currentTimeMillis() - currentTimeMillis);
    }
}
