Home
last modified time | relevance | path

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

/packages/apps/Camera2/src/com/android/camera/
DPhotoModule.java129 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()
[all …]
DVideoModule.java184 private CameraProxy mCameraDevice; field in VideoModule
387 if (mPaused || mCameraDevice == null) { in onSingleTapUp()
412 || !mAppController.isShutterEnabled() || mCameraDevice == null) { in takeASnapshot()
418 mCameraDevice.applySettings(mCameraSettings); in takeASnapshot()
421 mCameraDevice.takePicture(mHandler, in takeASnapshot()
429 if (mPaused || mCameraDevice == null) { in updateAutoFocusMoveCallback()
434 mCameraDevice.setAutoFocusMoveCallback(mHandler, in updateAutoFocusMoveCallback()
437 mCameraDevice.setAutoFocusMoveCallback(null, null); in updateAutoFocusMoveCallback()
588 mCameraDevice = cameraProxy; in onCameraAvailable()
589 mCameraCapabilities = mCameraDevice.getCapabilities(); in onCameraAvailable()
[all …]
/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 …]
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 …]
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 …]
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/Camera2/src/com/android/camera/one/v2/camera2proxy/
DAndroidCameraDeviceProxy.java68 private final CameraDevice mCameraDevice; field in AndroidCameraDeviceProxy
71 mCameraDevice = cameraDevice; in AndroidCameraDeviceProxy()
76 return mCameraDevice.getId(); in getId()
84 mCameraDevice.createCaptureSession(list, new AndroidCaptureSessionStateCallback( in createCaptureSession()
90 return mCameraDevice.createCaptureRequest(i); in createCaptureRequest()
95 mCameraDevice.close(); in close()
DCameraDeviceRequestBuilderFactory.java29 private final CameraDeviceProxy mCameraDevice; field in CameraDeviceRequestBuilderFactory
32 mCameraDevice = cameraDevice; in CameraDeviceRequestBuilderFactory()
38 mCameraDevice.createCaptureRequest(templateType))); in create()
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DTestVideoProvider.java67 private CameraDevice mCameraDevice; field in TestVideoProvider
255 mCameraDevice = blockingCameraManager.openCamera(cameraId, null /* listener */, in startCamera()
271 mCameraDevice.createCaptureSession(surfaces, blkSession, mHandler); in startCamera()
272 mCaptureRequest = mCameraDevice.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in startCamera()
295 if (mCameraDevice != null) { in stopCamera()
296 mCameraDevice.close(); in stopCamera()
297 mCameraDevice = null; in stopCamera()
/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 …]
/packages/apps/DevCamera/src/com/android/devcamera/
DApi2Camera.java134 volatile private CameraDevice mCameraDevice; field in Api2Camera
357 if (mCameraDevice != null) { in closeCamera()
363 mCameraDevice.close(); in closeCamera()
379 mCameraDevice = camera;
389 if (mCameraDevice != null && mAllThingsInitialized && mPreviewSurface != null) { in tryToStartCaptureSession()
447 mCameraDevice.createReprocessableCaptureSession(inputConfig, outputSurfaces, in startCaptureSession()
451 mCameraDevice.createCaptureSession(outputSurfaces, mSessionStateCallback, null); in startCaptureSession()
533 … CaptureRequest.Builder b1 = mCameraDevice.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); in issuePreviewCaptureRequest()
592 … CaptureRequest.Builder b1 = mCameraDevice.createReprocessCaptureRequest(mLastTotalCaptureResult); in runReprocessing()
/packages/apps/Camera2/src/com/android/camera/device/
DCamera2Actions.java121 private final CameraDevice mCameraDevice; field in Camera2Actions.CloseCameraRunnable
127 mCameraDevice = cameraDevice; in CloseCameraRunnable()
135 mLogger.i("mCameraDevice.close(id: " + mCameraDevice.getId() + ")"); in run()
136 mCameraDevice.close(); in run()
DPortabilityCameraActions.java154 private final CameraProxy mCameraDevice; field in PortabilityCameraActions.CloseCameraRunnable
160 mCameraDevice = cameraDevice; in CloseCameraRunnable()
169 mLogger.i("mCameraAgent.closeCamera(id: " + mCameraDevice.getCameraId() + ")"); in run()
170 mCameraAgent.closeCamera(mCameraDevice, true /* synchronous */); in run()
DLegacyCameraActions.java116 private final Camera mCameraDevice; field in LegacyCameraActions.CloseCameraRunnable
123 mCameraDevice = cameraDevice; in CloseCameraRunnable()
133 mCameraDevice.release(); in run()