Lines Matching refs:mCameraDevice

129     private CameraProxy mCameraDevice;  field in PhotoModule
463 if (mCameraDevice == null) { in onPreviewUIDestroyed()
466 mCameraDevice.setPreviewTexture(null); in onPreviewUIDestroyed()
575 if (mCameraDevice != null) {
576 mCameraDevice.applySettings(mCameraSettings);
738 if (mFaceDetectionStarted || mCameraDevice == null) { in startFaceDetection()
744 mCameraDevice.setFaceDetectionCallback(mHandler, mUI); in startFaceDetection()
745 mCameraDevice.startFaceDetection(); in startFaceDetection()
752 if (!mFaceDetectionStarted || mCameraDevice == null) { in stopFaceDetection()
757 mCameraDevice.setFaceDetectionCallback(null, null); in stopFaceDetection()
758 mCameraDevice.stopFaceDetection(); in stopFaceDetection()
1117 if (mCameraDevice == null || mCameraState == SNAPSHOT_IN_PROGRESS in capture()
1136 mCameraDevice.applySettings(mCameraSettings); in capture()
1148 mCameraDevice.setJpegOrientation(mJpegRotation); in capture()
1150 mCameraDevice.takePicture(mHandler, in capture()
1204 mCameraDevice = cameraProxy; in onCameraAvailable()
1220 mCameraSettings = mCameraDevice.getSettings(); in onCameraAvailable()
1547 if (mCameraDevice != null && mCameraState != PREVIEW_STOPPED) { in pause()
1548 mCameraDevice.cancelAutoFocus(); in pause()
1612 if (mCameraDevice == null) { in autoFocus()
1617 mCameraDevice.autoFocus(mHandler, mAutoFocusCallback); in autoFocus()
1624 if (mCameraDevice == null) { in cancelAutoFocus()
1627 mCameraDevice.cancelAutoFocus(); in cancelAutoFocus()
1634 if (mPaused || mCameraDevice == null || !mFirstTimeInitialized in onSingleTapUp()
1712 if (mCameraDevice != null) { in closeCamera()
1714 mCameraDevice.setZoomChangeListener(null); in closeCamera()
1715 mCameraDevice.setFaceDetectionCallback(null, null); in closeCamera()
1718 mActivity.getCameraProvider().releaseCamera(mCameraDevice.getCameraId()); in closeCamera()
1719 mCameraDevice = null; in closeCamera()
1735 if (mCameraDevice != null) { in setDisplayOrientation()
1736 mCameraDevice.setDisplayOrientation(mDisplayRotation); in setDisplayOrientation()
1757 if (mCameraDevice == null) { in checkPreviewPreconditions()
1779 if (mCameraDevice == null) { in startPreview()
1796 mCameraDevice.cancelAutoFocus(); in startPreview()
1809 mCameraDevice.setPreviewTexture(mActivity.getCameraAppUI().getSurfaceTexture()); in startPreview()
1827 mCameraDevice.startPreview(); in startPreview()
1830 mCameraDevice.startPreviewWithCallback(new Handler(Looper.getMainLooper()), in startPreview()
1837 if (mCameraDevice != null && mCameraState != PREVIEW_STOPPED) { in stopPreview()
1839 mCameraDevice.stopPreview(); in stopPreview()
1873 if (mCameraDevice != null) { in onSettingChanged()
1874 mCameraDevice.applySettings(mCameraSettings); in onSettingChanged()
1929 if (mCameraDevice == null) { in updateCameraParametersPreference()
1970 if (mCameraDevice == null) { in updateParametersPictureSize()
1977 mCameraDevice.getCameraId(), supported); in updateParametersPictureSize()
2011 mCameraDevice.applySettings(mCameraSettings); in updateParametersPictureSize()
2012 mCameraSettings = mCameraDevice.getSettings(); in updateParametersPictureSize()
2062 mCameraDevice.applySettings(mCameraSettings); in updateParametersSceneMode()
2063 mCameraSettings = mCameraDevice.getSettings(); in updateParametersSceneMode()
2098 if (mCameraDevice == null) { in updateAutoFocusMoveCallback()
2103 mCameraDevice.setAutoFocusMoveCallback(mHandler, in updateAutoFocusMoveCallback()
2106 mCameraDevice.setAutoFocusMoveCallback(null, null); in updateAutoFocusMoveCallback()
2144 if (mCameraDevice != null) { in setCameraParameters()
2145 mCameraDevice.applySettings(mCameraSettings); in setCameraParameters()
2153 if (mCameraDevice == null) { in setCameraParametersWhenIdle()
2193 mCameraCapabilities = mCameraDevice.getCapabilities(); in initializeCapabilities()
2209 if (mCameraSettings == null || mCameraDevice == null) { in onZoomChanged()
2214 mCameraDevice.applySettings(mCameraSettings); in onZoomChanged()