/libcore/ojluni/src/test/java/nio/channels/Channels/ |
D | EncodingTest.java | 51 public static final String CS_UTF8 = StandardCharsets.UTF_8.name(); 111 {testFile, StandardCharsets.UTF_8.name(), null, in getWRParameters() 112 StandardCharsets.UTF_8.name(), StandardCharsets.UTF_8}, in getWRParameters() 113 {testFile, null, StandardCharsets.UTF_8, in getWRParameters() 114 StandardCharsets.UTF_8.name(), StandardCharsets.UTF_8} in getWRParameters() 125 … {testIllegalInput, StandardCharsets.ISO_8859_1.name(), null, StandardCharsets.UTF_8.name(), null}, in getParameters() 126 … {testIllegalInput, StandardCharsets.ISO_8859_1.name(), null, null, StandardCharsets.UTF_8}, in getParameters() 127 … {testIllegalInput, null, StandardCharsets.ISO_8859_1, StandardCharsets.UTF_8.name(), null}, in getParameters() 128 {testIllegalInput, null, StandardCharsets.ISO_8859_1, null, StandardCharsets.UTF_8}, in getParameters() 139 {testIllegalOutput, StandardCharsets.UTF_8.name(), null}, in getWriteParameters() [all …]
|
/libcore/ojluni/src/test/java/net/URLDecoder/ |
D | EncodingTest.java | 89 StandardCharsets.UTF_8.name()); in testIllegalArgument() 93 returned = URLDecoder.decode(illegal, StandardCharsets.UTF_8.name()); in testIllegalArgument() 95 returned = URLDecoder.decode(illegal, StandardCharsets.UTF_8); in testIllegalArgument() 109 String encoded = URLEncoder.encode(s, StandardCharsets.UTF_8.name()); in decode() 110 String returned1 = URLDecoder.decode(encoded, StandardCharsets.UTF_8.name()); in decode() 111 String returned2 = URLDecoder.decode(encoded, StandardCharsets.UTF_8); in decode()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | CharsetUtf8Benchmark.java | 55 new String(ASCII, StandardCharsets.UTF_8); in time_ascii() 59 new String(BMP2, StandardCharsets.UTF_8); in time_bmp2() 63 new String(BMP3, StandardCharsets.UTF_8); in time_bmp3() 67 new String(SUPPLEMENTARY, StandardCharsets.UTF_8); in time_supplementary()
|
/libcore/ojluni/src/test/java/net/URLEncoder/ |
D | EncodingTest.java | 76 String encoded1 = URLEncoder.encode(s, StandardCharsets.UTF_8.name()); in encode() 77 String encoded2 = URLEncoder.encode(s, StandardCharsets.UTF_8); in encode() 81 String returned1 = URLDecoder.decode(encoded1, StandardCharsets.UTF_8.name()); in encode() 82 String returned2 = URLDecoder.decode(encoded2, StandardCharsets.UTF_8); in encode()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | FormatterTest.java | 19 import static java.nio.charset.StandardCharsets.UTF_8; 230 new Formatter((OutputStream) null, UTF_8, Locale.getDefault()); in testConstructor_Ljava_io_OutputStreamLjava_nio_charset_CharsetLjava_util_Locale() local 244 var formatter = new Formatter(os, UTF_8, (Locale) null); in testConstructor_Ljava_io_OutputStreamLjava_nio_charset_CharsetLjava_util_Locale() 250 var formatter = new Formatter(os, UTF_8, locale); in testConstructor_Ljava_io_OutputStreamLjava_nio_charset_CharsetLjava_util_Locale() 258 new Formatter((File) null, UTF_8, Locale.getDefault()); in testConstructor_Ljava_io_FileLjava_nio_charset_CharsetLjava_util_Locale() local 271 var formatter = new Formatter(aFile, UTF_8, (Locale) null); in testConstructor_Ljava_io_FileLjava_nio_charset_CharsetLjava_util_Locale() 275 formatter = new Formatter(aFile, UTF_8, locale); in testConstructor_Ljava_io_FileLjava_nio_charset_CharsetLjava_util_Locale() 282 new Formatter((String) null, UTF_8, Locale.getDefault()); in testConstructor_Ljava_lang_StringLjava_nio_charset_CharsetLjava_util_Locale() local
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | FtpURLConnectionTest.java | 53 import static java.nio.charset.StandardCharsets.UTF_8; 89 byte[] fileContents = "abcdef 1234567890".getBytes(UTF_8); in testInputUrl() 124 byte[] fileContents = "abcdef 1234567890".getBytes(UTF_8); in testOutputUrl() 126 byte[] newFileContents = "contents of brand new file".getBytes(UTF_8); in testOutputUrl() 140 byte[] fileContents = "abcdef 1234567890".getBytes(UTF_8); in testConnectOverProxy_noProxy() 176 byte[] fileContents = "abcdef 1234567890".getBytes(UTF_8); in testConnectOverProxy_explicit_http_uses_direct_connection() 196 byte[] fileContents = "abcdef 1234567890".getBytes(UTF_8); in testConnectOverProxy_implicit_http_fails() 224 byte[] fileContents = "abcdef 1234567890".getBytes(UTF_8); in testInputUrlWithSpaces() 239 byte[] fileContents = "abcdef 1234567890".getBytes(UTF_8); in testInputUrlWithSpacesViaProxySelector() 298 fail("Expected " + new String(expectedContents, UTF_8) + ", but got " in assertContents() [all …]
|
/libcore/ojluni/src/test/java/io/FileWriter/ |
D | ConstructorTest.java | 62 {ConstructorType.STRING, file1, file2, StandardCharsets.UTF_8}, in getParameters() 63 {ConstructorType.FILE, file1, file2, StandardCharsets.UTF_8}, in getParameters() 64 {ConstructorType.STRING_APPEND, file1, file2, StandardCharsets.UTF_8}, in getParameters() 65 {ConstructorType.FILE_APPEND, file1, file2, StandardCharsets.UTF_8}, in getParameters()
|
/libcore/luni/src/test/java/libcore/android/system/ |
D | UnixSocketAddressTest.java | 32 byte[] abstractNameBytes = path.getBytes(StandardCharsets.UTF_8); in testFilesystemSunPath() 47 byte[] abstractNameBytes = abstractName.getBytes(StandardCharsets.UTF_8); in testAbstractSunPath()
|
/libcore/ojluni/src/test/java/io/ByteArrayOutputStream/ |
D | EncodingTest.java | 49 {data, StandardCharsets.UTF_8.name(), StandardCharsets.UTF_8}, in getParameters()
|
/libcore/ojluni/src/main/java/java/util/zip/ |
D | ZipEntry.java | 128 if (name.getBytes(StandardCharsets.UTF_8).length > 0xffff) { in ZipEntry() 130 name.getBytes(StandardCharsets.UTF_8).length); in ZipEntry() 581 if (comment != null && comment.getBytes(StandardCharsets.UTF_8).length > 0xffff) { in setComment() 583 comment.getBytes(StandardCharsets.UTF_8).length); in setComment()
|
D | ZipCoder.java | 110 utf8 = new ZipCoder(StandardCharsets.UTF_8); in getBytesUTF8() 119 utf8 = new ZipCoder(StandardCharsets.UTF_8); in toStringUTF8() 135 this.isUTF8 = cs.name().equals(StandardCharsets.UTF_8.name()); in ZipCoder()
|
/libcore/luni/src/main/java/android/system/ |
D | UnixSocketAddress.java | 75 byte[] nameBytes = name.getBytes(StandardCharsets.UTF_8); in createAbstract() 95 byte[] pathNameBytes = pathName.getBytes(StandardCharsets.UTF_8); in createFileSystem()
|
/libcore/luni/src/test/java/libcore/javax/crypto/ |
D | MacTest.java | 19 import static java.nio.charset.StandardCharsets.UTF_8; 121 byte[] salt = "saltsalt".getBytes(UTF_8); in test_PBEWITHHMACSHA_Variants()
|
D | SecretKeyFactoryTest.java | 19 import static java.nio.charset.StandardCharsets.UTF_8; 176 byte[] salt = "salt".getBytes(UTF_8); in test_PBKDF2_b8312059()
|
/libcore/ojluni/src/main/java/java/util/jar/ |
D | Attributes.java | 28 import static java.nio.charset.StandardCharsets.UTF_8; 341 out.write(buffer.toString().getBytes(UTF_8)); in writeMain() 400 value = fullLine.toString(UTF_8); in read() 413 name = new String(lbuf, 0, i - 2, UTF_8); in read() 419 value = new String(lbuf, i, len - i, UTF_8); in read()
|
D | Manifest.java | 28 import static java.nio.charset.StandardCharsets.UTF_8; 240 byte[] lineBytes = line.getBytes(UTF_8); in println72() 340 name = new String(buf, 0, buf.length, UTF_8); in read() 365 return new String(lbuf, 6, len - 6, UTF_8); in parseName()
|
/libcore/ojluni/src/main/java/jdk/internal/util/jar/ |
D | JarIndex.java | 28 import static java.nio.charset.StandardCharsets.UTF_8; 256 (new OutputStreamWriter(out, UTF_8)); in write() 286 (new InputStreamReader(is, UTF_8)); in read()
|
/libcore/ojluni/src/test/java/io/PrintWriter/ |
D | EncodingTest.java | 60 String csn = StandardCharsets.UTF_8.name(); in getParameters() 61 Charset charset = StandardCharsets.UTF_8; in getParameters()
|
/libcore/ojluni/src/test/java/io/PrintStream/ |
D | EncodingTest.java | 59 String csn = StandardCharsets.UTF_8.name(); in getParameters() 60 Charset charset = StandardCharsets.UTF_8; in getParameters()
|
/libcore/ojluni/src/test/java/io/FileReader/ |
D | ConstructorTest.java | 61 {ConstructorType.STRING, file1, file2, StandardCharsets.UTF_8}, in getParameters() 62 {ConstructorType.FILE, file1, file2, StandardCharsets.UTF_8}, in getParameters()
|
/libcore/ojluni/src/main/java/java/nio/charset/ |
D | StandardCharsets.java | 63 public static final Charset UTF_8 = Charset.forName("UTF-8"); field in StandardCharsets
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | UnixDomainSocketsUtil.java | 42 return StandardCharsets.UTF_8; in getCharset()
|
/libcore/ojluni/src/test/java/util/Scanner/ |
D | EncodingTest.java | 61 String csn = StandardCharsets.UTF_8.name(); in getParameters() 62 Charset charset = StandardCharsets.UTF_8; in getParameters()
|
/libcore/ojluni/src/test/java/nio/charset/Charset/ |
D | IllegalCharsetName.java | 65 checkAliases(StandardCharsets.UTF_8); in main()
|
/libcore/support/src/test/java/libcore/testing/io/ |
D | TestIoUtils.java | 35 return new String(Files.readAllBytes(Paths.get(absolutePath)), StandardCharsets.UTF_8); in readFileAsString()
|