Lines Matching refs:Camera
20 import android.hardware.Camera;
49 public static Camera.Size getOptimalVideoSize(List<Camera.Size> supportedVideoSizes, in getOptimalVideoSize()
50 List<Camera.Size> previewSizes, int w, int h) { in getOptimalVideoSize()
57 List<Camera.Size> videoSizes; in getOptimalVideoSize()
63 Camera.Size optimalSize = null; in getOptimalVideoSize()
75 for (Camera.Size size : videoSizes) { in getOptimalVideoSize()
88 for (Camera.Size size : videoSizes) { in getOptimalVideoSize()
101 public static Camera getDefaultCameraInstance() { in getDefaultCameraInstance()
102 return Camera.open(); in getDefaultCameraInstance()
110 public static Camera getDefaultBackFacingCameraInstance() { in getDefaultBackFacingCameraInstance()
111 return getDefaultCamera(Camera.CameraInfo.CAMERA_FACING_BACK); in getDefaultBackFacingCameraInstance()
118 public static Camera getDefaultFrontFacingCameraInstance() { in getDefaultFrontFacingCameraInstance()
119 return getDefaultCamera(Camera.CameraInfo.CAMERA_FACING_FRONT); in getDefaultFrontFacingCameraInstance()
130 private static Camera getDefaultCamera(int position) { in getDefaultCamera()
132 int mNumberOfCameras = Camera.getNumberOfCameras(); in getDefaultCamera()
135 Camera.CameraInfo cameraInfo = new Camera.CameraInfo(); in getDefaultCamera()
137 Camera.getCameraInfo(i, cameraInfo); in getDefaultCamera()
139 return Camera.open(i); in getDefaultCamera()