Home
last modified time | relevance | path

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

12

/frameworks/av/camera/tests/fuzzer/
Dcamera_fuzzer.cpp93 sp<Camera> mCamera = nullptr; member in CameraFuzzer
144 mCamera = Camera::create(cameraDevice); in initCamera()
145 if (!mCamera) { in initCamera()
152 String8 s = mCamera->getParameters(); in invokeSetParameters()
159 mCamera->setParameters(params.flatten()); in invokeSetParameters()
176 mCamera->reconnect(); in invokeCamera()
207 mCamera->setPreviewTarget(surface->getIGraphicBufferProducer()); in invokeCamera()
212 mCamera->startPreview(); in invokeCamera()
217 mCamera->stopPreview(); in invokeCamera()
222 mCamera->stopPreview(); in invokeCamera()
[all …]
/frameworks/av/camera/
DCamera.cpp55 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.cpp181 devicePolicy, /*out*/ &c->mCamera); in connect()
183 if (ret.isOk() && c->mCamera != nullptr) { in connect()
184 IInterface::asBinder(c->mCamera)->linkToDeath(c); in connect()
198 if (mCamera != 0) { in disconnect()
199 mCamera->disconnect(); in disconnect()
200 IInterface::asBinder(mCamera)->unlinkToDeath(this); in disconnect()
201 mCamera = 0; in disconnect()
221 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.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/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.java77 Camera mCamera; field in QrCamera
118 if (mCamera != null) { in stop()
120 mCamera.stopPreview(); in stop()
124 mCamera = null; in stop()
177 mParameters = mCamera.getParameters(); in setCameraParameter()
195 mCamera.setParameters(mParameters); in setCameraParameter()
222 mCamera.setDisplayOrientation(rotateDegrees); in startPreview()
223 mCamera.startPreview(); in startPreview()
225 mCamera.autoFocus(/* Camera.AutoFocusCallback */ null); in startPreview()
249 mCamera.setOneShotPreviewCallback( in doInBackground()
[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/graphics/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.cpp121 mCamera(0), in CameraSource()
153 mCamera = Camera::connect(cameraId, clientName, clientUid, clientPid, in isCameraAvailable()
157 if (mCamera == 0) return -EBUSY; in isCameraAvailable()
164 mCamera = Camera::create(camera); in isCameraAvailable()
165 if (mCamera == 0) return -EBUSY; in isCameraAvailable()
173 mCamera->lock(); in isCameraAvailable()
320 if (OK != mCamera->setParameters(s)) { in configureCamera()
322 " Someone else is using camera %p?", mCamera.get()); in configureCamera()
507 res = mCamera->setVideoTarget(mVideoBufferProducer); in initBufferQueue()
544 CameraParameters params(mCamera->getParameters()); in initWithCameraAccess()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/
DMediaRecorderTest.java63 Camera mCamera; field in MediaRecorderTest
120 mCamera = Camera.open(CAMERA_ID); in validateGetSurface()
121 Camera.Parameters parameters = mCamera.getParameters(); in validateGetSurface()
124 mCamera.setParameters(parameters); in validateGetSurface()
125 mCamera.unlock(); in validateGetSurface()
126 recorder.setCamera(mCamera); in validateGetSurface()
209 if (mCamera != null) { in validateGetSurface()
210 mCamera.lock(); in validateGetSurface()
211 mCamera.release(); in validateGetSurface()
212 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/av/services/camera/virtualcamera/tests/
DVirtualCameraDeviceTest.cc294 mCamera = ndk::SharedRefBase::make<VirtualCameraDevice>( in SetUp()
309 std::shared_ptr<VirtualCameraDevice> mCamera; member in android::companion::virtualcamera::__anond9d4aea90111::VirtualCameraDeviceTest
319 ASSERT_TRUE(mCamera->isStreamCombinationSupported(config, &aidl_ret).isOk()); in TEST_F()
330 ASSERT_TRUE(mCamera->isStreamCombinationSupported(config, &aidl_ret).isOk()); in TEST_F()
340 ASSERT_TRUE(mCamera->isStreamCombinationSupported(config, &aidl_ret).isOk()); in TEST_F()
350 ASSERT_TRUE(mCamera->isStreamCombinationSupported(config, &aidl_ret).isOk()); in TEST_F()
356 ASSERT_TRUE(mCamera->getCameraCharacteristics(&metadata).isOk()); in TEST_F()
373 mCamera->dump(fd, {}, 0); in TEST_F()
/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.java91 Camera mCamera; field in MediaPlayerPerformance
145 mCamera = Camera.open(CAMERA_ID); in initializeMessageLooper()
165 mCamera.release(); in terminateMessageLooper()
186 mCamera.setPreviewCallback(mRawPreviewCallback); in stressCameraPreview()
188 mCamera.setPreviewDisplay(mSurfaceHolder); in stressCameraPreview()
189 mCamera.startPreview(); in stressCameraPreview()
192 mCamera.stopPreview(); in stressCameraPreview()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DCamera2SwitchPreviewTest.java264 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in stillCapturePreviewPreparer()
266 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_STILL_CAPTURE); in stillCapturePreviewPreparer()
306 int cameraId = Integer.parseInt(mCamera.getId()); in basicRecordingPreviewTestByCamera()
350 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in basicRecordingPreviewTestByCamera()
352 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_RECORD); in basicRecordingPreviewTestByCamera()
497 mSession = configureCameraSession(mCamera, outputSurfaces, mSessionListener, mHandler); in prepareVideoPreview()
531 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()

12