Home
last modified time | relevance | path

Searched refs:malformedForLength (Results 1 – 7 of 7) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
DCoderResultTest.java100 assertTrue(CoderResult.malformedForLength(1).isError()); in testIsError()
111 assertTrue(CoderResult.malformedForLength(1).isMalformed()); in testIsMalformed()
122 assertFalse(CoderResult.malformedForLength(1).isUnmappable()); in testIsUnmappable()
133 assertFalse(CoderResult.malformedForLength(1).isOverflow()); in testIsOverflow()
144 assertFalse(CoderResult.malformedForLength(1).isUnderflow()); in testIsUnderflow()
166 assertEquals(CoderResult.malformedForLength(1).length(), 1); in testLength()
175 assertNotNull(CoderResult.malformedForLength(Integer.MAX_VALUE)); in testMalformedForLength()
176 assertNotNull(CoderResult.malformedForLength(1)); in testMalformedForLength()
177 assertSame(CoderResult.malformedForLength(1), CoderResult in testMalformedForLength()
178 .malformedForLength(1)); in testMalformedForLength()
[all …]
DCharsetDecoder2Test.java223 return CoderResult.malformedForLength(1); in decodeLoop()
DCharsetDecoderTest.java813 return CoderResult.malformedForLength("malform".length()); in decodeLoop()
DCharsetEncoderTest.java1056 return CoderResult.malformedForLength("malform".length()); in encodeLoop()
/libcore/ojluni/src/main/java/java/nio/charset/
DCoderResult.java235 public static CoderResult malformedForLength(int length) { in malformedForLength() method in CoderResult
DCharsetDecoder.java593 cr = CoderResult.malformedForLength(in.remaining()); in decode()
DCharsetEncoder.java611 cr = CoderResult.malformedForLength(in.remaining()); in encode()