Home
last modified time | relevance | path

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

/libcore/luni/src/main/java/java/nio/charset/
DCharsetEncoderICU.java23 import libcore.icu.NativeConverter;
73 address = NativeConverter.openConverter(icuCanonicalName); in newInstance()
74 float averageBytesPerChar = NativeConverter.getAveBytesPerChar(address); in newInstance()
75 float maxBytesPerChar = NativeConverter.getMaxBytesPerChar(address); in newInstance()
80 NativeConverter.closeConverter(address); in newInstance()
85 NativeConverter.registerConverter(result, address); in newInstance()
97 return NativeConverter.getSubstitutionBytes(address); in makeReplacement()
119 NativeConverter.setCallbackEncode(converterHandle, this); in updateCallback()
123 NativeConverter.resetCharToByte(converterHandle); in implReset()
145 … int error = NativeConverter.encode(converterHandle, input, inEnd, output, outEnd, data, true); in implFlush()
[all …]
DCharsetDecoderICU.java21 import libcore.icu.NativeConverter;
58 address = NativeConverter.openConverter(icuCanonicalName); in newInstance()
59 float averageCharsPerByte = NativeConverter.getAveCharsPerByte(address); in newInstance()
63 NativeConverter.closeConverter(address); in newInstance()
68 NativeConverter.registerConverter(result, address); in newInstance()
91 NativeConverter.setCallbackDecode(converterHandle, this); in updateCallback()
95 NativeConverter.resetByteToChar(converterHandle); in implReset()
117 … int error = NativeConverter.decode(converterHandle, input, inEnd, output, outEnd, data, true); in implFlush()
143 … int error = NativeConverter.decode(converterHandle, input, inEnd, output, outEnd, data, false); in decodeLoop()
DCharsetICU.java12 import libcore.icu.NativeConverter;
39 return NativeConverter.contains(this.name(), cs.name()); in contains()
/libcore/luni/src/main/native/
Dlibcore_icu_NativeConverter.cpp679 … NATIVE_METHOD(NativeConverter, charsetForName, "(Ljava/lang/String;)Ljava/nio/charset/Charset;"),
680 NATIVE_METHOD(NativeConverter, closeConverter, "(J)V"),
681 NATIVE_METHOD(NativeConverter, contains, "(Ljava/lang/String;Ljava/lang/String;)Z"),
682 NATIVE_METHOD(NativeConverter, decode, "(J[BI[CI[IZ)I"),
683 NATIVE_METHOD(NativeConverter, encode, "(J[CI[BI[IZ)I"),
684 NATIVE_METHOD(NativeConverter, getAvailableCharsetNames, "()[Ljava/lang/String;"),
685 NATIVE_METHOD(NativeConverter, getAveBytesPerChar, "(J)F"),
686 NATIVE_METHOD(NativeConverter, getAveCharsPerByte, "(J)F"),
687 NATIVE_METHOD(NativeConverter, getMaxBytesPerChar, "(J)I"),
688 NATIVE_METHOD(NativeConverter, getMinBytesPerChar, "(J)I"),
[all …]
/libcore/luni/src/main/java/libcore/icu/
DNativeConverter.java19 public final class NativeConverter { class
21 NativeConverter.class.getClassLoader(), getNativeFinalizer(), getNativeSize());
/libcore/ojluni/src/main/java/java/nio/charset/
DCharset.java30 import libcore.icu.NativeConverter;
511 if ((cs = NativeConverter.charsetForName(charsetName)) != null ||
631 for (String charsetName : NativeConverter.getAvailableCharsetNames()) {
632 Charset charset = NativeConverter.charsetForName(charsetName);
/libcore/
Dnon_openjdk_java_files.bp301 "luni/src/main/java/libcore/icu/NativeConverter.java",