/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | CameraTest.java | 36 private Camera mCamera; field in CameraTest 40 mCamera = new Camera(); in setup() 51 mCamera.save(); in testRestore() 52 mCamera.restore(); in testRestore() 58 mCamera.getMatrix(m); in testMatrixPreCompare() 70 mCamera.translate(10.0f, 28.0f, 2008.0f); in testTranslate() 72 mCamera.getMatrix(m2); in testTranslate() 86 mCamera.rotateX(90.0f); in testRotateX() 88 mCamera.getMatrix(m2); in testRotateX() 102 mCamera.rotateY(90.0f); in testRotateY() [all …]
|
/cts/tests/camera/src/android/hardware/cts/ |
D | CameraTest.java | 128 Camera mCamera; field in CameraTest 141 if (mCamera != null) { in tearDown() 142 mCamera.release(); in tearDown() 143 mCamera = null; in tearDown() 171 mCamera = Camera.open(cameraId); in initializeMessageLooper() 172 mCamera.setErrorCallback(mErrorCallback); in initializeMessageLooper() 188 assertNotNull("Fail to open camera.", mCamera); in initializeMessageLooper() 189 mCamera.setPreviewDisplay(activity.getSurfaceView().getHolder()); in initializeMessageLooper() 216 mCamera.release(); in terminateMessageLooper() 217 mCamera = null; in terminateMessageLooper() [all …]
|
D | CameraGLTest.java | 82 Camera mCamera; field in CameraGLTest 112 if (mCamera != null) { in tearDown() 138 mCamera = Camera.open(cameraId); in initializeMessageLooper() 164 mCamera.release(); in terminateMessageLooper() 172 mCamera = null; in terminateMessageLooper() 220 mCamera.stopPreview(); in onFrameAvailable() 335 if (mCamera != null) { in runForAllCameras() 354 mCamera.setOneShotPreviewCallback(mPreviewCallback); 355 mCamera.startPreview(); 356 mCamera.setPreviewTexture(mSurfaceTexture); [all …]
|
D | CameraTestCase.java | 44 protected Camera mCamera; field in CameraTestCase 63 mCamera = Camera.open(cameraId); in initializeMessageLooper() 64 mCamera.setErrorCallback(new ErrorCallback() { in initializeMessageLooper() 90 assertNotNull("Fail to open camera.", mCamera); in initializeMessageLooper() 104 mCamera.release(); in terminateMessageLooper() 105 mCamera = null; in terminateMessageLooper() 117 mCamera.setPreviewCallback(new PreviewCallback() { in startPreview() 125 mCamera.startPreview(); in startPreview() 136 mCamera.setPreviewCallback(null); in startPreview() 146 mCamera.autoFocus(new AutoFocusCallback() { in autoFocus() [all …]
|
D | LegacyCameraPerformanceTest.java | 54 if (mCamera != null) { in tearDown() 55 mCamera.release(); in tearDown() 56 mCamera = null; in tearDown() 85 Parameters parameters = mCamera.getParameters(); in testLegacyApiPerformance() 97 mCamera.setParameters(parameters); in testLegacyApiPerformance() 101 mCamera.setPreviewTexture(previewTexture); in testLegacyApiPerformance() 123 mCamera.stopPreview(); in testLegacyApiPerformance()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/video/ |
D | CameraVideoActivity.java | 88 private Camera mCamera; field in CameraVideoActivity 195 mCamera.unlock(); in prepareVideoRecorder() 196 mMediaRecorder.setCamera(mCamera); in prepareVideoRecorder() 207 recordSize = mCamera.new Size(176, 144); in prepareVideoRecorder() 210 recordSize = mCamera.new Size(320, 240); in prepareVideoRecorder() 213 recordSize = mCamera.new Size(352, 288); in prepareVideoRecorder() 216 recordSize = mCamera.new Size(720, 480); in prepareVideoRecorder() 219 recordSize = mCamera.new Size(1280, 720); in prepareVideoRecorder() 406 mCamera.lock(); // check here, lock camera for later use in releaseMediaRecorder() 435 if (mCamera != null) { in onSurfaceTextureAvailable() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | RVCVCameraPreview.java | 43 private Camera mCamera; field in RVCVCameraPreview 58 mCamera = null; in RVCVCameraPreview() 73 this.mCamera = camera; in init() 97 if (mCamera == null) { in surfaceCreated() 115 if (mHolder.getSurface() == null || mCamera == null){ in surfaceChanged() 121 mCamera.setDisplayOrientation(totalRotation); in surfaceChanged() 134 mCamera.stopPreview(); in surfaceChanged() 140 mCamera.setPreviewDisplay(holder); in surfaceChanged() 141 mCamera.startPreview(); in surfaceChanged()
|
D | RVCVRecordActivity.java | 432 private Camera mCamera; field in RVCVRecordActivity.CameraContext 456 mCamera = Camera.open(); // attempt to get a default Camera instance (0) in CameraContext() 458 if (mCamera != null) { in CameraContext() 476 Camera.Parameters param = mCamera.getParameters(); in setupCamera() 519 mCamera.setParameters(param); in setupCamera() 523 param = mCamera.getParameters(); //acquire proper fov after change the picture size in setupCamera() 548 return mCamera; in getCamera() 563 if (mCamera != null) { in init() 564 double alpha = mCamera.getParameters().getHorizontalViewAngle()*Math.PI/180.0; in init() 569 + mCamera.getParameters().getHorizontalViewAngle() +" Estimated fx = "+fx); in init() [all …]
|
/cts/tests/tests/mediastress/src/android/mediastress/cts/ |
D | MediaRecorderStressTest.java | 58 private Camera mCamera; field in MediaRecorderStressTest 189 mCamera = Camera.open(); in testStressCamera() 191 mCamera = Camera.open(0); in testStressCamera() 193 mCamera = null; in testStressCamera() 197 if (mCamera == null) { in testStressCamera() 200 mCamera.setErrorCallback(mCameraErrorCallback); in testStressCamera() 201 mCamera.setPreviewDisplay(mSurfaceHolder); in testStressCamera() 202 mCamera.startPreview(); in testStressCamera() 204 mCamera.stopPreview(); in testStressCamera() 205 mCamera.release(); in testStressCamera() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/ |
D | PhotoCaptureActivity.java | 76 private Camera mCamera; field in PhotoCaptureActivity 143 if (mCamera != null) { in onCreate() 144 mCamera.stopPreview(); in onCreate() 145 mCamera.release(); in onCreate() 146 mCamera = null; in onCreate() 168 mCamera.takePicture(new ShutterCallback() { in onCreate() 189 mReportedFovPrePictureTaken = mCamera.getParameters().getHorizontalViewAngle(); in onCreate() 260 if (mCamera != null) { in onPause() 262 mCamera.stopPreview(); in onPause() 265 mCamera.release(); in onPause() [all …]
|
/cts/tests/tests/view/src/android/view/cts/ |
D | TextureViewCameraActivity.java | 44 private Camera mCamera; field in TextureViewCameraActivity 63 mCamera = Camera.open(0); in onSurfaceTextureAvailable() 73 mCamera.setPreviewTexture(surface); in onSurfaceTextureAvailable() 74 mCamera.startPreview(); in onSurfaceTextureAvailable() 89 if (mCamera != null) { in onSurfaceTextureDestroyed() 91 mCamera.stopPreview(); in onSurfaceTextureDestroyed() 92 mCamera.release(); in onSurfaceTextureDestroyed()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/ |
D | CameraOrientationActivity.java | 66 private Camera mCamera; field in CameraOrientationActivity 183 mCamera = Camera.open(id); in setUpCamera() 188 Camera.Parameters p = mCamera.getParameters(); in setUpCamera() 211 if (mCamera != null) { in shutdownCamera() 212 mCamera.setPreviewCallback(null); in shutdownCamera() 213 mCamera.stopPreview(); in shutdownCamera() 214 mCamera.release(); in shutdownCamera() 215 mCamera = null; in shutdownCamera() 223 mCamera.setPreviewCallback(null); in startPreview() 224 mCamera.stopPreview(); in startPreview() [all …]
|
/cts/tests/camera/src/android/hardware/multiprocess/camera/cts/ |
D | Camera1Activity.java | 33 Camera mCamera; field in Camera1Activity 49 mCamera = Camera.open(); in onResume() 50 if (mCamera == null) { in onResume() 54 mCamera.setErrorCallback(new Camera.ErrorCallback() { in onResume()
|
D | CameraEvictionTest.java | 56 private Camera mCamera; field in CameraEvictionTest 142 if (mCamera != null) { in tearDown() 143 mCamera.release(); in tearDown() 144 mCamera = null; in tearDown() 366 mCamera = Camera.open(); in testAPI1ActivityEviction() 367 if (mCamera == null) { in testAPI1ActivityEviction() 370 mCamera.setErrorCallback(mockErrorCb1); in testAPI1ActivityEviction() 409 mCamera = null; in testAPI1ActivityEviction() 418 mCamera = Camera.open(); in testAPI1ActivityEviction()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/formats/ |
D | CameraFormatsActivity.java | 80 private Camera mCamera; field in CameraFormatsActivity 310 if (mCamera != null) { in onSurfaceTextureAvailable() 379 mCamera = Camera.open(id); in setUpCamera() 380 Camera.Parameters p = mCamera.getParameters(); in setUpCamera() 476 mCamera.setDisplayOrientation(mPreviewRotation); in setUpCamera() 487 if (mCamera != null) { in shutdownCamera() 488 mCamera.setPreviewCallback(null); in shutdownCamera() 489 mCamera.stopPreview(); in shutdownCamera() 490 mCamera.release(); in shutdownCamera() 491 mCamera = null; in shutdownCamera() [all …]
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | Camera2PermissionTest.java | 47 private CameraDevice mCamera; field in Camera2PermissionTest 152 mCamera = (new BlockingCameraManager(mCameraManager)).openCamera( in openCamera() 157 if (mCamera != null) { in closeCamera() 158 mCamera.close(); in closeCamera() 160 mCamera = null; in closeCamera()
|
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/ |
D | Camera2MultiViewTestCase.java | 435 private CameraDevice mCamera; field in Camera2MultiViewTestCase.CameraHolder 477 assertNull("Camera is already opened", mCamera); in open() 479 mCamera = (new BlockingCameraManager(mCameraManager)).openCamera( in open() 488 assertNotNull(String.format("Failed to open camera device ID: %s", mCameraId), mCamera); in open() 492 return (mCamera != null && !mCameraStateListener.isDisconnected()); in isOpened() 499 mCamera.close(); in close() 501 mCamera = null; in close() 511 mSession = configureCameraSession(mCamera, outputSurfaces, mSessionListener, mHandler); in startPreview() 518 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in startPreview() 529 … mSession = configureCameraSessionWithConfig(mCamera, outputConfigs, mSessionListener, mHandler); in createSessionWithConfigs() [all …]
|
D | Camera2AndroidTestCase.java | 67 protected CameraDevice mCamera; field in Camera2AndroidTestCase 237 mCamera = CameraTestUtils.openCamera( in openDevice() 261 mCameraSession = CameraTestUtils.configureCameraSession(mCamera, outputSurfaces, in createSession() 273 mCameraSession = CameraTestUtils.configureCameraSessionWithConfig(mCamera, outputConfigs, in createSessionByConfigs() 303 if (mCamera != null) { in closeDevice() 304 if (!cameraId.equals(mCamera.getId())) { in closeDevice() 307 mCamera.close(); in closeDevice() 309 mCamera = null; in closeDevice() 451 checkSessionConfigurationSupported(mCamera, mHandler, outputConfigs, /*inputConfig*/ null, in checkImageReaderSessionConfiguration() 474 mCamera.createCaptureRequest(template); in prepareCaptureRequestForSurfaces() [all …]
|
/cts/tests/tests/graphics/jni/ |
D | android_graphics_cts_CameraGpuCtsActivity.cpp | 110 bool isCameraReady() { return mCamera.isCameraReady(); } in isCameraReady() 120 ret = mCamera.initCamera(mImageReader.getNativeWindow()); in initRenderer() 127 if (!mCamera.isCameraReady()) { in initRenderer() 182 if (!mCamera.isCameraReady()) { in drawFrame() 190 int ret = mCamera.takePicture(); in drawFrame() 279 CameraHelper mCamera; member in __anon3c2945ab0111::CameraFrameRenderer
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | StillCaptureTest.java | 199 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_STILL_CAPTURE); in testTakePictureZsl() 253 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_STILL_CAPTURE); in testBasicRawZslCapture() 314 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_STILL_CAPTURE); in testFullRawZSLCapture() 608 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in focalLengthTestByCamera() 610 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_STILL_CAPTURE); in focalLengthTestByCamera() 671 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in previewPersistenceTestByCamera() 673 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_STILL_CAPTURE); in previewPersistenceTestByCamera() 755 previewRequest = mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in takePictureTestByCamera() 758 stillRequest = mCamera.createCaptureRequest(CameraDevice.TEMPLATE_STILL_CAPTURE); in takePictureTestByCamera() 779 focuser = new Camera2Focuser(mCamera, mSession, mPreviewSurface, afListener, in takePictureTestByCamera() [all …]
|
D | AllocationTest.java | 79 private CameraDevice mCamera; field in AllocationTest 118 MaybeNull.close(mCamera); in tearDown() 359 mCamera.createCaptureSession(outputSurfaces, mSessionListener, mHandler); in configureAndCreateRequestForSurface() 362 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in configureAndCreateRequestForSurface() 788 runnable.run(mCamera); in forEachCamera() 796 if (mCamera != null) { in openDevice() 800 mCamera = openCamera( in openDevice() 811 if (mCamera != null) { in closeDevice() 812 mCamera.close(); in closeDevice() 814 mCamera = null; in closeDevice() [all …]
|
D | LogicalCameraDeviceTest.java | 150 CameraTestUtils.configureCameraSessionWithConfig(mCamera, outputs, in testInvalidPhysicalCameraIdInOutputConfiguration() 261 mCamera, mHandler, outputConfigs, /*inputConfig*/ null, in testBasicLogicalPhysicalStreamCombination() 270 mSession = configureCameraSessionWithConfig(mCamera, outputConfigs, in testBasicLogicalPhysicalStreamCombination() 275 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in testBasicLogicalPhysicalStreamCombination() 389 mCamera, mHandler, outputConfigs, /*inputConfig*/ null, in testBasicPhysicalRequests() 398 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW, physicalIdSet); in testBasicPhysicalRequests() 404 mSession = configureCameraSessionWithConfig(mCamera, outputConfigs, in testBasicPhysicalRequests() 432 mSession = configureCameraSessionWithConfig(mCamera, outputConfigs, in testBasicPhysicalRequests() 435 requestBuilder = mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW, in testBasicPhysicalRequests() 495 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW, physicalIdSet); in testInvalidPhysicalCameraRequests() [all …]
|
D | SurfaceViewPreviewTest.java | 220 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in preparePerformanceTestByCamera() 235 mSession = configureCameraSession(mCamera, outputSurfaces, mockSessionListener, mHandler); in preparePerformanceTestByCamera() 385 mSession = configureCameraSession(mCamera, outputSurfaces, sessionListener, mHandler); in surfaceEqualityTestByCamera() 390 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in surfaceEqualityTestByCamera() 420 mSession = configureCameraSession(mCamera, outputSurfaces, sessionListener, mHandler); in surfaceEqualityTestByCamera() 423 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in surfaceEqualityTestByCamera() 530 CameraTestUtils.checkSessionConfigurationSupported(mCamera, mHandler, outputSurfaces, in testDeferredSurfacesByCamera() 539 mSession = configureCameraSessionWithConfig(mCamera, outputSurfaces, sessionListener, in testDeferredSurfacesByCamera() 546 … CaptureRequest.Builder request = mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in testDeferredSurfacesByCamera() 696 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in previewFpsRangeTestByCamera() [all …]
|
D | RecordingTest.java | 412 mSession = configureCameraSession(mCamera, outputSurfaces, /*highSpeed*/true, in testAbandonedHighSpeedRequest() 416 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_RECORD); in testAbandonedHighSpeedRequest() 445 mSession = configureCameraSession(mCamera, outputSurfaces, /*highSpeed*/true, in testAbandonedHighSpeedRequest() 448 requestBuilder = mCamera.createCaptureRequest(CameraDevice.TEMPLATE_RECORD); in testAbandonedHighSpeedRequest() 504 int cameraId = Integer.valueOf(mCamera.getId()); in testRecordingFramerateLowToHigh() 579 mOutMediaFileName = mDebugFileNameBase + "/test_video_share_" + mCamera.getId() + in videoPreviewSurfaceSharingTestByCamera() 872 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_RECORD); in startConstrainedPreview() 876 CameraTestUtils.checkSessionConfigurationWithSurfaces(mCamera, mHandler, in startConstrainedPreview() 879 mSession = buildConstrainedCameraSession(mCamera, outputSurfaces, mSessionListener, in startConstrainedPreview() 906 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_RECORD); in startSlowMotionRecording() [all …]
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaRecorderTest.java | 111 private Camera mCamera; field in MediaRecorderTest 213 if (mCamera != null) { in tearDown() 214 mCamera.release(); in tearDown() 215 mCamera = null; in tearDown() 393 mCamera = Camera.open(cameraId); in recordVideoUsingCamera() 394 setSupportedResolution(mCamera); in recordVideoUsingCamera() 395 recordVideoUsingCamera(mCamera, OUTPUT_PATH, durMs, timelapse, pause); in recordVideoUsingCamera() 396 mCamera.release(); in recordVideoUsingCamera() 397 mCamera = null; in recordVideoUsingCamera() 546 mCamera = Camera.open(0); in testRecorderVideo() [all …]
|