/libcore/ojluni/src/test/java/util/HexFormat/ |
D | HexFormatTest.java | 148 HexFormat hex = HexFormat.of(); in testToHex() local 150 char c = hex.toLowHexDigit((byte)i); in testToHex() 158 HexFormat hex = HexFormat.of(); in testToHexDigits() local 160 String actual = hex.toHexDigits((byte)i); in testToHexDigits() 163 assertEquals(actual.charAt(0), hex.toHighHexDigit((byte)i), in testToHexDigits() 165 assertEquals(actual.charAt(1), hex.toLowHexDigit((byte)i), in testToHexDigits() 203 HexFormat hex = HexFormat.of(); in testAppendHexByteWithStringBuilder() local 207 StringBuilder sb1 = hex.toHexDigits(sb, (byte)i); in testAppendHexByteWithStringBuilder() 210 assertEquals(sb.charAt(0), hex.toHighHexDigit((byte)i), "MSB converted wrong"); in testAppendHexByteWithStringBuilder() 211 assertEquals(sb.charAt(1), hex.toLowHexDigit((byte)i), "LSB converted wrong"); in testAppendHexByteWithStringBuilder() [all …]
|
/libcore/json/src/main/java/org/json/ |
D | JSONTokener.java | 256 String hex = in.substring(pos, pos + 4); in readEscapeCharacter() local 259 return (char) Integer.parseInt(hex, 16); in readEscapeCharacter() 261 throw syntaxError("Invalid escape sequence: " + hex); in readEscapeCharacter() 609 public static int dehexchar(char hex) { in dehexchar() argument 610 if (hex >= '0' && hex <= '9') { in dehexchar() 611 return hex - '0'; in dehexchar() 612 } else if (hex >= 'A' && hex <= 'F') { in dehexchar() 613 return hex - 'A' + 10; in dehexchar() 614 } else if (hex >= 'a' && hex <= 'f') { in dehexchar() 615 return hex - 'a' + 10; in dehexchar()
|
/libcore/luni/src/test/java/libcore/java/nio/file/ |
D | FileSystemLoopExceptionTest.java | 35 String hex = "ACED0005737200256A6176612E6E696F2E66696C652E46696C6553797374656D4C6F6F7045786" in test_serialization() local 69 .deserializeHex(hex); in test_serialization() 72 assertEquals(hex, hex1); in test_serialization()
|
D | NotDirectoryExceptionTest.java | 37 String hex = "ACED0005737200236A6176612E6E696F2E66696C652E4E6F744469726563746F7279457863657" in test_serialization() local 71 .deserializeHex(hex); in test_serialization() 74 assertEquals(hex, hex1); in test_serialization()
|
D | DirectoryNotEmptyExceptionTest.java | 38 String hex = "ACED0005737200286A6176612E6E696F2E66696C652E4469726563746F72794E6F74456D70747" in test_serialization() local 72 .deserializeHex(hex); in test_serialization() 75 assertEquals(hex, hex1); in test_serialization()
|
D | AtomicMoveNotSupportedExceptionTest.java | 38 String hex = "ACED00057372002D6A6176612E6E696F2E66696C652E41746F6D69634D6F76654E6F745375707" in test_serialization() local 74 SerializationTester.deserializeHex(hex); in test_serialization() 77 assertEquals(hex, hex1); in test_serialization()
|
D | AccessDeniedExceptionTest.java | 45 String hex = "ACED0005737200236A6176612E6E696F2E66696C652E41636365737344656E6965644578" in test_serialization() local 80 SerializationTester.deserializeHex(hex); in test_serialization() 83 assertEquals(hex, hex1); in test_serialization()
|
D | NoSuchFileExceptionTest.java | 44 String hex = "ACED0005737200216A6176612E6E696F2E66696C652E4E6F5375636846696C654578636570746" in test_serialization() local 79 .deserializeHex(hex); in test_serialization() 82 assertEquals(hex, hex1); in test_serialization()
|
D | FileAlreadyExistsExceptionTest.java | 45 String hex = "ACED0005737200286A6176612E6E696F2E66696C652E46696C65416C726561647945786973747" in test_serialization() local 81 .deserializeHex(hex); in test_serialization() 84 assertEquals(hex, hex1); in test_serialization()
|
D | NotLinkExceptionTest.java | 44 String hex = "ACED00057372001E6A6176612E6E696F2E66696C652E4E6F744C696E6B457863657074696F6EF" in test_serialization() local 77 NotLinkException exception = (NotLinkException) SerializationTester.deserializeHex(hex); in test_serialization() 80 assertEquals(hex, hex1); in test_serialization()
|
D | FileSystemExceptionTest.java | 43 String hex = "ACED0005737200216A6176612E6E696F2E66696C652E46696C6553797374656D4578636570746" in test_serialization() local 78 .deserializeHex(hex); in test_serialization() 81 assertEquals(hex, hex1); in test_serialization()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | HexFormatTest.java | 33 HexFormat hex = HexFormat.of(); in toHexDigits_short() local 37 String actualHexDigits = hex.toHexDigits(shortValue); in toHexDigits_short()
|
D | InvalidPropertiesFormatExceptionTest.java | 46 String hex = "aced00057372002a6a6176612e7574696c2e496e76616c696450726f" in testDeserialize_notSupported() local 94 Object obj = SerializationTester.deserializeHex(hex); in testDeserialize_notSupported()
|
/libcore/ojluni/src/test/java/text/Collator/ |
D | CollatorTest.java | 75 String hex = Integer.toString((int)ch,16); in prettify() local 77 result.append("\\u" + zero.substring(0, 4 - hex.length()) + hex); in prettify()
|
/libcore/luni/src/test/java/libcore/libcore/util/ |
D | SerializationTester.java | 108 public static Object deserializeHex(String hex) throws IOException, ClassNotFoundException { in deserializeHex() argument 109 return deserialize(HexEncoding.decode(hex)); in deserializeHex()
|
/libcore/ojluni/src/test/java/lang/invoke/ |
D | MethodTypeTest.java | 562 String hex = Integer.toHexString(wire[i] & 0xFF); in testPortableSerialFormat() local 563 if (hex.length() == 1) hex = "0"+hex; in testPortableSerialFormat() 564 System.out.print(" (byte)0x"+hex+","); in testPortableSerialFormat()
|
/libcore/ojluni/src/test/java/util/Arrays/ |
D | Sorting.java | 1246 fail("Range sort changes left element at position " + i + hex(a[i], A380)); in checkSubArray() 1259 fail("Range sort changes right element at position " + i + hex(a[i], B747)); in checkSubArray() 1267 fail("Range sort changes left element at position " + i + hex(a[i], A380)); in checkSubArray() 1280 fail("Range sort changes right element at position " + i + hex(a[i], B747)); in checkSubArray() 1288 fail("Range sort changes left element at position " + i + hex(a[i], A380)); in checkSubArray() 1301 fail("Range sort changes right element at position " + i + hex(a[i], B747)); in checkSubArray() 1309 fail("Range sort changes left element at position " + i + hex(a[i], A380)); in checkSubArray() 1322 fail("Range sort changes right element at position " + i + hex(a[i], B747)); in checkSubArray() 1330 fail("Range sort changes left element at position " + i + hex(a[i], A380)); in checkSubArray() 1343 fail("Range sort changes right element at position " + i + hex(a[i], B747)); in checkSubArray() [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | IntegerTest.java | 265 String hex = leftPad + Integer.toHexString(value) + rightPad; in testParseUnsignedIntSubstring() local 266 assertEquals(value, Integer.parseUnsignedInt(hex, i, hex.length() - j, 16)); in testParseUnsignedIntSubstring()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Properties.java | 698 HexFormat hex = HexFormat.of().withUpperCase(); in saveConvert() local 734 outBuffer.append(hex.toHexDigits(aChar)); in saveConvert() 745 HexFormat hex = HexFormat.of().withUpperCase(); in writeComments() local 757 bw.write(hex.toHexDigits(c)); in writeComments()
|
/libcore/ojluni/src/test/java/util/Base64/ |
D | plain.txt | 125 hex-octet := "=" 2(DIGIT / "A" / "B" / "C" / "D" / "E" / "F")
|
/libcore/expectations/ |
D | knownfailures.txt | 1647 …substring: "Large hex longs shouldn't be yield ints or strings expected:<-1> but was:<0xFFFFFFFFFF…
|