Home
last modified time | relevance | path

Searched refs:sizes (Results 1 – 25 of 36) sorted by relevance

12

/packages/apps/Camera2/src/com/android/camera/settings/
DResolutionUtil.java88 public List<Size> sizes = new LinkedList<Size>(); field in ResolutionUtil.ResolutionBucket
106 sizes.add(size); in add()
107 Collections.sort(sizes, new Comparator<Size>() { in add()
115 maxPixels = sizes.get(0).width() * sizes.get(0).height(); in add()
132 …public static List<Size> getDisplayableSizesFromSupported(List<Size> sizes, boolean isBackCamera) { in getDisplayableSizesFromSupported() argument
133 List<ResolutionBucket> buckets = parseAvailableSizes(sizes, isBackCamera); in getDisplayableSizesFromSupported()
150 List<Size> result = new ArrayList<Size>(sizes.size()); in getDisplayableSizesFromSupported()
155 result.addAll(pickUpToThree(bucket.sizes)); in getDisplayableSizesFromSupported()
184 private static List<Size> pickUpToThree(List<Size> sizes) { in pickUpToThree() argument
186 Size largest = sizes.get(0); in pickUpToThree()
[all …]
DPictureSizeLoader.java126 List<Size> sizes; in computeSizesForCamera() local
130 sizes = CameraPictureSizesCacher.getCachedSizesForCamera(cameraId, mContext) in computeSizesForCamera()
133 sizes = CameraPictureSizesCacher.getSizesForCamera(cameraId, mContext); in computeSizesForCamera()
136 if (sizes != null) { in computeSizesForCamera()
137 sizes = ResolutionUtil in computeSizesForCamera()
138 .getDisplayableSizesFromSupported(sizes, in computeSizesForCamera()
142 sizes = ResolutionUtil.filterDisallowedListedSizes(sizes, disallowedlisted); in computeSizesForCamera()
143 return sizes; in computeSizesForCamera()
DCameraPictureSizesCacher.java44 public static void updateSizesForCamera(Context context, int cameraId, List<Size> sizes) { in updateSizesForCamera() argument
53 editor.putString(key_sizes, Size.listToString(sizes)); in updateSizesForCamera()
88 List<Size> sizes = Size.buildListFromCameraSizes(thisCamera.getParameters() in getSizesForCamera() local
93 editor.putString(key_sizes, Size.listToString(sizes)); in getSizesForCamera()
95 return sizes; in getSizesForCamera()
DListPreferenceFiller.java29 public void fill(List<Size> sizes, ListPreference preference); in fill() argument
DCameraSettingsActivity.java200 public void fill(List<Size> sizes, ListPreference preference) { in onResume()
201 setEntriesForSelection(sizes, preference); in onResume()
/packages/apps/DevCamera/src/com/android/devcamera/
DCameraDeviceReport.java168 Size[] sizes = map.getOutputSizes(formats[i]); in printCameraInfo() local
169 if (sizes != null) { in printCameraInfo()
171 for (int j = 0; j < sizes.length; j++) { in printCameraInfo()
173 sizes[j].toString(), in printCameraInfo()
174 map.getOutputStallDuration(formats[i], sizes[j]) / 1000000, in printCameraInfo()
175 map.getOutputMinFrameDuration(formats[i], sizes[j]) / 1000000 in printCameraInfo()
186 Size[] sizes = map.getInputSizes(formats[i]); in printCameraInfo() local
188 + getFormatName(formats[i]) + " are: " + sizesToString(sizes)); in printCameraInfo()
193 Size[] sizes = map.getOutputSizes(SurfaceHolder.class); in printCameraInfo() local
194 Log.v(TAG, "output sizes for SurfaceHolder.class are: " + sizesToString(sizes)); in printCameraInfo()
[all …]
DCameraInfoCache.java215 private Size returnLargestSize(Size[] sizes) { in returnLargestSize() argument
218 for (int j = 0; j < sizes.length; j++) { in returnLargestSize()
219 if (sizes[j].getHeight() * sizes[j].getWidth() > area) { in returnLargestSize()
220 area = sizes[j].getHeight() * sizes[j].getWidth(); in returnLargestSize()
221 largestSize = sizes[j]; in returnLargestSize()
/packages/apps/Camera2/src/com/android/camera/util/
DSize.java151 public static Size[] convert(android.util.Size[] sizes) { in convert() argument
152 Size[] converted = new Size[sizes.length]; in convert()
153 for (int i = 0; i < sizes.length; ++i) { in convert()
154 converted[i] = new Size(sizes[i].getWidth(), sizes[i].getHeight()); in convert()
159 public static List<Size> convert(List<com.android.ex.camera2.portability.Size> sizes) { in convert() argument
160 ArrayList<Size> converted = new ArrayList<>(sizes.size()); in convert()
161 for (com.android.ex.camera2.portability.Size size : sizes) { in convert()
173 public static String listToString(List<Size> sizes) { in listToString() argument
175 for (Size s : sizes) { in listToString()
DCameraUtil.java477 public static Size getOptimalPreviewSize(List<Size> sizes, double targetRatio, in getOptimalPreviewSize() argument
479 int optimalPickIndex = getOptimalPreviewSizeIndex(sizes, targetRatio, context); in getOptimalPreviewSize()
483 return sizes.get(optimalPickIndex); in getOptimalPreviewSize()
502 public static int getOptimalPreviewSizeIndex(List<Size> sizes, double targetRatio, in getOptimalPreviewSizeIndex() argument
509 return getOptimalPreviewSizeIndex(sizes, targetRatio, aspectRatioTolerance, context); in getOptimalPreviewSizeIndex()
598 List<Size> sizes, int targetWidth, in getOptimalVideoSnapshotPictureSize() argument
603 if (sizes == null) { in getOptimalVideoSnapshotPictureSize()
612 for (Size size : sizes) { in getOptimalVideoSnapshotPictureSize()
620 for (Size size : sizes) { in getOptimalVideoSnapshotPictureSize()
634 for (Size size : sizes) { in getOptimalVideoSnapshotPictureSize()
/packages/apps/Launcher3/src/com/android/launcher3/widget/util/
DWidgetSizes.java54 ArrayList<SizeF> sizes = new ArrayList<>(2); in getWidgetPaddedSizes() local
64 sizes.add(new SizeF(widgetSizePx.getWidth() / density, in getWidgetPaddedSizes()
67 return sizes; in getWidgetPaddedSizes()
179 private static Rect getMinMaxSizes(List<SizeF> sizes) { in getMinMaxSizes() argument
180 if (sizes.isEmpty()) { in getMinMaxSizes()
183 SizeF first = sizes.get(0); in getMinMaxSizes()
186 for (int i = 1; i < sizes.size(); i++) { in getMinMaxSizes()
187 result.union((int) sizes.get(i).getWidth(), (int) sizes.get(i).getHeight()); in getMinMaxSizes()
/packages/apps/Camera2/src/com/android/camera/
DCaptureModuleUtil.java56 public static Size getOptimalPreviewSize(Size[] sizes, double targetRatio, Activity context) { in getOptimalPreviewSize() argument
57 return getOptimalPreviewSize(sizes, targetRatio, null, context); in getOptimalPreviewSize()
66 public static Size getOptimalPreviewSize(Size[] sizes, in getOptimalPreviewSize() argument
73 for (Size s : sizes) { in getOptimalPreviewSize()
81 for (Size s : sizes) { in getOptimalPreviewSize()
96 for (Size s : sizes) { in getOptimalPreviewSize()
DVideoModule.java816 List<Size> sizes = Size.convert(capabilities.getSupportedPreviewSizes()); in getDesiredPreviewSize() local
824 Iterator<Size> it = sizes.iterator(); in getDesiredPreviewSize()
836 for (Size size : sizes) { in getDesiredPreviewSize()
845 Size optimalSize = CameraUtil.getOptimalPreviewSize(sizes, in getDesiredPreviewSize()
/packages/apps/LegacyCamera/src/com/android/camera/
DUtil.java375 List<Size> sizes, double targetRatio) { in getOptimalPreviewSize() argument
378 if (sizes == null) return null; in getOptimalPreviewSize()
398 for (Size size : sizes) { in getOptimalPreviewSize()
412 for (Size size : sizes) { in getOptimalPreviewSize()
424 List<Size> sizes, double targetRatio) { in getOptimalVideoSnapshotPictureSize() argument
427 if (sizes == null) return null; in getOptimalVideoSnapshotPictureSize()
432 for (Size size : sizes) { in getOptimalVideoSnapshotPictureSize()
444 for (Size size : sizes) { in getOptimalVideoSnapshotPictureSize()
DCameraSettings.java279 private static List<String> sizeListToStringList(List<Size> sizes) { in sizeListToStringList() argument
281 for (Size size : sizes) { in sizeListToStringList()
DVideoCamera.java797 List<Size> sizes = mParameters.getSupportedPreviewSizes(); in getDesiredPreviewSize() local
800 Iterator it = sizes.iterator(); in getDesiredPreviewSize()
808 Size optimalSize = Util.getOptimalPreviewSize(this, sizes, in getDesiredPreviewSize()
/packages/apps/DeskClock/src/com/android/alarmclock/
DDigitalAppWidgetProvider.kt365 val sizes = optimizeSizes(context, template, nextAlarmTime) in <lambda>() constant
367 LOGGER.v(sizes.toString()) in <lambda>()
371 rv.setImageViewBitmap(R.id.nextAlarmIcon, sizes.mIconBitmap) in <lambda>()
372 rv.setTextViewTextSize(R.id.date, COMPLEX_UNIT_PX, sizes.mFontSizePx.toFloat()) in <lambda>()
373 rv.setTextViewTextSize(R.id.nextAlarm, COMPLEX_UNIT_PX, sizes.mFontSizePx.toFloat()) in <lambda>()
374 rv.setTextViewTextSize(R.id.clock, COMPLEX_UNIT_PX, sizes.mClockFontSizePx.toFloat()) in <lambda>()
378 if (sizes.listHeight <= smallestWorldCityListSizePx) { in <lambda>()
/packages/modules/Bluetooth/system/hci/test/
Dpacket_fragmenter_host_test.cc289 const std::vector<size_t> sizes( in TEST_F() local
292 for (const auto packet_size : sizes) { in TEST_F()
301 const std::vector<size_t> sizes( in TEST_F() local
305 for (const auto packet_size : sizes) { in TEST_F()
337 const std::vector<size_t> sizes( in TEST_F() local
341 for (auto packet_size : sizes) { in TEST_F()
/packages/modules/Virtualization/libs/idsig/testdata/
Dcreate.sh3 sizes="512 4K 1M 10000000 272629760"
4 for size in $sizes; do
/packages/modules/NeuralNetworks/common/include/
DCpuOperationUtils.h43 dims.sizes[i] = static_cast<int>(getSizeOfDimension(shape, src)); in convertShapeToDims()
45 dims.sizes[i] = 1; in convertShapeToDims()
51 dims.strides[i] = dims.strides[i - 1] * dims.sizes[i - 1]; in convertShapeToDims()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DCameraManager.java998 final List<Camera.Size> sizes = new ArrayList<Camera.Size>( in chooseBestPictureSize() local
1003 Collections.sort(sizes, new SizeComparator(maxWidth, maxHeight, aspectRatio, maxPixels)); in chooseBestPictureSize()
1005 return sizes.get(0); in chooseBestPictureSize()
1013 final List<Camera.Size> sizes = new ArrayList<Camera.Size>( in chooseBestPreviewSize() local
1019 Collections.sort(sizes, new SizeComparator(Integer.MAX_VALUE, Integer.MAX_VALUE, in chooseBestPreviewSize()
1022 return sizes.get(0); in chooseBestPreviewSize()
/packages/modules/NeuralNetworks/common/cpu_operations/
DConv2D.cpp143 im2colDim.sizes[3] = (int)getSizeOfDimension(outputShape, 0); \
144 im2colDim.sizes[2] = (int)getSizeOfDimension(outputShape, 1); \
145 im2colDim.sizes[1] = (int)getSizeOfDimension(outputShape, 2); \
146 im2colDim.sizes[0] = (int)inDepth * filterHeight * filterWidth; \
150 im2colDim.strides[i] = im2colDim.strides[i - 1] * im2colDim.sizes[i - 1]; \
157 im2colByteSize *= im2colDim.sizes[i]; \
/packages/modules/Virtualization/libs/idsig/src/
Dhashtree.rs203 let sizes = ["512", "4K", "1M", "10000000", "272629760"]; in compare_with_golden_output() localVariable
204 for size in sizes.iter() { in compare_with_golden_output()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/
DCameraManager.java693 final List<Camera.Size> sizes = in chooseBestPreviewSize() local
700 sizes, in chooseBestPreviewSize()
703 return sizes.get(0); in chooseBestPreviewSize()
/packages/modules/Bluetooth/tools/pdl/src/
Dlint.rs43 sizes: HashMap<String, FieldPath<'d>>, field
163 self.sizes.insert(field_id.clone(), FieldPath(vec![field])).map(|prev| { in insert()
288 for (id, field) in packet_scope.sizes.iter() { in inline()
289 if let Some(prev) = self.sizes.insert(id.clone(), field.clone()) { in inline()
1181 sizes: HashMap::new(), in scope()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DPendingAppWidgetHostView.java116 public void updateAppWidgetSize(Bundle newOptions, List<SizeF> sizes) { in updateAppWidgetSize() argument

12