Searched refs:Camera (Results 1 – 25 of 25) sorted by relevance
21 import android.hardware.Camera;22 import android.hardware.Camera.Parameters;48 if (Camera.getNumberOfCameras() < 1) { in testConstructor()52 Camera camera = Camera.open(0); in testConstructor()73 for (int id = 0; id < Camera.getNumberOfCameras(); ++id) { in testMaxAspectRatios()76 Camera camera = Camera.open(id); in testMaxAspectRatios()79 List<Camera.Size> supportedJpegDimens = parameters.getSupportedPictureSizes(); in testMaxAspectRatios()80 List<Camera.Size> supportedPreviewDimens = parameters.getSupportedPreviewSizes(); in testMaxAspectRatios()85 Camera.Size largestJpegDimen = in testMaxAspectRatios()87 Camera.Size largestPreviewDimen = in testMaxAspectRatios()
23 import android.hardware.Camera;24 import android.hardware.Camera.Area;25 import android.hardware.Camera.CameraInfo;26 import android.hardware.Camera.ErrorCallback;27 import android.hardware.Camera.Face;28 import android.hardware.Camera.FaceDetectionListener;29 import android.hardware.Camera.Parameters;30 import android.hardware.Camera.PictureCallback;31 import android.hardware.Camera.ShutterCallback;32 import android.hardware.Camera.Size;[all …]
20 import android.hardware.Camera.Parameters;
21 import android.hardware.Camera;22 import android.hardware.Camera.Parameters;23 import android.hardware.Camera.Size;84 Camera mCamera;139 mCamera = Camera.open(cameraId); in initializeMessageLooper()176 implements android.hardware.Camera.PreviewCallback {177 public void onPreviewFrame(byte [] data, Camera camera) { in onPreviewFrame()322 int nCameras = Camera.getNumberOfCameras(); in runForAllCameras()649 public void setCameraSizing(Camera.Size previewSize) { in setCameraSizing()
19 import android.hardware.Camera;40 class ShutterCallback implements Camera.ShutterCallback {44 class RawPictureCallback implements Camera.PictureCallback {45 public void onPictureTaken(byte [] rawData, Camera camera) { } in onPictureTaken()48 class JpegPictureCallback implements Camera.PictureCallback {49 public void onPictureTaken(byte [] jpegData, Camera camera) { in onPictureTaken()79 (Camera.open()).takePicture(new ShutterCallback(), in testCamera()
26 import android.hardware.Camera;27 import android.hardware.Camera.PictureCallback;28 import android.hardware.Camera.ShutterCallback;73 private Camera mCamera;139 mPreviewSizes = new Size[Camera.getNumberOfCameras()]; in onCreate()140 for (int cameraId = 0; cameraId < Camera.getNumberOfCameras(); ++cameraId) { in onCreate()195 int numCameras = Camera.getNumberOfCameras(); in onResume()197 Camera camera = Camera.open(cameraId); in onResume()200 List<Camera.Size> supportedSizes = in onResume()202 for (Camera.Size size : supportedSizes) { in onResume()[all …]
21 import android.hardware.Camera;66 private Camera mCamera;67 private List<Camera.Size> mPreviewSizes;68 private Camera.Size mOptimalSize;87 mNumCameras = Camera.getNumberOfCameras(); in onCreate()183 mCamera = Camera.open(id); in setUpCamera()188 Camera.Parameters p = mCamera.getParameters(); in setUpCamera()191 List<Camera.Size> unsortedSizes = p.getSupportedPreviewSizes(); in setUpCamera()192 class SizeCompare implements Comparator<Camera.Size> { in setUpCamera()194 public int compare(Camera.Size lhs, Camera.Size rhs) { in setUpCamera()[all …]
20 import android.hardware.Camera;34 Camera mCamera;50 mCamera = Camera.open(); in onResume()55 mCamera.setErrorCallback(new Camera.ErrorCallback() { in onResume()57 public void onError(int i, Camera camera) { in onResume()58 if (i == Camera.CAMERA_ERROR_EVICTED) { in onResume()
23 import android.hardware.Camera;57 private Camera mCamera;153 final Camera.ErrorCallback mockErrorCb1 = mock(Camera.ErrorCallback.class); in testCamera1ActivityEviction()159 mCamera = Camera.open(); in testCamera1ActivityEviction()201 verify(mockErrorCb1, only()).onError(eq(Camera.CAMERA_ERROR_EVICTED), isA(Camera.class)); in testCamera1ActivityEviction()211 mCamera = Camera.open(); in testCamera1ActivityEviction()
20 import android.hardware.Camera;34 if (Camera.getNumberOfCameras() < 1) { in setUp()41 if (Camera.getNumberOfCameras() < 1) { in testTextureViewActivity()
25 import android.hardware.Camera;42 private Camera mCamera;63 mCamera = Camera.open(); in onSurfaceTextureAvailable()65 mCamera = Camera.open(0); in onSurfaceTextureAvailable()
20 import android.hardware.Camera;69 public static class LegacySizeComparator implements Comparator<Camera.Size> {71 public int compare(Camera.Size lhs, Camera.Size rhs) { in compare()
20 import android.hardware.Camera;58 private Camera mCamera;152 private final class CameraErrorCallback implements android.hardware.Camera.ErrorCallback {153 public void onError(int error, android.hardware.Camera camera) { in onError()155 android.hardware.Camera.CAMERA_ERROR_SERVER_DIED); in onError()169 if (Camera.getNumberOfCameras() < 1) { in testStressCamera()189 mCamera = Camera.open(); in testStressCamera()191 mCamera = Camera.open(0); in testStressCamera()223 Camera camera = null; in testStressRecorder()232 camera = Camera.open(0); in testStressRecorder()[all …]
29 import android.hardware.Camera;30 import android.hardware.Camera.CameraInfo;61 implements TextureView.SurfaceTextureListener, Camera.PreviewCallback {78 private Camera mCamera;80 private List<Camera.Size> mPreviewSizes;81 private Camera.Size mNextPreviewSize;82 private Camera.Size mPreviewSize;129 int numCameras = Camera.getNumberOfCameras(); in onCreate()319 mCamera = Camera.open(id); in setUpCamera()320 Camera.Parameters p = mCamera.getParameters(); in setUpCamera()[all …]
22 import android.hardware.Camera;74 Camera.ACTION_NEW_PICTURE,75 Camera.ACTION_NEW_VIDEO,77 Camera.ACTION_NEW_VIDEO163 return android.hardware.Camera.ACTION_NEW_PICTURE; in getStageIntentString()166 return android.hardware.Camera.ACTION_NEW_VIDEO; in getStageIntentString()169 return android.hardware.Camera.ACTION_NEW_PICTURE; in getStageIntentString()172 return android.hardware.Camera.ACTION_NEW_VIDEO; in getStageIntentString()255 mFilterPicture.addAction(Camera.ACTION_NEW_PICTURE); in onCreate()256 mFilterPicture.addAction(Camera.ACTION_NEW_VIDEO); in onCreate()
21 import android.hardware.Camera;36 private Camera mCamera;59 public void init(Camera camera, float aspectRatio, int rotation) { in init()
22 import android.hardware.Camera;379 private Camera mCamera;381 private Camera.CameraInfo mCameraInfo;392 mCamera = Camera.open(); // attempt to get a default Camera instance (0) in CameraContext()395 mCameraInfo = new Camera.CameraInfo(); in CameraContext()396 Camera.getCameraInfo(0, mCameraInfo); in CameraContext()411 Camera.Parameters param = mCamera.getParameters(); in setupCamera()412 List<Camera.Size> pre_sz = param.getSupportedPreviewSizes(); in setupCamera()413 List<Camera.Size> pic_sz = param.getSupportedPictureSizes(); in setupCamera()420 for (Camera.Size j : pre_sz) { in setupCamera()[all …]
18 import android.graphics.Camera;24 private Camera mCamera;29 mCamera = new Camera(); in setUp()33 new Camera(); in testCamera()
20 import android.hardware.Camera;47 int nCamera = Camera.getNumberOfCameras(); in testGetWithId()
21 import android.hardware.Camera;22 import android.hardware.Camera.Parameters;23 import android.hardware.Camera.Size;351 int nCamera = Camera.getNumberOfCameras(); in testGetWithId()358 Camera camera = (cameraId == -1)? Camera.open(): Camera.open(cameraId); in getSupportedVideoSizes()
24 import android.hardware.Camera;83 private Camera mCamera;180 Camera camera = null; in testRecorderCamera()218 int nCamera = Camera.getNumberOfCameras(); in recordVideoUsingCamera()221 mCamera = Camera.open(cameraId); in recordVideoUsingCamera()230 Camera camera, String fileName, int durMs, boolean timelapse) throws Exception { in recordVideoUsingCamera()234 Camera.Parameters params = camera.getParameters(); in recordVideoUsingCamera()519 mCamera = Camera.open(0); in setupRecorder()520 Camera.Parameters params = mCamera.getParameters(); in setupRecorder()
30 import android.hardware.Camera;33 import android.hardware.Camera.CameraInfo;34 import android.hardware.Camera.Parameters;115 int numCameras = Camera.getNumberOfCameras(); in testCameraFeatures()178 int numCameras = Camera.getNumberOfCameras(); in checkFrontCamera()181 Camera.getCameraInfo(i, info); in checkFrontCamera()201 Camera camera = null; in checkRearCamera()203 camera = Camera.open(); in checkRearCamera()207 Camera.Parameters params = camera.getParameters(); in checkRearCamera()
22 import android.hardware.Camera;23 import android.hardware.Camera.CameraInfo;24 import android.hardware.Camera.Size;81 private Camera mCamera;219 int numCameras = Camera.getNumberOfCameras(); in onCreate()591 mCamera = Camera.open(id); in setUpCamera()599 Camera.Parameters p = mCamera.getParameters(); in setUpCamera()652 Camera.getCameraInfo(id, info); in setUpCamera()662 if (info.facing == Camera.CameraInfo.CAMERA_FACING_FRONT) { in setUpCamera()725 Camera.Parameters p = mCamera.getParameters(); in startPreview()
307 this.camera = new Flog.RayTracer.Camera(543 Flog.RayTracer.Camera = Class.create();545 Flog.RayTracer.Camera.prototype = { class in Flog.RayTracer814 scene.camera = new Flog.RayTracer.Camera(
META-INF/ META-INF/MANIFEST.MF org/ org/opencv/ org/ ...