Home
last modified time | relevance | path

Searched refs:initialSize (Results 1 – 6 of 6) sorted by relevance

/libcore/luni/src/main/java/java/io/
DStringWriter.java54 public StringWriter(int initialSize) { in StringWriter() argument
55 if (initialSize < 0) { in StringWriter()
56 throw new IllegalArgumentException("initialSize < 0: " + initialSize); in StringWriter()
58 buf = new StringBuffer(initialSize); in StringWriter()
DCharArrayWriter.java62 public CharArrayWriter(int initialSize) { in CharArrayWriter() argument
63 if (initialSize < 0) { in CharArrayWriter()
66 buf = new char[initialSize]; in CharArrayWriter()
/libcore/support/src/test/java/tests/support/
DSupport_StringWriter.java42 public Support_StringWriter(int initialSize) { in Support_StringWriter() argument
43 if (initialSize >= 0) { in Support_StringWriter()
44 buf = new StringBuffer(initialSize); in Support_StringWriter()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DBitSetTest.java172 int initialSize = bs.size(); in test_clearII() local
173 assertEquals(64, initialSize); in test_clearII()
174 bs.set(0, initialSize); in test_clearII()
189 for (int i = 11; i < initialSize; i++) { in test_clearII()
197 for (int i = initialSize; i < bs.size(); i++) { in test_clearII()
203 initialSize = bs.size(); in test_clearII()
204 bs.set(0, initialSize); in test_clearII()
218 initialSize = bs.size(); in test_clearII()
219 bs.set(0, initialSize); in test_clearII()
229 initialSize = bs.size(); in test_clearII()
[all …]
/libcore/luni/src/test/java/libcore/java/io/
DOldObjectOutputStreamTest.java196 int initialSize = target.size(); in test_drain() local
201 written = (target.size() > initialSize); in test_drain()
205 written || (target.size() > initialSize)); in test_drain()
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/
DBerInputStream.java115 public BerInputStream(InputStream in, int initialSize) throws IOException { in BerInputStream() argument
117 buffer = new byte[initialSize]; in BerInputStream()