// Path: app/src/main/java/com/smartface/app/camera/util/CameraHelper.java
// public interface CameraHelperImpl {
//     int getNumberOfCameras();
// 
//     Camera openCamera(int id);
// 
//     Camera openDefaultCamera();
// 
//     Camera openCameraFacing(int facing);
// 
//     boolean hasCamera(int cameraFacingFront);
// 
//     void getCameraInfo(int cameraId, CameraInfo2 cameraInfo);
// }
// 
// Path: app/src/main/java/com/smartface/app/camera/util/CameraHelper.java
// public static class CameraInfo2 {
//     public int facing;
//     public int orientation;
// }


import android.content.Context;
import android.content.pm.PackageManager;
import android.hardware.Camera;
import android.hardware.Camera.CameraInfo;
import com.smartface.app.camera.util.CameraHelper.CameraHelperImpl;
import com.smartface.app.camera.util.CameraHelper.CameraInfo2;
        return hasCameraSupport() ? 1 : 0;
    }

    @Override
    public Camera openCamera(final int id) {
        return Camera.open();
    }

    @Override
    public Camera openDefaultCamera() {
        return Camera.open();
    }

    @Override
    public boolean hasCamera(final int facing) {
        if (facing == CameraInfo.CAMERA_FACING_BACK) {
            return hasCameraSupport();
        }
        return false;
    }

    @Override
    public Camera openCameraFacing(final int facing) {
        if (facing == CameraInfo.CAMERA_FACING_BACK) {
            return Camera.open();
        }
        return null;
    }

    @Override
// Path: app/src/main/java/com/smartface/app/camera/util/CameraHelper.java
// public interface CameraHelperImpl {
//     int getNumberOfCameras();
// 
//     Camera openCamera(int id);
// 
//     Camera openDefaultCamera();
// 
//     Camera openCameraFacing(int facing);
// 
//     boolean hasCamera(int cameraFacingFront);
// 
//     void getCameraInfo(int cameraId, CameraInfo2 cameraInfo);
// }
// 
// Path: app/src/main/java/com/smartface/app/camera/util/CameraHelper.java
// public static class CameraInfo2 {
//     public int facing;
//     public int orientation;
// }


// Path: app/src/main/java/com/smartface/app/camera/util/CameraHelperBase.java
import android.content.Context;
import android.content.pm.PackageManager;
import android.hardware.Camera;
import android.hardware.Camera.CameraInfo;
import com.smartface.app.camera.util.CameraHelper.CameraHelperImpl;
import com.smartface.app.camera.util.CameraHelper.CameraInfo2;

        return hasCameraSupport() ? 1 : 0;
    }

    @Override
    public Camera openCamera(final int id) {
        return Camera.open();
    }

    @Override
    public Camera openDefaultCamera() {
        return Camera.open();
    }

    @Override
    public boolean hasCamera(final int facing) {
        if (facing == CameraInfo.CAMERA_FACING_BACK) {
            return hasCameraSupport();
        }
        return false;
    }

    @Override
    public Camera openCameraFacing(final int facing) {
        if (facing == CameraInfo.CAMERA_FACING_BACK) {
            return Camera.open();
        }
        return null;
    }

    @Override
    public void getCameraInfo(final int cameraId, final CameraInfo2 cameraInfo) {