Searched refs:initialSize (Results 1 – 11 of 11) sorted by relevance
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | ThreadPool.java | 113 int initialSize = getDefaultThreadPoolInitialSize(); in createDefault() local 114 if (initialSize < 0) in createDefault() 115 initialSize = Runtime.getRuntime().availableProcessors(); in createDefault() 122 return new ThreadPool(executor, false, initialSize); in createDefault() 134 public static ThreadPool wrap(ExecutorService executor, int initialSize) { in wrap() argument 141 if (initialSize < 0) { in wrap() 142 initialSize = Runtime.getRuntime().availableProcessors(); in wrap() 145 initialSize = 0; in wrap() 150 if (initialSize < 0) in wrap() 151 initialSize = 0; in wrap() [all …]
|
D | LinuxAsynchronousChannelProvider.java | 61 …ic AsynchronousChannelGroup openAsynchronousChannelGroup(ExecutorService executor, int initialSize) in openAsynchronousChannelGroup() argument 64 return new EPollPort(this, ThreadPool.wrap(executor, initialSize)).start(); in openAsynchronousChannelGroup()
|
/libcore/support/src/test/java/tests/support/ |
D | Support_StringWriter.java | 42 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/ojluni/src/main/java/java/io/ |
D | CharArrayWriter.java | 67 public CharArrayWriter(int initialSize) { in CharArrayWriter() argument 68 if (initialSize < 0) { in CharArrayWriter() 70 + initialSize); in CharArrayWriter() 72 buf = new char[initialSize]; in CharArrayWriter()
|
D | StringWriter.java | 65 public StringWriter(int initialSize) { in StringWriter() argument 66 if (initialSize < 0) { in StringWriter() 69 buf = new StringBuffer(initialSize); in StringWriter()
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
D | AsynchronousChannelGroup.java | 229 int initialSize) in withCachedThreadPool() argument 233 .openAsynchronousChannelGroup(executor, initialSize); in withCachedThreadPool()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | BitSetTest.java | 172 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/ |
D | OldObjectOutputStreamTest.java | 196 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/ojluni/src/main/java/java/nio/channels/spi/ |
D | AsynchronousChannelProvider.java | 206 openAsynchronousChannelGroup(ExecutorService executor, int initialSize) throws IOException;
|
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
D | ForwardBuilder.java | 195 int initialSize = caCerts.size(); in getMatchingCACerts() local 343 int numCerts = caCerts.size() - initialSize; in getMatchingCACerts()
|
/libcore/ojluni/src/main/java/java/nio/file/ |
D | Files.java | 3097 private static byte[] read(InputStream source, int initialSize) throws IOException { 3098 int capacity = initialSize;
|