Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/java/util/
DBase64Test.java41 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 …]
DLibcoreIoDerivedBase64Test.java224 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/
DFileInputStreamTest.java101 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()
DFileDescriptorTest.java40 fos.write("Test String".getBytes(StandardCharsets.US_ASCII)); in test_sync()
DFilterInputStreamTest.java102 fos.write(INPUT.getBytes(StandardCharsets.US_ASCII)); in setUp()
DBufferedInputStreamTest.java555 fos.write(INPUT.getBytes(StandardCharsets.US_ASCII)); in setUp()
/libcore/ojluni/src/main/java/java/nio/charset/
DStandardCharsets.java44 public static final Charset US_ASCII = Charset.forName("US-ASCII"); field in StandardCharsets
/libcore/benchmarks/src/benchmarks/regression/
DStringToBytesBenchmark.java74 string.value.getBytes(StandardCharsets.US_ASCII); in timeGetBytesAscii()
/libcore/luni/src/test/java/libcore/java/nio/charset/
DStandardCharsetsEncoderTest.java207 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/
DSNIHostName.java103 .getBytes(StandardCharsets.US_ASCII)); in SNIHostName()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/
DPreferencesTest.java62 in = new ByteArrayInputStream(PREFS.getBytes(StandardCharsets.US_ASCII)); in setUp()
DAbstractPreferencesTest.java84 LONG_VALUE = new String(chars, StandardCharsets.US_ASCII);
/libcore/luni/src/test/java/libcore/java/lang/invoke/
DMethodHandlesTest.java1041 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/
DFiles2Test.java1086 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/
DDefaultHostnameVerifierTest.java445 InputStream in = new ByteArrayInputStream(encoded.getBytes(StandardCharsets.US_ASCII)); in parseCertificate()
/libcore/ojluni/src/main/resources/sun/nio/cs/
Dstandard-charsets42 charset US-ASCII US_ASCII
/libcore/luni/src/test/java/libcore/xml/
DExpatSaxParserTest.java726 US_ASCII("US-ASCII"), enumConstant
/libcore/luni/src/test/java/libcore/android/system/
DOsTest.java265 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/
Dcurrent.txt6750 field public static final java.nio.charset.Charset US_ASCII;