/libcore/luni/src/test/java/libcore/java/io/ |
D | OldCharArrayReaderTest.java | 27 CharArrayReader cr; field in OldCharArrayReaderTest 36 cr = new CharArrayReader(hw); in test_Constructor$C() 37 assertTrue("Failed to create reader", cr.ready()); in test_Constructor$C() 48 cr = new CharArrayReader(null, 0, 0); in test_Constructor$CII() 54 cr = new CharArrayReader(hw, -1, 0); in test_Constructor$CII() 60 cr = new CharArrayReader(hw, 0, -1); in test_Constructor$CII() 66 cr = new CharArrayReader(hw, hw.length + 1, 1); in test_Constructor$CII() 72 cr = new CharArrayReader(hw, 5, 5); in test_Constructor$CII() 73 assertTrue("Test 5: Failed to create reader", cr.ready()); in test_Constructor$CII() 75 'W', cr.read()); in test_Constructor$CII() [all …]
|
D | OldCharArrayWriterTest.java | 29 CharArrayReader cr; field in OldCharArrayWriterTest 135 if (cr != null) { in tearDown() 136 cr.close(); in tearDown()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | CharArrayReaderTest.java | 27 CharArrayReader cr; field in CharArrayReaderTest 33 cr = new CharArrayReader(hw); in test_Constructor$C() 34 assertTrue("Failed to create reader", cr.ready()); in test_Constructor$C() 41 cr = new CharArrayReader(hw, 5, 5); in test_Constructor$CII() 42 assertTrue("Failed to create reader", cr.ready()); in test_Constructor$CII() 44 int c = cr.read(); in test_Constructor$CII() 53 cr = new CharArrayReader(hw); in test_close() 54 cr.close(); in test_close() 56 cr.read(); in test_close() 63 cr.close(); in test_close() [all …]
|
D | CharArrayWriterTest.java | 31 CharArrayReader cr; field in CharArrayWriterTest 70 cr = new CharArrayReader(cw.toCharArray()); in test_reset() 72 cr.read(c, 0, 5); in test_reset() 91 cr = new CharArrayReader(cw.toCharArray()); in test_toCharArray() 93 cr.read(c, 0, 10); in test_toCharArray() 103 cr = new CharArrayReader(cw.toCharArray()); in test_toString() 112 cr = new CharArrayReader(cw.toCharArray()); in test_write$CII() 114 cr.read(c, 0, 5); in test_write$CII() 137 cr = new CharArrayReader(cw.toCharArray()); in test_writeI() 138 assertEquals("Writer failed to write char", 'T', cr.read()); in test_writeI() [all …]
|
/libcore/luni/src/test/java/libcore/java/nio/charset/ |
D | CharsetEncoderTest.java | 72 CoderResult cr = e.encode(CharBuffer.wrap(new char[] { '\ud842', '\udf9f' }), bb, false); in testSurrogatePairAllAtOnce() local 73 assertEquals(CoderResult.UNDERFLOW, cr); in testSurrogatePairAllAtOnce() 86 CoderResult cr = e.encode(CharBuffer.wrap(new char[] { '\udf9f' }), bb, false); in testMalformedSurrogatePair() local 87 assertTrue(cr.toString(), cr.isMalformed()); in testMalformedSurrogatePair() 88 assertEquals(1, cr.length()); in testMalformedSurrogatePair() 123 CoderResult cr = e.encode(CharBuffer.wrap(new char[] { '\ud842' }), bb, false); in testCharsetEncoderSplitSurrogates() local 124 assertEquals(CoderResult.UNDERFLOW, cr); in testCharsetEncoderSplitSurrogates() 126 cr = e.encode(CharBuffer.wrap(new char[] { '\udf9f' }), bb, false); in testCharsetEncoderSplitSurrogates() 127 assertEquals(CoderResult.UNDERFLOW, cr); in testCharsetEncoderSplitSurrogates() 135 cr = e.encode(CharBuffer.wrap(new char[] { }), bb, true); in testCharsetEncoderSplitSurrogates() [all …]
|
D | CharsetDecoderTest.java | 98 CoderResult cr; in testUtf8BytesSplitAcrossMultipleWrites() local 99 cr = decoder.decode(ByteBuffer.wrap(new byte[] { (byte) 0xe2 }), cb, false); in testUtf8BytesSplitAcrossMultipleWrites() 100 assertEquals(CoderResult.UNDERFLOW, cr); in testUtf8BytesSplitAcrossMultipleWrites() 101 cr = decoder.decode(ByteBuffer.wrap(new byte[] { (byte) 0x98 }), cb, false); in testUtf8BytesSplitAcrossMultipleWrites() 102 assertEquals(CoderResult.UNDERFLOW, cr); in testUtf8BytesSplitAcrossMultipleWrites() 103 cr = decoder.decode(ByteBuffer.wrap(new byte[] { (byte) 0x83 }), cb, false); in testUtf8BytesSplitAcrossMultipleWrites() 104 assertEquals(CoderResult.UNDERFLOW, cr); in testUtf8BytesSplitAcrossMultipleWrites() 105 cr = decoder.decode(ByteBuffer.wrap(new byte[0]), cb, true); in testUtf8BytesSplitAcrossMultipleWrites() 106 assertEquals(CoderResult.UNDERFLOW, cr); in testUtf8BytesSplitAcrossMultipleWrites() 107 cr = decoder.flush(cb); in testUtf8BytesSplitAcrossMultipleWrites() [all …]
|
/libcore/ojluni/src/main/java/java/nio/charset/ |
D | CharsetDecoder.java | 620 CoderResult cr; in decode() local 622 cr = decodeLoop(in, out); in decode() 627 if (cr.isOverflow()) in decode() 628 return cr; in decode() 630 if (cr.isUnderflow()) { in decode() 632 cr = CoderResult.malformedForLength(in.remaining()); in decode() 635 return cr; in decode() 640 if (cr.isMalformed()) in decode() 642 else if (cr.isUnmappable()) in decode() 645 assert false : cr.toString(); in decode() [all …]
|
D | CharsetEncoder.java | 382 CoderResult cr = dec.decode(bb, cb, true); in isLegalReplacement() local 383 return !cr.isError(); in isLegalReplacement() 620 CoderResult cr; in encode() local 622 cr = encodeLoop(in, out); in encode() 627 if (cr.isOverflow()) in encode() 628 return cr; in encode() 630 if (cr.isUnderflow()) { in encode() 632 cr = CoderResult.malformedForLength(in.remaining()); in encode() 635 return cr; in encode() 640 if (cr.isMalformed()) in encode() [all …]
|
D | Charset-X-Coder.java.template | 382 CoderResult cr = dec.decode(bb, cb, true); 383 return !cr.isError(); 620 CoderResult cr; 622 cr = $code$Loop(in, out); 627 if (cr.isOverflow()) 628 return cr; 630 if (cr.isUnderflow()) { 632 cr = CoderResult.malformedForLength(in.remaining()); 635 return cr; 640 if (cr.isMalformed()) [all …]
|
/libcore/ojluni/src/main/java/sun/util/ |
D | PropertyResourceBundleCharset.java | 93 CoderResult cr = cdUTF_8.decode(in, out, false); in decodeLoop() local 94 if (cr.isUnderflow() || cr.isOverflow() || in decodeLoop() 96 return cr; in decodeLoop() 101 assert cr.isMalformed() || cr.isUnmappable(); in decodeLoop()
|
/libcore/ojluni/src/main/java/sun/nio/cs/ |
D | StreamDecoder.java | 325 CoderResult cr = decoder.flush(cb); in implRead() local 326 if (cr.isOverflow()) { in implRead() 332 if (cr.isUnderflow()) { in implRead() 340 cr.throwException(); in implRead() 347 CoderResult cr = decoder.decode(bb, cb, eof); in implRead() local 348 if (cr.isUnderflow()) { in implRead() 368 if (cr.isOverflow()) { in implRead() 372 cr.throwException(); in implRead() 379 CoderResult cr = decoder.flush(cb); in implRead() local 380 if (cr.isOverflow()) { in implRead() [all …]
|
D | StreamEncoder.java | 254 CoderResult cr = encoder.encode(lcb, bb, endOfInput); in flushLeftoverChar() local 255 if (cr.isUnderflow()) { in flushLeftoverChar() 264 if (cr.isOverflow()) { in flushLeftoverChar() 269 cr.throwException(); in flushLeftoverChar() 289 CoderResult cr = encoder.encode(cb, bb, false); in implWrite() local 290 if (cr.isUnderflow()) { in implWrite() 298 if (cr.isOverflow()) { in implWrite() 303 cr.throwException(); in implWrite() 322 CoderResult cr = encoder.flush(bb); in implClose() local 323 if (cr.isUnderflow()) in implClose() [all …]
|
/libcore/ojluni/src/main/java/java/lang/constant/ |
D | MethodTypeDescImpl.java | 56 for (ClassDesc cr : argTypes) in MethodTypeDescImpl() 57 if (cr.isPrimitive() && cr.descriptorString().equals("V")) in MethodTypeDescImpl()
|
/libcore/ojluni/src/main/java/sun/net/www/ |
D | ParseUtil.java | 214 CoderResult cr = dec.decode(bb, cb, true); in decode() local 215 if (cr.isError()) in decode() 217 cr = dec.flush(cb); in decode() 218 if (cr.isError()) in decode()
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | UnixPath.java | 138 CoderResult cr = ce.encode(cb, bb, true); in encode() local 140 if (!cr.isUnderflow()) { in encode() 143 cr = ce.flush(bb); in encode() 144 error = !cr.isUnderflow(); in encode()
|
/libcore/ojluni/src/main/java/java/net/ |
D | URI.java | 2865 CoderResult cr = dec.decode(bb, cb, true); in decode() local 2866 assert cr.isUnderflow(); in decode() 2867 cr = dec.flush(cb); in decode() 2868 assert cr.isUnderflow(); in decode()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | ScannerTest.java | 5552 CountReadable cr = new CountReadable(); in test_nextLine() local 5553 s = new Scanner(cr); in test_nextLine() 5557 assertEquals(1, cr.counter); in test_nextLine()
|