Home
last modified time | relevance | path

Searched refs:low (Results 1 – 19 of 19) sorted by relevance

/libcore/luni/src/test/java/libcore/java/lang/
DStringBufferTest.java34 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()
DStringBuilderTest.java144 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()
DStringTest.java720 char high = '\uD83D', low = '\uDE02'; in testChars() local
721 String surrogateCP = new String(new char[]{high, low, low}); in testChars()
722 assertTrue(Arrays.equals(new int[]{high, low, low}, surrogateCP.chars().toArray())); in testChars()
734 char high = '\uD83D', low = '\uDE02'; in testCodePoints() local
735 String surrogateCP = new String(new char[]{high, low, low, '0'}); in testCodePoints()
736 assertEquals(Character.toCodePoint(high, low), surrogateCP.codePoints().toArray()[0]); in testCodePoints()
737 assertEquals((int) low, surrogateCP.codePoints().toArray()[1]); // Unmatched surrogate. in testCodePoints()
/libcore/ojluni/src/main/java/java/io/
DStreamTokenizer.java274 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/
DCharBufferTest.java49 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/main/java/java/util/
DArrays.java1325 int low, in mergeSort() argument
1328 int length = high - low; in mergeSort()
1332 for (int i=low; i<high; i++) in mergeSort()
1333 for (int j=i; j>low && in mergeSort()
1340 int destLow = low; in mergeSort()
1342 low += off; in mergeSort()
1344 int mid = (low + high) >>> 1; in mergeSort()
1345 mergeSort(dest, src, low, mid, -off); in mergeSort()
1351 System.arraycopy(src, low, dest, destLow, length); in mergeSort()
1356 for(int i = destLow, p = low, q = mid; i < destHigh; i++) { in mergeSort()
[all …]
DCollections.java267 int low = 0; in indexedBinarySearch() local
270 while (low <= high) { in indexedBinarySearch()
271 int mid = (low + high) >>> 1; in indexedBinarySearch()
276 low = mid + 1; in indexedBinarySearch()
282 return -(low + 1); // key not found in indexedBinarySearch()
288 int low = 0; in iteratorBinarySearch() local
292 while (low <= high) { in iteratorBinarySearch()
293 int mid = (low + high) >>> 1; in iteratorBinarySearch()
298 low = mid + 1; in iteratorBinarySearch()
304 return -(low + 1); // key not found in iteratorBinarySearch()
[all …]
/libcore/ojluni/src/main/java/sun/misc/
DFloatingDecimal.java571 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/ojluni/src/main/java/java/lang/
DInteger.java816 static final int low = -128;
830 h = Math.min(i, Integer.MAX_VALUE - (-low) -1);
837 cache = new Integer[(high - low) + 1];
838 int j = low;
865 if (i >= IntegerCache.low && i <= IntegerCache.high)
866 return IntegerCache.cache[i + (-IntegerCache.low)];
DCharacter.java4832 public static boolean isSurrogatePair(char high, char low) { in isSurrogatePair() argument
4833 return isHighSurrogate(high) && isLowSurrogate(low); in isSurrogatePair()
4868 public static int toCodePoint(char high, char low) { in toCodePoint() argument
4873 return ((high << 10) + low) + (MIN_SUPPLEMENTARY_CODE_POINT in toCodePoint()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/
DPattern2Test.java852 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/
DKXmlSerializer.java603 private void writeSurrogate(char high, char low) throws IOException { in writeSurrogate() argument
604 if (!Character.isLowSurrogate(low)) { in writeSurrogate()
606 " U+" + Integer.toHexString((int) low) + ")"); in writeSurrogate()
611 int codePoint = Character.toCodePoint(high, low); in writeSurrogate()
/libcore/ojluni/annotations/hiddenapi/java/lang/
DInteger.java334 static final int low = -128; // 0xffffff80 field in Integer.IntegerCache
DCharacter.java91 public static boolean isSurrogatePair(char high, char low) { in isSurrogatePair() argument
99 public static int toCodePoint(char high, char low) { in toCodePoint() argument
/libcore/ojluni/src/main/java/sun/security/x509/
DX509CertImpl.java2011 int low = (b & 0x0f); in byte2hex() local
2013 buf.append(hexChars[low]); in byte2hex()
/libcore/expectations/
Dknownfailures.txt1618 description: "low-impact XML bugs:",
1624 description: "low-impact XML bugs:",
1630 description: "low-impact XML bugs:",
1636 description: "low-impact XML bugs:",
1642 description: "low-impact XML bugs:",
1648 description: "low-impact XML bugs:",
1654 description: "low-impact XML bugs:",
1665 description: "a low-impact bug, also present in Crockford's implementation of org.json",
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DCharacter.annotated.java63 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/annotations/hiddenapi/java/util/
DArrays.java181 java.lang.Object[] src, java.lang.Object[] dest, int low, int high, int off) { in mergeSort() argument
/libcore/
DJavaLibrary.bp19 // The Android core library provides low-level APIs for use by the rest of the