/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
D | ASCIICharsetEncoderTest.java | 34 private final CharsetEncoder encoder = cs.newEncoder(); 152 CharsetEncoder newEncoder = cs.newEncoder(); in testInternalState_Reset() local 154 newEncoder.reset(); in testInternalState_Reset() 157 newEncoder.reset(); in testInternalState_Reset() 163 newEncoder.encode(in, out, false); in testInternalState_Reset() 164 newEncoder.reset(); in testInternalState_Reset() 171 newEncoder.encode(in, out, true); in testInternalState_Reset() 172 newEncoder.reset(); in testInternalState_Reset() 178 newEncoder.encode(in, out, true); in testInternalState_Reset() 179 newEncoder.flush(out); in testInternalState_Reset() [all …]
|
D | ISOCharsetTest.java | 42 this.testingCharset.newEncoder().replacement()[0], in testEncode_Normal() 43 this.testingCharset.newEncoder().replacement()[0] }; in testEncode_Normal()
|
D | ASCCharsetTest.java | 43 this.testingCharset.newEncoder().replacement()[0], in testEncode_Normal() 44 this.testingCharset.newEncoder().replacement()[0] }; in testEncode_Normal()
|
D | CharsetEncoder2Test.java | 135 public CharsetEncoder newEncoder() { in newEncoder() method in CharsetEncoder2Test.MockMalfunctionCharset 159 CharsetEncoder encoder = utf8.newEncoder(); in test_EncodeLjava_nio_CharBufferLjava_nio_ByteBufferB()
|
D | CharsetTest.java | 51 CharsetEncoder enc = cs.newEncoder(); in test_allAvailableCharsets() 627 "abcd" + new String(c1.newEncoder().replacement(), "iso8859-1") + "efg"); 660 "abcd" + new String(c1.newEncoder().replacement(), "iso8859-1") + "efg"); 692 byte[] replacement = c1.newEncoder().replacement(); 732 public CharsetEncoder newEncoder() { 750 public CharsetEncoder newEncoder() {
|
D | CharsetDecoder2Test.java | 145 public CharsetEncoder newEncoder() { in newEncoder() method in CharsetDecoder2Test.MockMalfunctionCharset
|
D | CharsetEncoderTest.java | 66 encoder = cs.newEncoder(); in setUp() 587 CharsetEncoder encoder = cs.newEncoder(); in testEncodeCharBuffer() 1124 public CharsetEncoder newEncoder() { in newEncoder() method in CharsetEncoderTest.MockCharset
|
/libcore/luni/src/test/java/libcore/java/nio/charset/ |
D | CharsetEncoderTest.java | 33 CharsetEncoder e = ascii.newEncoder(); in test_replaceWith() 43 byte[] result = Charset.forName(charset).newEncoder().replacement(); in assertReplacementBytesForEncoder() 70 CharsetEncoder e = cs.newEncoder(); in testSurrogatePairAllAtOnce() 84 CharsetEncoder e = cs.newEncoder(); in testMalformedSurrogatePair() 119 CharsetEncoder e = cs.newEncoder(); in testCharsetEncoderSplitSurrogates() 145 CharsetEncoder e = cs.newEncoder(); in testFlushWithoutEndOfInput() 179 public CharsetEncoder newEncoder() { in newEncoder() method in CharsetEncoderTest.MockCharset 205 CharsetEncoder e = MockCharset.INSTANCE.newEncoder(); 222 CharsetEncoder encoder = StandardCharsets.UTF_8.newEncoder();
|
D | OldCharsetEncoderDecoderBufferTest.java | 96 CharsetEncoder encoder = Charset.forName("UTF-8").newEncoder(); in testEncoderOutputBuffer() 128 CharsetEncoder encoder = Charset.forName("UTF-8").newEncoder(); in testEncoderInputBuffer()
|
D | StandardCharsetsEncoderTest.java | 81 CharsetEncoder encoder = charset.newEncoder(); in testCharset() 131 CharsetEncoder coreEncoder = charset.newEncoder(); in main()
|
D | Charset_TestGenerator.java | 220 CharsetEncoder encoder = charset.newEncoder(); in genEncoded()
|
D | CharsetDecoderTest.java | 87 CharsetEncoder encoder = Charset.forName(charsetName).newEncoder(); in encode()
|
D | OldCharset_AbstractTest.java | 68 encoder = charset.newEncoder(); in setUp()
|
/libcore/ojluni/src/main/java/sun/nio/cs/ |
D | ThreadLocalCoders.java | 122 return Charset.forName((String)name).newEncoder(); 124 return ((Charset)name).newEncoder();
|
D | StreamEncoder.java | 176 cs.newEncoder() in StreamEncoder()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | ChannelsTest.java | 380 .newEncoder(), -1); in testnewWriterCharsetError() 509 … Writer testWriter = Channels.newWriter(null, Charset.forName(CODE_SET).newEncoder(), -1); in testNewWriterWritableByteChannelString_internalBufZero() 531 CODE_SET).newEncoder(), //$NON-NLS-1$ in testNewWriterWritableByteChannelString_InputNull() 554 CODE_SET).newEncoder(), //$NON-NLS-1$ in testNewWriterWritableByteChannelString()
|
/libcore/ojluni/src/main/java/java/util/zip/ |
D | ZipCoder.java | 153 enc = cs.newEncoder() in encoder()
|
/libcore/ojluni/annotations/hiddenapi/java/nio/charset/ |
D | Charset.java | 118 public abstract java.nio.charset.CharsetEncoder newEncoder(); in newEncoder() method in Charset
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | LibcoreIoDerivedBase64Test.java | 243 CharsetEncoder encoder = StandardCharsets.US_ASCII.newEncoder(); in asciiToBytes()
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
D | Channels.java | 608 return newWriter(ch, Charset.forName(csName).newEncoder(), -1);
|
/libcore/ojluni/src/main/java/java/nio/charset/ |
D | Charset.java | 807 public abstract CharsetEncoder newEncoder();
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldOutputStreamWriterTest.java | 153 CharsetEncoder enc = cs.newEncoder(); in test_ConstructorLjava_io_OutputStreamLjava_nio_charset_CharsetEncoder()
|
/libcore/ojluni/src/main/java/java/nio/file/ |
D | Files.java | 2859 CharsetEncoder encoder = cs.newEncoder(); 3350 CharsetEncoder encoder = cs.newEncoder();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | OutputStreamWriterTest.java | 375 CharsetEncoder enc = cs.newEncoder(); in testOutputStreamWriterOutputStreamCharsetEncoder()
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | UnixPath.java | 123 ce = Util.jnuEncoding().newEncoder() in encode()
|