/libcore/ojluni/src/test/java/util/Base64/ |
D | Base64GetEncoderTest.java | 33 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()
|
D | TestBase64Golden.java | 177 private static final Charset DEF_CHARSET = StandardCharsets.US_ASCII;
|
/libcore/ojluni/src/test/java/io/InputStreamReader/ |
D | ReadCharBuffer.java | 45 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/ |
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 | 52 public static final Charset US_ASCII = Charset.forName("US-ASCII"); field in StandardCharsets
|
/libcore/ojluni/src/test/java/util/zip/ZipFile/ |
D | TestCleaner.java | 39 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/ |
D | IllegalCharsetName.java | 64 checkAliases(StandardCharsets.US_ASCII); in main()
|
/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/luni/src/test/java/libcore/dalvik/system/ |
D | ZipPathValidatorTest.java | 148 ZipFile zipFile = new ZipFile(tempFile, StandardCharsets.US_ASCII); in testZipFileDecodesEntryWithUTF8WhenZipCoderIsNotUTF8ButEntryIs()
|
/libcore/ojluni/src/test/java/util/zip/ |
D | ChecksumBase.java | 37 private static final byte[] BYTES_123456789 = "123456789".getBytes(StandardCharsets.US_ASCII);
|
/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/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/java/lang/invoke/ |
D | MethodHandlesTest.java | 1076 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/ |
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 | 275 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);
|