Searched defs:minLength (Results 1 - 25 of 55) sorted by relevance

123

/external/deqp/modules/gles2/performance/
H A Des2pShaderCompilationCases.cpp82 inline string toStringWithPadding (T value, int minLength) argument
85 s << std::setfill('0') << std::setw(minLength) << value;
/external/deqp/modules/gles3/performance/
H A Des3pShaderCompilationCases.cpp82 inline string toStringWithPadding (T value, int minLength) argument
85 s << std::setfill('0') << std::setw(minLength) << value;
/external/guava/guava/src/com/google/common/base/
H A DStrings.java80 * Returns a string, of length at least {@code minLength}, consisting of
92 * @param minLength the minimum length the resulting string must have. Can be
98 public static String padStart(String string, int minLength, char padChar) { argument
100 if (string.length() >= minLength) {
103 StringBuilder sb = new StringBuilder(minLength);
104 for (int i = string.length(); i < minLength; i++) {
112 * Returns a string, of length at least {@code minLength}, consisting of
124 * @param minLength the minimum length the resulting string must have. Can be
130 public static String padEnd(String string, int minLength, char padChar) { argument
132 if (string.length() >= minLength) {
[all...]
/external/skia/tests/
H A DPDFDeflateWStreamTest.cpp153 uint32_t minLength = SkTMin(size, local
155 for (uint32_t i = 0; i < minLength; ++i) {
/external/icu/icu4c/source/i18n/
H A Dsortkey.cpp195 int32_t minLength = getLength(); local
197 if (minLength < targetLength) {
199 } else if (minLength == targetLength) {
202 minLength = targetLength;
206 if (minLength > 0) {
207 int diff = uprv_memcmp(src, tgt, minLength);
H A Dcollationweights.cpp392 CollationWeights::allocWeightsInShortRanges(int32_t n, int32_t minLength) { argument
393 // See if the first few minLength and minLength+1 ranges have enough weights.
394 for(int32_t i = 0; i < rangeCount && ranges[i].length <= (minLength + 1); ++i) {
396 // Use the first few minLength and minLength+1 ranges.
397 if(ranges[i].length > minLength) {
398 // Reduce the number of weights from the last minLength+1 range
399 // which might sort before some minLength ranges,
400 // so that we use all weights in the minLength range
423 allocWeightsInMinLengthRanges(int32_t n, int32_t minLength) argument
512 int32_t minLength=ranges[0].length; local
[all...]
/external/guava/guava/src/com/google/common/primitives/
H A DBooleans.java211 * has a length of at least {@code minLength}, it is returned directly.
212 * Otherwise, a new array of size {@code minLength + padding} is returned,
216 * @param minLength the minimum length the returned array must guarantee
219 * @throws IllegalArgumentException if {@code minLength} or {@code padding} is
222 * minimum length {@code minLength}
225 boolean[] array, int minLength, int padding) {
226 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength);
228 return (array.length < minLength)
224 ensureCapacity( boolean[] array, int minLength, int padding) argument
[all...]
H A DBytes.java187 * has a length of at least {@code minLength}, it is returned directly.
188 * Otherwise, a new array of size {@code minLength + padding} is returned,
192 * @param minLength the minimum length the returned array must guarantee
195 * @throws IllegalArgumentException if {@code minLength} or {@code padding} is
198 * minimum length {@code minLength}
201 byte[] array, int minLength, int padding) {
202 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength);
204 return (array.length < minLength)
200 ensureCapacity( byte[] array, int minLength, int padding) argument
[all...]
H A DChars.java331 * has a length of at least {@code minLength}, it is returned directly.
332 * Otherwise, a new array of size {@code minLength + padding} is returned,
336 * @param minLength the minimum length the returned array must guarantee
339 * @throws IllegalArgumentException if {@code minLength} or {@code padding} is
342 * minimum length {@code minLength}
345 char[] array, int minLength, int padding) {
346 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength);
348 return (array.length < minLength)
344 ensureCapacity( char[] array, int minLength, int padding) argument
[all...]
H A DDoubles.java310 * has a length of at least {@code minLength}, it is returned directly.
311 * Otherwise, a new array of size {@code minLength + padding} is returned,
315 * @param minLength the minimum length the returned array must guarantee
318 * @throws IllegalArgumentException if {@code minLength} or {@code padding} is
321 * minimum length {@code minLength}
324 double[] array, int minLength, int padding) {
325 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength);
327 return (array.length < minLength)
323 ensureCapacity( double[] array, int minLength, int padding) argument
[all...]
H A DFloats.java306 * has a length of at least {@code minLength}, it is returned directly.
307 * Otherwise, a new array of size {@code minLength + padding} is returned,
311 * @param minLength the minimum length the returned array must guarantee
314 * @throws IllegalArgumentException if {@code minLength} or {@code padding} is
317 * minimum length {@code minLength}
320 float[] array, int minLength, int padding) {
321 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength);
323 return (array.length < minLength)
319 ensureCapacity( float[] array, int minLength, int padding) argument
[all...]
H A DInts.java377 * has a length of at least {@code minLength}, it is returned directly.
378 * Otherwise, a new array of size {@code minLength + padding} is returned,
382 * @param minLength the minimum length the returned array must guarantee
385 * @throws IllegalArgumentException if {@code minLength} or {@code padding} is
388 * minimum length {@code minLength}
391 int[] array, int minLength, int padding) {
392 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength);
394 return (array.length < minLength)
390 ensureCapacity( int[] array, int minLength, int padding) argument
[all...]
H A DLongs.java409 * has a length of at least {@code minLength}, it is returned directly.
410 * Otherwise, a new array of size {@code minLength + padding} is returned,
414 * @param minLength the minimum length the returned array must guarantee
417 * @throws IllegalArgumentException if {@code minLength} or {@code padding} is
420 * minimum length {@code minLength}
423 long[] array, int minLength, int padding) {
424 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength);
426 return (array.length < minLength)
422 ensureCapacity( long[] array, int minLength, int padding) argument
[all...]
H A DShorts.java375 * has a length of at least {@code minLength}, it is returned directly.
376 * Otherwise, a new array of size {@code minLength + padding} is returned,
380 * @param minLength the minimum length the returned array must guarantee
383 * @throws IllegalArgumentException if {@code minLength} or {@code padding} is
386 * minimum length {@code minLength}
389 short[] array, int minLength, int padding) {
390 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength);
392 return (array.length < minLength)
388 ensureCapacity( short[] array, int minLength, int padding) argument
[all...]
/external/guava/guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/
H A DChars.java280 * has a length of at least {@code minLength}, it is returned directly.
281 * Otherwise, a new array of size {@code minLength + padding} is returned,
285 * @param minLength the minimum length the returned array must guarantee
288 * @throws IllegalArgumentException if {@code minLength} or {@code padding} is
291 * minimum length {@code minLength}
294 char[] array, int minLength, int padding) {
295 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength);
297 return (array.length < minLength)
293 ensureCapacity( char[] array, int minLength, int padding) argument
[all...]
H A DDoubles.java305 * has a length of at least {@code minLength}, it is returned directly.
306 * Otherwise, a new array of size {@code minLength + padding} is returned,
310 * @param minLength the minimum length the returned array must guarantee
313 * @throws IllegalArgumentException if {@code minLength} or {@code padding} is
316 * minimum length {@code minLength}
319 double[] array, int minLength, int padding) {
320 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength);
322 return (array.length < minLength)
318 ensureCapacity( double[] array, int minLength, int padding) argument
[all...]
H A DFloats.java302 * has a length of at least {@code minLength}, it is returned directly.
303 * Otherwise, a new array of size {@code minLength + padding} is returned,
307 * @param minLength the minimum length the returned array must guarantee
310 * @throws IllegalArgumentException if {@code minLength} or {@code padding} is
313 * minimum length {@code minLength}
316 float[] array, int minLength, int padding) {
317 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength);
319 return (array.length < minLength)
315 ensureCapacity( float[] array, int minLength, int padding) argument
[all...]
H A DShorts.java323 * has a length of at least {@code minLength}, it is returned directly.
324 * Otherwise, a new array of size {@code minLength + padding} is returned,
328 * @param minLength the minimum length the returned array must guarantee
331 * @throws IllegalArgumentException if {@code minLength} or {@code padding} is
334 * minimum length {@code minLength}
337 short[] array, int minLength, int padding) {
338 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength);
340 return (array.length < minLength)
336 ensureCapacity( short[] array, int minLength, int padding) argument
[all...]
H A DInts.java325 * has a length of at least {@code minLength}, it is returned directly.
326 * Otherwise, a new array of size {@code minLength + padding} is returned,
330 * @param minLength the minimum length the returned array must guarantee
333 * @throws IllegalArgumentException if {@code minLength} or {@code padding} is
336 * minimum length {@code minLength}
339 int[] array, int minLength, int padding) {
340 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength);
342 return (array.length < minLength)
338 ensureCapacity( int[] array, int minLength, int padding) argument
[all...]
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
H A DCollationWeights.java101 int minLength=ranges[0].length;
103 if(allocWeightsInShortRanges(n, minLength)) { break; }
105 if(minLength == 4) {
111 if(allocWeightsInMinLengthRanges(n, minLength)) { break; }
113 /* no good match, lengthen all minLength ranges and iterate */
114 // printf("lengthen the short ranges from %ld bytes to %ld and iterate\n", minLength, minLength+1);
115 for(int i=0; ranges[i].length==minLength; ++i) {
461 private boolean allocWeightsInShortRanges(int n, int minLength) { argument
462 // See if the first few minLength an
486 allocWeightsInMinLengthRanges(int n, int minLength) argument
[all...]
/external/icu/icu4c/source/common/
H A Duinvchar.c454 int32_t minLength; local
469 minLength= outLength<localLength ? outLength : localLength;
471 while(minLength>0) {
488 --minLength;
499 int32_t minLength; local
514 minLength= outLength<localLength ? outLength : localLength;
516 while(minLength>0) {
535 --minLength;
H A Duidna.cpp79 int32_t minLength; local
85 minLength = s1Len;
88 minLength = s2Len;
93 minLength = s1Len;
103 if(i == minLength) {
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
H A DCollationWeights.java99 int minLength=ranges[0].length;
101 if(allocWeightsInShortRanges(n, minLength)) { break; }
103 if(minLength == 4) {
109 if(allocWeightsInMinLengthRanges(n, minLength)) { break; }
111 /* no good match, lengthen all minLength ranges and iterate */
112 // printf("lengthen the short ranges from %ld bytes to %ld and iterate\n", minLength, minLength+1);
113 for(int i=0; ranges[i].length==minLength; ++i) {
459 private boolean allocWeightsInShortRanges(int n, int minLength) { argument
460 // See if the first few minLength an
484 allocWeightsInMinLengthRanges(int n, int minLength) argument
[all...]
/external/icu/icu4c/source/test/intltest/
H A Dcolldata.cpp644 int32_t minLength = minLengthInChars(ceList, offset, history); local
648 return minLength;
/external/icu/android_icu4j/src/main/java/android/icu/impl/
H A DUtility.java1787 * @param minLength Minimal length.
1791 public static String fromHex(String string, int minLength, String separator) { argument
1792 return fromHex(string, minLength, Pattern.compile(separator != null ? separator : "\\s+"));
1798 * @param minLength Minimal length.
1802 public static String fromHex(String string, int minLength, Pattern separator) { argument
1806 if (part.length() < minLength) {

Completed in 387 milliseconds

123