Home
last modified time | relevance | path

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

12

/cts/tests/tests/graphics/src/android/graphics/cts/
DCameraTest.java36 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/
DCameraTest.java130 Camera mCamera; field in CameraTest
148 if (mCamera != null) { in tearDown()
149 mCamera.release(); in tearDown()
150 mCamera = null; in tearDown()
162 mCamera = looperInfo.camera; in initializeMessageLooper()
236 looperInfo.camera = mCamera; in terminateMessageLooper()
239 mCamera = null; in terminateMessageLooper()
322 mCamera.stopPreview(); in onPreviewFrame()
435 mCamera.startPreview(); in checkPreviewCallback()
437 mCamera.setPreviewCallback(null); in checkPreviewCallback()
[all …]
DCameraPerformanceTestHelper.java46 private Camera mCamera; field in CameraPerformanceTestHelper
65 mCamera = Camera.open(cameraId); in initializeMessageLooper()
66 mCamera.setErrorCallback(new ErrorCallback() { in initializeMessageLooper()
92 assertNotNull("Fail to open camera.", mCamera); in initializeMessageLooper()
106 mCamera.release(); in terminateMessageLooper()
107 mCamera = null; in terminateMessageLooper()
119 mCamera.setPreviewCallback(new PreviewCallback() { in startPreview()
127 mCamera.startPreview(); in startPreview()
138 mCamera.setPreviewCallback(null); in startPreview()
148 mCamera.autoFocus(new AutoFocusCallback() { in autoFocus()
[all …]
DCameraGLTest.java85 Camera mCamera; field in CameraGLTest
122 if (mCamera != null) { in tearDown()
154 mCamera = Camera.open(cameraId); in initializeMessageLooper()
174 mCamera.release(); in terminateMessageLooper()
182 mCamera = null; in terminateMessageLooper()
230 mCamera.stopPreview(); in onFrameAvailable()
344 if (mCamera != null) { in runForAllCameras()
363 mCamera.setOneShotPreviewCallback(mPreviewCallback);
364 mCamera.startPreview();
365 mCamera.setPreviewTexture(mSurfaceTexture);
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVCameraPreview.java43 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()
DRVCVRecordActivity.java432 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/apps/CtsVerifier/src/com/android/cts/verifier/camera/video/
DCameraVideoActivity.java84 private Camera mCamera; field in CameraVideoActivity
196 mCamera.unlock(); in prepareVideoRecorder()
197 mMediaRecorder.setCamera(mCamera); in prepareVideoRecorder()
208 recordSize = mCamera.new Size(176, 144); in prepareVideoRecorder()
211 recordSize = mCamera.new Size(320, 240); in prepareVideoRecorder()
214 recordSize = mCamera.new Size(352, 288); in prepareVideoRecorder()
217 recordSize = mCamera.new Size(720, 480); in prepareVideoRecorder()
220 recordSize = mCamera.new Size(1280, 720); in prepareVideoRecorder()
408 mCamera.lock(); // check here, lock camera for later use in releaseMediaRecorder()
437 if (mCamera != null) { in onSurfaceTextureAvailable()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DTextureViewCameraActivity.java44 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/tests/tests/mediastress/src/android/mediastress/cts/
DMediaRecorderStressTest.java59 private Camera mCamera; field in MediaRecorderStressTest
190 mCamera = Camera.open(); in testStressCamera()
192 mCamera = Camera.open(0); in testStressCamera()
194 mCamera = null; in testStressCamera()
198 if (mCamera == null) { in testStressCamera()
201 mCamera.setErrorCallback(mCameraErrorCallback); in testStressCamera()
202 mCamera.setPreviewDisplay(mSurfaceHolder); in testStressCamera()
203 mCamera.startPreview(); in testStressCamera()
205 mCamera.stopPreview(); in testStressCamera()
206 mCamera.release(); in testStressCamera()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/
DPhotoCaptureActivity.java76 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/camera/src/android/hardware/multiprocess/camera/cts/
DCamera1Activity.java33 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()
DCameraEvictionTest.java64 private Camera mCamera; field in CameraEvictionTest
152 if (mCamera != null) { in tearDown()
153 mCamera.release(); in tearDown()
154 mCamera = null; in tearDown()
441 mCamera = Camera.open(); in testAPI1ActivityEviction()
442 if (mCamera == null) { in testAPI1ActivityEviction()
445 mCamera.setErrorCallback(mockErrorCb1); in testAPI1ActivityEviction()
484 mCamera = null; in testAPI1ActivityEviction()
493 mCamera = Camera.open(); in testAPI1ActivityEviction()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/
DCameraOrientationActivity.java68 private Camera mCamera; field in CameraOrientationActivity
187 mCamera = Camera.open(id); in setUpCamera()
192 Camera.Parameters p = mCamera.getParameters(); in setUpCamera()
222 if (mCamera != null) { in shutdownCamera()
223 mCamera.setPreviewCallback(null); in shutdownCamera()
224 mCamera.stopPreview(); in shutdownCamera()
225 mCamera.release(); in shutdownCamera()
226 mCamera = null; in shutdownCamera()
234 mCamera.setPreviewCallback(null); in startPreview()
235 mCamera.stopPreview(); in startPreview()
[all …]
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2MultiViewTestCase.java398 private CameraDevice mCamera; field in Camera2MultiViewTestCase.CameraHolder
440 assertNull("Camera is already opened", mCamera); in open()
442 mCamera = (new BlockingCameraManager(mCameraManager)).openCamera( in open()
451 assertNotNull(String.format("Failed to open camera device ID: %s", mCameraId), mCamera); in open()
455 return (mCamera != null && !mCameraStateListener.isDisconnected()); in isOpened()
462 mCamera.close(); in close()
464 mCamera = null; in close()
474 mSession = configureCameraSession(mCamera, outputSurfaces, mSessionListener, mHandler); in startPreview()
481 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in startPreview()
492 … mSession = configureCameraSessionWithConfig(mCamera, outputConfigs, mSessionListener, mHandler); in createSessionWithConfigs()
[all …]
DCamera2AndroidTestCase.java74 protected CameraDevice mCamera; field in Camera2AndroidTestCase
231 mCamera = CameraTestUtils.openCamera( in openDevice()
255 mCameraSession = CameraTestUtils.configureCameraSession(mCamera, outputSurfaces, in createSession()
269 mCamera, inputConfig, outputSurfaces, mCameraSessionListener, mHandler); in createReprocessableSession()
280 mCameraSession = CameraTestUtils.configureCameraSessionWithConfig(mCamera, outputConfigs, in createSessionByConfigs()
310 if (mCamera != null) { in closeDevice()
311 if (!cameraId.equals(mCamera.getId())) { in closeDevice()
314 mCamera.close(); in closeDevice()
316 mCamera = null; in closeDevice()
466 checkSessionConfigurationSupported(mCamera, mHandler, outputConfigs, /*inputConfig*/ null, in checkImageReaderSessionConfiguration()
[all …]
DCamera2AndroidTestRule.java71 private CameraDevice mCamera; field in Camera2AndroidTestRule
134 return mCamera; in getCamera()
138 mCamera = camera; in setCamera()
356 mCamera = CameraTestUtils.openCamera( in openDevice()
380 mCameraSession = CameraTestUtils.configureCameraSession(mCamera, outputSurfaces, in createSession()
392 mCameraSession = CameraTestUtils.configureCameraSessionWithConfig(mCamera, outputConfigs, in createSessionByConfigs()
422 if (mCamera != null) { in closeDevice()
423 if (!cameraId.equals(mCamera.getId())) { in closeDevice()
426 mCamera.close(); in closeDevice()
428 mCamera = null; in closeDevice()
[all …]
DCamera2ConcurrentAndroidTestCase.java62 public CameraDevice mCamera; field in Camera2ConcurrentAndroidTestCase.CameraTestInfo
245 info.mCamera = CameraTestUtils.openCamera( in openDevice()
265 info.mCameraSession = CameraTestUtils.configureCameraSessionWithConfig(info.mCamera, in createSessionByConfigs()
300 if (info.mCamera != null) { in closeDevice()
301 info.mCamera.close(); in closeDevice()
303 info.mCamera = null; in closeDevice()
/cts/tests/tests/graphics/jni/
Dandroid_graphics_cts_CameraGpuCtsActivity.cpp110 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 __anondb91f7220111::CameraFrameRenderer
/cts/tests/tests/permission/src/android/permission/cts/
DCamera2PermissionTest.java48 private CameraDevice mCamera; field in Camera2PermissionTest
172 mCamera = (new BlockingCameraManager(mCameraManager)).openCamera( in openCamera()
185 if (mCamera != null) { in closeCamera()
186 mCamera.close(); in closeCamera()
188 mCamera = null; in closeCamera()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/formats/
DCameraFormatsActivity.java80 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()
472 mCamera.setDisplayOrientation(mPreviewRotation); in setUpCamera()
483 if (mCamera != null) { in shutdownCamera()
484 mCamera.setPreviewCallback(null); in shutdownCamera()
485 mCamera.stopPreview(); in shutdownCamera()
486 mCamera.release(); in shutdownCamera()
487 mCamera = null; in shutdownCamera()
[all …]
/cts/tests/camera/src/android/hardware/camera2/cts/
DStillCaptureTest.java235 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_STILL_CAPTURE); in testTakePictureZsl()
289 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_STILL_CAPTURE); in testBasicRawZslCapture()
350 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_STILL_CAPTURE); in testFullRawZSLCapture()
644 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in focalLengthTestByCamera()
646 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_STILL_CAPTURE); in focalLengthTestByCamera()
707 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in previewPersistenceTestByCamera()
709 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_STILL_CAPTURE); in previewPersistenceTestByCamera()
791 previewRequest = mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in takePictureTestByCamera()
794 stillRequest = mCamera.createCaptureRequest(CameraDevice.TEMPLATE_STILL_CAPTURE); in takePictureTestByCamera()
815 focuser = new Camera2Focuser(mCamera, mSession, mPreviewSurface, afListener, in takePictureTestByCamera()
[all …]
DAllocationTest.java88 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()
791 runnable.run(mCamera); in forEachCamera()
799 if (mCamera != null) { in openDevice()
803 mCamera = openCamera( in openDevice()
814 if (mCamera != null) { in closeDevice()
815 mCamera.close(); in closeDevice()
817 mCamera = null; in closeDevice()
[all …]
DSurfaceViewPreviewTest.java225 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in preparePerformanceTestByCamera()
243 mSession = configureCameraSession(mCamera, outputSurfaces, mockSessionListener, mHandler); in preparePerformanceTestByCamera()
363 mSession = configureCameraSession(mCamera, outputSurfaces, sessionListener, mHandler); in surfaceEqualityTestByCamera()
368 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in surfaceEqualityTestByCamera()
398 mSession = configureCameraSession(mCamera, outputSurfaces, sessionListener, mHandler); in surfaceEqualityTestByCamera()
401 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in surfaceEqualityTestByCamera()
508 CameraTestUtils.checkSessionConfigurationSupported(mCamera, mHandler, outputSurfaces, in testDeferredSurfacesByCamera()
517 mSession = configureCameraSessionWithConfig(mCamera, outputSurfaces, sessionListener, in testDeferredSurfacesByCamera()
524 … CaptureRequest.Builder request = mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in testDeferredSurfacesByCamera()
674 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in previewFpsRangeTestByCamera()
[all …]
DZoomCaptureTest.java135 " for camera " + mCamera.getId()); in bufferFormatZoomTestByCamera()
158 assertNotNull("Camera " + mCamera.getId() + in bufferFormatZoomTestByCamera()
161 assertTrue("Camera " + mCamera.getId() + " must be logical " + in bufferFormatZoomTestByCamera()
164 mCollector.expectTrue("Camera " + mCamera.getId() + " activePhysicalId " + in bufferFormatZoomTestByCamera()
DLogicalCameraDeviceTest.java160 CameraTestUtils.configureCameraSessionWithConfig(mCamera, outputs, in testInvalidPhysicalCameraIdInOutputConfiguration()
272 mCamera, mHandler, outputConfigs, /*inputConfig*/ null, in testBasicLogicalPhysicalStreamCombination()
282 mSession = configureCameraSessionWithConfig(mCamera, outputConfigs, in testBasicLogicalPhysicalStreamCombination()
292 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in testBasicLogicalPhysicalStreamCombination()
406 mCamera, mHandler, outputConfigs, /*inputConfig*/ null, in testBasicPhysicalRequests()
415 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW, physicalIdSet); in testBasicPhysicalRequests()
422 mSession = configureCameraSessionWithConfig(mCamera, outputConfigs, in testBasicPhysicalRequests()
455 mSession = configureCameraSessionWithConfig(mCamera, outputConfigs, in testBasicPhysicalRequests()
458 requestBuilder = mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW, in testBasicPhysicalRequests()
518 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW, physicalIdSet); in testInvalidPhysicalCameraRequests()
[all …]

12