Home
last modified time | relevance | path

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

12

/libcore/ojluni/src/test/java/util/Base64/
DBase64GetEncoderTest.java33 import static java.nio.charset.StandardCharsets.US_ASCII;
47 final Base64.Encoder encoder = Base64.getMimeEncoder(maxlen, "$$$".getBytes(US_ASCII)); in main()
61 .getBytes(US_ASCII); in testWrapEncode2()
70 System.err.print("result = " + new String(encodedByteArray, US_ASCII) in testWrapEncode2()
73 base64EncodedString = new String(encodedByteArray, US_ASCII); in testWrapEncode2()
87 .getBytes(US_ASCII); in testEncodeToStringWithLongInputData()
104 final byte[] bytesIn = "fo".getBytes(US_ASCII); in testWrapEncode1()
113 System.err.print("result = " + new String(encodedBytes, US_ASCII) in testWrapEncode1()
116 base64EncodedString = new String(encodedBytes, US_ASCII); in testWrapEncode1()
125 final byte[] bytesIn = "fo".getBytes(US_ASCII); in testEncodeToString()
DTestBase64Golden.java177 private static final Charset DEF_CHARSET = StandardCharsets.US_ASCII;
/libcore/ojluni/src/test/java/io/InputStreamReader/
DReadCharBuffer.java45 import static java.nio.charset.StandardCharsets.US_ASCII;
65 …StreamReader(new ByteArrayInputStream("ABCDEFGHIJKLMNOPQRTUVWXYZ".getBytes(US_ASCII)), US_ASCII)) { in read() argument
/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.java52 public static final Charset US_ASCII = Charset.forName("US-ASCII"); field in StandardCharsets
/libcore/ojluni/src/test/java/util/zip/ZipFile/
DTestCleaner.java39 import static java.nio.charset.StandardCharsets.US_ASCII;
117 zos.write("hello".getBytes(US_ASCII)); in openAndCloseZipFile()
/libcore/ojluni/src/test/java/nio/charset/Charset/
DIllegalCharsetName.java64 checkAliases(StandardCharsets.US_ASCII); in main()
/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/luni/src/test/java/libcore/dalvik/system/
DZipPathValidatorTest.java148 ZipFile zipFile = new ZipFile(tempFile, StandardCharsets.US_ASCII); in testZipFileDecodesEntryWithUTF8WhenZipCoderIsNotUTF8ButEntryIs()
/libcore/ojluni/src/test/java/util/zip/
DChecksumBase.java37 private static final byte[] BYTES_123456789 = "123456789".getBytes(StandardCharsets.US_ASCII);
/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/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/java/lang/invoke/
DMethodHandlesTest.java1076 byte [] ascii = testPattern.getBytes(StandardCharsets.US_ASCII); in testStringConstructors()
1086 s = (String) mh.invokeExact(ascii, 0, 5, StandardCharsets.US_ASCII.name()); in testStringConstructors()
1093 s = (String) mh.invokeExact(ascii, 0, 5, StandardCharsets.US_ASCII); in testStringConstructors()
1100 s = (String) mh.invokeExact(ascii, StandardCharsets.US_ASCII.name()); in testStringConstructors()
1106 s = (String) mh.invokeExact(ascii, StandardCharsets.US_ASCII); in testStringConstructors()
/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.java275 final byte[] contents = "goodbye, cruel world".getBytes(StandardCharsets.US_ASCII); in test_byteBufferPositions_write_pwrite()
368 .getBytes(StandardCharsets.US_ASCII); in checkByteBufferPositions_sendto_recvfrom()
1188 "Hello myself").getBytes(StandardCharsets.US_ASCII);

12