Home
last modified time | relevance | path

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

12

/frameworks/av/camera/
DCamera.cpp57 c->mCamera = camera; in create()
93 clientUid, /*out*/c->mCamera); in connectLegacy()
95 if (status == OK && c->mCamera != 0) { in connectLegacy()
96 c->mCamera->asBinder()->linkToDeath(c); in connectLegacy()
109 sp <ICamera> c = mCamera; in reconnect()
116 sp <ICamera> c = mCamera; in lock()
123 sp <ICamera> c = mCamera; in unlock()
132 sp <ICamera> c = mCamera; in setPreviewTarget()
142 sp <ICamera> c = mCamera; in startPreview()
151 sp <ICamera> c = mCamera; in storeMetaDataInBuffers()
[all …]
DCameraBase.cpp107 /*out*/ c->mCamera); in connect()
109 if (status == OK && c->mCamera != 0) { in connect()
110 c->mCamera->asBinder()->linkToDeath(c); in connect()
123 if (mCamera != 0) { in disconnect()
124 mCamera->disconnect(); in disconnect()
125 mCamera->asBinder()->unlinkToDeath(this); in disconnect()
126 mCamera = 0; in disconnect()
146 return mCamera; in remote()
DProCamera.cpp124 sp <IProCameraUser> c = mCamera; in exclusiveTryLock()
131 sp <IProCameraUser> c = mCamera; in exclusiveLock()
138 sp <IProCameraUser> c = mCamera; in exclusiveUnlock()
145 sp <IProCameraUser> c = mCamera; in hasExclusiveLock()
155 sp <IProCameraUser> c = mCamera; in submitRequest()
164 sp <IProCameraUser> c = mCamera; in cancelRequest()
172 sp <IProCameraUser> c = mCamera; in deleteStream()
214 sp <IProCameraUser> c = mCamera; in createStream()
249 sp <IProCameraUser> c = mCamera; in createStreamCpu()
291 sp <IProCameraUser> c = mCamera; in getCameraInfo()
[all …]
/frameworks/av/camera/tests/
DProCameraTests.cpp358 mCamera = ProCamera::connect(CAMERA_ID); in SetUp()
359 ASSERT_NE((void*)NULL, mCamera.get()); in SetUp()
362 mCamera->setListener(mListener); in SetUp()
366 ASSERT_NE((void*)NULL, mCamera.get()); in TearDown()
367 mCamera->disconnect(); in TearDown()
371 sp<ProCamera> mCamera; member in android::camera2::tests::client::ProCameraTest
490 EXPECT_OK(mCamera->createDefaultRequest(CAMERA2_TEMPLATE_PREVIEW, in createSubmitRequestForStreams()
503 EXPECT_OK(mCamera->submitRequest(requestTmp, /*streaming*/true)); in createSubmitRequestForStreams()
506 EXPECT_OK(mCamera->submitRequest(requestTmp, in createSubmitRequestForStreams()
521 CameraMetadata staticInfo = mCamera->getCameraInfo(CAMERA_ID); in TEST_F()
[all …]
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DAndroidCameraAgentImpl.java230 private Camera mCamera; field in AndroidCameraAgentImpl.ParametersCache
233 mCamera = camera; in ParametersCache()
247 mParameters = mCamera.getParameters(); in getBlocking()
262 private Camera mCamera; field in AndroidCameraAgentImpl.CameraHandler
288 mCamera.startFaceDetection(); in startFaceDetection()
292 mCamera.stopFaceDetection(); in stopFaceDetection()
296 mCamera.setFaceDetectionListener(listener); in setFaceDetectionListener()
301 mCamera.setPreviewTexture((SurfaceTexture) surfaceTexture); in setPreviewTexture()
309 mCamera.enableShutterSound(enable); in enableShutterSound()
370 mCamera = android.hardware.Camera.open(cameraId); in handleMessage()
[all …]
DAndroidCamera2AgentImpl.java186 private CameraDevice mCamera; field in AndroidCamera2AgentImpl.Camera2Handler
264 if (mCamera != null) { in handleMessage()
265 mCamera.close(); in handleMessage()
266 mCamera = null; in handleMessage()
313 mPersistentSettings.createRequest(mCamera, in handleMessage()
449 trigger.createRequest(mCamera, CameraDevice.TEMPLATE_PREVIEW, in handleMessage()
478 cancel.createRequest(mCamera, CameraDevice.TEMPLATE_PREVIEW, in handleMessage()
569 mPersistentSettings.createRequest(mCamera, in handleMessage()
628 expose.createRequest(mCamera, CameraDevice.TEMPLATE_PREVIEW, in handleMessage()
644 if (cameraAction != CameraActions.RELEASE && mCamera != null) { in handleMessage()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
DCameraTestHelper.java38 public Camera mCamera; field in CameraTestHelper
105 mCamera = Camera.open(CAMERA_ID); in setupCameraTest()
112 mCamera = Camera.open(CAMERA_ID); in getCameraParameters()
113 Parameters params = mCamera.getParameters(); in getCameraParameters()
114 mCamera.release(); in getCameraParameters()
122 mCamera.takePicture(shutterCallback, rawCallback, jpegCallback); in capturePhoto()
124 mCamera.stopPreview(); in capturePhoto()
125 mCamera.release(); in capturePhoto()
149 mCamera.setParameters(params); in setParameters()
159 mCamera.setErrorCallback(mCameraErrorCallback); in startCameraPreview()
[all …]
/frameworks/rs/java/tests/LivePreview/src/com/android/rs/livepreview/
DCameraPreviewActivity.java74 private Camera mCamera; field in CameraPreviewActivity
143 if (mCamera != null) { in onSurfaceTextureAvailable()
196 mCamera = Camera.open(id); in setUpCamera()
197 Camera.Parameters p = mCamera.getParameters(); in setUpCamera()
244 if (mCamera != null) { in shutdownCamera()
245 mCamera.setPreviewCallbackWithBuffer(null); in shutdownCamera()
246 mCamera.stopPreview(); in shutdownCamera()
247 mCamera.release(); in shutdownCamera()
248 mCamera = null; in shutdownCamera()
256 mCamera.setPreviewCallbackWithBuffer(null); in startPreview()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
DCameraTest.java67 Camera mCamera; field in CameraTest
94 mCamera = Camera.open(CAMERA_ID); in initializeMessageLooper()
117 mCamera.release(); in terminateMessageLooper()
198 mCamera.setPreviewDisplay(mSurfaceHolder); in checkTakePicture()
200 mCamera.startPreview(); in checkTakePicture()
202 mCamera.setPreviewCallback(null); in checkTakePicture()
203 mCamera.takePicture(mShutterCallback, mRawPictureCallback, mJpegPictureCallback); in checkTakePicture()
214 mCamera.setPreviewDisplay(mSurfaceHolder); in checkPreviewCallback()
216 mCamera.startPreview(); in checkPreviewCallback()
218 mCamera.setPreviewCallback(null); in checkPreviewCallback()
[all …]
/frameworks/ex/camera2/utils/tests/src/com/android/ex/camera2/utils/
DCamera2DeviceTester.java56 private CameraDevice mCamera; field in Camera2DeviceTester.DeviceCapturer
66 return mCamera; in captureCameraDevice()
71 mCamera = camera; in onOpened()
82 protected CameraDevice mCamera; field in Camera2DeviceTester
86 mCamera = new DeviceCapturer().captureCameraDevice(); in obtainCameraCaptureRequestBuilderFactory()
91 mCamera.close(); in releaseCameraCaptureRequestBuilderFactory()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/
DCameraSource.java70 private Camera mCamera; field in CameraSource
136 mCamera = Camera.open(mCameraId); in open()
140 mCamera.setParameters(mCameraParameters); in open()
151 mCamera.setPreviewTexture(mSurfaceTexture); in open()
161 mCamera.startPreview(); in open()
215 mCamera.release(); in close()
216 mCamera = null; in close()
235 mCamera.setParameters(mCameraParameters); in fieldPortValueUpdated()
242 if (mCamera == null) { in getCameraParameters()
243 mCamera = Camera.open(mCameraId); in getCameraParameters()
[all …]
/frameworks/av/media/libstagefright/
DCameraSource.cpp177 mCamera(0), in CameraSource()
208 mCamera = Camera::connect(cameraId, clientName, clientUid); in isCameraAvailable()
209 if (mCamera == 0) return -EBUSY; in isCameraAvailable()
216 mCamera = Camera::create(camera); in isCameraAvailable()
217 if (mCamera == 0) return -EBUSY; in isCameraAvailable()
225 mCamera->lock(); in isCameraAvailable()
372 if (OK != mCamera->setParameters(s)) { in configureCamera()
374 " Someone else is using camera %p?", mCamera.get()); in configureCamera()
523 CameraParameters params(mCamera->getParameters()); in initWithCameraAccess()
537 CameraParameters newCameraParams(mCamera->getParameters()); in initWithCameraAccess()
[all …]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DGetBitmapActivity.java37 private Camera mCamera; field in GetBitmapActivity
82 mCamera = Camera.open(); in onSurfaceTextureAvailable()
85 mCamera.setPreviewTexture(surface); in onSurfaceTextureAvailable()
90 mCamera.startPreview(); in onSurfaceTextureAvailable()
100 mCamera.stopPreview(); in onSurfaceTextureDestroyed()
101 mCamera.release(); in onSurfaceTextureDestroyed()
DTextureViewActivity.java41 private Camera mCamera; field in TextureViewActivity
102 mCamera = Camera.open(); in onSurfaceTextureAvailable()
103 mCamera.setDisplayOrientation(getCameraOrientation()); in onSurfaceTextureAvailable()
105 Camera.Size previewSize = mCamera.getParameters().getPreviewSize(); in onSurfaceTextureAvailable()
110 mCamera.setPreviewTexture(surface); in onSurfaceTextureAvailable()
115 mCamera.startPreview(); in onSurfaceTextureAvailable()
153 mCamera.stopPreview(); in onSurfaceTextureDestroyed()
154 mCamera.release(); in onSurfaceTextureDestroyed()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DCameraOpenTest.java33 private Camera mCamera; field in CameraOpenTest
43 mCamera.openLegacy(id, Camera.CAMERA_HAL_API_VERSION_1_0); in testOpenLegacy()
47 if (mCamera != null) { in testOpenLegacy()
48 mCamera.release(); in testOpenLegacy()
/frameworks/base/docs/html/training/camera/
Dcameradirect.jd63 mCamera = Camera.open(id);
64 qOpened = (mCamera != null);
75 if (mCamera != null) {
76 mCamera.release();
77 mCamera = null;
138 if (mCamera == camera) { return; }
142 mCamera = camera;
144 if (mCamera != null) {
145 List&lt;Size> localSizes = mCamera.getParameters().getSupportedPreviewSizes();
150 mCamera.setPreviewDisplay(mHolder);
[all …]
/frameworks/base/tests/Camera2Tests/CameraToo/src/com/example/android/camera2/cameratoo/
DCameraTooActivity.java78 CameraDevice mCamera; field in CameraTooActivity
161 if (mCamera != null) { in onPause()
162 mCamera.close(); in onPause()
163 mCamera = null; in onPause()
188 mCamera.createCaptureRequest(mCamera.TEMPLATE_STILL_CAPTURE); in onClickOnSurfaceView()
286 if (mCamera != null) {
313 mCamera = camera;
352 mCamera.createCaptureRequest(mCamera.TEMPLATE_PREVIEW);
379 Log.e(TAG, "Configuration error on device '" + mCamera.getId());
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/
DMediaRecorderTest.java66 Camera mCamera; field in MediaRecorderTest
123 mCamera = Camera.open(CAMERA_ID); in validateGetSurface()
124 Camera.Parameters parameters = mCamera.getParameters(); in validateGetSurface()
127 mCamera.setParameters(parameters); in validateGetSurface()
128 mCamera.unlock(); in validateGetSurface()
129 recorder.setCamera(mCamera); in validateGetSurface()
212 if (mCamera != null) { in validateGetSurface()
213 mCamera.lock(); in validateGetSurface()
214 mCamera.release(); in validateGetSurface()
215 mCamera = null; in validateGetSurface()
[all …]
/frameworks/base/core/java/android/hardware/camera2/legacy/
DLegacyFocusStateMapper.java43 private final Camera mCamera; field in LegacyFocusStateMapper
63 mCamera = checkNotNull(camera, "camera must not be null"); in LegacyFocusStateMapper()
104 mCamera.cancelAutoFocus(); in processRequestTriggers()
165 mCamera.setAutoFocusMoveCallback(afMoveCallback); in processRequestTriggers()
205 mCamera.autoFocus(new Camera.AutoFocusCallback() { in processRequestTriggers()
256 mCamera.cancelAutoFocus(); in processRequestTriggers()
DRequestThreadManager.java72 private Camera mCamera; field in RequestThreadManager
269 mCamera.stopPreview(); in stopPreview()
280 mCamera.startPreview(); in startPreview()
292 mCamera.setPreviewTexture(mDummyTexture); in doJpegCapturePrepare()
300 mCamera.takePicture(mJpegShutterCallback, /*raw*/null, mJpegCallback); in doJpegCapture()
320 mCamera.setPreviewTexture(mPreviewTexture); in doPreviewCapture()
346 mCamera.setPreviewTexture(/*surfaceTexture*/null); in configureOutputs()
401 mParams = mCamera.getParameters(); in configureOutputs()
490 mCamera.setParameters(mParams); in configureOutputs()
749 mCamera.setParameters(legacyRequest.parameters);
[all …]
DLegacyFaceDetectMapper.java50 private final Camera mCamera; field in LegacyFaceDetectMapper
73 mCamera = checkNotNull(camera, "camera must not be null"); in LegacyFaceDetectMapper()
85 mCamera.setFaceDetectionListener(new FaceDetectionListener() { in LegacyFaceDetectMapper()
172 mCamera.startFaceDetection(); in processFaceDetectMode()
178 mCamera.stopFaceDetection(); in processFaceDetectMode()
/frameworks/native/opengl/tests/gl2_cameraeye/src/com/android/gl2cameraeye/
DGL2CameraEye.java94 mCamera.stopPreview(); in onPause()
95 mCamera.release(); in onPause()
102 mCamera = Camera.open(); in onResume()
103 Camera.Parameters p = mCamera.getParameters(); in onResume()
105 mCamera.setParameters(p); in onResume()
109 mRenderer.setCamera(mCamera); in onResume()
131 Camera mCamera; field in CamGLSurfaceView
174 mCamera = camera; in setCamera()
314 mCamera.setPreviewTexture(mSurface); in onSurfaceCreated()
320 mCamera.startPreview(); in onSurfaceCreated()
[all …]
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/
DTouchHandler.java41 Camera mCamera; field in TouchHandler
59 mCamera = scene.appendNewCamera(); in init()
60 mCamera.setTransform(mCameraRig); in init()
64 return mCamera; in getCamera()
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
DRenderPass.java42 Camera mCamera; field in RenderPass
59 mCamera = c; in setCamera()
98 mRsField.camera = mCamera != null ? mCamera.getRSData().getAllocation() : null; in getRsField()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
DCamera2Source.java60 private CameraDevice mCamera; field in Camera2Source
134 mCamera.close(); in onClose()
158 mCamera = blkManager.openCamera(backCameraId, /*listener*/null, mHandler); in onOpen()
186 Log.v(TAG, "mcamera: " + mCamera); in onOpen()
194 mCamera.createCaptureSession(surfaces, blkSession, mHandler); in onOpen()
195 mCaptureRequest = mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in onOpen()
214 mProperties = mCameraManager.getCameraCharacteristics(mCamera.getId()); in onOpen()

12