Home
last modified time | relevance | path

Searched refs:supportedSizes (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Camera2/src/com/android/camera/one/v2/
DOneCameraImpl.java729 Size[] supportedSizes = getSupportedPreviewSizes(); in pickPreviewSize() local
734 Size size = CaptureModuleUtil.getOptimalPreviewSize(supportedSizes, in pickPreviewSize()
857 android.util.Size[] supportedSizes = configs.getOutputSizes(sCaptureImageFormat); in getDefaultPictureSize() local
860 android.util.Size largestSupportedSize = supportedSizes[0]; in getDefaultPictureSize()
863 for (int i = 1; i < supportedSizes.length; i++) { in getDefaultPictureSize()
864 long numPixels = supportedSizes[i].getWidth() * supportedSizes[i].getHeight(); in getDefaultPictureSize()
866 largestSupportedSize = supportedSizes[i]; in getDefaultPictureSize()
DOneCameraZslImpl.java393 android.util.Size[] supportedSizes = configs.getOutputSizes(sCaptureImageFormat); in getDefaultPictureSize() local
396 android.util.Size largestSupportedSize = supportedSizes[0]; in getDefaultPictureSize()
399 for (int i = 0; i < supportedSizes.length; i++) { in getDefaultPictureSize()
400 long numPixels = supportedSizes[i].getWidth() * supportedSizes[i].getHeight(); in getDefaultPictureSize()
402 largestSupportedSize = supportedSizes[i]; in getDefaultPictureSize()
/packages/apps/LegacyCamera/src/com/android/camera/panorama/
DPanoramaActivity.java371 private boolean findBestPreviewSize(List<Size> supportedSizes, boolean need4To3, in findBestPreviewSize() argument
375 for (Size size : supportedSizes) { in findBestPreviewSize()
398 List<Size> supportedSizes = parameters.getSupportedPreviewSizes(); in setupCaptureParams() local
399 if (!findBestPreviewSize(supportedSizes, true, true)) { in setupCaptureParams()
401 if (!findBestPreviewSize(supportedSizes, false, true)) { in setupCaptureParams()
403 findBestPreviewSize(supportedSizes, false, false); in setupCaptureParams()
/packages/apps/Camera2/src/com/android/camera/settings/
DSettingsUtil.java74 public Size getFromSetting(String sizeSetting, List<Size> supportedSizes) { in getFromSetting() argument
83 if (supportedSizes.contains(desiredSize)) { in getFromSetting()