/libcore/ojluni/src/main/java/java/nio/charset/ |
D | CharsetEncoder.java | 142 private final float maxBytesPerChar; field in CharsetEncoder 189 float maxBytesPerChar, in CharsetEncoder() argument 193 this(cs, averageBytesPerChar, maxBytesPerChar, replacement, false); in CharsetEncoder() 202 …protected CharsetEncoder(Charset cs, float averageBytesPerChar, float maxBytesPerChar, byte[] repl… in CharsetEncoder() argument 210 if (maxBytesPerChar <= 0.0f) in CharsetEncoder() 214 if (averageBytesPerChar > maxBytesPerChar) in CharsetEncoder() 221 this.maxBytesPerChar = maxBytesPerChar; in CharsetEncoder() 251 float maxBytesPerChar) in CharsetEncoder() argument 254 averageBytesPerChar, maxBytesPerChar, in CharsetEncoder() 313 if (len > maxBytesPerChar) in replaceWith() [all …]
|
/libcore/ojluni/annotations/hiddenapi/java/nio/charset/ |
D | CharsetEncoder.java | 39 float maxBytesPerChar, in CharsetEncoder() argument 47 float maxBytesPerChar, in CharsetEncoder() argument 54 java.nio.charset.Charset cs, float averageBytesPerChar, float maxBytesPerChar) { in CharsetEncoder() argument 108 public final float maxBytesPerChar() { in maxBytesPerChar() method in CharsetEncoder 182 private final float maxBytesPerChar; field in CharsetEncoder 185 maxBytesPerChar = 0;
|
/libcore/ojluni/annotations/mmodule/java/nio/charset/ |
D | CharsetEncoder.annotated.java | 40 …ncoder(java.nio.charset.Charset cs, float averageBytesPerChar, float maxBytesPerChar, byte[] repla… in CharsetEncoder() argument 43 …ncoder(java.nio.charset.Charset cs, float averageBytesPerChar, float maxBytesPerChar, byte[] repla… in CharsetEncoder() argument 45 …ncoder(java.nio.charset.Charset cs, float averageBytesPerChar, float maxBytesPerChar) { throw new … in CharsetEncoder() argument 71 public final float maxBytesPerChar() { throw new RuntimeException("Stub!"); } in maxBytesPerChar() method in CharsetEncoder
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
D | CharsetEncoder2Test.java | 74 float averageBytesPerChar, float maxBytesPerChar) { in MockCharsetEncoderForHarmony141() argument 75 super(cs, averageBytesPerChar, maxBytesPerChar); in MockCharsetEncoderForHarmony141() 79 float averageBytesPerChar, float maxBytesPerChar, in MockCharsetEncoderForHarmony141() argument 81 super(cs, averageBytesPerChar, maxBytesPerChar, replacement); in MockCharsetEncoderForHarmony141()
|
D | GBCharsetEncoderTest.java | 69 assertEquals(4.0, encoder.maxBytesPerChar(), 0.0); in testSpecificDefaultValue()
|
D | UTFCharsetEncoderTest.java | 75 assertEquals(3, encoder.maxBytesPerChar(), 0); in testSpecificDefaultValue()
|
D | UTF16LECharsetEncoderTest.java | 86 assertEquals(2, encoder.maxBytesPerChar(), 0.001); in testSpecificDefaultValue()
|
D | UTF16BECharsetEncoderTest.java | 86 assertEquals(2, encoder.maxBytesPerChar(), 0.001); in testSpecificDefaultValue()
|
D | CharsetDecoder2Test.java | 57 float averageBytesPerChar, float maxBytesPerChar) { in MockCharsetDecoderForHarmony142() argument 58 super(cs, averageBytesPerChar, maxBytesPerChar); in MockCharsetDecoderForHarmony142()
|
D | UTF16CharsetEncoderTest.java | 91 assertEquals(encoder.maxBytesPerChar(), 2, 0.001); in testSpecificDefaultValue()
|
D | ISOCharsetEncoderTest.java | 64 assertEquals(1, encoder.maxBytesPerChar(), 0.001); in testSpecificDefaultValue()
|
D | CharsetEncoderTest.java | 86 assertTrue(encoder.maxBytesPerChar() == MAX_BYTES); in testSpecificDefaultValue() 110 assertTrue(encoder.maxBytesPerChar() == MAX_BYTES); in testCharsetEncoderCharsetfloatfloat() 124 assertTrue(ec.maxBytesPerChar() == MAX_BYTES); in testCharsetEncoderCharsetfloatfloat() 180 assertTrue(ec.maxBytesPerChar() == MAX_BYTES); in testCharsetEncoderCharsetfloatfloatbyteArray()
|
D | ASCIICharsetEncoderTest.java | 73 assertEquals(1.0, encoder.maxBytesPerChar(), 0.0); in testSpecificDefaultValue()
|
/libcore/ojluni/src/main/java/java/util/zip/ |
D | ZipCoder.java | 79 int len = (int)(ca.length * ce.maxBytesPerChar()); in getBytes()
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | UnixPath.java | 132 byte[] ba = new byte[(int)(ca.length * (double)ce.maxBytesPerChar())]; in encode()
|