Home
last modified time | relevance | path

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

1234567

/frameworks/base/core/tests/coretests/src/android/text/
DDynamicLayoutBlocksTest.java69 private void assertState(int[] sizes, int[] indices) { in assertState() argument
72 assertEquals(sizes.length, dl.getNumberOfBlocks()); in assertState()
75 int[] ends = new int[sizes.length]; in assertState()
77 ends[i] = i == 0 ? (sizes[0] == 0 ? 0 : sizes[0] - 1) : ends[i - 1] + sizes[i]; in assertState()
86 private void assertState(int[] sizes) { in assertState() argument
87 int[] ids = new int[sizes.length]; in assertState()
88 for (int i = 0; i < sizes.length; i++) { in assertState()
91 assertState(sizes, ids); in assertState()
/frameworks/rs/
DrsClosure.cpp15 const int* sizes, size_t sizes_length, in rsi_ClosureCreate() argument
26 sizes, (const Closure**)depClosures, in rsi_ClosureCreate()
36 const int* sizes, const size_t sizes_length) { in rsi_InvokeClosureCreate() argument
41 sizes); in rsi_InvokeClosureCreate()
64 const int* sizes, in Closure() argument
82 mGlobals[fieldIDs[i]] = make_pair(values[i], sizes[i]); in Closure()
115 const int64_t* values, const int* sizes) : in Closure() argument
122 mGlobals[fieldIDs[i]] = make_pair(values[i], sizes[i]); in Closure()
DrsClosure.h28 const int* sizes, // size for data type. -1 indicates an allocation.
38 const int* sizes); // size for data type. -1 indicates an allocation.
/frameworks/base/core/java/android/hardware/camera2/utils/
DSizeAreaComparator.java66 public static Size findLargestByArea(List<Size> sizes) { in findLargestByArea() argument
67 checkNotNull(sizes, "sizes must not be null"); in findLargestByArea()
69 return Collections.max(sizes, new SizeAreaComparator()); in findLargestByArea()
/frameworks/av/camera/
DCameraParameters2.cpp210 static void parseSizesList(const char *sizesStr, Vector<Size> &sizes) in parseSizesList() argument
226 sizes.push(Size(width, height)); in parseSizesList()
259 void CameraParameters2::getSupportedPreviewSizes(Vector<Size> &sizes) const in getSupportedPreviewSizes()
262 parseSizesList(previewSizesStr, sizes); in getSupportedPreviewSizes()
280 void CameraParameters2::getSupportedVideoSizes(Vector<Size> &sizes) const in getSupportedVideoSizes()
283 parseSizesList(videoSizesStr, sizes); in getSupportedVideoSizes()
336 void CameraParameters2::getSupportedPictureSizes(Vector<Size> &sizes) const in getSupportedPictureSizes()
339 parseSizesList(pictureSizesStr, sizes); in getSupportedPictureSizes()
DCameraParameters.cpp322 static void parseSizesList(const char *sizesStr, Vector<Size> &sizes) in parseSizesList() argument
338 sizes.push(Size(width, height)); in parseSizesList()
371 void CameraParameters::getSupportedPreviewSizes(Vector<Size> &sizes) const in getSupportedPreviewSizes()
374 parseSizesList(previewSizesStr, sizes); in getSupportedPreviewSizes()
392 void CameraParameters::getSupportedVideoSizes(Vector<Size> &sizes) const in getSupportedVideoSizes()
395 parseSizesList(videoSizesStr, sizes); in getSupportedVideoSizes()
442 void CameraParameters::getSupportedPictureSizes(Vector<Size> &sizes) const in getSupportedPictureSizes()
445 parseSizesList(pictureSizesStr, sizes); in getSupportedPictureSizes()
/frameworks/base/core/java/android/hardware/camera2/legacy/
DSizeAreaComparator.java67 public static Camera.Size findLargestByArea(List<Camera.Size> sizes) { in findLargestByArea() argument
68 checkNotNull(sizes, "sizes must not be null"); in findLargestByArea()
70 return Collections.max(sizes, new SizeAreaComparator()); in findLargestByArea()
DLegacyCameraDevice.java349 Size[] sizes = streamConfigurations.getOutputSizes(surfaceType); in configureOutputs() local
350 if (sizes == null) { in configureOutputs()
358 sizes = streamConfigurations.getOutputSizes(ImageFormat.YUV_420_888); in configureOutputs()
360 sizes = streamConfigurations.getOutputSizes(ImageFormat.JPEG); in configureOutputs()
364 if (!ArrayUtils.contains(sizes, s)) { in configureOutputs()
365 if (flexibleConsumer && (s = findClosestSize(s, sizes)) != null) { in configureOutputs()
368 String reason = (sizes == null) ? "format is invalid." : in configureOutputs()
369 ("size not in valid set: " + Arrays.toString(sizes)); in configureOutputs()
/frameworks/base/core/java/android/hardware/camera2/params/
DStreamConfigurationMap.java646 Size[] sizes = new Size[sizeCount]; in getHighSpeedVideoSizesFor() local
650 sizes[i++] = config.getSize(); in getHighSpeedVideoSizesFor()
653 return sizes; in getHighSpeedVideoSizesFor()
1290 Size[] sizes = new Size[sizesCount]; in getInternalFormatSizes() local
1319 sizes[sizeIndex++] = config.getSize(); in getInternalFormatSizes()
1328 return sizes; in getInternalFormatSizes()
1489 Size[] sizes = getOutputSizes(format); in appendOutputsString() local
1490 for (Size size : sizes) { in appendOutputsString()
1509 Size[] sizes = getHighResolutionOutputSizes(format); in appendHighResOutputsString() local
1510 if (sizes == null) continue; in appendHighResOutputsString()
[all …]
/frameworks/av/include/camera/
DCameraParameters2.h68 void getSupportedPreviewSizes(Vector<Size> &sizes) const;
88 void getSupportedVideoSizes(Vector<Size> &sizes) const;
106 void getSupportedPictureSizes(Vector<Size> &sizes) const;
DCameraParameters.h61 void getSupportedPreviewSizes(Vector<Size> &sizes) const;
81 void getSupportedVideoSizes(Vector<Size> &sizes) const;
98 void getSupportedPictureSizes(Vector<Size> &sizes) const;
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DCameraTestUtils.java1040 List<Size> sizes = new ArrayList<Size>(); in getSupportedPreviewSizes() local
1043 sizes.add(sz); in getSupportedPreviewSizes()
1046 return getAscendingOrderSizes(sizes, /*ascending*/false); in getSupportedPreviewSizes()
1084 Size[] sizes = getSupportedSizeForFormat(format, cameraId, cameraManager); in getSortedSizesForFormat() local
1088 for (Size sz : sizes) { in getSortedSizesForFormat()
1094 sortedSizes = Arrays.asList(sizes); in getSortedSizesForFormat()
1128 List<Size> sizes = new ArrayList<Size>(); in getSupportedVideoSizes() local
1131 sizes.add(sz); in getSupportedVideoSizes()
1134 return getAscendingOrderSizes(sizes, /*ascending*/false); in getSupportedVideoSizes()
1152 List<Size> sizes = getSupportedPreviewSizes(cameraId, cameraManager, null); in getMinPreviewSize() local
[all …]
DStaticMetadata.java554 Size[] sizes = getValueFromKeyNonNull(key); in getAvailableThumbnailSizesChecked() local
555 final List<Size> sizeList = Arrays.asList(sizes); in getAvailableThumbnailSizesChecked()
572 return sizes; in getAvailableThumbnailSizesChecked()
1351 Size[] sizes = null; in getAvailableSizesForFormatChecked() local
1364 sizes = new Size[slowSizeList.length + fastSizeList.length]; in getAvailableSizesForFormatChecked()
1365 System.arraycopy(fastSizeList, 0, sizes, 0, fastSizeList.length); in getAvailableSizesForFormatChecked()
1366 … System.arraycopy(slowSizeList, 0, sizes, fastSizeList.length, slowSizeList.length); in getAvailableSizesForFormatChecked()
1368 sizes = fastSizeList; in getAvailableSizesForFormatChecked()
1370 sizes = slowSizeList; in getAvailableSizesForFormatChecked()
1374 sizes = config.getInputSizes(format); in getAvailableSizesForFormatChecked()
[all …]
/frameworks/base/docs/html/training/basics/supporting-devices/
Dindex.jd27 <p>Android devices come in many shapes and sizes all around the world. With a wide range of device
30 important variations that you should consider include different languages, screen sizes, and
43 <dd>Learn how to optimize the user experience for different screen sizes and densities.</dd>
Dscreens.jd32 appearance for different screen sizes and densities.</p>
35 <li>There are four generalized sizes: small, normal, large, xlarge</li>
51 <p>To optimize your user experience on different screen sizes, you should create a unique layout XML
58 properly fit the screen. Thus, your layouts for different screen sizes don't
124 defining screen sizes that allows you to specify resources for screen sizes based on
/frameworks/base/rs/java/android/renderscript/
DScriptGroup.java128 int[] sizes = new int[numValues]; in Closure() local
136 values, sizes, depClosures, depFieldIDs); in Closure()
143 values, sizes, depClosures, depFieldIDs); in Closure()
148 fieldIDs, values, sizes, depClosures, depFieldIDs); in Closure()
168 int[] sizes = new int[numValues]; in Closure() local
178 sizes, depClosures, depFieldIDs); in Closure()
183 values, sizes); in Closure()
209 long[] values, int[] sizes, in retrieveValueAndDependenceInfo() argument
232 sizes[index] = 0; in retrieveValueAndDependenceInfo()
236 sizes[index] = vs.size; in retrieveValueAndDependenceInfo()
/frameworks/base/docs/html/guide/practices/
Dscreens_support.jd2 page.metaDescription=Managing UIs for the best display on multiple screen sizes.
12 <li>Android runs on devices that have different screen sizes and densities.</li>
68 <p>Android runs on a variety of devices that offer different screen sizes and densities. For
72 application's UI for specific screen sizes and densities, in order to optimize your UI
78 sizes and densities. In doing so, you maximize the user experience for all devices and your users
92 precisely control the layout resources your application uses for different screen sizes. These new
113 <p>For simplicity, Android groups all actual screen sizes into four generalized sizes: small,
152 <p>Starting with Android 1.6 (API Level 4), Android provides support for multiple screen sizes and
159 the range of actual screen sizes and densities into:</p>
162 <li>A set of four generalized <strong>sizes</strong>: <em>small</em>, <em>normal</em>,
[all …]
Dindex.jd27 … <a href="http://android-developers.blogspot.com/2011/07/new-tools-for-managing-screen-sizes.html">
29 <p>Android 3.2 includes new tools for supporting devices with a wide range of screen sizes.
32 different screen sizes.</p>
/frameworks/base/docs/html/guide/topics/manifest/
Dsupports-screens-element.jd27 <dd itemprop="description">Lets you specify the screen sizes your application supports and enable <a
30 application to specify the screen sizes your application supports.
35 often important that you optimize your application's UI for different screen sizes by providing <a
40 <p>However, if your application does not work well when resized to fit different screen sizes, you
45 have not designed for larger screen sizes and the normal resizing does not achieve the appropriate
55 based on generalized screen sizes.</p>
57 <p>For more information about how to properly support different screen sizes so that you can avoid
68 <dd>Indicates whether the application is resizeable for different screen sizes. This attribute is
150 <p>If your application properly resizes for smaller screen sizes (down to the
187 <p>If your application is compatible with all screen sizes and its layout properly resizes, you do
[all …]
/frameworks/av/media/libstagefright/
DCameraSource.cpp290 Vector<Size>& sizes) { in getSupportedVideoSizes() argument
293 params.getSupportedVideoSizes(sizes); in getSupportedVideoSizes()
294 if (sizes.size() == 0) { in getSupportedVideoSizes()
296 params.getSupportedPreviewSizes(sizes); in getSupportedVideoSizes()
336 Vector<Size> sizes; in configureCamera() local
338 getSupportedVideoSizes(*params, &isSetVideoSizeSupportedByCamera, sizes); in configureCamera()
341 if (!isVideoSizeSupported(width, height, sizes)) { in configureCamera()
418 Vector<Size> sizes; in checkVideoSize() local
419 params.getSupportedVideoSizes(sizes); in checkVideoSize()
420 if (sizes.size() == 0) { in checkVideoSize()
/frameworks/base/docs/html/training/design-navigation/
Dmultiple-sizes.jd13 page.image=/images/training/app-navigation-multiple-sizes-strategy-stack.png
58 <img src="{@docRoot}images/training/app-navigation-multiple-sizes-multipane-bad.png"
64 <img src="{@docRoot}images/training/app-navigation-multiple-sizes-multipane-good.png"
83 <img src="{@docRoot}images/training/app-navigation-multiple-sizes-strategy-stretch.png"
88 <img src="{@docRoot}images/training/app-navigation-multiple-sizes-strategy-collapse.png"
93 <img src="{@docRoot}images/training/app-navigation-multiple-sizes-strategy-show-hide.png"
98 <img src="{@docRoot}images/training/app-navigation-multiple-sizes-strategy-stack.png"
110 <img src="{@docRoot}images/training/app-navigation-multiple-sizes-multipane-screen-map.png"
/frameworks/base/docs/html/guide/topics/resources/
Dindex.jd16 href="http://android-developers.blogspot.com/2011/07/new-tools-for-managing-screen-sizes.html">
18 <p>Android 3.2 includes new tools for supporting devices with a wide range of screen sizes.
21 different screen sizes.</p>
/frameworks/base/docs/html/training/multiscreen/
Dscreensizes.jd44 <p>This lesson shows you how to support different screen sizes by:</p>
55 <p>To ensure that your layout is flexible and adapts to different screen sizes,
63 hard-coded sizes, your views either use only the space required for that
69 for component sizes rather than specific dimensions. This allows the layout
70 to adapt correctly to different screen sizes and orientations.</p>
73 mode. Notice that the sizes of the components adapt automatically to the
85 combinations of <code>"wrap_content"</code> and <code>"match_parent"</code> sizes.
153 configuration (such as a different layout design for different screen sizes).</p>
332 <p>Supporting different screen sizes usually means that your image resources
333 must also be capable of adapting to different sizes. For example, a button
[all …]
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DSize.java67 public static String listToString(List<Size> sizes) { in listToString() argument
69 for (Size s : sizes) { in listToString()
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
DScriptGroup.java141 int[] sizes = new int[numValues]; in Closure() local
149 values, sizes, depClosures, depFieldIDs); in Closure()
156 values, sizes, depClosures, depFieldIDs); in Closure()
161 fieldIDs, values, sizes, depClosures, depFieldIDs); in Closure()
184 int[] sizes = new int[numValues]; in Closure() local
194 sizes, depClosures, depFieldIDs); in Closure()
199 values, sizes); in Closure()
206 long[] values, int[] sizes, in retrieveValueAndDependenceInfo() argument
229 sizes[index] = 0; in retrieveValueAndDependenceInfo()
233 sizes[index] = vs.size; in retrieveValueAndDependenceInfo()

1234567