/external/apache-harmony/nio_char/src/test/java/tests/api/java/nio/charset/ |
D | CharsetProviderTest.java | 21 import java.nio.charset.Charset; 95 assertFalse(Charset.isSupported("mockCharset10")); in testIsSupported_And_ForName_NormalProvider() 96 assertFalse(Charset.isSupported("mockCharset11")); in testIsSupported_And_ForName_NormalProvider() 97 assertFalse(Charset.isSupported("mockCharset12")); in testIsSupported_And_ForName_NormalProvider() 99 Charset.forName("mockCharset10"); in testIsSupported_And_ForName_NormalProvider() 105 Charset.forName("mockCharset11"); in testIsSupported_And_ForName_NormalProvider() 111 Charset.forName("mockCharset12"); in testIsSupported_And_ForName_NormalProvider() 135 assertTrue(Charset.isSupported("mockCharset10")); in testIsSupported_And_ForName_NormalProvider() 137 assertTrue(Charset.isSupported("MockCharset11")); in testIsSupported_And_ForName_NormalProvider() 138 assertTrue(Charset.isSupported("MockCharset12")); in testIsSupported_And_ForName_NormalProvider() [all …]
|
D | CharsetTest.java | 21 import java.nio.charset.Charset; 65 assertTrue(Charset.isSupported("US-ASCII")); in testRequiredCharsetSupported() 66 assertTrue(Charset.isSupported("ASCII")); in testRequiredCharsetSupported() 67 assertTrue(Charset.isSupported("ISO-8859-1")); in testRequiredCharsetSupported() 68 assertTrue(Charset.isSupported("ISO8859_1")); in testRequiredCharsetSupported() 69 assertTrue(Charset.isSupported("UTF-8")); in testRequiredCharsetSupported() 70 assertTrue(Charset.isSupported("UTF8")); in testRequiredCharsetSupported() 71 assertTrue(Charset.isSupported("UTF-16")); in testRequiredCharsetSupported() 72 assertTrue(Charset.isSupported("UTF-16BE")); in testRequiredCharsetSupported() 73 assertTrue(Charset.isSupported("UTF-16LE")); in testRequiredCharsetSupported() [all …]
|
D | AbstractCharsetTestCase.java | 22 import java.nio.charset.Charset; 44 protected Charset testingCharset; 53 this.testingCharset = Charset.forName(this.canonicalName); in setUp() 105 Charset c = Charset.forName(this.aliases[i]); in testAliases()
|
D | GBCharsetEncoderTest.java | 21 import java.nio.charset.Charset; 29 private static final Charset CS = Charset.forName("gb18030");
|
D | UTFCharsetEncoderTest.java | 21 import java.nio.charset.Charset; 29 private static final Charset CS = Charset.forName("utf-8");
|
D | UTF16LECharsetEncoderTest.java | 21 import java.nio.charset.Charset; 29 private static final Charset CS = Charset.forName("utf-16le");
|
D | UTF16BECharsetEncoderTest.java | 21 import java.nio.charset.Charset; 29 private static final Charset CS = Charset.forName("utf-16be");
|
D | UTF16CharsetEncoderTest.java | 22 import java.nio.charset.Charset; 32 private static final Charset CS = Charset.forName("utf-16");
|
D | ISOCharsetEncoderTest.java | 21 import java.nio.charset.Charset; 32 private static final Charset CS = Charset.forName("iso-8859-1");
|
D | ISOCharsetDecoderTest.java | 21 import java.nio.charset.Charset; 29 cs = Charset.forName("iso-8859-1"); in setUp()
|
D | UTF16LECharsetDecoderTest.java | 21 import java.nio.charset.Charset; 29 cs = Charset.forName("utf-16le"); in setUp()
|
D | UTF16BECharsetDecoderTest.java | 21 import java.nio.charset.Charset; 29 cs = Charset.forName("utf-16be"); in setUp()
|
/external/guava/guava/src/com/google/common/base/ |
D | Charsets.java | 19 import java.nio.charset.Charset; 34 public static final Charset US_ASCII = Charset.forName("US-ASCII"); 39 public static final Charset ISO_8859_1 = Charset.forName("ISO-8859-1"); 44 public static final Charset UTF_8 = Charset.forName("UTF-8"); 49 public static final Charset UTF_16BE = Charset.forName("UTF-16BE"); 54 public static final Charset UTF_16LE = Charset.forName("UTF-16LE"); 60 public static final Charset UTF_16 = Charset.forName("UTF-16");
|
/external/apache-harmony/nio_char/src/test/java/org/apache/harmony/nio_char/tests/java/nio/charset/ |
D | CharsetTest.java | 21 import java.nio.charset.Charset; 46 Set names = Charset.availableCharsets().keySet(); in setUp() 64 Charset.forName(name).isRegistered()); in test_isRegistered() 69 Charset.forName(name).isRegistered()); in test_isRegistered() 79 Charset.isSupported(""); in testIsSupported_EmptyString() 87 assertEquals("UTF-8", Charset.defaultCharset().name()); in test_defaultCharset() 95 Charset cs1 = Charset.forName("UTF-8"); in test_forNameLjava_lang_String() 96 Charset cs2 = Charset.forName("UTF-8"); in test_forNameLjava_lang_String() 103 Charset cs3 = Charset.forName("ASCII"); in test_forNameLjava_lang_String() 104 Charset cs4 = Charset.forName("US-ASCII"); in test_forNameLjava_lang_String() [all …]
|
D | CharsetEncoderTest.java | 23 import java.nio.charset.Charset; 40 Charset cs = Charset.forName("UTF-8"); //$NON-NLS-1$ in test_ConstructorLjava_nio_charset_CharsetFF() 48 Charset cs = Charset.forName("ISO8859-1"); //$NON-NLS-1$ in test_ConstructorLjava_nio_charset_CharsetFF() 73 protected MockCharsetEncoderForHarmony141(Charset cs, in MockCharsetEncoderForHarmony141() 78 public MockCharsetEncoderForHarmony141(Charset cs, in MockCharsetEncoderForHarmony141() 91 public MockCharsetEncoderForHarmony491(Charset arg0, float arg1, in MockCharsetEncoderForHarmony491() 121 static final class MockMalfunctionCharset extends Charset { 127 public boolean contains(Charset cs) { in contains() 132 return Charset.forName("UTF-8").newDecoder(); in newDecoder() 145 public MockMalfunctionEncoder(Charset cs) { in MockMalfunctionEncoder() [all …]
|
D | CharsetDecoderTest.java | 24 import java.nio.charset.Charset; 44 Charset cs = Charset.forName("UTF-8"); //$NON-NLS-1$ in test_ConstructorLjava_nio_charset_CharsetFF() 56 protected MockCharsetDecoderForHarmony142(Charset cs, in MockCharsetDecoderForHarmony142() 91 CharsetDecoder decoder2 = Charset.forName("UTF-16").newDecoder(); in test_decode() 131 static final class MockMalfunctionCharset extends Charset { 137 public boolean contains(Charset cs) { in contains() 155 public MockMalfunctionDecoder(Charset cs) { in MockMalfunctionDecoder() 169 public MockMalfunctionEncoder(Charset cs) { in MockMalfunctionEncoder() 184 Charset cs = Charset.forName("UTF-8"); in testDecodeLjava_nio_ByteBuffer_ReplaceOverflow() 211 public MockMalformedDecoder(Charset cs) { in MockMalformedDecoder() [all …]
|
/external/okhttp/src/main/java/libcore/util/ |
D | Charsets.java | 19 import java.nio.charset.Charset; 34 public static final Charset ISO_8859_1 = Charset.forName("ISO-8859-1"); 39 public static final Charset US_ASCII = Charset.forName("US-ASCII"); 44 public static final Charset UTF_8 = Charset.forName("UTF-8");
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/ |
D | StringTest.java | 22 import java.nio.charset.Charset; 607 new String(new byte[8], 0, 4, Charset.defaultCharset()); in test_ConstructorBIIL() 608 new String(new byte[8], 8, 0, Charset.defaultCharset()); in test_ConstructorBIIL() 609 new String(new byte[0], 0, 0, Charset.defaultCharset()); in test_ConstructorBIIL() 612 new String(new byte[8], 0, 9, Charset.defaultCharset()); in test_ConstructorBIIL() 618 new String(new byte[8], 9, 0, Charset.defaultCharset()); in test_ConstructorBIIL() 624 new String(new byte[8], -1, 0, Charset.defaultCharset()); in test_ConstructorBIIL() 630 new String(new byte[8], 9, -1, Charset.defaultCharset()); in test_ConstructorBIIL() 636 new String(null, -1, 0, Charset.defaultCharset()); in test_ConstructorBIIL() 642 new String(null, 0, -1, Charset.defaultCharset()); in test_ConstructorBIIL() [all …]
|
/external/guava/guava-tests/test/com/google/common/base/ |
D | CharsetsTest.java | 21 import java.nio.charset.Charset; 30 assertEquals(Charset.forName("US-ASCII"), Charsets.US_ASCII); in testUsAscii() 34 assertEquals(Charset.forName("ISO-8859-1"), Charsets.ISO_8859_1); in testIso88591() 38 assertEquals(Charset.forName("UTF-8"), Charsets.UTF_8); in testUtf8() 42 assertEquals(Charset.forName("UTF-16BE"), Charsets.UTF_16BE); in testUtf16be() 46 assertEquals(Charset.forName("UTF-16LE"), Charsets.UTF_16LE); in testUtf16le() 50 assertEquals(Charset.forName("UTF-16"), Charsets.UTF_16); in testUtf16()
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/ |
D | InputStreamReaderTest.java | 29 import java.nio.charset.Charset; 185 Charset cs = Charset.forName("utf-8"); in test_close() 186 assertEquals(cs, Charset.forName(reader.getEncoding())); in test_close() 243 assertEquals(Charset.forName(reader2.getEncoding()), Charset in test_ConstructorLjava_io_InputStreamLjava_lang_String() 247 assertEquals(Charset.forName(reader2.getEncoding()), Charset in test_ConstructorLjava_io_InputStreamLjava_lang_String() 258 Charset cs = Charset.forName("utf-8"); in test_ConstructorLjava_io_InputStreamLjava_nio_charset_Charset() 266 reader = new InputStreamReader(in, (Charset) null); in test_ConstructorLjava_io_InputStreamLjava_nio_charset_Charset() 272 assertEquals(Charset.forName(reader2.getEncoding()), cs); in test_ConstructorLjava_io_InputStreamLjava_nio_charset_Charset() 282 CharsetDecoder decoder = Charset.forName("utf-8").newDecoder(); in test_ConstructorLjava_io_InputStreamLjava_nio_charset_CharsetDecoder() 296 assertEquals(Charset.forName(reader2.getEncoding()), decoder.charset()); in test_ConstructorLjava_io_InputStreamLjava_nio_charset_CharsetDecoder() [all …]
|
D | OutputStreamWriterTest.java | 30 import java.nio.charset.Charset; 343 assertEquals(Charset.forName("ascii"), Charset.forName(writer2 in testOutputStreamWriterOutputStreamString() 352 Charset cs = Charset.forName("ascii"); in testOutputStreamWriterOutputStreamCharset() 360 writer = new OutputStreamWriter(out, (Charset) null); in testOutputStreamWriterOutputStreamCharset() 366 assertEquals(cs, Charset.forName(writer2.getEncoding())); in testOutputStreamWriterOutputStreamCharset() 375 Charset cs = Charset.forName("ascii"); in testOutputStreamWriterOutputStreamCharsetEncoder() 390 assertEquals(cs, Charset.forName(writer2.getEncoding())); in testOutputStreamWriterOutputStreamCharsetEncoder() 395 Charset cs = Charset.forName("utf-8"); in testGetEncoding() 396 assertEquals(cs, Charset.forName(writer.getEncoding())); in testGetEncoding()
|
/external/guava/guava/src/com/google/common/io/ |
D | Files.java | 42 import java.nio.charset.Charset; 72 public static BufferedReader newReader(File file, Charset charset) in newReader() 86 public static BufferedWriter newWriter(File file, Charset charset) in newWriter() 151 Charset charset) { 164 Charset charset) { 179 Charset charset, boolean append) { 222 public static String toString(File file, Charset charset) throws IOException { 299 InputSupplier<R> from, File to, Charset charset) throws IOException { 312 public static void write(CharSequence from, File to, Charset charset) 326 public static void append(CharSequence from, File to, Charset charset) [all …]
|
D | Resources.java | 29 import java.nio.charset.Charset; 74 URL url, Charset charset) { 98 public static String toString(URL url, Charset charset) throws IOException { 112 public static <T> T readLines(URL url, Charset charset, 127 public static List<String> readLines(URL url, Charset charset)
|
/external/apache-harmony/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/ |
D | ChannelsTest.java | 37 import java.nio.charset.Charset; 366 Channels.newReader(rbChannel, Charset.forName(BAD_CODE_SET) in testnewReaderCharsetError() 379 Channels.newWriter(wbChannel, Charset.forName(BAD_CODE_SET) in testnewWriterCharsetError() 400 testReader = Channels.newReader(null, Charset.forName(CODE_SET).newDecoder(), -1); in testNewReaderReadableByteChannelString_InputNull() 414 testReader = Channels.newReader(rbChannel, Charset.forName(CODE_SET).newDecoder(), -1); in testNewReaderReadableByteChannelString_InputNull() 437 testReader = Channels.newReader(null, Charset.forName(CODE_SET).newDecoder(), 0); in testNewReaderReadableByteChannelString_internalBufferZero() 450 testReader = Channels.newReader(rbChannel, Charset.forName(CODE_SET).newDecoder(), -1); in testNewReaderReadableByteChannelString_internalBufferZero() 470 Reader testReader = Channels.newReader(rbChannel, Charset.forName( in testNewReaderReadableByteChannelString() 509 … Writer testWriter = Channels.newWriter(null, Charset.forName(CODE_SET).newEncoder(), -1); in testNewWriterWritableByteChannelString_internalBufZero() 528 Writer testWriter = Channels.newWriter(wbChannel, Charset.forName( in testNewWriterWritableByteChannelString_InputNull() [all …]
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
D | PropertyResourceBundleTest.java | 28 import java.nio.charset.Charset; 73 Charset charset = Charset.forName("ISO-8859-1"); in test_ConstructorLjava_io_Reader() 85 charset = Charset.forName("UTF-8"); in test_ConstructorLjava_io_Reader()
|