Home
last modified time | relevance | path

Searched refs:maxBytesPerChar (Results 1 – 15 of 15) sorted by relevance

/libcore/ojluni/src/main/java/java/nio/charset/
DCharsetEncoder.java142 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/
DCharsetEncoder.java39 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/
DCharsetEncoder.annotated.java40 …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/
DCharsetEncoder2Test.java74 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()
DGBCharsetEncoderTest.java69 assertEquals(4.0, encoder.maxBytesPerChar(), 0.0); in testSpecificDefaultValue()
DUTFCharsetEncoderTest.java75 assertEquals(3, encoder.maxBytesPerChar(), 0); in testSpecificDefaultValue()
DUTF16LECharsetEncoderTest.java86 assertEquals(2, encoder.maxBytesPerChar(), 0.001); in testSpecificDefaultValue()
DUTF16BECharsetEncoderTest.java86 assertEquals(2, encoder.maxBytesPerChar(), 0.001); in testSpecificDefaultValue()
DCharsetDecoder2Test.java57 float averageBytesPerChar, float maxBytesPerChar) { in MockCharsetDecoderForHarmony142() argument
58 super(cs, averageBytesPerChar, maxBytesPerChar); in MockCharsetDecoderForHarmony142()
DUTF16CharsetEncoderTest.java91 assertEquals(encoder.maxBytesPerChar(), 2, 0.001); in testSpecificDefaultValue()
DISOCharsetEncoderTest.java64 assertEquals(1, encoder.maxBytesPerChar(), 0.001); in testSpecificDefaultValue()
DCharsetEncoderTest.java86 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()
DASCIICharsetEncoderTest.java73 assertEquals(1.0, encoder.maxBytesPerChar(), 0.0); in testSpecificDefaultValue()
/libcore/ojluni/src/main/java/java/util/zip/
DZipCoder.java79 int len = (int)(ca.length * ce.maxBytesPerChar()); in getBytes()
/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixPath.java132 byte[] ba = new byte[(int)(ca.length * (double)ce.maxBytesPerChar())]; in encode()