Home
last modified time | relevance | path

Searched refs:mCamera (Results 1 – 25 of 37) sorted by relevance

12

/cts/tests/tests/hardware/src/android/hardware/cts/
DCameraTest.java119 Camera mCamera; field in CameraTest
135 if (mCamera != null) { in tearDown()
136 mCamera.release(); in tearDown()
137 mCamera = null; in tearDown()
158 mCamera = Camera.open(cameraId); in initializeMessageLooper()
159 mCamera.setErrorCallback(mErrorCallback); in initializeMessageLooper()
175 assertNotNull("Fail to open camera.", mCamera); in initializeMessageLooper()
176 mCamera.setPreviewDisplay(getActivity().getSurfaceView().getHolder()); in initializeMessageLooper()
190 mCamera.release(); in terminateMessageLooper()
191 mCamera = null; in terminateMessageLooper()
[all …]
DCameraGLTest.java84 Camera mCamera; field in CameraGLTest
111 if (mCamera != null) { in tearDown()
139 mCamera = Camera.open(cameraId); in initializeMessageLooper()
159 mCamera.release(); in terminateMessageLooper()
167 mCamera = null; in terminateMessageLooper()
182 mCamera.stopPreview(); in onPreviewFrame()
216 mCamera.stopPreview(); in onFrameAvailable()
330 if (mCamera != null) { in runForAllCameras()
348 mCamera.setOneShotPreviewCallback(mPreviewCallback);
349 mCamera.startPreview();
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DCameraTest.java24 private Camera mCamera; field in CameraTest
29 mCamera = new Camera(); in setUp()
38 mCamera.save(); in testRestore()
39 mCamera.restore(); in testRestore()
46 mCamera.translate(10.0f, 28.0f, 2008.0f); in testTranslate()
48 mCamera.getMatrix(m2); in testTranslate()
68 mCamera.rotateX(90.0f); in testRotateX()
70 mCamera.getMatrix(m2); in testRotateX()
90 mCamera.rotateY(90.0f); in testRotateY()
92 mCamera.getMatrix(m2); in testRotateY()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVCameraPreview.java36 private Camera mCamera; field in RVCVCameraPreview
46 mCamera = null; in RVCVCameraPreview()
60 this.mCamera = camera; in init()
84 if (mCamera == null) { in surfaceCreated()
90 mCamera.setPreviewDisplay(holder); in surfaceCreated()
91 mCamera.startPreview(); in surfaceCreated()
123 if (mHolder.getSurface() == null || mCamera == null){ in surfaceChanged()
129 mCamera.stopPreview(); in surfaceChanged()
131 mCamera.setDisplayOrientation(mRotation); in surfaceChanged()
DRVCVRecordActivity.java379 private Camera mCamera; field in RVCVRecordActivity.CameraContext
392 mCamera = Camera.open(); // attempt to get a default Camera instance (0) in CameraContext()
394 if (mCamera != null) { in CameraContext()
411 Camera.Parameters param = mCamera.getParameters(); in setupCamera()
437 mCamera.setParameters(param); in setupCamera()
469 return mCamera; in getCamera()
484 if (mCamera != null) { in init()
485 double alpha = mCamera.getParameters().getHorizontalViewAngle()*Math.PI/180.0; in init()
490 + mCamera.getParameters().getHorizontalViewAngle() +" Estimated fx = "+fx); in init()
494 cameraPreview.init(mCamera, in init()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/
DPhotoCaptureActivity.java73 private Camera mCamera; field in PhotoCaptureActivity
132 if (mCamera != null) { in onCreate()
133 mCamera.stopPreview(); in onCreate()
134 mCamera.release(); in onCreate()
135 mCamera = null; in onCreate()
153 mCamera.takePicture(new ShutterCallback() { in onCreate()
173 mReportedFovPrePictureTaken = mCamera.getParameters().getHorizontalViewAngle(); in onCreate()
230 if (mCamera != null) { in onPause()
232 mCamera.stopPreview(); in onPause()
235 mCamera.release(); in onPause()
[all …]
/cts/tests/tests/mediastress/src/android/mediastress/cts/
DMediaRecorderStressTest.java58 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/tests/tests/graphics2/src/android/graphics2/cts/
DTextureViewCameraActivity.java42 private Camera mCamera; field in TextureViewCameraActivity
63 mCamera = Camera.open(); in onSurfaceTextureAvailable()
65 mCamera = Camera.open(0); in onSurfaceTextureAvailable()
73 mCamera.setPreviewTexture(surface); in onSurfaceTextureAvailable()
74 mCamera.startPreview(); in onSurfaceTextureAvailable()
87 mCamera.stopPreview(); in onSurfaceTextureDestroyed()
88 mCamera.release(); in onSurfaceTextureDestroyed()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/video/
DCameraVideoActivity.java81 private Camera mCamera; field in CameraVideoActivity
149 mCamera.unlock(); in prepareVideoRecorder()
150 mMediaRecorder.setCamera(mCamera); in prepareVideoRecorder()
283 mCamera.lock(); // check here, lock camera for later use in releaseMediaRecorder()
307 if (mCamera != null) { in onSurfaceTextureAvailable()
526 recordSize = mCamera.new Size(qualityList.get(i).width, in findRecordSize()
547 matchedSize = mCamera.new Size(recordSize.width, recordSize.height); in matchPreviewRecordSize()
556 matchedSize = mCamera.new Size(mPreviewSizes.get(i).width, in matchPreviewRecordSize()
567 matchedSize = mCamera.new Size(mPreviewSizes.get(i).width, in matchPreviewRecordSize()
575 matchedSize = mCamera.new Size(mPreviewSizes.get(0).width, in matchPreviewRecordSize()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/
DCameraOrientationActivity.java66 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/tests/permission/src/android/permission/cts/
DCamera2PermissionTest.java42 private CameraDevice mCamera; field in Camera2PermissionTest
123 mCamera = (new BlockingCameraManager(mCameraManager)).openCamera( in openCamera()
128 if (mCamera != null) { in closeCamera()
129 mCamera.close(); in closeCamera()
131 mCamera = null; in closeCamera()
/cts/tests/tests/hardware/src/android/hardware/multiprocess/camera/cts/
DCamera1Activity.java34 Camera mCamera; field in Camera1Activity
50 mCamera = Camera.open(); in onResume()
51 if (mCamera == null) { in onResume()
55 mCamera.setErrorCallback(new Camera.ErrorCallback() { in onResume()
DCameraEvictionTest.java57 private Camera mCamera; field in CameraEvictionTest
134 if (mCamera != null) { in tearDown()
135 mCamera.release(); in tearDown()
136 mCamera = null; in tearDown()
159 mCamera = Camera.open(); in testCamera1ActivityEviction()
160 if (mCamera == null) { in testCamera1ActivityEviction()
163 mCamera.setErrorCallback(mockErrorCb1); in testCamera1ActivityEviction()
202 mCamera = null; in testCamera1ActivityEviction()
211 mCamera = Camera.open(); in testCamera1ActivityEviction()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/formats/
DCameraFormatsActivity.java78 private Camera mCamera; field in CameraFormatsActivity
248 if (mCamera != null) { in onSurfaceTextureAvailable()
319 mCamera = Camera.open(id); in setUpCamera()
320 Camera.Parameters p = mCamera.getParameters(); in setUpCamera()
415 mCamera.setDisplayOrientation(mPreviewRotation); in setUpCamera()
426 if (mCamera != null) { in shutdownCamera()
427 mCamera.setPreviewCallback(null); in shutdownCamera()
428 mCamera.stopPreview(); in shutdownCamera()
429 mCamera.release(); in shutdownCamera()
430 mCamera = null; in shutdownCamera()
[all …]
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/
DAllocationTest.java79 private CameraDevice mCamera; field in AllocationTest
119 MaybeNull.close(mCamera); in tearDown()
364 mCamera.createCaptureSession(outputSurfaces, mSessionListener, mHandler); in configureAndCreateRequestForSurface()
367 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in configureAndCreateRequestForSurface()
742 runnable.run(mCamera); in forEachCamera()
750 if (mCamera != null) { in openDevice()
754 mCamera = openCamera( in openDevice()
765 if (mCamera != null) { in closeDevice()
766 mCamera.close(); in closeDevice()
768 mCamera = null; in closeDevice()
[all …]
DPerformanceTest.java250 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in testSingleCapture()
252 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_STILL_CAPTURE); in testSingleCapture()
419 reprocessReqs[i] = mCamera.createReprocessCaptureRequest(zslResult); in reprocessingCaptureStallTestByCamera()
484 mReportLog.printArray("Camera " + mCamera.getId() in reprocessingCaptureStallTestByCamera()
487 mReportLog.printArray("Camera " + mCamera.getId() in reprocessingCaptureStallTestByCamera()
491 + mCamera.getId(), Stat.getAverage(maxCaptureGapsMs), ResultType.LOWER_BETTER, in reprocessingCaptureStallTestByCamera()
524 reprocessReqs[i] = mCamera.createReprocessCaptureRequest(zslResult); in reprocessingPerformanceTestByCamera()
578 mReportLog.printArray("Camera " + mCamera.getId() in reprocessingPerformanceTestByCamera()
582 mCamera.getId(), Stat.getAverage(getImageLatenciesMs), ResultType.LOWER_BETTER, in reprocessingPerformanceTestByCamera()
585 mReportLog.printArray("Camera " + mCamera.getId() in reprocessingPerformanceTestByCamera()
[all …]
DStillCaptureTest.java394 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in previewPersistenceTestByCamera()
396 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_STILL_CAPTURE); in previewPersistenceTestByCamera()
472 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in takePictureTestByCamera()
474 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_STILL_CAPTURE); in takePictureTestByCamera()
494 focuser = new Camera2Focuser(mCamera, mSession, mPreviewSurface, afListener, in takePictureTestByCamera()
644 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in touchForFocusTestByCamera()
649 Camera2Focuser focuser = new Camera2Focuser(mCamera, mSession, mPreviewSurface, afListener, in touchForFocusTestByCamera()
669 + mCamera.getId()); in previewStillCombinationTestByCamera()
672 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in previewStillCombinationTestByCamera()
674 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_STILL_CAPTURE); in previewStillCombinationTestByCamera()
[all …]
DSurfaceViewPreviewTest.java179 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in preparePerformanceTestByCamera()
194 mSession = configureCameraSession(mCamera, outputSurfaces, mockSessionListener, mHandler); in preparePerformanceTestByCamera()
339 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in previewFpsRangeTestByCamera()
407 mCamera.getId(), mCameraManager, PREVIEW_SIZE_BOUND); in previewTestByCamera()
416 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in previewTestByCamera()
431 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in previewTestPatternTestByCamera()
DCaptureRequestTest.java150 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in testBlackLevelLock()
157 getMaxPreviewSize(mCamera.getId(), mCameraManager, in testBlackLevelLock()
213 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in testLensShadingMap()
218 getMaxPreviewSize(mCamera.getId(), mCameraManager, in testLensShadingMap()
284 getMaxPreviewSize(mCamera.getId(), mCameraManager, in testAntiBandingModes()
350 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in testFlashControl()
636 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in noiseReductionModeTestByCamera()
664 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in focusDistanceTestByCamera()
764 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in edgeModesTestByCamera()
1077 Log.v(TAG, "Anti-banding test for mode " + mode + " for camera " + mCamera.getId()); in antiBandingTestByMode()
[all …]
DRecordingTest.java296 int cameraId = Integer.valueOf(mCamera.getId()); in testRecordingFramerateLowToHigh()
539 mSession = configureCameraSession(mCamera, outputSurfaces, useHighSpeedSession, in startSlowMotionRecording()
546 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_RECORD); in startSlowMotionRecording()
554 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_RECORD); in startSlowMotionRecording()
561 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_RECORD); in startSlowMotionRecording()
601 int cameraId = Integer.valueOf(mCamera.getId()); in basicRecordingTestByCamera()
680 mOutMediaFileName = VIDEO_FILE_PATH + "/test_video_" + mCamera.getId() + "_" in recordingSizeTestByCamera()
791 int cameraId = Integer.valueOf(mCamera.getId()); in videoSnapshotTestByCamera()
903 mCamera.createCaptureRequest((mStaticInfo.isHardwareLevelLegacy()) ? in videoSnapshotTestByCamera()
1116 mSession = configureCameraSession(mCamera, outputSurfaces, mSessionListener, mHandler); in startRecording()
[all …]
DCameraDeviceTest.java291 CaptureRequest.Builder capReq = mCamera.createCaptureRequest(sTemplates[j]); in testCameraDeviceCreateCaptureBuilder()
678 mCamera.createCaptureSession(outputs, sessionListener, mHandler); in testCreateSessionsByCamera()
700 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_STILL_CAPTURE); in testCreateSessionsByCamera()
729 mCamera.createCaptureSession(outputSurfaces, mSessionMockListener, mHandler); in prepareTestByCamera()
770 CaptureRequest.Builder r = mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in prepareTestByCamera()
792 mCamera.createCaptureSession(outputSurfaces, mSessionMockListener, mHandler); in prepareTestByCamera()
809 r = mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in prepareTestByCamera()
833 mCamera.createCaptureSession(outputSurfaces, mSessionMockListener, mHandler); in prepareTestByCamera()
861 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in invalidRequestCaptureTestByCamera()
1060 CaptureRequest.Builder requestBuilder = mCamera.createCaptureRequest(template); in captureSingleShot()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DMediaRecorderTest.java85 private Camera mCamera; field in MediaRecorderTest
167 if (mCamera != null) { in tearDown()
168 mCamera.release(); in tearDown()
169 mCamera = null; in tearDown()
223 mCamera = Camera.open(cameraId); in recordVideoUsingCamera()
224 setSupportedResolution(mCamera); in recordVideoUsingCamera()
225 recordVideoUsingCamera(mCamera, OUTPUT_PATH, durMs, timelapse); in recordVideoUsingCamera()
226 mCamera.release(); in recordVideoUsingCamera()
227 mCamera = null; in recordVideoUsingCamera()
537 mCamera = Camera.open(0); in setupRecorder()
[all …]
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/testcases/
DCamera2AndroidTestCase.java64 protected CameraDevice mCamera; field in Camera2AndroidTestCase
190 mCamera = CameraTestUtils.openCamera( in openDevice()
215 mCameraSession = CameraTestUtils.configureCameraSession(mCamera, outputSurfaces, in createSession()
245 if (mCamera != null) { in closeDevice()
246 if (!cameraId.equals(mCamera.getId())) { in closeDevice()
249 mCamera.close(); in closeDevice()
251 mCamera = null; in closeDevice()
356 mCamera.createCaptureRequest(template); in prepareCaptureRequestForSurfaces()
DCamera2MultiViewTestCase.java342 private CameraDevice mCamera; field in Camera2MultiViewTestCase.CameraHolder
360 assertNull("Camera is already opened", mCamera); in open()
361 mCamera = (new BlockingCameraManager(mCameraManager)).openCamera( in open()
370 assertNotNull(String.format("Failed to open camera device ID: %s", mCameraId), mCamera); in open()
374 return (mCamera != null); in isOpenned()
381 mCamera.close(); in close()
383 mCamera = null; in close()
392 mSession = configureCameraSession(mCamera, outputSurfaces, mSessionListener, mHandler); in startPreview()
396 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in startPreview()
DCamera2SurfaceViewTestCase.java95 protected CameraDevice mCamera; field in Camera2SurfaceViewTestCase
194 mSession = configureCameraSession(mCamera, outputSurfaces, mSessionListener, mHandler); in configurePreviewOutput()
212 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in createRequestForPreview()
561 mCamera = CameraTestUtils.openCamera( in openDevice()
582 if (mCamera != null) { in closeDevice()
583 mCamera.close(); in closeDevice()
585 mCamera = null; in closeDevice()
658 mSession = configureCameraSession(mCamera, outputSurfaces, mSessionListener, mHandler); in prepareCaptureAndStartPreview()

12