Home
last modified time | relevance | path

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

/packages/apps/Camera/src/com/android/camera/
DCameraHolder.java49 private CameraProxy mCameraDevice; field in CameraHolder
142 if (mCameraDevice != null && mCameraId != cameraId) { in open()
143 mCameraDevice.release(); in open()
144 mCameraDevice = null; in open()
147 if (mCameraDevice == null) { in open()
151 mCameraDevice = CameraManager.instance().cameraOpen(cameraId); in open()
155 mCameraDevice = mMockCamera[cameraId]; in open()
162 mParameters = mCameraDevice.getParameters(); in open()
165 mCameraDevice.reconnect(); in open()
170 mCameraDevice.setParameters(mParameters); in open()
[all …]
DEffectsRecorder.java74 private Camera mCameraDevice; field in EffectsRecorder
152 mCameraDevice = cameraDevice; in setCamera()
467 mCameraDevice.stopPreview(); in initializeEffect()
469 mCameraDevice.setPreviewTexture(null); in initializeEffect()
534 if (mCameraDevice == null) { in startPreview()
591 mCameraDevice.stopPreview();
594 mCameraDevice.setPreviewTexture(mTextureSource);
599 mCameraDevice.startPreview();
735 mCameraDevice = null; in disconnectCamera()
743 if (mCameraDevice == null) { in stopCameraPreview()
[all …]
DCamera.java280 mCameraDevice = Util.openCamera(Camera.this, mCameraId); in run()
281 mParameters = mCameraDevice.getParameters(); in run()
518 mCameraDevice.setParametersAsync(mParameters); in onZoomValueChanged()
544 mCameraDevice.setFaceDetectionListener(this); in startFaceDetection()
545 mCameraDevice.startFaceDetection(); in startFaceDetection()
554 mCameraDevice.setFaceDetectionListener(null); in stopFaceDetection()
555 mCameraDevice.stopFaceDetection(); in stopFaceDetection()
1156 if (mCameraDevice == null || mCameraState == SNAPSHOT_IN_PROGRESS in capture()
1169 mCameraDevice.setParameters(mParameters); in capture()
1171 mCameraDevice.takePicture(mShutterCallback, mRawPictureCallback, in capture()
[all …]
DPanoramaActivity.java359 Parameters parameters = mCameraDevice.getParameters(); in setupCamera()
365 if (mCameraDevice != null) { in releaseCamera()
366 mCameraDevice.setPreviewCallbackWithBuffer(null); in releaseCamera()
368 mCameraDevice = null; in releaseCamera()
380 mCameraDevice = Util.openCamera(this, cameraId); in openCamera()
447 PixelFormat.getPixelFormatInfo(mCameraDevice.getParameters().getPreviewFormat(), pixelInfo); in getPreviewBufSize()
453 mCameraDevice.setParameters(parameters); in configureCamera()
967 if (mCameraDevice == null) { in onPause()
1134 if (mCameraDevice == null) { in startCameraPreview()
1153 mCameraDevice.setDisplayOrientation(0); in startCameraPreview()
[all …]
DVideoCamera.java715 mParameters = mCameraDevice.getParameters(); in getDesiredPreviewSize()
833 mCameraDevice.setPreviewTextureAsync(mSurfaceTexture); in setPreviewTexture()
849 mCameraDevice.setErrorCallback(mErrorCallback); in startPreview()
858 mCameraDevice.setDisplayOrientation(mCameraDisplayOrientation); in startPreview()
863 mCameraDevice.setPreviewTextureAsync(mSurfaceTexture); in startPreview()
864 mCameraDevice.startPreviewAsync(); in startPreview()
880 mCameraDevice.stopPreview(); in stopPreview()
914 if (mCameraDevice == null) { in closeCamera()
927 mCameraDevice.setZoomChangeListener(null); in closeCamera()
928 mCameraDevice.setErrorCallback(null); in closeCamera()
[all …]
DActivityBase.java77 protected CameraManager.CameraProxy mCameraDevice; field in ActivityBase
117 mCameraDevice = Util.openCamera(ActivityBase.this, mCameraId); in run()
118 mParameters = mCameraDevice.getParameters(); in run()
/packages/apps/LegacyCamera/src/com/android/camera/
DCameraHolder.java47 private android.hardware.Camera mCameraDevice; field in CameraHolder
123 if (mCameraDevice != null && mCameraId != cameraId) { in open()
124 mCameraDevice.release(); in open()
125 mCameraDevice = null; in open()
128 if (mCameraDevice == null) { in open()
131 mCameraDevice = android.hardware.Camera.open(cameraId); in open()
137 mParameters = mCameraDevice.getParameters(); in open()
140 mCameraDevice.reconnect(); in open()
145 mCameraDevice.setParameters(mParameters); in open()
150 return mCameraDevice; in open()
[all …]
DEffectsRecorder.java81 private Camera mCameraDevice; field in EffectsRecorder
156 mCameraDevice = cameraDevice; in setCamera()
472 mCameraDevice.stopPreview(); in initializeEffect()
474 mCameraDevice.setPreviewTexture(null); in initializeEffect()
540 if (mCameraDevice == null) { in startPreview()
584 mCameraDevice.stopPreview();
586 mCameraDevice.setPreviewTexture(null);
598 mCameraDevice.stopPreview();
601 mCameraDevice.setPreviewTexture(mTextureSource);
606 mCameraDevice.startPreview();
[all …]
DCamera.java481 mCameraDevice.stopSmoothZoom(); in onZoomStateChanged()
489 mParameters = mCameraDevice.getParameters(); in initializeZoom()
498 mCameraDevice.setZoomChangeListener(mZoomListener); in initializeZoom()
510 mCameraDevice.stopSmoothZoom(); in onZoomValueChanged()
514 mCameraDevice.startSmoothZoom(index); in onZoomValueChanged()
535 mCameraDevice.setFaceDetectionListener(this); in startFaceDetection()
536 mCameraDevice.startFaceDetection(); in startFaceDetection()
545 mCameraDevice.setFaceDetectionListener(null); in stopFaceDetection()
546 mCameraDevice.stopFaceDetection(); in stopFaceDetection()
836 mCameraDevice.startSmoothZoom(mTargetZoomValue); in onZoomChange()
[all …]
DVideoCamera.java388 mCameraDevice = Util.openCamera(VideoCamera.this, mCameraId); in onCreate()
792 mParameters = mCameraDevice.getParameters(); in getDesiredPreviewSize()
840 mCameraDevice = Util.openCamera(this, mCameraId); in doOnResume()
902 mCameraDevice.setPreviewDisplay(holder); in setPreviewDisplay()
913 mCameraDevice.setErrorCallback(mErrorCallback); in startPreview()
915 mCameraDevice.stopPreview(); in startPreview()
924 mCameraDevice.setDisplayOrientation(orientation); in startPreview()
930 mCameraDevice.startPreview(); in startPreview()
947 if (mCameraDevice == null) { in closeCamera()
956 mCameraDevice.setZoomChangeListener(null); in closeCamera()
[all …]
DActivityBase.java40 protected Camera mCameraDevice; field in ActivityBase
73 if (mCameraDevice == null && isKeyguardLocked()) { in onResume()
/packages/apps/LegacyCamera/src/com/android/camera/panorama/
DPanoramaActivity.java351 Parameters parameters = mCameraDevice.getParameters(); in setupCamera()
357 if (mCameraDevice != null) { in releaseCamera()
358 mCameraDevice.setPreviewCallbackWithBuffer(null); in releaseCamera()
360 mCameraDevice = null; in releaseCamera()
367 mCameraDevice = Util.openCamera(this, backCameraId); in openCamera()
433 PixelFormat.getPixelFormatInfo(mCameraDevice.getParameters().getPreviewFormat(), pixelInfo); in getPreviewBufSize()
439 mCameraDevice.setParameters(parameters); in configureCamera()
1100 mCameraDevice.setPreviewTexture(surface); in setPreviewTexture()
1115 mCameraDevice.setDisplayOrientation(0); in startCameraPreview()
1121 mCameraDevice.startPreview(); in startCameraPreview()
[all …]