package com.ss.android.legoimpl;

import X.AnonymousClass95C;
import X.AnonymousClass95G;
import X.AnonymousClass95J;
import X.AnonymousClass95K;
import X.AnonymousClass9EH;
import X.AnonymousClass9EI;
import X.AnonymousClass9LK;
import X.C11797xa;
import X.C22428Zd;
import X.C22438Ze;
import X.C25518ec;
import X.C42869Ft;
import X.C42909Fx;
import X.Cwu;
import X.LWw;
import android.content.Context;
import com.bytedance.covode.number.Covode;
import java.util.List;
import java.util.Map;
import org.json.JSONObject;

public final class ProcessMonitorTask implements C22438Ze {
    public final Map<Integer, String> LIZ = LWw.LIZIZ(new Cwu[]{new Cwu(0, "Cold_Boot_Begin"), new Cwu(1, "Cold_Boot_End"), new Cwu(2, "Cold_Boot_End_Short"), new Cwu(3, "Cold_Boot_End_Long")});

    static {
        Covode.recordClassIndex(48462);
    }

    public final boolean meetTrigger() {
        return true;
    }

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

    public final boolean serialExecute() {
        return false;
    }

    public final int targetProcess() {
        return 1048575;
    }

    public final List triggerOtherLegoComponents() {
        return null;
    }

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

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

    public final C25518ec type() {
        return C25518ec.MAIN;
    }

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

    public final void run(Context context) {
        if (!C11797xa.LIZIZ(context)) {
            if (context != null) {
                AnonymousClass95K.LIZ.LIZ(context);
                AnonymousClass95C r2 = new AnonymousClass95C();
                r2.LIZ("aid", AnonymousClass9EH.LJIILJJIL);
                r2.LJIILLIIL = new AnonymousClass95G();
                r2.LJIJJ = new AnonymousClass95J();
                AnonymousClass95K.LIZ.LIZ(r2.LIZ());
            }
            JSONObject jSONObject = new JSONObject();
            JSONObject jSONObject2 = new JSONObject();
            jSONObject2.put("process_name", C11797xa.LIZJ(context) + "_" + this.LIZ.get(Integer.valueOf(AnonymousClass9EI.LIZ.LIZ().getInt("runstate", 0))));
            AnonymousClass9LK.LIZ("control_process_init_event", jSONObject2, jSONObject, (JSONObject) null);
        }
    }
}
