Home
last modified time | relevance | path

Searched refs:mCameraDevice (Results 1 – 3 of 3) sorted by relevance

/development/samples/browseable/HdrViewfinder/src/com.example.android.hdrviewfinder/
DCameraOps.java43 private CameraDevice mCameraDevice; field in CameraOps
89 if (mCameraDevice != null) { in openCamera()
117 if (mCameraDevice != null) {
118 mCameraDevice.close();
120 mCameraDevice = null;
142 CameraDevice device = mCameraDevice; in createCaptureRequest()
190 if (mCameraDevice == null || mSurfaces == null) return; in startCameraSession()
193 mCameraDevice.createCaptureSession( in startCameraSession()
198 mCameraDevice.close(); in startCameraSession()
199 mCameraDevice = null; in startCameraSession()
[all …]
/development/samples/browseable/Camera2Video/src/com.example.android.camera2video/
DCamera2VideoFragment.java111 private CameraDevice mCameraDevice; field in Camera2VideoFragment
191 mCameraDevice = cameraDevice;
203 mCameraDevice = null;
210 mCameraDevice = null;
468 if (null != mCameraDevice) { in closeCamera()
469 mCameraDevice.close(); in closeCamera()
470 mCameraDevice = null; in closeCamera()
487 if (null == mCameraDevice || !mTextureView.isAvailable() || null == mPreviewSize) { in startPreview()
495 mPreviewBuilder = mCameraDevice.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in startPreview()
500mCameraDevice.createCaptureSession(Arrays.asList(previewSurface), new CameraCaptureSession.StateCa… in startPreview()
[all …]
/development/samples/browseable/Camera2Basic/src/com.example.android.camera2basic/
DCamera2BasicFragment.java177 private CameraDevice mCameraDevice; field in Camera2BasicFragment
193 mCameraDevice = cameraDevice;
201 mCameraDevice = null;
208 mCameraDevice = null;
634 if (null != mCameraDevice) { in closeCamera()
635 mCameraDevice.close(); in closeCamera()
636 mCameraDevice = null; in closeCamera()
688 = mCameraDevice.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in createCameraPreviewSession()
692 mCameraDevice.createCaptureSession(Arrays.asList(surface, mImageReader.getSurface()), in createCameraPreviewSession()
698 if (null == mCameraDevice) { in createCameraPreviewSession()
[all …]