Home
last modified time | relevance | path

Searched refs:pictureSize (Results 1 – 23 of 23) sorted by relevance

/packages/apps/Camera2/src/com/android/camera/settings/
DResolutionSetting.java114 Size pictureSize = null; in getPictureSize() local
131 pictureSize = SettingsUtil.sizeFromSettingString( in getPictureSize()
134 isPictureSizeDisallowedlisted = pictureSize == null || in getPictureSize()
135 ResolutionUtil.isDisallowedListed(pictureSize, disallowedlist); in getPictureSize()
144 final boolean isPictureSizeFromSettingsValid = pictureSize != null && in getPictureSize()
145 pictureSize.width() > 0 && pictureSize.height() > 0; in getPictureSize()
164 pictureSize = fallbackPictureSize; in getPictureSize()
171 return pictureSize; in getPictureSize()
184 Size pictureSize = getPictureSize(cameraId, facing); in getPictureAspectRatio() local
185 return new Rational(pictureSize.getWidth(), pictureSize.getHeight()); in getPictureAspectRatio()
DAppUpgrader.java331 String pictureSize = settingsManager.getString(SettingsManager.SCOPE_GLOBAL, key); in upgradeCameraSizeSetting() local
336 Size size = SettingsUtil.getPhotoSize(pictureSize, supported, camera); in upgradeCameraSizeSetting()
475 String pictureSize = settingsManager.getString(SettingsManager.SCOPE_GLOBAL, in updateN516by9ResolutionIfNeeded() local
477 if ("1836x3264".equals(pictureSize)) { in updateN516by9ResolutionIfNeeded()
/packages/apps/Camera2/src/com/android/camera/one/v2/initialization/
DCamera2PreviewSizeSelector.java39 public Size pickPreviewSize(Size pictureSize) { in pickPreviewSize() argument
40 if (pictureSize == null) { in pickPreviewSize()
43 pictureSize = getLargestPictureSize(); in pickPreviewSize()
45 float pictureAspectRatio = pictureSize.getWidth() / (float) pictureSize.getHeight(); in pickPreviewSize()
DGenericOneCameraImpl.java187 public Size pickPreviewSize(Size pictureSize, Context context) { in pickPreviewSize() argument
188 return mPreviewSizeSelector.pickPreviewSize(pictureSize); in pickPreviewSize()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/
DCameraManager.java622 final Camera.Size pictureSize = chooseBestPictureSize(); in tryShowPreview() local
623 final Camera.Size previewSize = chooseBestPreviewSize(pictureSize); in tryShowPreview()
625 params.setPictureSize(pictureSize.width, pictureSize.height); in tryShowPreview()
627 logCameraSize("Setting picture size: ", pictureSize); in tryShowPreview()
692 private Camera.Size chooseBestPreviewSize(final Camera.Size pictureSize) { in chooseBestPreviewSize() argument
695 final float aspectRatio = pictureSize.width / (float) pictureSize.height; in chooseBestPreviewSize()
696 final int capturePixels = pictureSize.width * pictureSize.height; in chooseBestPreviewSize()
/packages/apps/Camera2/src/com/android/camera/captureintent/resource/
DResourceOpenedCameraImpl.java61 Size pictureSize, in create() argument
64 camera, cameraId, cameraFacing, cameraCharacteristics, pictureSize, captureSetting); in create()
73 Size pictureSize, in ResourceOpenedCameraImpl() argument
79 mPictureSize = pictureSize; in ResourceOpenedCameraImpl()
/packages/apps/Camera2/src/com/android/camera/one/v2/
DOneCameraImpl.java319 OneCameraImpl(CameraDevice device, CameraCharacteristics characteristics, Size pictureSize) { in OneCameraImpl() argument
334 pictureSize = getDefaultPictureSize(); in OneCameraImpl()
341 mCaptureImageReader = ImageReader.newInstance(pictureSize.getWidth(), in OneCameraImpl()
342 pictureSize.getHeight(), in OneCameraImpl()
722 public Size pickPreviewSize(Size pictureSize, Context context) { in pickPreviewSize() argument
723 if (pictureSize == null) { in pickPreviewSize()
726 pictureSize = getDefaultPictureSize(); in pickPreviewSize()
728 float pictureAspectRatio = pictureSize.getWidth() / (float) pictureSize.getHeight(); in pickPreviewSize()
DOneCameraZslImpl.java294 OneCameraZslImpl(CameraDevice device, CameraCharacteristics characteristics, Size pictureSize) { in OneCameraZslImpl() argument
350 if (pictureSize == null) { in OneCameraZslImpl()
353 pictureSize = getDefaultPictureSize(); in OneCameraZslImpl()
355 mCaptureImageReader = ImageReader.newInstance(pictureSize.getWidth(), in OneCameraZslImpl()
356 pictureSize.getHeight(), in OneCameraZslImpl()
1093 public Size pickPreviewSize(Size pictureSize, Context context) { in pickPreviewSize() argument
1094 if (pictureSize == null) { in pickPreviewSize()
1097 pictureSize = getDefaultPictureSize(); in pickPreviewSize()
1099 float pictureAspectRatio = pictureSize.getWidth() / (float) pictureSize.getHeight(); in pickPreviewSize()
DSimpleOneCameraFactory.java104 final Size pictureSize, in createOneCamera() argument
115 pictureSize.getWidth(), pictureSize.getHeight(), in createOneCamera()
DZslOneCameraFactory.java137 Size pictureSize, in createOneCamera() argument
148 pictureSize.getWidth(), pictureSize.getHeight(), in createOneCamera()
DOneCameraFactory.java35 Size pictureSize, in createOneCamera() argument
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DCameraManager.java741 final Camera.Size pictureSize = chooseBestPictureSize(); in tryShowPreview() local
742 final Camera.Size previewSize = chooseBestPreviewSize(pictureSize); in tryShowPreview()
744 params.setPictureSize(pictureSize.width, pictureSize.height); in tryShowPreview()
746 logCameraSize("Setting picture size: ", pictureSize); in tryShowPreview()
1012 private Camera.Size chooseBestPreviewSize(final Camera.Size pictureSize) { in chooseBestPreviewSize() argument
1015 final float aspectRatio = pictureSize.width / (float) pictureSize.height; in chooseBestPreviewSize()
1016 final int capturePixels = pictureSize.width * pictureSize.height; in chooseBestPreviewSize()
/packages/apps/Camera2/src/com/android/camera/captureintent/state/
DStateStartingPreview.java63 Size pictureSize, in from() argument
73 pictureSize, in from()
85 Size pictureSize, in StateStartingPreview() argument
93 camera, cameraId, cameraFacing, cameraCharacteristics, pictureSize, captureSetting); in StateStartingPreview()
/packages/apps/Camera2/src/com/android/camera/one/
DOneCameraCaptureSetting.java43 Size pictureSize, in create() argument
65 pictureSize, in create()
DOneCamera.java435 public Size pickPreviewSize(Size pictureSize, Context context); in pickPreviewSize() argument
/packages/apps/Camera2/src/com/android/camera/one/v1/
DOneCameraCharacteristicsImpl.java53 for (Camera.Size pictureSize : supportedPictureSizes) { in OneCameraCharacteristicsImpl()
54 mSupportedPictureSizes.add(new Size(pictureSize)); in OneCameraCharacteristicsImpl()
/packages/apps/Settings/src/com/android/settings/wifi/qrcode/
DQrCamera.java178 Size pictureSize = getBestPictureSize(mParameters); in setCameraParameter() local
179 mParameters.setPreviewSize(pictureSize.getWidth(), pictureSize.getHeight()); in setCameraParameter()
/packages/apps/LegacyCamera/src/com/android/camera/
DCameraSettings.java138 ListPreference pictureSize = group.findPreference(KEY_PICTURE_SIZE); in initPreference() local
156 if (pictureSize != null) { in initPreference()
157 filterUnsupportedOptions(group, pictureSize, sizeListToStringList( in initPreference()
DCamera.java1957 String pictureSize = mPreferences.getString( in updateCameraParametersPreference() local
1959 if (pictureSize == null) { in updateCameraParametersPreference()
1964 pictureSize, supported, mParameters); in updateCameraParametersPreference()
/packages/apps/Camera2/src/com/android/camera/
DPhotoModule.java1981 Size pictureSize; in updateParametersPictureSize() local
1983 pictureSize = mAppController.getResolutionSetting().getPictureSize( in updateParametersPictureSize()
1991 mCameraSettings.setPhotoSize(pictureSize.toPortabilitySize()); in updateParametersPictureSize()
1994 if (ResolutionUtil.NEXUS_5_LARGE_16_BY_9.equals(pictureSize)) { in updateParametersPictureSize()
2005 (double) pictureSize.width() / pictureSize.height()); in updateParametersPictureSize()
/packages/apps/Camera2/src/com/android/camera/session/
DCaptureSessionImpl.java200 @Nonnull Size pictureSize) { in startEmpty() argument
211 mPlaceHolder = mPlaceholderManager.insertEmptyPlaceholder(mTitle, pictureSize, in startEmpty()
DCaptureSession.java170 public void startEmpty(@Nullable ImageLifecycleListener listener, @Nonnull Size pictureSize); in startEmpty() argument
/packages/apps/Camera2/src/com/android/camera/captureintent/
DCaptureIntentSession.java125 … public synchronized void startEmpty(ImageLifecycleListener listener, @Nonnull Size pictureSize) { in startEmpty() argument