Home
last modified time | relevance | path

Searched refs:defaultCharset (Results 1 – 18 of 18) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DStringTest.java574 new String(new byte[8], 0, 4, Charset.defaultCharset()); in test_ConstructorBIIL()
575 new String(new byte[8], 8, 0, Charset.defaultCharset()); in test_ConstructorBIIL()
576 new String(new byte[0], 0, 0, Charset.defaultCharset()); in test_ConstructorBIIL()
579 new String(new byte[8], 0, 9, Charset.defaultCharset()); in test_ConstructorBIIL()
585 new String(new byte[8], 9, 0, Charset.defaultCharset()); in test_ConstructorBIIL()
591 new String(new byte[8], -1, 0, Charset.defaultCharset()); in test_ConstructorBIIL()
597 new String(new byte[8], 9, -1, Charset.defaultCharset()); in test_ConstructorBIIL()
603 new String(null, -1, 0, Charset.defaultCharset()); in test_ConstructorBIIL()
609 new String(null, 0, -1, Charset.defaultCharset()); in test_ConstructorBIIL()
615 new String(null, 0, 9, Charset.defaultCharset()); in test_ConstructorBIIL()
[all …]
/libcore/ojluni/src/main/java/java/nio/charset/
DCharset.java646 private static Charset defaultCharset;
657 public static Charset defaultCharset() {
660 if (defaultCharset == null) {
661 defaultCharset = java.nio.charset.StandardCharsets.UTF_8;
664 return defaultCharset;
/libcore/benchmarks/src/benchmarks/regression/
DDefaultCharsetBenchmark.java24 Charset.defaultCharset(); in time_defaultCharset()
/libcore/ojluni/annotations/hiddenapi/java/nio/charset/
DCharset.java90 public static java.nio.charset.Charset defaultCharset() { in defaultCharset() method in Charset
171 private static java.nio.charset.Charset defaultCharset; field in Charset
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DFormatterTest.java261 f = new Formatter((String) null, Charset.defaultCharset().name()); in test_ConstructorLjava_lang_StringLjava_lang_String()
274 f = new Formatter(notExist.getPath(), Charset.defaultCharset().name()); in test_ConstructorLjava_lang_StringLjava_lang_String()
306 f = new Formatter((String) null, Charset.defaultCharset().name(), in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_util_Locale()
320 f = new Formatter(notExist.getPath(), Charset.defaultCharset().name(), in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_util_Locale()
325 f = new Formatter(notExist.getPath(), Charset.defaultCharset().name(), in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_util_Locale()
344 f = new Formatter(readOnly.getPath(), Charset.defaultCharset() in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_util_Locale()
390 f = new Formatter((File) null, Charset.defaultCharset().name()); in test_ConstructorLjava_io_FileLjava_lang_String()
396 f = new Formatter(notExist, Charset.defaultCharset().name()); in test_ConstructorLjava_io_FileLjava_lang_String()
406 f = new Formatter(readOnly, Charset.defaultCharset().name()); in test_ConstructorLjava_io_FileLjava_lang_String()
447 f = new Formatter((File) null, Charset.defaultCharset().name(), in test_ConstructorLjava_io_FileLjava_lang_StringLjava_util_Locale()
[all …]
DScannerTest.java163 s = new Scanner(tmpFile, Charset.defaultCharset().name()); in test_ConstructorLjava_io_FileLjava_lang_String()
169 s = new Scanner(tmpFile, Charset.defaultCharset().name()); in test_ConstructorLjava_io_FileLjava_lang_String()
235 try (Scanner s = new Scanner(tmpFilePath, Charset.defaultCharset().name())){ in test_ConstructorLjava_nio_file_PathLjava_lang_String()
256 try (Scanner s = new Scanner(nonExistentFilePath, Charset.defaultCharset().name())) { in test_ConstructorLjava_nio_file_PathLjava_lang_String_Exception()
323 s = new Scanner(new PipedInputStream(), Charset.defaultCharset().name()); in test_ConstructorLjava_io_InputStreamLjava_lang_String()
411 s = new Scanner(fc, Charset.defaultCharset().name()); in test_ConstructorLjava_nio_channels_ReadableByteChannelLjava_lang_String()
/libcore/ojluni/src/main/java/java/util/logging/
DXMLFormatter.java244 encoding = java.nio.charset.Charset.defaultCharset().name(); in getHead()
/libcore/ojluni/src/main/java/java/io/
DConsole.java549 cs = Charset.defaultCharset(); in Console()
/libcore/libart/src/main/java/java/lang/
DStringFactory.java54 return newStringFromBytes(data, offset, byteCount, Charset.defaultCharset()); in newStringFromBytes()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DPrintWriterTest.java161 Charset.defaultCharset().name()); in test_ConstructorLjava_io_File_Ljava_lang_String()
188 Charset.defaultCharset().name()); in test_ConstructorLjava_lang_String_Ljava_lang_String()
DPrintStreamTest.java84 assertFileContents(UNICODE_STRING.getBytes(Charset.defaultCharset()), testFile); in test_Constructor_Ljava_lang_String()
/libcore/ojluni/src/main/java/sun/nio/cs/
DStreamDecoder.java69 csn = Charset.defaultCharset().name(); in forInputStreamReader()
DStreamEncoder.java56 csn = Charset.defaultCharset().name(); in forOutputStreamWriter()
/libcore/luni/src/test/java/libcore/java/lang/
DProcessBuilderTest.java480 outputStream.write(processInput.getBytes(Charset.defaultCharset())); in checkProcessExecution()
543 return new String(outputStream.toByteArray(), Charset.defaultCharset()); in readAsString()
/libcore/luni/src/test/java/libcore/java/io/
DOldOutputStreamWriterTest.java74 Charset.defaultCharset(), in test_ConstructorLjava_io_OutputStream()
/libcore/ojluni/src/main/java/java/lang/
DString.java978 return getBytes(Charset.defaultCharset()); in getBytes()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
DCharsetTest.java59 assertEquals("UTF-8", Charset.defaultCharset().name()); in test_defaultCharset()
/libcore/ojluni/src/main/java/java/util/
DScanner.java732 return makeReadable(source, Charset.defaultCharset().newDecoder()); in makeReadable()