package com.ifpdos.Utils;

import android.util.Log;
import com.cvte.vman.VmanMiddleWare;

/* JADX INFO: loaded from: classes.dex */
public class CameraUtils {
    public static final String TAG = "CameraUtils";

    public boolean isCameraSupportBlackScreen() {
        try {
            return VmanMiddleWare.getInstance().getAvManager().getCamSupportBlackScreen();
        } catch (Exception e) {
            Log.e(TAG, "isSupportBlackScreen: error", e);
            return false;
        }
    }

    public boolean getCameraAutoBlackScreen() {
        try {
            return VmanMiddleWare.getInstance().getAvManager().getCamAutoBlackScreen();
        } catch (Exception e) {
            Log.e(TAG, "isSupportBlackScreen: error", e);
            return false;
        }
    }

    public void setCameraAutoBlackScreen(Boolean bool) {
        boolean camAutoBlackScreen;
        try {
            camAutoBlackScreen = VmanMiddleWare.getInstance().getAvManager().setCamAutoBlackScreen(bool.booleanValue());
        } catch (Exception e) {
            Log.e(TAG, "isSupportBlackScreen: error", e);
            camAutoBlackScreen = false;
        }
        Log.d(TAG, "setCameraAutoBlackScreen: " + camAutoBlackScreen);
    }
}
