/libcore/luni/src/test/java/libcore/java/util/ |
D | Base64Test.java | 41 import static java.nio.charset.StandardCharsets.US_ASCII; 387 byte[] input = inputString.getBytes(US_ASCII); in testDecoder_decodeArrayToArray() 389 byte[] decodedBytes = expectedString.getBytes(US_ASCII); in testDecoder_decodeArrayToArray() 427 byte[] input = inputString.getBytes(US_ASCII); in testDecoder_decodeByteBuffer() 429 byte[] expectedBytes = expectedString.getBytes(US_ASCII); in testDecoder_decodeByteBuffer() 463 byte[] input = inputString.getBytes(US_ASCII); in testDecoder_decodeByteBuffer_invalidData() 643 byte[] input = "abcefghi".getBytes(US_ASCII); in testEncoder_encodeArrayToArray() 645 byte[] encodedBytes = expectedString.getBytes(US_ASCII); in testEncoder_encodeArrayToArray() 679 byte[] input = "abcefghi".getBytes(US_ASCII); in testEncoder_encodeByteBuffer() 681 byte[] expectedBytes = expectedString.getBytes(US_ASCII); in testEncoder_encodeByteBuffer() [all …]
|
D | LibcoreIoDerivedBase64Test.java | 224 CharsetDecoder decoder = StandardCharsets.US_ASCII.newDecoder(); in bytesToAscii() 243 CharsetEncoder encoder = StandardCharsets.US_ASCII.newEncoder(); in asciiToBytes()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | FileInputStreamTest.java | 101 fos.write(INPUT.getBytes(StandardCharsets.US_ASCII)); in setUp() 234 new String(buf1, 0, buf1.length, StandardCharsets.US_ASCII)); in test_read$B() 247 new String(buf1, 0, buf1.length, StandardCharsets.US_ASCII)); in test_read$BII() 391 new String(buf1, 0, buf1.length, StandardCharsets.US_ASCII)); in test_skipJ()
|
D | FileDescriptorTest.java | 40 fos.write("Test String".getBytes(StandardCharsets.US_ASCII)); in test_sync()
|
D | FilterInputStreamTest.java | 102 fos.write(INPUT.getBytes(StandardCharsets.US_ASCII)); in setUp()
|
D | BufferedInputStreamTest.java | 555 fos.write(INPUT.getBytes(StandardCharsets.US_ASCII)); in setUp()
|
/libcore/ojluni/src/main/java/java/nio/charset/ |
D | StandardCharsets.java | 44 public static final Charset US_ASCII = Charset.forName("US-ASCII"); field in StandardCharsets
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | StringToBytesBenchmark.java | 74 string.value.getBytes(StandardCharsets.US_ASCII); in timeGetBytesAscii()
|
/libcore/luni/src/test/java/libcore/java/nio/charset/ |
D | StandardCharsetsEncoderTest.java | 207 return new BufferedWriter(new OutputStreamWriter(out, StandardCharsets.US_ASCII)); in createAsciiWriter() 211 return new BufferedReader(new InputStreamReader(in, StandardCharsets.US_ASCII)); in createAsciiReader()
|
/libcore/ojluni/src/main/java/javax/net/ssl/ |
D | SNIHostName.java | 103 .getBytes(StandardCharsets.US_ASCII)); in SNIHostName()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/ |
D | PreferencesTest.java | 62 in = new ByteArrayInputStream(PREFS.getBytes(StandardCharsets.US_ASCII)); in setUp()
|
D | AbstractPreferencesTest.java | 84 LONG_VALUE = new String(chars, StandardCharsets.US_ASCII);
|
/libcore/luni/src/test/java/libcore/java/lang/invoke/ |
D | MethodHandlesTest.java | 1041 byte [] ascii = testPattern.getBytes(StandardCharsets.US_ASCII); in testStringConstructors() 1051 s = (String) mh.invokeExact(ascii, 0, 5, StandardCharsets.US_ASCII.name()); in testStringConstructors() 1058 s = (String) mh.invokeExact(ascii, 0, 5, StandardCharsets.US_ASCII); in testStringConstructors() 1065 s = (String) mh.invokeExact(ascii, StandardCharsets.US_ASCII.name()); in testStringConstructors() 1071 s = (String) mh.invokeExact(ascii, StandardCharsets.US_ASCII); in testStringConstructors()
|
/libcore/luni/src/test/java/libcore/java/nio/file/ |
D | Files2Test.java | 1086 StandardCharsets.US_ASCII); in test_newBufferedReader$Path$Charset() 1092 StandardCharsets.US_ASCII); in test_newBufferedReader$Path$Charset() 1102 Files.newBufferedReader(null, StandardCharsets.US_ASCII); in test_newBufferedReader$Path$Charset_NPE() 1148 StandardCharsets.US_ASCII); in test_newBufferedWriter$Path$Charset() 1157 Files.newBufferedWriter(null, StandardCharsets.US_ASCII); in test_newBufferedWriter$Path$Charset_NPE()
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
D | DefaultHostnameVerifierTest.java | 445 InputStream in = new ByteArrayInputStream(encoded.getBytes(StandardCharsets.US_ASCII)); in parseCertificate()
|
/libcore/ojluni/src/main/resources/sun/nio/cs/ |
D | standard-charsets | 42 charset US-ASCII US_ASCII
|
/libcore/luni/src/test/java/libcore/xml/ |
D | ExpatSaxParserTest.java | 726 US_ASCII("US-ASCII"), enumConstant
|
/libcore/luni/src/test/java/libcore/android/system/ |
D | OsTest.java | 265 final byte[] contents = "goodbye, cruel world".getBytes(StandardCharsets.US_ASCII); in test_byteBufferPositions_write_pwrite() 358 .getBytes(StandardCharsets.US_ASCII); in checkByteBufferPositions_sendto_recvfrom() 1178 "Hello myself").getBytes(StandardCharsets.US_ASCII);
|
/libcore/api/ |
D | current.txt | 6750 field public static final java.nio.charset.Charset US_ASCII;
|