Home
last modified time | relevance | path

Searched refs:minLength (Results 1 – 25 of 48) sorted by relevance

12

/external/setupcompat/main/java/com/google/android/setupcompat/internal/
DValidations.java28 public static void assertLengthInRange(int length, String name, int minLength, int maxLength) { in assertLengthInRange() argument
30 length <= maxLength && length >= minLength, in assertLengthInRange()
31 String.format("Length of %s should be in the range [%s-%s]", name, minLength, maxLength)); in assertLengthInRange()
41 public static void assertLengthInRange(String input, String name, int minLength, int maxLength) { in assertLengthInRange() argument
43 assertLengthInRange(input.length(), name, minLength, maxLength); in assertLengthInRange() local
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DCollationWeights.java99 int minLength=ranges[0].length; in allocWeights() local
101 if(allocWeightsInShortRanges(n, minLength)) { break; } in allocWeights()
103 if(minLength == 4) { in allocWeights()
109 if(allocWeightsInMinLengthRanges(n, minLength)) { break; } in allocWeights()
113 for (int i = 0; i < rangeCount && ranges[i].length == minLength; ++i) { in allocWeights()
459 private boolean allocWeightsInShortRanges(int n, int minLength) { in allocWeightsInShortRanges() argument
461 for(int i = 0; i < rangeCount && ranges[i].length <= (minLength + 1); ++i) { in allocWeightsInShortRanges()
464 if(ranges[i].length > minLength) { in allocWeightsInShortRanges()
484 private boolean allocWeightsInMinLengthRanges(int n, int minLength) { in allocWeightsInMinLengthRanges() argument
491 ranges[minLengthRangeCount].length == minLength; in allocWeightsInMinLengthRanges()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
DCollationWeights.java101 int minLength=ranges[0].length; in allocWeights() local
103 if(allocWeightsInShortRanges(n, minLength)) { break; } in allocWeights()
105 if(minLength == 4) { in allocWeights()
111 if(allocWeightsInMinLengthRanges(n, minLength)) { break; } in allocWeights()
115 for (int i = 0; i < rangeCount && ranges[i].length == minLength; ++i) { in allocWeights()
461 private boolean allocWeightsInShortRanges(int n, int minLength) { in allocWeightsInShortRanges() argument
463 for(int i = 0; i < rangeCount && ranges[i].length <= (minLength + 1); ++i) { in allocWeightsInShortRanges()
466 if(ranges[i].length > minLength) { in allocWeightsInShortRanges()
486 private boolean allocWeightsInMinLengthRanges(int n, int minLength) { in allocWeightsInMinLengthRanges() argument
493 ranges[minLengthRangeCount].length == minLength; in allocWeightsInMinLengthRanges()
[all …]
/external/icu/icu4c/source/test/perf/normperf/
Dsimplenormperf.cpp27 static UnicodeString getMixed(int32_t minLength) { in getMixed() argument
28 return extend(UnicodeString(latin1).append(japanese).append(arabic), minLength); in getMixed()
30 static UnicodeString getLatin1(int32_t minLength) { return extend(latin1, minLength); } in getLatin1() argument
31 …static UnicodeString getLowercaseLatin1(int32_t minLength) { return extend(lowercaseLatin1, minLen… in getLowercaseLatin1() argument
32 static UnicodeString getASCII(int32_t minLength) { return extend(ascii, minLength); } in getASCII() argument
33 static UnicodeString getJapanese(int32_t minLength) { return extend(japanese, minLength); } in getJapanese() argument
55 static UnicodeString extend(const UnicodeString &s, int32_t minLength) { in extend() argument
57 while (result.length() < minLength) { in extend()
/external/guava/guava/src/com/google/common/base/
DStrings.java98 public static String padStart(String string, int minLength, char padChar) { in padStart() argument
100 if (string.length() >= minLength) { in padStart()
103 StringBuilder sb = new StringBuilder(minLength); in padStart()
104 for (int i = string.length(); i < minLength; i++) { in padStart()
130 public static String padEnd(String string, int minLength, char padChar) { in padEnd() argument
132 if (string.length() >= minLength) { in padEnd()
135 StringBuilder sb = new StringBuilder(minLength); in padEnd()
137 for (int i = string.length(); i < minLength; i++) { in padEnd()
/external/icu/icu4c/source/i18n/
Dcollationweights.cpp392 CollationWeights::allocWeightsInShortRanges(int32_t n, int32_t minLength) { in allocWeightsInShortRanges() argument
394 for(int32_t i = 0; i < rangeCount && ranges[i].length <= (minLength + 1); ++i) { in allocWeightsInShortRanges()
397 if(ranges[i].length > minLength) { in allocWeightsInShortRanges()
423 CollationWeights::allocWeightsInMinLengthRanges(int32_t n, int32_t minLength) { in allocWeightsInMinLengthRanges() argument
430 ranges[minLengthRangeCount].length == minLength; in allocWeightsInMinLengthRanges()
435 int32_t nextCountBytes = countBytes(minLength + 1); in allocWeightsInMinLengthRanges()
478 ranges[0].end = incWeightByOffset(start, minLength, count1 - 1); in allocWeightsInMinLengthRanges()
481 ranges[1].start = incWeight(ranges[0].end, minLength); in allocWeightsInMinLengthRanges()
483 ranges[1].length = minLength; // +1 when lengthened in allocWeightsInMinLengthRanges()
512 int32_t minLength=ranges[0].length; in allocWeights() local
[all …]
Dsortkey.cpp195 int32_t minLength = getLength(); in compareTo() local
197 if (minLength < targetLength) { in compareTo()
199 } else if (minLength == targetLength) { in compareTo()
202 minLength = targetLength; in compareTo()
206 if (minLength > 0) { in compareTo()
207 int diff = uprv_memcmp(src, tgt, minLength); in compareTo()
Dcollationweights.h99 UBool allocWeightsInShortRanges(int32_t n, int32_t minLength);
100 UBool allocWeightsInMinLengthRanges(int32_t n, int32_t minLength);
/external/icu/icu4c/source/common/
Duinvchar.cpp455 int32_t minLength; in uprv_compareInvAscii() local
470 minLength= outLength<localLength ? outLength : localLength; in uprv_compareInvAscii()
472 while(minLength>0) { in uprv_compareInvAscii()
489 --minLength; in uprv_compareInvAscii()
501 int32_t minLength; in uprv_compareInvEbcdic() local
516 minLength= outLength<localLength ? outLength : localLength; in uprv_compareInvEbcdic()
518 while(minLength>0) { in uprv_compareInvEbcdic()
537 --minLength; in uprv_compareInvEbcdic()
Ducnv_ext.cpp953 extSetUseMapping(UConverterUnicodeSet which, int32_t minLength, uint32_t value) { in extSetUseMapping() argument
974 return UCNV_EXT_FROM_U_GET_LENGTH(value)>=minLength; in extSetUseMapping()
982 int32_t minLength, in ucnv_extGetUnicodeSetString() argument
1000 if(extSetUseMapping(which, minLength, value)) { in ucnv_extGetUnicodeSetString()
1019 sharedData, cx, sa, which, minLength, in ucnv_extGetUnicodeSetString()
1023 } else if(extSetUseMapping(which, minLength, value)) { in ucnv_extGetUnicodeSetString()
1040 int32_t st1, stage1Length, st2, st3, minLength; in ucnv_extGetUnicodeSet() local
1061 minLength=3; in ucnv_extGetUnicodeSet()
1066 minLength=2; in ucnv_extGetUnicodeSet()
1068 minLength=1; in ucnv_extGetUnicodeSet()
[all …]
/external/guava/guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/
DChars.java294 char[] array, int minLength, int padding) { in ensureCapacity() argument
295 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity()
297 return (array.length < minLength) in ensureCapacity()
298 ? copyOf(array, minLength + padding) in ensureCapacity()
359 int minLength = Math.min(left.length, right.length); in compare() local
360 for (int i = 0; i < minLength; i++) { in compare()
DFloats.java316 float[] array, int minLength, int padding) { in ensureCapacity() argument
317 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity()
319 return (array.length < minLength) in ensureCapacity()
320 ? copyOf(array, minLength + padding) in ensureCapacity()
385 int minLength = Math.min(left.length, right.length); in compare() local
386 for (int i = 0; i < minLength; i++) { in compare()
DDoubles.java319 double[] array, int minLength, int padding) { in ensureCapacity() argument
320 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity()
322 return (array.length < minLength) in ensureCapacity()
323 ? copyOf(array, minLength + padding) in ensureCapacity()
388 int minLength = Math.min(left.length, right.length); in compare() local
389 for (int i = 0; i < minLength; i++) { in compare()
DShorts.java337 short[] array, int minLength, int padding) { in ensureCapacity() argument
338 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity()
340 return (array.length < minLength) in ensureCapacity()
341 ? copyOf(array, minLength + padding) in ensureCapacity()
401 int minLength = Math.min(left.length, right.length); in compare() local
402 for (int i = 0; i < minLength; i++) { in compare()
DInts.java339 int[] array, int minLength, int padding) { in ensureCapacity() argument
340 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity()
342 return (array.length < minLength) in ensureCapacity()
343 ? copyOf(array, minLength + padding) in ensureCapacity()
402 int minLength = Math.min(left.length, right.length); in compare() local
403 for (int i = 0; i < minLength; i++) { in compare()
/external/guava/guava/src/com/google/common/primitives/
DBooleans.java225 boolean[] array, int minLength, int padding) { in ensureCapacity() argument
226 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity()
228 return (array.length < minLength) in ensureCapacity()
229 ? copyOf(array, minLength + padding) in ensureCapacity()
289 int minLength = Math.min(left.length, right.length); in compare() local
290 for (int i = 0; i < minLength; i++) { in compare()
DChars.java345 char[] array, int minLength, int padding) { in ensureCapacity() argument
346 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity()
348 return (array.length < minLength) in ensureCapacity()
349 ? copyOf(array, minLength + padding) in ensureCapacity()
410 int minLength = Math.min(left.length, right.length); in compare() local
411 for (int i = 0; i < minLength; i++) { in compare()
DFloats.java320 float[] array, int minLength, int padding) { in ensureCapacity() argument
321 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity()
323 return (array.length < minLength) in ensureCapacity()
324 ? copyOf(array, minLength + padding) in ensureCapacity()
389 int minLength = Math.min(left.length, right.length); in compare() local
390 for (int i = 0; i < minLength; i++) { in compare()
DShorts.java389 short[] array, int minLength, int padding) { in ensureCapacity() argument
390 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity()
392 return (array.length < minLength) in ensureCapacity()
393 ? copyOf(array, minLength + padding) in ensureCapacity()
453 int minLength = Math.min(left.length, right.length); in compare() local
454 for (int i = 0; i < minLength; i++) { in compare()
DDoubles.java324 double[] array, int minLength, int padding) { in ensureCapacity() argument
325 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity()
327 return (array.length < minLength) in ensureCapacity()
328 ? copyOf(array, minLength + padding) in ensureCapacity()
393 int minLength = Math.min(left.length, right.length); in compare() local
394 for (int i = 0; i < minLength; i++) { in compare()
DLongs.java423 long[] array, int minLength, int padding) { in ensureCapacity() argument
424 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity()
426 return (array.length < minLength) in ensureCapacity()
427 ? copyOf(array, minLength + padding) in ensureCapacity()
487 int minLength = Math.min(left.length, right.length); in compare() local
488 for (int i = 0; i < minLength; i++) { in compare()
DInts.java391 int[] array, int minLength, int padding) { in ensureCapacity() argument
392 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity()
394 return (array.length < minLength) in ensureCapacity()
395 ? copyOf(array, minLength + padding) in ensureCapacity()
454 int minLength = Math.min(left.length, right.length); in compare() local
455 for (int i = 0; i < minLength; i++) { in compare()
DBytes.java201 byte[] array, int minLength, int padding) { in ensureCapacity() argument
202 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity()
204 return (array.length < minLength) in ensureCapacity()
205 ? copyOf(array, minLength + padding) in ensureCapacity()
/external/cldr/tools/java/org/unicode/cldr/util/
DZoneInflections.java151 int minLength = inflectionPoints.size(); in compareTo() local
152 if (minLength < that.inflectionPoints.size()) in compareTo()
153 minLength = that.inflectionPoints.size(); in compareTo()
154 for (int i = 0; i < minLength; ++i) { in compareTo()
/external/python/pyasn1/pyasn1/codec/cer/
Dencoder.py38 minLength = 12 variable in TimeEncoderMixIn
54 if not self.minLength < len(octets) < self.maxLength:
74 minLength = 12 variable in GeneralizedTimeEncoder
79 minLength = 10 variable in UTCTimeEncoder

12