Searched refs:sizes (Results 1 - 21 of 21) sorted by relevance

/packages/apps/Camera2/src/com/android/camera/settings/
H A DPictureSizeLoader.java37 * Loads the camera picture sizes that can be set by the user.
45 * Holds the sizes for the back- and front cameras which will be available
77 * @param context used to load caches sizes from preferences.
86 * @param context used to load caches sizes from preferences.
88 * sizes. If the cache is empty, this will NOT attempt to open
89 * the camera devices in order to obtain the sizes.
101 * Computes the list of picture sizes that should be displayed by settings.
104 * sizes, if the sizes are not already cached. This is to be compatible with
122 List<Size> sizes;
[all...]
H A DListPreferenceFiller.java29 public void fill(List<Size> sizes, ListPreference preference); argument
H A DCameraPictureSizesCacher.java31 * Facilitates caching of camera supported picture sizes, which is slow
39 * Opportunistically update the picture sizes cache, if needed.
41 * @param cameraId cameraID we have sizes for.
42 * @param sizes List of valid sizes.
44 public static void updateSizesForCamera(Context context, int cameraId, List<Size> sizes) { argument
53 editor.putString(key_sizes, Size.listToString(sizes));
62 * before calling or null will be returned if sizes were not previously
65 * @param cameraId cameraID we would like sizes for.
67 * @return List of valid sizes, o
[all...]
H A DResolutionUtil.java78 * A resolution bucket holds a list of sizes that are of a given aspect
84 * This is a sorted list of sizes, going from largest to smallest.
86 public List<Size> sizes = new LinkedList<Size>(); field in class:ResolutionUtil.ResolutionBucket
88 * This is the head of the sizes array.
99 * into the sizes array and update appropriate members.
104 sizes.add(size);
105 Collections.sort(sizes, new Comparator<Size>() {
113 maxPixels = sizes.get(0).width() * sizes.get(0).height();
118 * Given a list of camera sizes, thi
130 getDisplayableSizesFromSupported(List<Size> sizes, boolean isBackCamera) argument
182 pickUpToThree(List<Size> sizes) argument
240 parseAvailableSizes(List<Size> sizes, boolean isBackCamera) argument
372 getLargestPictureSize(Rational desiredAspectRatio, List<Size> sizes) argument
427 filterBlackListedSizes(List<Size> sizes, String blacklistString) argument
[all...]
H A DCameraSettingsActivity.java151 // Selected resolutions for the different cameras and sizes.
190 // Load the camera sizes.
193 // Send loaded sizes to additional preferences.
197 public void fill(List<Size> sizes, ListPreference preference) {
198 setEntriesForSelection(sizes, preference);
458 * @param displayableSizes The human readable preferred sizes
491 * This method gets the selected picture sizes for S,M,L and populates
496 Log.w(TAG, "null deviceInfo, cannot display resolution sizes");
/packages/apps/Camera2/src/com/android/camera/util/
H A DSize.java151 public static Size[] convert(android.util.Size[] sizes) { argument
152 Size[] converted = new Size[sizes.length];
153 for (int i = 0; i < sizes.length; ++i) {
154 converted[i] = new Size(sizes[i].getWidth(), sizes[i].getHeight());
159 public static List<Size> convert(List<com.android.ex.camera2.portability.Size> sizes) { argument
160 ArrayList<Size> converted = new ArrayList<>(sizes.size());
161 for (com.android.ex.camera2.portability.Size size : sizes) {
170 * @param sizes List of this class to encode.
173 public static String listToString(List<Size> sizes) { argument
[all...]
H A DCameraUtil.java477 public static Size getOptimalPreviewSize(List<Size> sizes, double targetRatio) { argument
478 int optimalPickIndex = getOptimalPreviewSizeIndex(sizes, targetRatio);
482 return sizes.get(optimalPickIndex);
487 * Returns the index into 'sizes' that is most optimal given the current
494 * @param sizes the available preview sizes
500 public static int getOptimalPreviewSizeIndex(List<Size> sizes, double targetRatio) { argument
506 return getOptimalPreviewSizeIndex(sizes, targetRatio, aspectRatioTolerance);
510 * Returns the index into 'sizes' that is most optimal given the current
513 * @param previewSizes the available preview sizes
592 getOptimalVideoSnapshotPictureSize( List<Size> sizes, int targetWidth, int targetHeight) argument
[all...]
/packages/apps/Camera2/src/com/android/camera/
H A DCaptureModuleUtil.java55 public static Size getOptimalPreviewSize(Size[] sizes,double targetRatio) { argument
56 return getOptimalPreviewSize(sizes, targetRatio, null);
61 * the available preview sizes, the target aspect ratio (typically the
65 public static Size getOptimalPreviewSize(Size[] sizes, argument
70 // Count sizes with height <= 1080p to mimic camera1 api behavior.
72 for (Size s : sizes) {
79 // Set array of all sizes with height <= 1080p
80 for (Size s : sizes) {
95 for (Size s : sizes) {
H A DVideoModule.java773 * Calculates and sets local class variables for Desired Preview sizes.
818 List<Size> sizes = Size.convert(capabilities.getSupportedPreviewSizes());
826 Iterator<Size> it = sizes.iterator();
827 // Remove the preview sizes that are not preferred.
836 // video frame size. The variable sizes is assumed to be filtered
837 // for sizes beyond the UI size.
838 for (Size size : sizes) {
847 Size optimalSize = CameraUtil.getOptimalPreviewSize(sizes,
H A DPhotoModule.java1999 List<Size> sizes = Size.convert(mCameraCapabilities.getSupportedPreviewSizes());
2000 Size optimalSize = CameraUtil.getOptimalPreviewSize(sizes,
/packages/apps/DevCamera/src/com/android/devcamera/
H A DCameraDeviceReport.java165 Log.v(TAG, "output sizes for format " + formats[i] +
168 Size[] sizes = map.getOutputSizes(formats[i]);
169 if (sizes != null) {
171 for (int j = 0; j < sizes.length; j++) {
173 sizes[j].toString(),
174 map.getOutputStallDuration(formats[i], sizes[j]) / 1000000,
175 map.getOutputMinFrameDuration(formats[i], sizes[j]) / 1000000
186 Size[] sizes = map.getInputSizes(formats[i]);
187 Log.v(TAG, "input sizes for format " + formats[i] + " = ImageFormat."
188 + getFormatName(formats[i]) + " are: " + sizesToString(sizes));
249 sizesToString(Size[] sizes) argument
[all...]
H A DCameraInfoCache.java210 private Size returnLargestSize(Size[] sizes) { argument
213 for (int j = 0; j < sizes.length; j++) {
214 if (sizes[j].getHeight() * sizes[j].getWidth() > area) {
215 area = sizes[j].getHeight() * sizes[j].getWidth();
216 largestSize = sizes[j];
/packages/apps/LegacyCamera/src/com/android/camera/
H A DUtil.java375 List<Size> sizes, double targetRatio) {
378 if (sizes == null) return null;
398 for (Size size : sizes) {
412 for (Size size : sizes) {
424 List<Size> sizes, double targetRatio) {
427 if (sizes == null) return null;
432 for (Size size : sizes) {
444 for (Size size : sizes) {
374 getOptimalPreviewSize(Activity currentActivity, List<Size> sizes, double targetRatio) argument
423 getOptimalVideoSnapshotPictureSize( List<Size> sizes, double targetRatio) argument
H A DCameraSettings.java279 private static List<String> sizeListToStringList(List<Size> sizes) { argument
281 for (Size size : sizes) {
H A DVideoCamera.java797 List<Size> sizes = mParameters.getSupportedPreviewSizes();
800 Iterator it = sizes.iterator();
801 // Remove the preview sizes that are not preferred.
808 Size optimalSize = Util.getOptimalPreviewSize(this, sizes,
H A DCamera.java1971 List<Size> sizes = mParameters.getSupportedPreviewSizes();
1973 sizes, (double) size.width / size.height);
1979 // sizes, so set and read the parameters to get lastest values
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
H A DCameraManager.java997 final List<Camera.Size> sizes = new ArrayList<Camera.Size>(
1001 // Sort the sizes so the best size is first
1002 Collections.sort(sizes, new SizeComparator(maxWidth, maxHeight, aspectRatio, maxPixels));
1004 return sizes.get(0);
1012 final List<Camera.Size> sizes = new ArrayList<Camera.Size>(
1017 // Sort the sizes so the best size is first
1018 Collections.sort(sizes, new SizeComparator(Integer.MAX_VALUE, Integer.MAX_VALUE,
1021 return sizes.get(0);
/packages/experimental/CameraPreviewTest/src/com/example/android/videochatcameratest/
H A DVideoChatTestActivity.java91 List<Camera.Size> sizes = params.getSupportedPreviewSizes();
95 for (Size size : sizes) {
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DPositionController.java1017 boolean constrained, Size[] sizes) {
1070 initBox(i, sizes[i + BOX_MAX]);
1016 moveBox(int fromIndex[], boolean hasPrev, boolean hasNext, boolean constrained, Size[] sizes) argument
/packages/apps/TV/usbtuner/libs/
H A Dexoplayer_1.5.6.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/android/ com/google/android/exoplayer/ ...
/packages/apps/Messaging/build/gcheckstyle/
H A Dgoogle-style-checker_deploy.jarMETA-INF/ META-INF/MANIFEST.MF build-data.properties com/ com/google/ com/google/ ...

Completed in 387 milliseconds