/external/setupcompat/main/java/com/google/android/setupcompat/internal/ |
D | Validations.java | 28 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/icu4c/source/test/perf/normperf/ |
D | simplenormperf.cpp | 27 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/icu/android_icu4j/src/main/java/android/icu/impl/coll/ |
D | CollationWeights.java | 101 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/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/ |
D | CollationWeights.java | 99 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/icu4c/source/i18n/ |
D | collationweights.cpp | 392 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 …]
|
D | sortkey.cpp | 195 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()
|
/external/guava/android/guava/src/com/google/common/base/ |
D | Strings.java | 90 public static String padStart(String string, int minLength, char padChar) { in padStart() argument 92 if (string.length() >= minLength) { in padStart() 95 StringBuilder sb = new StringBuilder(minLength); in padStart() 96 for (int i = string.length(); i < minLength; i++) { in padStart() 121 public static String padEnd(String string, int minLength, char padChar) { in padEnd() argument 123 if (string.length() >= minLength) { in padEnd() 126 StringBuilder sb = new StringBuilder(minLength); in padEnd() 128 for (int i = string.length(); i < minLength; i++) { in padEnd()
|
/external/guava/guava/src/com/google/common/base/ |
D | Strings.java | 89 public static String padStart(String string, int minLength, char padChar) { in padStart() argument 91 if (string.length() >= minLength) { in padStart() 94 StringBuilder sb = new StringBuilder(minLength); in padStart() 95 for (int i = string.length(); i < minLength; i++) { in padStart() 120 public static String padEnd(String string, int minLength, char padChar) { in padEnd() argument 122 if (string.length() >= minLength) { in padEnd() 125 StringBuilder sb = new StringBuilder(minLength); in padEnd() 127 for (int i = string.length(); i < minLength; i++) { in padEnd()
|
/external/icu/icu4c/source/common/ |
D | uinvchar.cpp | 462 int32_t minLength; in uprv_compareInvAscii() local 477 minLength= outLength<localLength ? outLength : localLength; in uprv_compareInvAscii() 479 while(minLength>0) { in uprv_compareInvAscii() 496 --minLength; in uprv_compareInvAscii() 508 int32_t minLength; in uprv_compareInvEbcdic() local 523 minLength= outLength<localLength ? outLength : localLength; in uprv_compareInvEbcdic() 525 while(minLength>0) { in uprv_compareInvEbcdic() 544 --minLength; in uprv_compareInvEbcdic()
|
D | ucnv_ext.cpp | 953 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/android/guava/src/com/google/common/primitives/ |
D | Booleans.java | 261 public static boolean[] ensureCapacity(boolean[] array, int minLength, int padding) { in ensureCapacity() argument 262 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity() 264 return (array.length < minLength) ? Arrays.copyOf(array, minLength + padding) : array; in ensureCapacity() 313 int minLength = Math.min(left.length, right.length); in compare() local 314 for (int i = 0; i < minLength; i++) { in compare()
|
D | Chars.java | 341 public static char[] ensureCapacity(char[] array, int minLength, int padding) { in ensureCapacity() argument 342 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity() 344 return (array.length < minLength) ? Arrays.copyOf(array, minLength + padding) : array; in ensureCapacity() 393 int minLength = Math.min(left.length, right.length); in compare() local 394 for (int i = 0; i < minLength; i++) { in compare()
|
D | Shorts.java | 392 public static short[] ensureCapacity(short[] array, int minLength, int padding) { in ensureCapacity() argument 393 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity() 395 return (array.length < minLength) ? Arrays.copyOf(array, minLength + padding) : array; in ensureCapacity() 444 int minLength = Math.min(left.length, right.length); in compare() local 445 for (int i = 0; i < minLength; i++) { in compare()
|
D | Floats.java | 335 public static float[] ensureCapacity(float[] array, int minLength, int padding) { in ensureCapacity() argument 336 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity() 338 return (array.length < minLength) ? Arrays.copyOf(array, minLength + padding) : array; in ensureCapacity() 390 int minLength = Math.min(left.length, right.length); in compare() local 391 for (int i = 0; i < minLength; i++) { in compare()
|
D | Doubles.java | 338 public static double[] ensureCapacity(double[] array, int minLength, int padding) { in ensureCapacity() argument 339 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity() 341 return (array.length < minLength) ? Arrays.copyOf(array, minLength + padding) : array; in ensureCapacity() 393 int minLength = Math.min(left.length, right.length); in compare() local 394 for (int i = 0; i < minLength; i++) { in compare()
|
D | Ints.java | 392 public static int[] ensureCapacity(int[] array, int minLength, int padding) { in ensureCapacity() argument 393 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity() 395 return (array.length < minLength) ? Arrays.copyOf(array, minLength + padding) : array; in ensureCapacity() 442 int minLength = Math.min(left.length, right.length); in compare() local 443 for (int i = 0; i < minLength; i++) { in compare()
|
D | Bytes.java | 186 public static byte[] ensureCapacity(byte[] array, int minLength, int padding) { in ensureCapacity() argument 187 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity() 189 return (array.length < minLength) ? Arrays.copyOf(array, minLength + padding) : array; in ensureCapacity()
|
D | Longs.java | 487 public static long[] ensureCapacity(long[] array, int minLength, int padding) { in ensureCapacity() argument 488 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity() 490 return (array.length < minLength) ? Arrays.copyOf(array, minLength + padding) : array; in ensureCapacity() 538 int minLength = Math.min(left.length, right.length); in compare() local 539 for (int i = 0; i < minLength; i++) { in compare()
|
/external/guava/guava/src/com/google/common/primitives/ |
D | Booleans.java | 261 public static boolean[] ensureCapacity(boolean[] array, int minLength, int padding) { in ensureCapacity() argument 262 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity() 264 return (array.length < minLength) ? Arrays.copyOf(array, minLength + padding) : array; in ensureCapacity() 313 int minLength = Math.min(left.length, right.length); in compare() local 314 for (int i = 0; i < minLength; i++) { in compare()
|
D | Chars.java | 341 public static char[] ensureCapacity(char[] array, int minLength, int padding) { in ensureCapacity() argument 342 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity() 344 return (array.length < minLength) ? Arrays.copyOf(array, minLength + padding) : array; in ensureCapacity() 393 int minLength = Math.min(left.length, right.length); in compare() local 394 for (int i = 0; i < minLength; i++) { in compare()
|
D | Shorts.java | 392 public static short[] ensureCapacity(short[] array, int minLength, int padding) { in ensureCapacity() argument 393 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity() 395 return (array.length < minLength) ? Arrays.copyOf(array, minLength + padding) : array; in ensureCapacity() 444 int minLength = Math.min(left.length, right.length); in compare() local 445 for (int i = 0; i < minLength; i++) { in compare()
|
D | Floats.java | 335 public static float[] ensureCapacity(float[] array, int minLength, int padding) { in ensureCapacity() argument 336 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity() 338 return (array.length < minLength) ? Arrays.copyOf(array, minLength + padding) : array; in ensureCapacity() 390 int minLength = Math.min(left.length, right.length); in compare() local 391 for (int i = 0; i < minLength; i++) { in compare()
|
D | Doubles.java | 340 public static double[] ensureCapacity(double[] array, int minLength, int padding) { in ensureCapacity() argument 341 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity() 343 return (array.length < minLength) ? Arrays.copyOf(array, minLength + padding) : array; in ensureCapacity() 395 int minLength = Math.min(left.length, right.length); in compare() local 396 for (int i = 0; i < minLength; i++) { in compare()
|
D | Bytes.java | 186 public static byte[] ensureCapacity(byte[] array, int minLength, int padding) { in ensureCapacity() argument 187 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity() 189 return (array.length < minLength) ? Arrays.copyOf(array, minLength + padding) : array; in ensureCapacity()
|
D | Ints.java | 394 public static int[] ensureCapacity(int[] array, int minLength, int padding) { in ensureCapacity() argument 395 checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); in ensureCapacity() 397 return (array.length < minLength) ? Arrays.copyOf(array, minLength + padding) : array; in ensureCapacity() 444 int minLength = Math.min(left.length, right.length); in compare() local 445 for (int i = 0; i < minLength; i++) { in compare()
|