/libcore/ojluni/src/main/java/java/util/ |
D | DualPivotQuicksort.java | 155 static void sort(int[] a, int parallelism, int low, int high) { in sort() argument 156 int size = high - low; in sort() 161 new Sorter(null, a, b, low, size, low, depth).invoke(); in sort() 163 sort(null, a, 0, low, high); in sort() 178 static void sort(Sorter sorter, int[] a, int bits, int low, int high) { in sort() argument 180 int end = high - 1, size = high - low; in sort() 186 mixedInsertionSort(a, low, high - 3 * ((size >> 5) << 3), high); in sort() 194 insertionSort(a, low, high); in sort() 203 && tryMergeRuns(sorter, a, low, size)) { in sort() 212 heapSort(a, low, high); in sort() [all …]
|
D | Arrays.java | 1168 int low, in mergeSort() argument 1171 int length = high - low; in mergeSort() 1175 for (int i=low; i<high; i++) in mergeSort() 1176 for (int j=i; j>low && in mergeSort() 1183 int destLow = low; in mergeSort() 1185 low += off; in mergeSort() 1187 int mid = (low + high) >>> 1; in mergeSort() 1188 mergeSort(dest, src, low, mid, -off); in mergeSort() 1194 System.arraycopy(src, low, dest, destLow, length); in mergeSort() 1199 for(int i = destLow, p = low, q = mid; i < destHigh; i++) { in mergeSort() [all …]
|
D | Collections.java | 268 int low = 0; in indexedBinarySearch() local 271 while (low <= high) { in indexedBinarySearch() 272 int mid = (low + high) >>> 1; in indexedBinarySearch() 277 low = mid + 1; in indexedBinarySearch() 283 return -(low + 1); // key not found in indexedBinarySearch() 289 int low = 0; in iteratorBinarySearch() local 293 while (low <= high) { in iteratorBinarySearch() 294 int mid = (low + high) >>> 1; in iteratorBinarySearch() 299 low = mid + 1; in iteratorBinarySearch() 305 return -(low + 1); // key not found in iteratorBinarySearch() [all …]
|
D | HexFormat.java | 965 int low = fromHexDigit(string.charAt(index + 1)); in fromHexDigits() local 966 return (high << 4) | low; in fromHexDigits()
|
/libcore/ojluni/src/test/java/util/Arrays/ |
D | SortingHelper.java | 106 public void sort(Object a, int low, int high) { in sort() argument 131 (int[]) a, SEQUENTIAL, low, high); in sort() local 134 (long[]) a, SEQUENTIAL, low, high); in sort() local 137 (byte[]) a, low, high); in sort() local 140 (char[]) a, SEQUENTIAL, low, high); in sort() local 143 (short[]) a, SEQUENTIAL, low, high); in sort() local 146 (float[]) a, SEQUENTIAL, low, high); in sort() local 149 (double[]) a, SEQUENTIAL, low, high); in sort() local 235 public void sort(Object a, int low, int high) { in sort() argument 260 (int[]) a, PARALLEL, low, high); in sort() local [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | StringBufferTest.java | 34 char high = '\uD83D', low = '\uDE02'; in testChars() local 35 StringBuffer surrogateCP = new StringBuffer().append(new char[]{high, low, low}); in testChars() 36 assertTrue(Arrays.equals(new int[]{high, low, low}, surrogateCP.chars().toArray())); in testChars() 48 char high = '\uD83D', low = '\uDE02'; in testCodePoints() local 49 StringBuffer surrogateCP = new StringBuffer().append(new char[]{high, low, low, '0'}); in testCodePoints() 50 assertEquals(Character.toCodePoint(high, low), surrogateCP.codePoints().toArray()[0]); in testCodePoints() 51 assertEquals((int) low, surrogateCP.codePoints().toArray()[1]); // Unmatched surrogate. in testCodePoints()
|
D | StringBuilderTest.java | 144 char high = '\uD83D', low = '\uDE02'; in testChars() local 145 StringBuilder surrogateCP = new StringBuilder().append(new char[]{high, low, low}); in testChars() 146 assertTrue(Arrays.equals(new int[]{high, low, low}, surrogateCP.chars().toArray())); in testChars() 158 char high = '\uD83D', low = '\uDE02'; in testCodePoints() local 159 StringBuilder surrogateCP = new StringBuilder().append(new char[]{high, low, low, '0'}); in testCodePoints() 160 assertEquals(Character.toCodePoint(high, low), surrogateCP.codePoints().toArray()[0]); in testCodePoints() 161 assertEquals((int) low, surrogateCP.codePoints().toArray()[1]); // Unmatched surrogate. in testCodePoints()
|
D | StringTest.java | 722 char high = '\uD83D', low = '\uDE02'; in testChars() local 723 String surrogateCP = new String(new char[]{high, low, low}); in testChars() 724 assertTrue(Arrays.equals(new int[]{high, low, low}, surrogateCP.chars().toArray())); in testChars() 736 char high = '\uD83D', low = '\uDE02'; in testCodePoints() local 737 String surrogateCP = new String(new char[]{high, low, low, '0'}); in testCodePoints() 738 assertEquals(Character.toCodePoint(high, low), surrogateCP.codePoints().toArray()[0]); in testCodePoints() 739 assertEquals((int) low, surrogateCP.codePoints().toArray()[1]); // Unmatched surrogate. in testCodePoints()
|
/libcore/ojluni/src/main/java/java/io/ |
D | StreamTokenizer.java | 274 public void wordChars(int low, int hi) { in wordChars() argument 275 if (low < 0) in wordChars() 276 low = 0; in wordChars() 279 while (low <= hi) in wordChars() 280 ctype[low++] |= CT_ALPHA; in wordChars() 295 public void whitespaceChars(int low, int hi) { in whitespaceChars() argument 296 if (low < 0) in whitespaceChars() 297 low = 0; in whitespaceChars() 300 while (low <= hi) in whitespaceChars() 301 ctype[low++] = CT_WHITESPACE; in whitespaceChars() [all …]
|
/libcore/luni/src/test/java/libcore/java/nio/ |
D | CharBufferTest.java | 49 char high = '\uD83D', low = '\uDE02'; in testCodePoints() local 50 String surrogateCP = new String(new char[]{high, low, low, '0'}); in testCodePoints() 53 assertEquals(Character.toCodePoint(high, low), cb.codePoints().toArray()[0]); in testCodePoints() 54 assertEquals((int) low, cb.codePoints().toArray()[1]); // Unmatched surrogate. in testCodePoints()
|
/libcore/ojluni/src/test/java/util/HexFormat/ |
D | HexFormatTest.java | 393 int low = 2; in testParseHexStringRange() local 397 s.substring(low * stride, high * stride - delimiter.length())); in testParseHexStringRange() 398 byte[] actual = hex.parseHex(s, low * stride, in testParseHexStringRange() 402 assertEquals(actual.length, (high - low), "array length"); in testParseHexStringRange() 403 int mismatch = Arrays.mismatch(expected, low, high, actual, 0, high - low); in testParseHexStringRange() 422 int low = 1; in testFormatHexRangeString() local 424 String s = hex.formatHex(expected, low, high); in testFormatHexRangeString() 429 int mismatch = Arrays.mismatch(expected, low, high, actual, 0, high - low); in testFormatHexRangeString() 452 int low = 1; in testFormatHexRangeAppendable() local 455 StringBuilder s = hex.formatHex(sb, expected, low, high); in testFormatHexRangeAppendable() [all …]
|
/libcore/ojluni/src/main/java/jdk/internal/math/ |
D | FloatingDecimal.java | 571 boolean low, high; in dtoa() 611 low = (b < m ); in dtoa() 627 high = low = false; in dtoa() 629 while( ! low && ! high ){ in dtoa() 635 low = (b < m ); in dtoa() 643 low = true; in dtoa() 665 low = (b < m ); in dtoa() 681 high = low = false; in dtoa() 683 while( ! low && ! high ){ in dtoa() 689 low = (b < m ); in dtoa() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/ |
D | Pattern2Test.java | 852 if (UBlocks[i].low > 0) { in testUnicodeBlocks() 853 m = p.matcher(Character.toString((char) (UBlocks[i].low - 1))); in testUnicodeBlocks() 856 for (j = UBlocks[i].low; j <= UBlocks[i].high; j++) { in testUnicodeBlocks() 867 if (UBlocks[i].low > 0) { in testUnicodeBlocks() 868 m = p.matcher(Character.toString((char) (UBlocks[i].low - 1))); in testUnicodeBlocks() 871 for (j = UBlocks[i].low; j < UBlocks[i].high; j++) { in testUnicodeBlocks() 1080 public UBInfo(int low, int high, String name) { in UBInfo() argument 1082 this.low = low; in UBInfo() 1088 public int low, high; field in Pattern2Test.UBInfo
|
/libcore/xml/src/main/java/com/android/org/kxml2/io/ |
D | KXmlSerializer.java | 630 private void writeSurrogate(char high, char low) throws IOException { in writeSurrogate() argument 631 if (!Character.isLowSurrogate(low)) { in writeSurrogate() 633 " U+" + Integer.toHexString((int) low) + ")"); in writeSurrogate() 638 int codePoint = Character.toCodePoint(high, low); in writeSurrogate()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Integer.java | 1142 static final int low = -128; 1170 int size = (high - low) + 1; 1175 int j = low; 1206 if (i >= IntegerCache.low && i <= IntegerCache.high) 1207 return IntegerCache.cache[i + (-IntegerCache.low)];
|
D | Character.java | 8893 public static boolean isSurrogatePair(char high, char low) { in isSurrogatePair() argument 8894 return isHighSurrogate(high) && isLowSurrogate(low); in isSurrogatePair() 8929 public static int toCodePoint(char high, char low) { in toCodePoint() argument 8934 return ((high << 10) + low) + (MIN_SUPPLEMENTARY_CODE_POINT in toCodePoint()
|
/libcore/ojluni/src/test/java/lang/StrictMath/ |
D | FdlibmTranslit.java | 49 private static double __LO(double x, int low) { in __LO() argument 52 (low & 0x0000_0000_FFFF_FFFFL)); in __LO()
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ |
D | Integer.java | 334 static final int low = -128; // 0xffffff80 field in Integer.IntegerCache
|
D | Character.java | 91 public static boolean isSurrogatePair(char high, char low) { in isSurrogatePair() argument 99 public static int toCodePoint(char high, char low) { in toCodePoint() argument
|
/libcore/expectations/ |
D | knownfailures.txt | 1597 description: "low-impact XML bugs:", 1603 description: "low-impact XML bugs:", 1609 description: "low-impact XML bugs:", 1615 description: "low-impact XML bugs:", 1621 description: "low-impact XML bugs:", 1627 description: "low-impact XML bugs:", 1633 description: "low-impact XML bugs:", 1644 description: "a low-impact bug, also present in Crockford's implementation of org.json",
|
/libcore/ojluni/annotations/sdk/nullability/java/lang/ |
D | Character.annotated.java | 63 public static boolean isSurrogatePair(char high, char low) { throw new RuntimeException("Stub!"); } in isSurrogatePair() argument 67 public static int toCodePoint(char high, char low) { throw new RuntimeException("Stub!"); } in toCodePoint() argument
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
D | X509CertImpl.java | 2067 int low = (b & 0x0f); 2069 buf.append(hexChars[low]);
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Arrays.java | 181 java.lang.Object[] src, java.lang.Object[] dest, int low, int high, int off) { in mergeSort() argument
|
/libcore/ojluni/annotations/flagged_api/java/lang/ |
D | Character.annotated.java | 64 public static boolean isSurrogatePair(char high, char low) { throw new RuntimeException("Stub!"); } in isSurrogatePair() argument 68 public static int toCodePoint(char high, char low) { throw new RuntimeException("Stub!"); } in toCodePoint() argument
|
/libcore/ |
D | JavaLibrary.bp | 19 // The Android core library provides low-level APIs for use by the rest of the
|