/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
D | CharsetDecoder2Test.java | 92 decoder2.onMalformedInput(CodingErrorAction.REPORT); in test_decode() 110 cs1.newDecoder().onMalformedInput(CodingErrorAction.REPLACE) in test_decodeLjava_nio_ByteBuffer() 186 decoder.onMalformedInput(CodingErrorAction.REPLACE); in testDecodeLjava_nio_ByteBuffer_ReplaceOverflow() 251 decoder.onMalformedInput(CodingErrorAction.REPORT); in testInvalidDecoding()
|
D | CharsetDecoderTest.java | 150 decoder.onMalformedInput(null); in testOnMalformedInput() 154 decoder.onMalformedInput(CodingErrorAction.IGNORE); in testOnMalformedInput() 241 decoder.onMalformedInput(CodingErrorAction.REPORT); in testDecodeByteBufferException() 254 decoder.onMalformedInput(CodingErrorAction.IGNORE); in testDecodeByteBufferException() 260 decoder.onMalformedInput(CodingErrorAction.REPLACE); in testDecodeByteBufferException() 266 decoder.onMalformedInput(CodingErrorAction.REPORT); in testDecodeByteBufferException() 411 decoder.onMalformedInput(CodingErrorAction.REPORT); in implTestDecodeCharBufferByteBufferUnmappedException() 466 decoder.onMalformedInput(CodingErrorAction.REPORT); in implTestDecodeCharBufferByteBufferMalformedException() 473 decoder.onMalformedInput(CodingErrorAction.IGNORE); in implTestDecodeCharBufferByteBufferMalformedException() 480 decoder.onMalformedInput(CodingErrorAction.REPLACE); in implTestDecodeCharBufferByteBufferMalformedException()
|
D | CharsetEncoderTest.java | 92 assertSame(encoder, encoder.onMalformedInput(CodingErrorAction.IGNORE)); in testDefaultValue() 116 assertSame(encoder, encoder.onMalformedInput(CodingErrorAction.IGNORE)); in testCharsetEncoderCharsetfloatfloat() 588 encoder.onMalformedInput(CodingErrorAction.REPLACE); in testEncodeCharBuffer() 631 encoder.onMalformedInput(CodingErrorAction.REPORT); in testEncodeCharBufferException() 643 encoder.onMalformedInput(CodingErrorAction.IGNORE); in testEncodeCharBufferException() 649 encoder.onMalformedInput(CodingErrorAction.REPLACE); in testEncodeCharBufferException() 656 encoder.onMalformedInput(CodingErrorAction.REPORT); in testEncodeCharBufferException() 834 encoder.onMalformedInput(CodingErrorAction.REPORT); in implTestEncodeCharBufferByteBufferbooleanException() 844 encoder.onMalformedInput(CodingErrorAction.IGNORE); in implTestEncodeCharBufferByteBufferbooleanException() 852 encoder.onMalformedInput(CodingErrorAction.REPLACE); in implTestEncodeCharBufferByteBufferbooleanException() [all …]
|
D | ISOCharsetEncoderTest.java | 84 encoder.onMalformedInput(CodingErrorAction.REPORT); in testMultiStepEncode()
|
D | ASCIICharsetEncoderTest.java | 77 encoder.onMalformedInput(CodingErrorAction.REPORT); in testMultiStepEncode()
|
/libcore/luni/src/main/java/libcore/icu/ |
D | NativeConverter.java | 61 …private static native void setCallbackDecode(long converterHandle, int onMalformedInput, int onUnm… in setCallbackDecode() argument 69 …private static native void setCallbackEncode(long converterHandle, int onMalformedInput, int onUnm… in setCallbackEncode() argument
|
/libcore/luni/src/main/native/ |
D | libcore_icu_NativeConverter.cpp | 50 UConverterToUCallback onMalformedInput; member 57 UConverterFromUCallback onMalformedInput; member 356 ctx->onMalformedInput(ctx, args, codeUnits, length, codePoint, reason, status); in CHARSET_ENCODER_CALLBACK() 388 jint onMalformedInput, jint onUnmappableInput, jbyteArray javaReplacement) { in NativeConverter_setCallbackEncode() argument 405 callbackContext->onMalformedInput = getFromUCallback(onMalformedInput); in NativeConverter_setCallbackEncode() 460 ctx->onMalformedInput(ctx, args, codeUnits, length, reason, status); in CHARSET_DECODER_CALLBACK() 472 jint onMalformedInput, jint onUnmappableInput, jstring javaReplacement) { in NativeConverter_setCallbackDecode() argument 489 callbackContext->onMalformedInput = getToUCallback(onMalformedInput); in NativeConverter_setCallbackDecode()
|
/libcore/luni/src/main/java/java/nio/charset/ |
D | CharsetEncoder.java | 199 onMalformedInput(CodingErrorAction.REPORT); in canEncode() 207 onMalformedInput(originalMalformedInputAction); in canEncode() 536 decoder.onMalformedInput(CodingErrorAction.REPORT); in isLegalReplacement() 574 public final CharsetEncoder onMalformedInput(CodingErrorAction newAction) { in onMalformedInput() method in CharsetEncoder
|
D | Charset.java | 443 .onMalformedInput(CodingErrorAction.REPLACE) in encode() 479 .onMalformedInput(CodingErrorAction.REPLACE) in decode()
|
D | CharsetDecoder.java | 560 public final CharsetDecoder onMalformedInput(CodingErrorAction newAction) { in onMalformedInput() method in CharsetDecoder
|
/libcore/luni/src/test/java/libcore/java/nio/charset/ |
D | OldCharset_SingleByteAbstractTest.java | 51 decoder.onMalformedInput(CodingErrorAction.REPLACE); in dumpDecoded() 67 decoder.onMalformedInput(CodingErrorAction.REPLACE); in decodeReplace()
|
D | OldCharset_MultiByte_EUC_JP.java | 36 decoder.onMalformedInput(CodingErrorAction.REPORT); in test_CodecDynamic()
|
D | OldCharset_AbstractTest.java | 125 decoder.onMalformedInput(CodingErrorAction.REPORT); in decode() 149 decoder.onMalformedInput(CodingErrorAction.REPORT); in NNtest_CodecDynamicIndividuals() 178 decoder.onMalformedInput(CodingErrorAction.REPORT); in test_CodecDynamic()
|
D | CharsetEncoderTest.java | 32 e.onMalformedInput(CodingErrorAction.REPLACE); in test_replaceWith() 118 e.onMalformedInput(cea); in testCharsetEncoderSplitSurrogates()
|
D | CharsetDecoderTest.java | 33 d.onMalformedInput(CodingErrorAction.REPLACE); in test_replaceWith()
|
/libcore/luni/src/main/java/java/io/ |
D | InputStreamReader.java | 83 decoder = Charset.forName(charsetName).newDecoder().onMalformedInput( in InputStreamReader() 122 decoder = charset.newDecoder().onMalformedInput( in InputStreamReader()
|
D | OutputStreamWriter.java | 85 encoder.onMalformedInput(CodingErrorAction.REPLACE); in OutputStreamWriter() 103 encoder.onMalformedInput(CodingErrorAction.REPLACE); in OutputStreamWriter()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | InputStreamReaderTest.java | 382 decoder.onMalformedInput(CodingErrorAction.REPORT); in test_read_1() 393 decoder2.onMalformedInput(CodingErrorAction.IGNORE); in test_read_1() 399 decoder3.onMalformedInput(CodingErrorAction.REPLACE); in test_read_1()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | StringTest.java | 348 decoder.onMalformedInput(CodingErrorAction.REPLACE); in test_23831()
|