Home
last modified time | relevance | path

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

12

/frameworks/av/camera/
DCamera.cpp56 c->mCamera = camera; in create()
84 sp <::android::hardware::ICamera> c = mCamera; in reconnect()
91 sp <::android::hardware::ICamera> c = mCamera; in lock()
98 sp <::android::hardware::ICamera> c = mCamera; in unlock()
107 sp <::android::hardware::ICamera> c = mCamera; in setPreviewTarget()
116 sp <::android::hardware::ICamera> c = mCamera; in setVideoTarget()
126 sp <::android::hardware::ICamera> c = mCamera; in startPreview()
134 sp <::android::hardware::ICamera> c = mCamera; in setVideoBufferMode()
143 sp <::android::hardware::ICamera> c = mCamera; in startRecording()
152 sp <::android::hardware::ICamera> c = mCamera; in stopPreview()
[all …]
DCameraBase.cpp180 /*out*/ &c->mCamera); in connect()
182 if (ret.isOk() && c->mCamera != nullptr) { in connect()
183 IInterface::asBinder(c->mCamera)->linkToDeath(c); in connect()
197 if (mCamera != 0) { in disconnect()
198 mCamera->disconnect(); in disconnect()
199 IInterface::asBinder(mCamera)->unlinkToDeath(this); in disconnect()
200 mCamera = 0; in disconnect()
220 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/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/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/packages/SettingsLib/src/com/android/settingslib/qrcode/
DQrCamera.java76 Camera mCamera; field in QrCamera
117 if (mCamera != null) { in stop()
118 mCamera.stopPreview(); in stop()
171 mParameters = mCamera.getParameters(); in setCameraParameter()
189 mCamera.setParameters(mParameters); in setCameraParameter()
216 mCamera.setDisplayOrientation(rotateDegrees); in startPreview()
217 mCamera.startPreview(); in startPreview()
219 mCamera.autoFocus(/* Camera.AutoFocusCallback */ null); in startPreview()
243 mCamera.setOneShotPreviewCallback( in doInBackground()
290 mCamera = Camera.open(i); in initCamera()
[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/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()
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/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/av/media/libstagefright/
DCameraSource.cpp120 mCamera(0), in CameraSource()
152 mCamera = Camera::connect(cameraId, clientName, clientUid, clientPid, in isCameraAvailable()
155 if (mCamera == 0) return -EBUSY; in isCameraAvailable()
162 mCamera = Camera::create(camera); in isCameraAvailable()
163 if (mCamera == 0) return -EBUSY; in isCameraAvailable()
171 mCamera->lock(); in isCameraAvailable()
318 if (OK != mCamera->setParameters(s)) { in configureCamera()
320 " Someone else is using camera %p?", mCamera.get()); in configureCamera()
505 res = mCamera->setVideoTarget(mVideoBufferProducer); in initBufferQueue()
542 CameraParameters params(mCamera->getParameters()); in initWithCameraAccess()
[all …]
/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/stress/
DCamera2StillCaptureTest.java210 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in takePictureTestByCamera()
212 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_STILL_CAPTURE); in takePictureTestByCamera()
232 focuser = new Camera2Focuser(mCamera, mSession, mPreviewSurface, afListener, in takePictureTestByCamera()
393 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in fullRawCaptureTestByCamera()
395 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_STILL_CAPTURE); in fullRawCaptureTestByCamera()
414 mSession = configureCameraSession(mCamera, outputSurfaces, in fullRawCaptureTestByCamera()
453 "_cam_" + mCamera.getId() + ".dng"; in fullRawCaptureTestByCamera()
459 "_cam_" + mCamera.getId() + ".jpg"; in fullRawCaptureTestByCamera()
DCamera2SwitchPreviewTest.java301 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in stillCapturePreviewPreparer()
303 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_STILL_CAPTURE); in stillCapturePreviewPreparer()
343 int cameraId = Integer.parseInt(mCamera.getId()); in basicRecordingPreviewTestByCamera()
387 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in basicRecordingPreviewTestByCamera()
389 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_RECORD); in basicRecordingPreviewTestByCamera()
534 mSession = configureCameraSession(mCamera, outputSurfaces, mSessionListener, mHandler); in prepareVideoPreview()
568 mSession = configureCameraSession(mCamera, outputSurfaces, mSessionListener, mHandler); in prepareCapturePreview()
/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()
/frameworks/base/core/jni/
Dandroid_hardware_Camera.cpp87 sp<Camera> getCamera() { Mutex::Autolock _l(mLock); return mCamera; } in getCamera()
99 sp<Camera> mCamera; // strong reference to native object member in JNICameraContext
152 mCamera = camera; in JNICameraContext()
194 mCamera.clear(); in release()
276 mCamera->setPreviewCallbackFlags(CAMERA_FRAME_CALLBACK_FLAG_NOOP); in copyAndPost()
364 if (mCamera != nullptr) { in postRecordingFrameHandleTimestamp()
365 mCamera->releaseRecordingFrameHandle(handle); in postRecordingFrameHandleTimestamp()
378 if (mCamera != nullptr) { in postRecordingFrameHandleTimestampBatch()
379 mCamera->releaseRecordingFrameHandleBatch(handles); in postRecordingFrameHandleTimestampBatch()
460 mCamera->setPreviewCallbackFlags(CAMERA_FRAME_CALLBACK_FLAG_NOOP); in setCallbackMode()
[all …]

12