Home
last modified time | relevance | path

Searched refs:camera (Results 1 – 25 of 43) sorted by relevance

12

/cts/tests/tests/hardware/src/android/hardware/camera2/cts/testcases/
DCamera2MultiViewTestCase.java118 for (CameraHolder camera : mCameraHolders) { in tearDown()
119 if (camera.isOpenned()) { in tearDown()
120 camera.close(); in tearDown()
121 camera = null; in tearDown()
222 CameraHolder camera = getCameraHolder(cameraId); in openCamera() local
223 assertFalse("Camera has already opened", camera.isOpenned()); in openCamera()
224 camera.open(); in openCamera()
229 CameraHolder camera = getCameraHolder(cameraId); in closeCamera() local
230 camera.close(); in closeCamera()
236 CameraHolder camera = getCameraHolder(cameraId); in startPreview() local
[all …]
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/
DCameraManagerTest.java208 CameraDevice camera = null; in testCameraManagerOpenCamerasSerially() local
222 camera = verifyCameraStateOpened(ids[i], mockListener); in testCameraManagerOpenCamerasSerially()
224 if (camera != null) { in testCameraManagerOpenCamerasSerially()
225 camera.close(); in testCameraManagerOpenCamerasSerially()
301 CameraDevice camera; in testCameraManagerOpenAllCameras() local
317 camera = argument.getValue(); in testCameraManagerOpenAllCameras()
319 + ids[i], camera); in testCameraManagerOpenAllCameras()
323 camera = verifyCameraStateOpened(cameraId, in testCameraManagerOpenAllCameras()
327 camera = null; // unreachable. but need this for java compiler in testCameraManagerOpenAllCameras()
331 cameraList.add(camera); in testCameraManagerOpenAllCameras()
[all …]
DAllocationTest.java471 public void run(CameraDevice camera) throws CameraAccessException { in testAllocationFromCameraFlexibleYuv()
530 public void run(CameraDevice camera) throws CameraAccessException { in testBlackWhite()
532 new StaticMetadata(mCameraManager.getCameraCharacteristics(camera.getId())); in testBlackWhite()
542 getSupportedSizeForFormat(YUV_420_888, camera.getId(), mCameraManager)); in testBlackWhite()
592 public void run(CameraDevice camera) throws CameraAccessException { in testParamSensitivity()
594 new StaticMetadata(mCameraManager.getCameraCharacteristics(camera.getId())); in testParamSensitivity()
604 getSupportedSizeForFormat(YUV_420_888, camera.getId(), mCameraManager)); in testParamSensitivity()
706 void run(CameraDevice camera) throws CameraAccessException; in run() argument
DCameraDeviceTest.java443 CameraDevice camera = session.getDevice(); in testChainedOperation() local
445 camera.close(); in testChainedOperation()
456 CameraDevice camera = session.getDevice(); in testChainedOperation() local
458 camera.close(); in testChainedOperation()
491 CameraDevice camera = session.getDevice(); in testChainedOperation() local
493 camera.close(); in testChainedOperation()
506 public void onOpened(CameraDevice camera) { in testChainedOperation() argument
508 cameraDevice = camera; in testChainedOperation()
511 camera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in testChainedOperation()
513 camera.createCaptureSession(outputs, mSessionListener, mHandler); in testChainedOperation()
[all …]
/cts/tests/tests/hardware/src/android/hardware/cts/
DCamera_SizeTest.java52 Camera camera = Camera.open(0); in testConstructor() local
53 Parameters parameters = camera.getParameters(); in testConstructor()
59 camera.release(); in testConstructor()
76 Camera camera = Camera.open(id); in testMaxAspectRatios() local
77 Parameters parameters = camera.getParameters(); in testMaxAspectRatios()
103 camera.release(); in testMaxAspectRatios()
DCameraTest.java234 public void onPreviewFrame(byte [] data, Camera camera) { in onPreviewFrame() argument
240 Size size = camera.getParameters().getPreviewSize(); in onPreviewFrame()
241 int format = camera.getParameters().getPreviewFormat(); in onPreviewFrame()
269 public void onPictureTaken(byte [] rawData, Camera camera) { in onPictureTaken() argument
277 public void onPictureTaken(byte[] rawData, Camera camera) { in onPictureTaken() argument
305 public void onError(int error, Camera camera) { in onError() argument
313 public void onAutoFocus(boolean success, Camera camera) { in onAutoFocus() argument
323 public void onAutoFocusMoving(boolean start, Camera camera) { in onAutoFocusMoving() argument
1308 public void onPreviewFrame(byte[] data, Camera camera) { in onPreviewFrame() argument
1513 public void onZoomChange(int value, boolean stopped, Camera camera) {
[all …]
/cts/apps/CameraITS/
DAndroid.mk20 camera-its: $(its-build-stamp)
22 .PHONY: camera-its
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/
DPhotoCaptureActivity.java17 package com.android.cts.verifier.camera.fov;
197 Camera camera = Camera.open(cameraId); in onResume() local
201 camera.getParameters().getSupportedPictureSizes(); in onResume()
206 camera.release(); in onResume()
244 public void onPictureTaken(byte[] data, Camera camera) { in onPictureTaken() argument
356 Camera camera = Camera.open(cameraId); in showNextDialogToChoosePreviewSize() local
357 final List<Camera.Size> sizes = camera.getParameters() in showNextDialogToChoosePreviewSize()
396 camera.release(); in showNextDialogToChoosePreviewSize()
460 private static String getFocusMode(Camera camera) { in getFocusMode() argument
461 List<String> modes = camera.getParameters().getSupportedFocusModes(); in getFocusMode()
[all …]
DSize.java17 package com.android.cts.verifier.camera.fov;
DSelectableResolution.java17 package com.android.cts.verifier.camera.fov;
DCalibrationPreferenceActivity.java3 package com.android.cts.verifier.camera.fov;
DCtsTestHelper.java17 package com.android.cts.verifier.camera.fov;
DCameraPreviewView.java2 package com.android.cts.verifier.camera.fov;
/cts/apps/CameraITS/tests/inprog/scene2/
DREADME1 Scene 2 requires a camera lab with controlled illuminants, for example
7 If a test requires that the camera be in any particular orientaion, it will
/cts/tests/tests/permission/src/android/permission/cts/
DCameraPermissionTest.java45 public void onPictureTaken(byte [] rawData, Camera camera) { } in onPictureTaken() argument
49 public void onPictureTaken(byte [] jpegData, Camera camera) { in onPictureTaken() argument
/cts/tests/tests/hardware/src/android/hardware/multiprocess/camera/cts/
DCamera1Activity.java17 package android.hardware.multiprocess.camera.cts;
57 public void onError(int i, Camera camera) { in onResume()
DTestConstants.java16 package android.hardware.multiprocess.camera.cts;
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsException.java17 package com.android.cts.verifier.camera.its;
DLogt.java17 package com.android.cts.verifier.camera.its;
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVCameraPreview.java59 public void init(Camera camera, float aspectRatio, int rotation) { in init() argument
60 this.mCamera = camera; in init()
/cts/tests/tests/app/src/android/app/cts/
DSystemFeaturesTest.java201 Camera camera = null; in checkRearCamera() local
203 camera = Camera.open(); in checkRearCamera()
204 if (camera != null) { in checkRearCamera()
207 Camera.Parameters params = camera.getParameters(); in checkRearCamera()
225 if (camera != null) { in checkRearCamera()
226 camera.release(); in checkRearCamera()
/cts/tests/tests/mediastress/src/android/mediastress/cts/
DMediaRecorderStressTest.java153 public void onError(int error, android.hardware.Camera camera) { in onError() argument
223 Camera camera = null; in testStressRecorder() local
232 camera = Camera.open(0); in testStressRecorder()
233 List<Camera.Size> previewSizes = camera.getParameters().getSupportedPreviewSizes(); in testStressRecorder()
246 if (camera != null) { in testStressRecorder()
247 camera.release(); in testStressRecorder()
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/helpers/
DCameraMetadataGetter.java152 CameraDevice camera = null; in getCaptureRequestTemplates() local
154 camera = (new BlockingCameraManager(mCameraManager)).openCamera(cameraId, in getCaptureRequestTemplates()
159 request = camera.createCaptureRequest(TEMPLATE_IDS[i]); in getCaptureRequestTemplates()
173 if (camera != null) { in getCaptureRequestTemplates()
174 camera.close(); in getCaptureRequestTemplates()
188 CameraDevice camera = null; in getCaptureRequestTemplates() local
192 camera = (new BlockingCameraManager(mCameraManager)).openCamera(id, in getCaptureRequestTemplates()
204 request = camera.createCaptureRequest(TEMPLATE_IDS[i]); in getCaptureRequestTemplates()
219 if (camera != null) { in getCaptureRequestTemplates()
220 camera.close(); in getCaptureRequestTemplates()
DCamera2Focuser.java93 public Camera2Focuser(CameraDevice camera, CameraCaptureSession session, Surface requestSurface, in Camera2Focuser() argument
96 if (camera == null) { in Camera2Focuser()
115 mCamera = camera; in Camera2Focuser()
/cts/tests/tests/media/src/android/media/cts/
DCamcorderProfileTest.java358 Camera camera = (cameraId == -1)? Camera.open(): Camera.open(cameraId); in getSupportedVideoSizes() local
359 Parameters parameters = camera.getParameters(); in getSupportedVideoSizes()
365 camera.release(); in getSupportedVideoSizes()

12