Home
last modified time | relevance | path

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

/development/samples/VoiceInteractionService/src/com/example/android/voiceinteractor/
DSampleVisualQueryDetectionService.java66 private CameraDevice mCameraDevice; field in SampleVisualQueryDetectionService
190 mCameraDevice = camera;
196 mCameraDevice.close();
201 mCameraDevice.close();
202 mCameraDevice = null;
209 mCaptureRequestBuilder = mCameraDevice.createCaptureRequest(CAPTURE_MODE); in createCameraPreview()
213 mCameraDevice.createCaptureSession(List.of(imageSurface), in createCameraPreview()
219 if (mCameraDevice == null) { in createCameraPreview()
241 if (null == mCameraDevice) { in updatePreview()
281 mCameraDevice.close(); in releaseResources()
[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 …]
/development/samples/VirtualDeviceManager/client/src/com/example/android/vdmdemo/client/
DVirtualCameraController.java199 private CameraDevice mCameraDevice; field in VirtualCameraController.CameraStreamer
212 mCameraDevice = camera;
248 CaptureRequest.Builder builder = mCameraDevice.createCaptureRequest(
297 if (mCameraDevice != null) { in stop()
298 mCameraDevice.close(); in stop()
/development/samples/browseable/Camera2Raw/src/com.example.android.camera2raw/
DCamera2RawFragment.java280 private CameraDevice mCameraDevice; field in Camera2RawFragment
364 mCameraDevice = cameraDevice;
379 mCameraDevice = null;
390 mCameraDevice = null;
868 if (null != mCameraDevice) { in closeCamera()
869 mCameraDevice.close(); in closeCamera()
870 mCameraDevice = null; in closeCamera()
931 = mCameraDevice.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in createCameraPreviewSessionLocked()
935 mCameraDevice.createCaptureSession(Arrays.asList(surface, in createCameraPreviewSessionLocked()
942 if (null == mCameraDevice) { in createCameraPreviewSessionLocked()
[all …]