Home
last modified time | relevance | path

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

12

/frameworks/av/camera/
DCamera.cpp57 c->mCamera = camera; in create()
94 clientUid, /*out*/&(c->mCamera)); in connectLegacy()
96 if (ret.isOk() && c->mCamera != nullptr) { in connectLegacy()
97 IInterface::asBinder(c->mCamera)->linkToDeath(c); in connectLegacy()
140 sp <::android::hardware::ICamera> c = mCamera; in reconnect()
147 sp <::android::hardware::ICamera> c = mCamera; in lock()
154 sp <::android::hardware::ICamera> c = mCamera; in unlock()
163 sp <::android::hardware::ICamera> c = mCamera; in setPreviewTarget()
172 sp <::android::hardware::ICamera> c = mCamera; in setVideoTarget()
182 sp <::android::hardware::ICamera> c = mCamera; in startPreview()
[all …]
DCameraBase.cpp152 clientPid, /*out*/ &c->mCamera); in connect()
154 if (ret.isOk() && c->mCamera != nullptr) { in connect()
155 IInterface::asBinder(c->mCamera)->linkToDeath(c); in connect()
169 if (mCamera != 0) { in disconnect()
170 mCamera->disconnect(); in disconnect()
171 IInterface::asBinder(mCamera)->unlinkToDeath(this); in disconnect()
172 mCamera = 0; in disconnect()
192 return mCamera; in remote()
/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/helpers/
DCameraTestHelper.java37 public Camera mCamera; field in CameraTestHelper
106 mCamera = Camera.open(CAMERA_ID); in setupCameraTest()
113 mCamera = Camera.open(CAMERA_ID); in getCameraParameters()
114 Parameters params = mCamera.getParameters(); in getCameraParameters()
115 mCamera.release(); in getCameraParameters()
123 mCamera.takePicture(shutterCallback, rawCallback, jpegCallback); in capturePhoto()
125 mCamera.stopPreview(); in capturePhoto()
126 mCamera.release(); in capturePhoto()
151 mCamera.setParameters(params); in setParameters()
161 mCamera.setErrorCallback(mCameraErrorCallback); in startCameraPreview()
[all …]
/frameworks/rs/tests/java_api/LivePreview/src/com/android/rs/livepreview/
DCameraPreviewActivity.java74 private Camera mCamera; field in CameraPreviewActivity
143 if (mCamera != null) { in onSurfaceTextureAvailable()
197 mCamera = Camera.open(id); in setUpCamera()
198 Camera.Parameters p = mCamera.getParameters(); in setUpCamera()
245 if (mCamera != null) { in shutdownCamera()
246 mCamera.setPreviewCallbackWithBuffer(null); in shutdownCamera()
247 mCamera.stopPreview(); in shutdownCamera()
248 mCamera.release(); in shutdownCamera()
249 mCamera = null; in shutdownCamera()
257 mCamera.setPreviewCallbackWithBuffer(null); in startPreview()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
DCameraTest.java66 Camera mCamera; field in CameraTest
93 mCamera = Camera.open(CAMERA_ID); in initializeMessageLooper()
116 mCamera.release(); in terminateMessageLooper()
197 mCamera.setPreviewDisplay(mSurfaceHolder); in checkTakePicture()
199 mCamera.startPreview(); in checkTakePicture()
201 mCamera.setPreviewCallback(null); in checkTakePicture()
202 mCamera.takePicture(mShutterCallback, mRawPictureCallback, mJpegPictureCallback); in checkTakePicture()
213 mCamera.setPreviewDisplay(mSurfaceHolder); in checkPreviewCallback()
215 mCamera.startPreview(); in checkPreviewCallback()
217 mCamera.setPreviewCallback(null); in checkPreviewCallback()
[all …]
/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/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/tests/HwAccelerationTest/src/com/android/test/hwui/
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()
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()
DGetBitmapSurfaceViewActivity.java38 private Camera mCamera; field in GetBitmapSurfaceViewActivity
83 mCamera = Camera.open(); in surfaceCreated()
86 mCamera.setPreviewSurface(holder.getSurface()); in surfaceCreated()
91 setCameraDisplayOrientation(this, 0, mCamera); in surfaceCreated()
92 mCamera.startPreview(); in surfaceCreated()
133 mCamera.stopPreview(); in surfaceDestroyed()
134 mCamera.release(); in surfaceDestroyed()
DTransform3dActivity.java40 private Camera mCamera; field in Transform3dActivity.Transform3dView
47 mCamera = new Camera(); in Transform3dView()
59 final Camera camera = mCamera; in onDraw()
/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/av/media/libstagefright/
DCameraSource.cpp215 mCamera(0), in CameraSource()
248 mCamera = Camera::connect(cameraId, clientName, clientUid, clientPid); in isCameraAvailable()
249 if (mCamera == 0) return -EBUSY; in isCameraAvailable()
256 mCamera = Camera::create(camera); in isCameraAvailable()
257 if (mCamera == 0) return -EBUSY; in isCameraAvailable()
265 mCamera->lock(); in isCameraAvailable()
412 if (OK != mCamera->setParameters(s)) { in configureCamera()
414 " Someone else is using camera %p?", mCamera.get()); in configureCamera()
601 res = mCamera->setVideoTarget(mVideoBufferProducer); in initBufferQueue()
639 CameraParameters params(mCamera->getParameters()); in initWithCameraAccess()
[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/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.java68 private Camera mCamera; field in RequestThreadManager
280 mCamera.stopPreview(); in stopPreview()
291 mCamera.startPreview(); in startPreview()
303 mCamera.setPreviewTexture(mDummyTexture); in doJpegCapturePrepare()
311 mCamera.takePicture(mJpegShutterCallback, /*raw*/null, mJpegCallback); in doJpegCapture()
331 mCamera.setPreviewTexture(mPreviewTexture); in doPreviewCapture()
367 mCamera.setPreviewTexture(/*surfaceTexture*/null); in configureOutputs()
430 mParams = mCamera.getParameters(); in configureOutputs()
532 mCamera.setParameters(mParams); in configureOutputs()
802 mCamera.setParameters(legacyRequest.parameters);
[all …]
DLegacyFaceDetectMapper.java49 private final Camera mCamera; field in LegacyFaceDetectMapper
72 mCamera = checkNotNull(camera, "camera must not be null"); in LegacyFaceDetectMapper()
84 mCamera.setFaceDetectionListener(new FaceDetectionListener() { in LegacyFaceDetectMapper()
171 mCamera.startFaceDetection(); in processFaceDetectMode()
177 mCamera.stopFaceDetection(); in processFaceDetectMode()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/
DMediaRecorderTest.java68 Camera mCamera; field in MediaRecorderTest
125 mCamera = Camera.open(CAMERA_ID); in validateGetSurface()
126 Camera.Parameters parameters = mCamera.getParameters(); in validateGetSurface()
129 mCamera.setParameters(parameters); in validateGetSurface()
130 mCamera.unlock(); in validateGetSurface()
131 recorder.setCamera(mCamera); in validateGetSurface()
214 if (mCamera != null) { in validateGetSurface()
215 mCamera.lock(); in validateGetSurface()
216 mCamera.release(); in validateGetSurface()
217 mCamera = null; in validateGetSurface()
[all …]
/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/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()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DCameraStreamer.java202 setupPreviewTexture(mRunner.mCamera); in setupServerFrame()
296 setupPreviewTexture(mRunner.mCamera); in setupServerFrame()
308 mRunner.mCamera.setDisplayOrientation(orientation); in onUpdateCameraOrientation()
572 Camera camera = mRunner.mCamera; in setupServerFrame()
814 private Camera mCamera = null; field in CameraStreamer.CameraRunnable
960 return mCamera; in getCamera()
971 while (mCamera == null) { in lockCamera()
982 return mCamera; in lockCamera()
1094 return mCamera.getParameters().getFlashMode(); in getFlashMode()
1115 if (mCamera == null) { in grabFrame()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/
DMediaPlayerPerformance.java94 Camera mCamera; field in MediaPlayerPerformance
148 mCamera = Camera.open(CAMERA_ID); in initializeMessageLooper()
168 mCamera.release(); in terminateMessageLooper()
189 mCamera.setPreviewCallback(mRawPreviewCallback); in stressCameraPreview()
191 mCamera.setPreviewDisplay(mSurfaceHolder); in stressCameraPreview()
192 mCamera.startPreview(); in stressCameraPreview()
195 mCamera.stopPreview(); in stressCameraPreview()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
DCamera2SurfaceViewTestCase.java119 protected CameraDevice mCamera; field in Camera2SurfaceViewTestCase
237 mSession = configureCameraSession(mCamera, outputSurfaces, mSessionListener, mHandler); in configurePreviewOutput()
255 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in createRequestForPreview()
605 mCamera = CameraTestUtils.openCamera( in openDevice()
636 if (mCamera != null) { in closeDevice()
637 mCamera.close(); in closeDevice()
639 mCamera = null; in closeDevice()
713 mSession = configureCameraSession(mCamera, outputSurfaces, mSessionListener, mHandler); in prepareCaptureAndStartPreview()

12