Searched refs:averageCharsPerByte (Results 1 – 3 of 3) sorted by relevance
/libcore/ojluni/src/main/java/java/nio/charset/ |
D | CharsetDecoder.java | 141 private final float averageCharsPerByte; field in CharsetDecoder 188 float averageCharsPerByte, in CharsetDecoder() argument 193 if (averageCharsPerByte <= 0.0f) in CharsetDecoder() 200 if (averageCharsPerByte > maxCharsPerByte) in CharsetDecoder() 206 this.averageCharsPerByte = averageCharsPerByte; in CharsetDecoder() 232 float averageCharsPerByte, in CharsetDecoder() argument 236 averageCharsPerByte, maxCharsPerByte, in CharsetDecoder() 454 public final float averageCharsPerByte() { in averageCharsPerByte() method in CharsetDecoder 455 return averageCharsPerByte; in averageCharsPerByte() 796 int n = (int)(in.remaining() * averageCharsPerByte()); in decode()
|
/libcore/luni/src/main/java/java/nio/charset/ |
D | CharsetDecoderICU.java | 59 float averageCharsPerByte = NativeConverter.getAveCharsPerByte(address); in newInstance() local 60 result = new CharsetDecoderICU(cs, averageCharsPerByte, address); in newInstance() 73 private CharsetDecoderICU(Charset cs, float averageCharsPerByte, long address) { in CharsetDecoderICU() argument 74 super(cs, averageCharsPerByte, MAX_CHARS_PER_BYTE); in CharsetDecoderICU()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
D | CharsetDecoderTest.java | 98 assertEquals(1.0, ec.averageCharsPerByte(), 0.0); in testCharsetDecoder() 107 assertEquals(1.0, ec.averageCharsPerByte(), 0.0); in testCharsetDecoder()
|