Home
last modified time | relevance | path

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

123

/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2MultiViewTestCase.java134 for (CameraHolder camera : mCameraHolders) { in tearDown()
135 if (camera.isOpened()) { in tearDown()
136 camera.close(); in tearDown()
137 camera = null; in tearDown()
237 CameraHolder camera = getCameraHolder(cameraId); in openCamera() local
238 assertFalse("Camera has already opened", camera.isOpened()); in openCamera()
239 camera.open(); in openCamera()
244 CameraHolder camera = getCameraHolder(cameraId); in closeCamera() local
245 camera.close(); in closeCamera()
250 CameraHolder camera = getCameraHolder(cameraId); in createSessionWithConfigs() local
[all …]
/cts/tests/camera/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()
DCameraTestCase.java66 public void onError(int error, Camera camera) { in initializeMessageLooper()
119 public void onPreviewFrame(byte[] data, android.hardware.Camera camera) { in startPreview()
148 public void onAutoFocus(boolean success, Camera camera) { in autoFocus()
175 public void onPictureTaken(byte[] rawData, Camera camera) { in takePicture()
/cts/tests/camera/src/android/hardware/camera2/cts/
DFastBasicsTest.java181 public void onPictureTaken(byte[] data, Camera camera) { in onPictureTaken() argument
193 Camera camera = null; in testCamera1() local
197 camera = Camera.open(i); in testCamera1()
204 camera.setPreviewTexture(st); in testCamera1()
205 camera.startPreview(); in testCamera1()
209 camera.takePicture(null, null, listener); in testCamera1()
220 if (camera != null) { in testCamera1()
221 camera.release(); in testCamera1()
DCameraManagerTest.java239 CameraDevice camera = null; in testCameraManagerOpenCamerasSerially() local
257 camera = verifyCameraStateOpened(ids[i], mockListener); in testCameraManagerOpenCamerasSerially()
259 if (camera != null) { in testCameraManagerOpenCamerasSerially()
260 camera.close(); in testCameraManagerOpenCamerasSerially()
345 CameraDevice camera; in testCameraManagerOpenAllCameras() local
361 camera = argument.getValue(); in testCameraManagerOpenAllCameras()
363 + ids[i], camera); in testCameraManagerOpenAllCameras()
367 camera = verifyCameraStateOpened(cameraId, in testCameraManagerOpenAllCameras()
371 camera = null; // unreachable. but need this for java compiler in testCameraManagerOpenAllCameras()
375 cameraList.add(camera); in testCameraManagerOpenAllCameras()
[all …]
DAllocationTest.java485 public void run(CameraDevice camera) throws CameraAccessException { in testAllocationFromCameraFlexibleYuv()
545 public void run(CameraDevice camera) throws CameraAccessException { in testBlackWhite()
547 new StaticMetadata(mCameraManager.getCameraCharacteristics(camera.getId())); in testBlackWhite()
557 getSupportedSizeForFormat(YUV_420_888, camera.getId(), mCameraManager)); in testBlackWhite()
624 public void run(CameraDevice camera) throws CameraAccessException { in testParamSensitivity()
626 new StaticMetadata(mCameraManager.getCameraCharacteristics(camera.getId())); in testParamSensitivity()
636 getSupportedSizeForFormat(YUV_420_888, camera.getId(), mCameraManager)); in testParamSensitivity()
752 void run(CameraDevice camera) throws CameraAccessException; in run() argument
/cts/tests/tests/graphics/jni/
Dandroid_graphics_cts_CameraVulkanGpuTest.cpp60 CameraHelper camera; in loadCameraAndVerifyFrameImport() local
63 ASSERT(camera.initCamera(imageReader.getNativeWindow()) >= 0, in loadCameraAndVerifyFrameImport()
65 ASSERT(camera.isCameraReady(), "Camera is not ready."); in loadCameraAndVerifyFrameImport()
68 ASSERT(camera.takePicture() >= 0, "Camera failed to take picture."); in loadCameraAndVerifyFrameImport()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/
DPhotoCaptureActivity.java17 package com.android.cts.verifier.camera.fov;
227 Camera camera = Camera.open(cameraId); in onResume() local
231 camera.getParameters().getSupportedPictureSizes(); in onResume()
236 camera.release(); in onResume()
274 public void onPictureTaken(byte[] data, Camera camera) { in onPictureTaken() argument
387 Camera camera = Camera.open(cameraId); in showNextDialogToChoosePreviewSize() local
388 final List<Camera.Size> sizes = camera.getParameters() in showNextDialogToChoosePreviewSize()
427 camera.release(); in showNextDialogToChoosePreviewSize()
500 private static String getFocusMode(Camera camera) { in getFocusMode() argument
501 List<String> modes = camera.getParameters().getSupportedFocusModes(); in getFocusMode()
[all …]
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DCameraTests.java42 Camera camera = new Camera(); in testBasicTranslate() local
43 camera.translate(0, 50, 0); in testBasicTranslate()
44 camera.applyToCanvas(canvas); in testBasicTranslate()
/cts/tests/camera/api25test/src/android/camera/cts/api25test/
DEnableZslTest.java17 package android.camera.cts.api25test;
128 CameraDevice camera = CameraTestUtils.openCamera(mCameraManager, cameraId, in testEnableZslValueByCamera() local
137 CaptureRequest.Builder request = camera.createCaptureRequest(sTemplates[i]); in testEnableZslValueByCamera()
169 camera.close(); in testEnableZslValueByCamera()
/cts/apps/CameraITS/
DAndroid.mk22 camera-its: $(its-build-stamp)
24 .PHONY: camera-its
/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/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java769 public static CameraCaptureSession configureCameraSession(CameraDevice camera, in configureCameraSession() argument
775 camera.createConstrainedHighSpeedCaptureSession(outputSurfaces, in configureCameraSession()
778 camera.createCaptureSession(outputSurfaces, sessionListener, handler); in configureCameraSession()
801 public static CameraCaptureSession buildConstrainedCameraSession(CameraDevice camera, in buildConstrainedCameraSession() argument
814 camera.createCaptureSession(sessionConfig); in buildConstrainedCameraSession()
834 public static CameraCaptureSession configureCameraSessionWithConfig(CameraDevice camera, in configureCameraSessionWithConfig() argument
839 camera.createCaptureSessionByOutputConfigurations(outputs, sessionListener, handler); in configureCameraSessionWithConfig()
854 public static CameraCaptureSession tryConfigureCameraSessionWithConfig(CameraDevice camera, in tryConfigureCameraSessionWithConfig() argument
859 camera.createCaptureSessionByOutputConfigurations(outputs, sessionListener, handler); in tryConfigureCameraSessionWithConfig()
884 public static CameraCaptureSession configureCameraSessionWithParameters(CameraDevice camera, in configureCameraSessionWithParameters() argument
[all …]
/cts/tests/camera/utils/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/camera/src/android/hardware/multiprocess/camera/cts/
DCamera1Activity.java17 package android.hardware.multiprocess.camera.cts;
56 public void onError(int i, Camera camera) { in onResume()
DMediaRecorderCameraActivity.java17 package android.hardware.multiprocess.camera.cts;
20 import android.camera.cts.R;
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsUtils.java17 package com.android.cts.verifier.camera.its;
426 CameraDevice camera = null; in getLogicalCameraDefaultFocalLength() local
430 camera = blockingManager.openCamera(cameraId, listener, cameraHandler); in getLogicalCameraDefaultFocalLength()
432 camera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in getLogicalCameraDefaultFocalLength()
437 if (camera != null) { in getLogicalCameraDefaultFocalLength()
438 camera.close(); in getLogicalCameraDefaultFocalLength()
/cts/tests/tests/mediastress/src/android/mediastress/cts/
DMediaRecorderStressTest.java154 public void onError(int error, android.hardware.Camera camera) { in onError() argument
224 Camera camera = null; in testStressRecorder() local
233 camera = Camera.open(0); in testStressRecorder()
234 List<Camera.Size> previewSizes = camera.getParameters().getSupportedPreviewSizes(); in testStressRecorder()
247 if (camera != null) { in testStressRecorder()
248 camera.release(); in testStressRecorder()
/cts/tests/app/src/android/app/cts/
DSystemFeaturesTest.java254 Camera camera = null; in checkRearCamera() local
256 camera = Camera.open(); in checkRearCamera()
257 if (camera != null) { in checkRearCamera()
260 Camera.Parameters params = camera.getParameters(); in checkRearCamera()
278 if (camera != null) { in checkRearCamera()
279 camera.release(); in checkRearCamera()
/cts/tests/tests/graphics/src/android/graphics/cts/
DMatrixTest.java79 Camera camera = new Camera(); in testIsAffine() local
80 camera.setLocation(0, 0, 100); in testIsAffine()
81 camera.rotateX(20); in testIsAffine()
82 camera.getMatrix(mMatrix); in testIsAffine()
/cts/tests/tests/media/libimagereaderjni/
DOWNERS1 include platform/frameworks/av:/camera/OWNERS
/cts/tests/camera/
DOWNERS2 include platform/frameworks/av:/camera/OWNERS
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/
DOWNERS2 include platform/frameworks/av:/camera/OWNER

123