Home
last modified time | relevance | path

Searched refs:UTF_8 (Results 1 – 25 of 51) sorted by relevance

123

/libcore/ojluni/src/test/java/nio/channels/Channels/
DEncodingTest.java51 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/
DEncodingTest.java89 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/
DCharsetUtf8Benchmark.java55 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/
DEncodingTest.java76 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/
DFormatterTest.java19 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/
DFtpURLConnectionTest.java53 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/
DConstructorTest.java62 {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/
DUnixSocketAddressTest.java32 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/
DEncodingTest.java49 {data, StandardCharsets.UTF_8.name(), StandardCharsets.UTF_8}, in getParameters()
/libcore/ojluni/src/main/java/java/util/zip/
DZipEntry.java128 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()
DZipCoder.java110 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/
DUnixSocketAddress.java75 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/
DMacTest.java19 import static java.nio.charset.StandardCharsets.UTF_8;
121 byte[] salt = "saltsalt".getBytes(UTF_8); in test_PBEWITHHMACSHA_Variants()
DSecretKeyFactoryTest.java19 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/
DAttributes.java28 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()
DManifest.java28 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/
DJarIndex.java28 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/
DEncodingTest.java60 String csn = StandardCharsets.UTF_8.name(); in getParameters()
61 Charset charset = StandardCharsets.UTF_8; in getParameters()
/libcore/ojluni/src/test/java/io/PrintStream/
DEncodingTest.java59 String csn = StandardCharsets.UTF_8.name(); in getParameters()
60 Charset charset = StandardCharsets.UTF_8; in getParameters()
/libcore/ojluni/src/test/java/io/FileReader/
DConstructorTest.java61 {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/
DStandardCharsets.java63 public static final Charset UTF_8 = Charset.forName("UTF-8"); field in StandardCharsets
/libcore/ojluni/src/main/java/sun/nio/ch/
DUnixDomainSocketsUtil.java42 return StandardCharsets.UTF_8; in getCharset()
/libcore/ojluni/src/test/java/util/Scanner/
DEncodingTest.java61 String csn = StandardCharsets.UTF_8.name(); in getParameters()
62 Charset charset = StandardCharsets.UTF_8; in getParameters()
/libcore/ojluni/src/test/java/nio/charset/Charset/
DIllegalCharsetName.java65 checkAliases(StandardCharsets.UTF_8); in main()
/libcore/support/src/test/java/libcore/testing/io/
DTestIoUtils.java35 return new String(Files.readAllBytes(Paths.get(absolutePath)), StandardCharsets.UTF_8); in readFileAsString()

123