/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | StringTest.java | 574 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/ |
D | Charset.java | 646 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/ |
D | DefaultCharsetBenchmark.java | 24 Charset.defaultCharset(); in time_defaultCharset()
|
/libcore/ojluni/annotations/hiddenapi/java/nio/charset/ |
D | Charset.java | 90 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/ |
D | FormatterTest.java | 261 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 …]
|
D | ScannerTest.java | 163 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/ |
D | XMLFormatter.java | 244 encoding = java.nio.charset.Charset.defaultCharset().name(); in getHead()
|
/libcore/ojluni/src/main/java/java/io/ |
D | Console.java | 549 cs = Charset.defaultCharset(); in Console()
|
/libcore/libart/src/main/java/java/lang/ |
D | StringFactory.java | 54 return newStringFromBytes(data, offset, byteCount, Charset.defaultCharset()); in newStringFromBytes()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | PrintWriterTest.java | 161 Charset.defaultCharset().name()); in test_ConstructorLjava_io_File_Ljava_lang_String() 188 Charset.defaultCharset().name()); in test_ConstructorLjava_lang_String_Ljava_lang_String()
|
D | PrintStreamTest.java | 84 assertFileContents(UNICODE_STRING.getBytes(Charset.defaultCharset()), testFile); in test_Constructor_Ljava_lang_String()
|
/libcore/ojluni/src/main/java/sun/nio/cs/ |
D | StreamDecoder.java | 69 csn = Charset.defaultCharset().name(); in forInputStreamReader()
|
D | StreamEncoder.java | 56 csn = Charset.defaultCharset().name(); in forOutputStreamWriter()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | ProcessBuilderTest.java | 480 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/ |
D | OldOutputStreamWriterTest.java | 74 Charset.defaultCharset(), in test_ConstructorLjava_io_OutputStream()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | String.java | 978 return getBytes(Charset.defaultCharset()); in getBytes()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
D | CharsetTest.java | 59 assertEquals("UTF-8", Charset.defaultCharset().name()); in test_defaultCharset()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Scanner.java | 732 return makeReadable(source, Charset.defaultCharset().newDecoder()); in makeReadable()
|