/frameworks/base/core/java/android/hardware/camera2/legacy/ |
H A D | SizeAreaComparator.java | 62 * @param sizes a non-{@code null} list of non-{@code null} sizes 65 * @throws NullPointerException if {@code sizes} or any elements in it were {@code null} 67 public static Camera.Size findLargestByArea(List<Camera.Size> sizes) { argument 68 checkNotNull(sizes, "sizes must not be null"); 70 return Collections.max(sizes, new SizeAreaComparator());
|
H A D | LegacyCameraDevice.java | 349 Size[] sizes = streamConfigurations.getOutputSizes(surfaceType); 350 if (sizes == null) { 356 // IMPLEMENTATION_DEFINED output sizes, and is publicly visible in the 358 sizes = streamConfigurations.getOutputSizes(ImageFormat.YUV_420_888); 360 sizes = streamConfigurations.getOutputSizes(ImageFormat.JPEG); 364 if (!ArrayUtils.contains(sizes, s)) { 365 if (flexibleConsumer && (s = findClosestSize(s, sizes)) != null) { 368 String reason = (sizes == null) ? "format is invalid." : 369 ("size not in valid set: " + Arrays.toString(sizes));
|
H A D | LegacyMetadataMapper.java | 260 * Implementation-defined (preview, recording, etc) -> use camera1 preview sizes 261 * YUV_420_888 cpu callbacks -> use camera1 preview sizes 262 * Other preview callbacks (CPU) -> use camera1 preview sizes 263 * JPEG still capture -> use camera1 still capture sizes 277 * - Work-around the HAL limitations by removing all of the largest preview sizes 294 // Now remove preview sizes from the end (largest->smallest) until aspect ratio matches 730 Size[] sizes = convertSizeListToArray(thumbnailSizes); 731 Arrays.sort(sizes, new android.hardware.camera2.utils.SizeAreaComparator()); 732 m.set(JPEG_AVAILABLE_THUMBNAIL_SIZES, sizes); 1022 ArrayList<StreamConfiguration> configs, int format, List<Camera.Size> sizes) { 1021 appendStreamConfig( ArrayList<StreamConfiguration> configs, int format, List<Camera.Size> sizes) argument [all...] |
H A D | LegacyRequestMapper.java | 423 List<Camera.Size> sizes = params.getSupportedJpegThumbnailSizes(); 425 if (sizes != null && sizes.size() > 0) { 427 boolean invalidSize = (s == null) ? false : !ParameterUtils.containsSize(sizes,
|
H A D | ParameterUtils.java | 243 * Convert a camera API1 list of sizes into a util list of sizes 248 List<Size> sizes = new ArrayList<>(sizeList.size()); 250 sizes.add(new Size(s.width, s.height)); 252 return sizes; 256 * Convert a camera API1 list of sizes into an array of sizes 270 * Check if the camera API1 list of sizes contains a size with the given dimens.
|
/frameworks/base/core/java/android/hardware/camera2/utils/ |
H A D | SizeAreaComparator.java | 61 * @param sizes a non-{@code null} list of non-{@code null} sizes 64 * @throws NullPointerException if {@code sizes} or any elements in it were {@code null} 66 public static Size findLargestByArea(List<Size> sizes) { argument 67 checkNotNull(sizes, "sizes must not be null"); 69 return Collections.max(sizes, new SizeAreaComparator());
|
/frameworks/base/core/tests/coretests/src/android/text/ |
H A D | DynamicLayoutBlocksTest.java | 69 private void assertState(int[] sizes, int[] indices) { argument 72 assertEquals(sizes.length, dl.getNumberOfBlocks()); 75 int[] ends = new int[sizes.length]; 77 ends[i] = i == 0 ? (sizes[0] == 0 ? 0 : sizes[0] - 1) : ends[i - 1] + sizes[i]; 86 private void assertState(int[] sizes) { argument 87 int[] ids = new int[sizes.length]; 88 for (int i = 0; i < sizes.length; i++) { 91 assertState(sizes, id [all...] |
/frameworks/rs/ |
H A D | rsClosure.cpp | 15 const int* sizes, size_t sizes_length, 26 sizes, (const Closure**)depClosures, 36 const int* sizes, const size_t sizes_length) { 41 sizes); 64 const int* sizes, 82 mGlobals[fieldIDs[i]] = make_pair(values[i], sizes[i]); 115 const int64_t* values, const int* sizes) : 122 mGlobals[fieldIDs[i]] = make_pair(values[i], sizes[i]); 11 rsi_ClosureCreate(Context* context, RsScriptKernelID kernelID, RsAllocation returnValue, RsScriptFieldID* fieldIDs, size_t fieldIDs_length, const int64_t* values, size_t values_length, const int* sizes, size_t sizes_length, RsClosure* depClosures, size_t depClosures_length, RsScriptFieldID* depFieldIDs, size_t depFieldIDs_length) argument 32 rsi_InvokeClosureCreate(Context* context, RsScriptInvokeID invokeID, const void* params, const size_t paramLength, const RsScriptFieldID* fieldIDs, const size_t fieldIDs_length, const int64_t* values, const size_t values_length, const int* sizes, const size_t sizes_length) argument 58 Closure(Context* context, const ScriptKernelID* kernelID, Allocation* returnValue, const int numValues, const ScriptFieldID** fieldIDs, const int64_t* values, const int* sizes, const Closure** depClosures, const ScriptFieldID** depFieldIDs) argument 112 Closure(Context* context, const ScriptInvokeID* invokeID, const void* params, const size_t paramLength, const size_t numValues, const ScriptFieldID** fieldIDs, const int64_t* values, const int* sizes) argument
|
H A D | rsClosure.h | 28 const int* sizes, // size for data type. -1 indicates an allocation. 38 const int* sizes); // size for data type. -1 indicates an allocation.
|
/frameworks/av/include/camera/ |
H A D | CameraParameters2.h | 68 void getSupportedPreviewSizes(Vector<Size> &sizes) const; 83 // in pixels for video frames. If sizes returned from the method 88 void getSupportedVideoSizes(Vector<Size> &sizes) const; 91 // supported preview sizes returned from getSupportedPreviewSizes(). 106 void getSupportedPictureSizes(Vector<Size> &sizes) const;
|
H A D | CameraParameters.h | 61 void getSupportedPreviewSizes(Vector<Size> &sizes) const; 76 // in pixels for video frames. If sizes returned from the method 81 void getSupportedVideoSizes(Vector<Size> &sizes) const; 84 // supported preview sizes returned from getSupportedPreviewSizes(). 98 void getSupportedPictureSizes(Vector<Size> &sizes) const; 121 // Supported preview frame sizes in pixels. 172 // Supported EXIF thumbnail sizes (width x height). 0x0 means not thumbnail 449 // The width and height must be one of the supported sizes retrieved 470 // The width and height must be one of the supported sizes retrieved
|
/frameworks/av/camera/ |
H A D | CameraParameters2.cpp | 210 static void parseSizesList(const char *sizesStr, Vector<Size> &sizes) 223 ALOGE("Picture sizes string \"%s\" contains invalid character.", sizesStr); 226 sizes.push(Size(width, height)); 259 void CameraParameters2::getSupportedPreviewSizes(Vector<Size> &sizes) const 262 parseSizesList(previewSizesStr, sizes); 280 void CameraParameters2::getSupportedVideoSizes(Vector<Size> &sizes) const 283 parseSizesList(videoSizesStr, sizes); 336 void CameraParameters2::getSupportedPictureSizes(Vector<Size> &sizes) const 339 parseSizesList(pictureSizesStr, sizes);
|
H A D | CameraParameters.cpp | 322 static void parseSizesList(const char *sizesStr, Vector<Size> &sizes) argument 335 ALOGE("Picture sizes string \"%s\" contains invalid character.", sizesStr); 338 sizes.push(Size(width, height)); 371 void CameraParameters::getSupportedPreviewSizes(Vector<Size> &sizes) const 374 parseSizesList(previewSizesStr, sizes); 392 void CameraParameters::getSupportedVideoSizes(Vector<Size> &sizes) const 395 parseSizesList(videoSizesStr, sizes); 442 void CameraParameters::getSupportedPictureSizes(Vector<Size> &sizes) const 445 parseSizesList(pictureSizesStr, sizes);
|
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
H A D | Size.java | 64 * @param sizes List of this class to encode. 67 public static String listToString(List<Size> sizes) { argument 69 for (Size s : sizes) {
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
H A D | StreamConfigurationMap.java | 49 * <p>This is the authoritative list for all <!-- input/ -->output formats (and sizes respectively 85 * and thus needs a separate list of slow high-resolution output sizes 136 // For each format, track how many sizes there are available to configure 161 // For each depth format, track how many sizes there are available to configure 258 * Get the supported input sizes for this input format. 264 * @return a non-empty array of sizes, or {@code null} if the format was not available. 435 * Get a list of sizes compatible with {@code klass} to use as an output. 439 * sizes for {@link ImageFormat#PRIVATE}. For example, {@link android.media.ImageReader} 441 * only return the sizes for {@link ImageFormat#PRIVATE} for {@link android.media.ImageReader} 453 * an array of supported sizes fo [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
H A D | CameraTestUtils.java | 950 * Get the available output sizes for the user-defined {@code format}. 975 if (VERBOSE) Log.v(TAG, "Supported sizes are: " + Arrays.deepToString(availableSizes)); 980 * Get the available output sizes for the given class. 1004 if (VERBOSE) Log.v(TAG, "Supported sizes are: " + Arrays.deepToString(availableSizes)); 1011 * <p>If two the areas of two sizes are same, compare the widths.</p> 1022 * Get sorted size list in descending order. Remove the sizes larger than 1031 "Available sizes for SurfaceHolder class should not be empty"); 1033 Log.v(TAG, "Supported sizes are: " + Arrays.deepToString(rawSizes)); 1040 List<Size> sizes = new ArrayList<Size>(); 1043 sizes 1193 getMaxSize(Size... sizes) argument [all...] |
H A D | StaticMetadata.java | 548 * Get available thumbnail sizes and do the sanity check. 550 * @return The array of available thumbnail sizes 554 Size[] sizes = getValueFromKeyNonNull(key); 555 final List<Size> sizeList = Arrays.asList(sizes); 572 return sizes; 836 Assert.assertTrue("No capture sizes available for RAW format!", 848 return assertArrayContainsAnyOf("Available sizes for RAW format" + 1245 * Get supported raw output sizes and do the check. 1255 * Get supported jpeg output sizes and do the check. 1320 * Get available sizes fo [all...] |
/frameworks/av/media/libstagefright/ |
H A D | CameraSource.cpp | 248 * of the supported sizes. 251 * @param suppportedSizes the vector of sizes that we check against 278 * Query the camera to retrieve the supported video frame sizes 284 * @param sizes returns the vector of Size objects for the 285 * supported video frame sizes advertised by the camera. 290 Vector<Size>& sizes) { 293 params.getSupportedVideoSizes(sizes); 294 if (sizes.size() == 0) { 296 params.getSupportedPreviewSizes(sizes); 336 Vector<Size> sizes; local 287 getSupportedVideoSizes( const CameraParameters& params, bool *isSetVideoSizeSupported, Vector<Size>& sizes) argument 418 Vector<Size> sizes; local [all...] |
/frameworks/base/rs/java/android/renderscript/ |
H A D | ScriptGroup.java | 128 int[] sizes = new int[numValues]; 136 values, sizes, depClosures, depFieldIDs); 143 values, sizes, depClosures, depFieldIDs); 148 fieldIDs, values, sizes, depClosures, depFieldIDs); 168 int[] sizes = new int[numValues]; 178 sizes, depClosures, depFieldIDs); 183 values, sizes); 209 long[] values, int[] sizes, 232 sizes[index] = 0; 236 sizes[inde 207 retrieveValueAndDependenceInfo(RenderScript rs, int index, Script.FieldID fid, Object obj, long[] values, int[] sizes, long[] depClosures, long[] depFieldIDs) argument [all...] |
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
H A D | ScriptGroup.java | 141 int[] sizes = new int[numValues]; 149 values, sizes, depClosures, depFieldIDs); 156 values, sizes, depClosures, depFieldIDs); 161 fieldIDs, values, sizes, depClosures, depFieldIDs); 184 int[] sizes = new int[numValues]; 194 sizes, depClosures, depFieldIDs); 199 values, sizes); 206 long[] values, int[] sizes, 229 sizes[index] = 0; 233 sizes[inde 204 retrieveValueAndDependenceInfo(RenderScript rs, int index, Script.FieldID fid, Object obj, long[] values, int[] sizes, long[] depClosures, long[] depFieldIDs) argument [all...] |
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
H A D | Parameters.h | 364 status_t getFilteredSizes(Size limit, Vector<Size> *sizes); 392 // Helper function to get available output jpeg sizes 396 Size getMaxSize(const Vector<Size>& sizes);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
H A D | DataConnection.java | 761 String sizes = null; 777 sizes = split[1]; 782 if (sizes == null) { 788 sizes = TCP_BUFFER_SIZES_GPRS; 791 sizes = TCP_BUFFER_SIZES_EDGE; 794 sizes = TCP_BUFFER_SIZES_UMTS; 797 sizes = TCP_BUFFER_SIZES_1XRTT; 802 sizes = TCP_BUFFER_SIZES_EVDO; 805 sizes = TCP_BUFFER_SIZES_EHRPD; 808 sizes [all...] |
/frameworks/av/services/camera/libcameraservice/ |
H A D | CameraFlashlight.cpp | 445 // if stream configuration is not found, try available processed sizes. 793 Vector<Size> sizes; local 795 mParameters.getSupportedPreviewSizes(sizes); 796 for (size_t i = 0; i < sizes.size(); i++) { 797 Size s = sizes[i];
|
/frameworks/av/media/libstagefright/webm/ |
H A D | WebmWriter.cpp | 498 uint64_t sizes[nElems]; local 507 sizes[i] = e->mSize; 514 mInfoSize = sizes[3];
|
/frameworks/rs/api/ |
H A D | rs_value_types.spec | 73 v4.yzx = v3.rg; // Invalid: mismatched sizes<br/>
|