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.java112 Size pictureSize = null; in getPictureSize() local
129 pictureSize = SettingsUtil.sizeFromSettingString( in getPictureSize()
132 isPictureSizeBlacklisted = pictureSize == null || in getPictureSize()
133 ResolutionUtil.isBlackListed(pictureSize, blacklist); in getPictureSize()
142 final boolean isPictureSizeFromSettingsValid = pictureSize != null && in getPictureSize()
143 pictureSize.width() > 0 && pictureSize.height() > 0; in getPictureSize()
161 pictureSize = fallbackPictureSize; in getPictureSize()
168 return pictureSize; in getPictureSize()
181 Size pictureSize = getPictureSize(cameraId, facing); in getPictureAspectRatio() local
182 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.java186 public Size pickPreviewSize(Size pictureSize, Context context) { in pickPreviewSize() argument
187 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.java318 OneCameraImpl(CameraDevice device, CameraCharacteristics characteristics, Size pictureSize) { in OneCameraImpl() argument
332 pictureSize = getDefaultPictureSize(); in OneCameraImpl()
339 mCaptureImageReader = ImageReader.newInstance(pictureSize.getWidth(), in OneCameraImpl()
340 pictureSize.getHeight(), in OneCameraImpl()
720 public Size pickPreviewSize(Size pictureSize, Context context) { in pickPreviewSize() argument
721 if (pictureSize == null) { in pickPreviewSize()
724 pictureSize = getDefaultPictureSize(); in pickPreviewSize()
726 float pictureAspectRatio = pictureSize.getWidth() / (float) pictureSize.getHeight(); in pickPreviewSize()
DOneCameraZslImpl.java293 OneCameraZslImpl(CameraDevice device, CameraCharacteristics characteristics, Size pictureSize) { in OneCameraZslImpl() argument
349 if (pictureSize == null) { in OneCameraZslImpl()
352 pictureSize = getDefaultPictureSize(); in OneCameraZslImpl()
354 mCaptureImageReader = ImageReader.newInstance(pictureSize.getWidth(), in OneCameraZslImpl()
355 pictureSize.getHeight(), in OneCameraZslImpl()
1092 public Size pickPreviewSize(Size pictureSize, Context context) { in pickPreviewSize() argument
1093 if (pictureSize == null) { in pickPreviewSize()
1096 pictureSize = getDefaultPictureSize(); in pickPreviewSize()
1098 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.java740 final Camera.Size pictureSize = chooseBestPictureSize(); in tryShowPreview() local
741 final Camera.Size previewSize = chooseBestPreviewSize(pictureSize); in tryShowPreview()
743 params.setPictureSize(pictureSize.width, pictureSize.height); in tryShowPreview()
745 logCameraSize("Setting picture size: ", pictureSize); in tryShowPreview()
1011 private Camera.Size chooseBestPreviewSize(final Camera.Size pictureSize) { in chooseBestPreviewSize() argument
1014 final float aspectRatio = pictureSize.width / (float) pictureSize.height; in chooseBestPreviewSize()
1015 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.java1952 String pictureSize = mPreferences.getString( in updateCameraParametersPreference() local
1954 if (pictureSize == null) { in updateCameraParametersPreference()
1959 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