Home
last modified time | relevance | path

Searched refs:malformedForLength (Results 1 – 9 of 9) 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/luni/src/main/java/java/nio/charset/
DCharsetDecoderICU.java119 return CoderResult.malformedForLength(data[INVALID_BYTE_COUNT]); in implFlush()
146 return CoderResult.malformedForLength(data[INVALID_BYTE_COUNT]); in decodeLoop()
DCharsetEncoderICU.java148 return CoderResult.malformedForLength(data[INVALID_CHAR_COUNT]); in implFlush()
176 return CoderResult.malformedForLength(data[INVALID_CHAR_COUNT]); in encodeLoop()
/libcore/ojluni/src/main/java/java/nio/charset/
DCoderResult.java233 public static CoderResult malformedForLength(int length) { in malformedForLength() method in CoderResult
DCharsetDecoder.java576 cr = CoderResult.malformedForLength(in.remaining()); in decode()
DCharsetEncoder.java591 cr = CoderResult.malformedForLength(in.remaining()); in encode()