package com.seewo.vcommons.data;

import android.content.Context;
import android.content.Intent;
import com.seewo.vcommons.utils.BoardTypeUtils;

/* JADX INFO: loaded from: classes.dex */
public class FreeformUtils {
    private FreeformUtils() {
    }

    public static boolean isFreeformSwitchEnable() {
        return PropertiesUtils.getProperty(BoardTypeUtils.isSupportSELinux() ? "persist.ctm.freeform" : "persist.cvte.freeform", false);
    }

    public static boolean setFreeformSwitchEnable(boolean z) {
        return PropertiesUtils.setProperty(BoardTypeUtils.isSupportSELinux() ? "persist.ctm.freeform" : "persist.cvte.freeform", String.valueOf(z));
    }

    public static boolean isSupproFreeformMode() {
        return PropertiesUtils.getProperty(BoardTypeUtils.isSupportSELinux() ? "persist.ctm.support.freeform" : "persist.support.freeform", false);
    }

    public static void miniAllTaskSize(Context context, boolean z) {
        miniAllTaskSize(context, z, -1);
    }

    public static void miniAllTaskSize(Context context, boolean z, int i) {
        Intent intent = new Intent("com.seewo.freeform.TASK_MINSIZE");
        intent.putExtra("show", z);
        intent.putExtra("taskId", i);
        context.sendBroadcast(intent);
    }
}
