Home
last modified time | relevance | path

Searched refs:mParameters (Results 1 – 25 of 28) sorted by relevance

12

/packages/apps/Camera/src/com/android/camera/
DPhotoModule.java134 private Parameters mParameters; field in PhotoModule
338 mParameters = mCameraDevice.getParameters(); in run()
708 if (mParameters == null || mCameraDevice == null) return; in onZoomValueChanged()
710 mParameters.setZoom(mZoomValue); in onZoomValueChanged()
711 mCameraDevice.setParametersAsync(mParameters); in onZoomValueChanged()
734 if ((mParameters == null) || !mParameters.isZoomSupported() in initializeZoom()
736 mZoomMax = mParameters.getMaxZoom(); in initializeZoom()
737 mZoomRatios = mParameters.getZoomRatios(); in initializeZoom()
742 mZoomRenderer.setZoom(mParameters.getZoom()); in initializeZoom()
743 mZoomRenderer.setZoomValue(mZoomRatios.get(mParameters.getZoom())); in initializeZoom()
[all …]
DVideoModule.java128 private Parameters mParameters; field in VideoModule
250 mParameters = mActivity.mCameraDevice.getParameters(); in openCamera()
497 CameraSettings settings = new CameraSettings(mActivity, mParameters, in loadCameraPreferences()
757 mParameters = mActivity.mCameraDevice.getParameters(); in getDesiredPreviewSize()
759 if (mParameters.getSupportedVideoSizes() == null || effectsActive()) { in getDesiredPreviewSize()
763 List<Size> sizes = mParameters.getSupportedPreviewSizes(); in getDesiredPreviewSize()
764 Size preferred = mParameters.getPreferredPreviewSizeForVideo(); in getDesiredPreviewSize()
1605 mParameters = mActivity.mCameraDevice.getParameters(); in startVideoRecording()
1634 && mParameters.isZoomSupported()) { in showRecordingUI()
1643 && mParameters.isZoomSupported()) { in showRecordingUI()
[all …]
DCameraSettings.java74 private final Parameters mParameters; field in CameraSettings
81 mParameters = parameters; in CameraSettings()
90 if (mParameters != null) initPreference(group); in getPreferenceGroup()
183 mParameters.getSupportedPictureSizes())); in initPreference()
188 whiteBalance, mParameters.getSupportedWhiteBalance()); in initPreference()
192 sceneMode, mParameters.getSupportedSceneModes()); in initPreference()
196 flashMode, mParameters.getSupportedFlashModes()); in initPreference()
199 if (!Util.isFocusAreaSupported(mParameters)) { in initPreference()
201 focusMode, mParameters.getSupportedFocusModes()); in initPreference()
209 videoFlashMode, mParameters.getSupportedFlashModes()); in initPreference()
[all …]
DFocusOverlayManager.java93 private Parameters mParameters; field in FocusOverlayManager
147 mParameters = parameters; in setParameters()
150 mLockAeAwbNeeded = (Util.isAutoExposureLockSupported(mParameters) || in setParameters()
151 Util.isAutoWhiteBalanceLockSupported(mParameters)); in setParameters()
433 List<String> supportedFocusModes = mParameters.getSupportedFocusModes(); in getFocusMode()
458 mParameters.getSupportedFocusModes())) { in getFocusMode()
461 mFocusMode = mParameters.getFocusMode(); in getFocusMode()
DCameraHolder.java117 private Parameters mParameters; field in CameraHolder
221 mParameters = mCameraDevice.getParameters(); in open()
229 mCameraDevice.setParameters(mParameters); in open()
276 mParameters = null; in release()
DCameraManager.java51 private Parameters mParameters; field in CameraManager
230 mParameters = mCamera.getParameters(); in handleMessage()
472 Parameters parameters = mParameters; in getParameters()
473 mParameters = null; in getParameters()
/packages/apps/LegacyCamera/src/com/android/camera/
DCamera.java126 private Parameters mParameters; field in Camera
489 mParameters = mCameraDevice.getParameters(); in initializeZoom()
490 if (!mParameters.isZoomSupported()) return; in initializeZoom()
491 mZoomMax = mParameters.getMaxZoom(); in initializeZoom()
495 mZoomControl.setZoomIndex(mParameters.getZoom()); in initializeZoom()
526 if (mParameters.getMaxNumDetectedFaces() > 0) { in startFaceDetection()
543 if (mParameters.getMaxNumDetectedFaces() > 0) { in stopFaceDetection()
640 float step = mParameters.getExposureCompensationStep(); in updateExposureOnScreenIndicator()
708 boolean isAutoScene = !(Parameters.SCENE_MODE_AUTO.equals(mParameters.getSceneMode())); in updateOnScreenIndicators()
711 updateFlashOnScreenIndicator(mParameters.getFlashMode()); in updateOnScreenIndicators()
[all …]
DVideoCamera.java239 private Parameters mParameters; field in VideoCamera
488 CameraSettings settings = new CameraSettings(this, mParameters, in loadCameraPreferences()
527 mParameters.isZoomSupported(), SETTING_KEYS, OTHER_SETTING_KEYS); in initializeIndicatorControl()
792 mParameters = mCameraDevice.getParameters(); in getDesiredPreviewSize()
793 if (mParameters.getSupportedVideoSizes() == null || effectsActive()) { in getDesiredPreviewSize()
797 List<Size> sizes = mParameters.getSupportedPreviewSizes(); in getDesiredPreviewSize()
798 Size preferred = mParameters.getPreferredPreviewSizeForVideo(); in getDesiredPreviewSize()
1880 mParameters = mCameraDevice.getParameters(); in setCameraParameters()
1882 mParameters.setPreviewSize(mDesiredPreviewWidth, mDesiredPreviewHeight); in setCameraParameters()
1883 mParameters.setPreviewFrameRate(mProfile.videoFrameRate); in setCameraParameters()
[all …]
DCameraSettings.java66 private final Parameters mParameters; field in CameraSettings
73 mParameters = parameters; in CameraSettings()
158 mParameters.getSupportedPictureSizes())); in initPreference()
162 whiteBalance, mParameters.getSupportedWhiteBalance()); in initPreference()
166 sceneMode, mParameters.getSupportedSceneModes()); in initPreference()
170 flashMode, mParameters.getSupportedFlashModes()); in initPreference()
173 if (mParameters.getMaxNumFocusAreas() == 0) { in initPreference()
175 focusMode, mParameters.getSupportedFocusModes()); in initPreference()
183 videoFlashMode, mParameters.getSupportedFlashModes()); in initPreference()
197 int max = mParameters.getMaxExposureCompensation(); in buildExposureCompensation()
[all …]
DFocusManager.java72 private Parameters mParameters; field in FocusManager
109 mParameters = parameters; in initializeParameters()
110 mFocusAreaSupported = (mParameters.getMaxNumFocusAreas() > 0 in initializeParameters()
112 mParameters.getSupportedFocusModes())); in initializeParameters()
113 mLockAeAwbNeeded = (mParameters.isAutoExposureLockSupported() || in initializeParameters()
114 mParameters.isAutoWhiteBalanceLockSupported()); in initializeParameters()
134 if (mParameters != null) { in initialize()
353 List<String> supportedFocusModes = mParameters.getSupportedFocusModes(); in getFocusMode()
378 mParameters.getSupportedFocusModes())) { in getFocusMode()
381 mFocusMode = mParameters.getFocusMode(); in getFocusMode()
DCameraHolder.java60 private Parameters mParameters; field in CameraHolder
137 mParameters = mCameraDevice.getParameters(); in open()
145 mCameraDevice.setParameters(mParameters); in open()
190 mParameters = null; in releaseCamera()
/packages/apps/Nfc/src/com/android/nfc/
DNfcDiscoveryParameters.java27 private NfcDiscoveryParameters mParameters; field in NfcDiscoveryParameters.Builder
30 mParameters = new NfcDiscoveryParameters(); in Builder()
34 mParameters.mTechMask = techMask; in setTechMask()
39 mParameters.mEnableLowPowerDiscovery = enable; in setEnableLowPowerDiscovery()
44 mParameters.mEnableReaderMode = enable; in setEnableReaderMode()
47 mParameters.mEnableLowPowerDiscovery = false; in setEnableReaderMode()
54 mParameters.mEnableHostRouting = enable; in setEnableHostRouting()
59 mParameters.mEnableP2p = enable; in setEnableP2p()
64 if (mParameters.mEnableReaderMode && in build()
65 (mParameters.mEnableLowPowerDiscovery || mParameters.mEnableP2p)) { in build()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DImageFilterCurves.java26 FilterCurvesRepresentation mParameters = new FilterCurvesRepresentation(); field in ImageFilterCurves
36 mParameters = parameters; in useRepresentation()
45 Spline spline = mParameters.getSpline(curveIndex); in populateArray()
57 if (!mParameters.getSpline(Spline.RGB).isOriginal()) { in apply()
65 if (!mParameters.getSpline(Spline.RED).isOriginal()) { in apply()
70 if (!mParameters.getSpline(Spline.GREEN).isOriginal()) { in apply()
75 if (!mParameters.getSpline(Spline.BLUE).isOriginal()) { in apply()
86 mParameters.setSpline(splineIndex, new Spline(spline)); in setSpline()
90 return mParameters.getSpline(splineIndex); in getSpline()
100 mParameters.setSpline(i, new Spline(spline)); in reset()
[all …]
DImageFilterVignette.java38 FilterVignetteRepresentation mParameters; field in ImageFilterVignette
57 mParameters = (FilterVignetteRepresentation) representation; in useRepresentation()
98 if (mParameters.isCenterSet()) { in runFilter()
101 c[0] = bounds.right * mParameters.getCenterX(); in runFilter()
102 c[1] = bounds.bottom * mParameters.getCenterY(); in runFilter()
106 c[0] = bounds.right * mParameters.getRadiusX(); in runFilter()
107 c[1] = bounds.bottom * mParameters.getRadiusY(); in runFilter()
115 int v = mParameters.getValue(MODE_VIGNETTE); in runFilter()
118 mScript.set_finalSaturation(mParameters.getValue(MODE_SATURATION)); in runFilter()
119 mScript.set_finalContrast(mParameters.getValue(MODE_CONTRAST)); in runFilter()
[all …]
DImageFilterGrad.java47 FilterGradRepresentation mParameters = new FilterGradRepresentation(); field in ImageFilterGrad
61 mParameters = (FilterGradRepresentation) representation; in useRepresentation()
122 int[] x1 = mParameters.getXPos1(); in runFilter()
123 int[] y1 = mParameters.getYPos1(); in runFilter()
124 int[] x2 = mParameters.getXPos2(); in runFilter()
125 int[] y2 = mParameters.getYPos2(); in runFilter()
144 mScript.set_mask(mParameters.getMask()); in runFilter()
150 mScript.set_brightness(mParameters.getBrightness()); in runFilter()
151 mScript.set_contrast(mParameters.getContrast()); in runFilter()
152 mScript.set_saturation(mParameters.getSaturation()); in runFilter()
DImageFilterDraw.java50 FilterDrawRepresentation mParameters = new FilterDrawRepresentation(); field in ImageFilterDraw
78 mParameters = parameters; in useRepresentation()
232 if (mParameters.getDrawing().isEmpty() && mParameters.getCurrentDrawing() == null) { in drawData()
239 for (FilterDrawRepresentation.StrokeData strokeData : mParameters.getDrawing()) { in drawData()
248 mParameters.getDrawing().size() < mCachedStrokes) { in drawData()
255 if (mCachedStrokes < mParameters.getDrawing().size()) { in drawData()
260 StrokeData stroke = mParameters.getCurrentDrawing(); in drawData()
268 Vector<FilterDrawRepresentation.StrokeData> v = mParameters.getDrawing(); in fillBuffer()
278 for (FilterDrawRepresentation.StrokeData strokeData : mParameters.getDrawing()) { in draw()
DImageFilterRedEye.java27 FilterRedEyeRepresentation mParameters = new FilterRedEyeRepresentation(); field in ImageFilterRedEye
39 return mParameters.isNil(); in isNil()
43 return mParameters.getCandidates(); in getCandidates()
47 mParameters.clearCandidates(); in clear()
55 mParameters = parameters; in useRepresentation()
64 int size = mParameters.getNumberOfCandidates(); in apply()
67 RectF r = new RectF(((RedEyeCandidate) (mParameters.getCandidate(i))).mRect); in apply()
DImageFilterSharpen.java27 private FilterBasicRepresentation mParameters; field in ImageFilterSharpen
47 mParameters = parameters; in useRepresentation()
73 float p1 = mParameters.getValue() * scaleFactor; in computeKernel()
99 if (mParameters == null) { in runFilter()
DImageFilterTinyPlanet.java39 FilterTinyPlanetRepresentation mParameters = new FilterTinyPlanetRepresentation(); field in ImageFilterTinyPlanet
61 mParameters = parameters; in useRepresentation()
105 outputSize, mParameters.getZoom() / 100f, mParameters.getAngle()); in apply()
DSimpleImageFilter.java21 private FilterBasicRepresentation mParameters; field in SimpleImageFilter
31 mParameters = parameters; in useRepresentation()
35 return mParameters; in getParameters()
DImageFilterBorder.java32 private FilterImageBorderRepresentation mParameters = null; field in ImageFilterBorder
43 mParameters = parameters; in useRepresentation()
47 return mParameters; in getParameters()
DImageFilterFx.java26 private FilterFxRepresentation mParameters = null; field in ImageFilterFx
47 mParameters = parameters; in useRepresentation()
51 return mParameters; in getParameters()
DImageFilterColorBorder.java28 private FilterColorBorderRepresentation mParameters = null; field in ImageFilterColorBorder
45 mParameters = parameters; in useRepresentation()
49 return mParameters; in getParameters()
/packages/apps/Camera/tests/src/com/android/camera/activity/
DCameraTestCase.java59 private static Parameters mParameters; field in CameraTestCase
222 if (mParameters == null) { in getParameters()
223 mParameters = android.hardware.Camera.getEmptyParameters(); in getParameters()
224mParameters.unflatten("preview-format-values=yuv420sp,yuv420p,yuv422i-yuyv,yuv420p;" + in getParameters()
244 return mParameters; in getParameters()
/packages/apps/Camera2/tests_camera/src/com/android/camera/activity/
DCameraTestCase.java59 private static Parameters mParameters; field in CameraTestCase
222 if (mParameters == null) { in getParameters()
223 mParameters = android.hardware.Camera.getEmptyParameters(); in getParameters()
224mParameters.unflatten("preview-format-values=yuv420sp,yuv420p,yuv422i-yuyv,yuv420p;" + in getParameters()
244 return mParameters; in getParameters()

12