Searched refs:size (Results 251 - 275 of 667) sorted by relevance

<<11121314151617181920>>

/libcore/ojluni/src/main/java/java/util/stream/
H A DSpinedBuffer.java67 * arrays are always the same size, and for any i <= spineIndex,
130 * Ensure that the buffer has at least capacity to hold the target size
212 long size = count();
213 if (size >= Nodes.MAX_ARRAY_SIZE)
215 E[] result = arrayFactory.apply((int) size);
429 * arrays are always the same size, and for any i <= spineIndex,
472 /** Create a new array-of-array of the proper type and size */
473 protected abstract T_ARR[] newArrayArray(int size); argument
475 /** Create a new array of the proper type and size */
476 public abstract T_ARR newArray(int size); argument
747 newArrayArray(int size) argument
752 newArray(int size) argument
861 newArrayArray(int size) argument
866 newArray(int size) argument
977 newArrayArray(int size) argument
982 newArray(int size) argument
[all...]
/libcore/ojluni/src/main/java/sun/nio/fs/
H A DLinuxDosFileAttributeView.java155 public long size() {
156 return attrs.size();
212 final int size = 24;
214 NativeBuffer buffer = NativeBuffers.getNativeBuffer(size);
217 .fgetxattr(fd, DOS_XATTR_NAME_AS_BYTES, buffer.address(), size);
/libcore/ojluni/src/main/native/
H A DLinuxNativeDispatcher.c39 typedef size_t fgetxattr_func(int fd, const char* name, void* value, size_t size);
40 typedef int fsetxattr_func(int fd, const char* name, void* value, size_t size, int flags);
42 typedef int flistxattr_func(int fd, char* list, size_t size);
138 jint fd, jlong listAddress, jint size)
147 res = (*my_flistxattr_func)(fd, list, (size_t)size);
137 Java_sun_nio_fs_LinuxNativeDispatcher_flistxattr(JNIEnv* env, jclass clazz, jint fd, jlong listAddress, jint size) argument
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
H A DGroupByOpTest.java71 assertEquals(2, m.keySet().size());
87 assertEquals(2, result.keySet().size());
111 int uniqueSize = data.into(new HashSet<>()).size();
115 new MapperData<>(mZero, Math.min(1, data.size())),
131 // - Total number of values equals size of data
147 assertEquals(result.keySet().size(), md.expectedSize);
/libcore/tools/upstream/src/main/java/libcore/
H A DCompareUpstreams.java127 int numB = b.size();
133 for (int endA = 1; endA <= a.size(); endA++) {
202 List<String> comparisons = new ArrayList<>(upstreams.size());
215 .max(linesA.size(), linesB.size());
/libcore/dalvik/src/main/java/dalvik/system/
H A DDexPathList.java109 if (suppressedExceptions.size() > 0) {
111 suppressedExceptions.toArray(new IOException[suppressedExceptions.size()]);
185 if (suppressedExceptions.size() > 0) {
187 suppressedExceptions.toArray(new IOException[suppressedExceptions.size()]);
199 new File[allNativeLibraryDirectories.size()]);
238 if (suppressedExceptionList.size() > 0) {
240 new IOException[suppressedExceptionList.size()]);
327 Element[] elements = new Element[files.size()];
451 NativeLibraryElement[] elements = new NativeLibraryElement[files.size()];
587 List<File> libFiles = new ArrayList<>(libPaths.size());
[all...]
/libcore/dom/src/test/java/org/w3c/domts/
H A DDOMTestDocumentBuilderFactory.java120 new DocumentBuilderSetting[mergedSettings.size()];
121 for (int i = 0; i < mergedSettings.size(); i++) {
185 DocumentBuilderSetting[] settings = new DocumentBuilderSetting[list.size()];
H A DDOMTestFramework.java172 int size(Collection collection); method in interface:DOMTestFramework
174 int size(NamedNodeMap collection); method in interface:DOMTestFramework
176 int size(NodeList collection); method in interface:DOMTestFramework
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
H A DSelectorTest.java111 assertEquals(1,keySet.size());
162 assertEquals(1, selectedKeys.size());
179 assertEquals(0, selectedKeys.size());
274 // time if keys.size() == 0 (initial state of selector).
385 assertEquals(0, selector.selectedKeys().size());
402 assertEquals(1, selectedKeys.size());
419 assertEquals(1, selectedKeys.size());
449 assertEquals(0, selector.selectedKeys().size());
477 assertEquals(1, selectedKeys.size());
511 assertEquals(1, selectedKeys.size());
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
H A DSupport_Format.java60 assertEquals("size mismatch\n" +
63 " results=" + results, expectedResults.size(), results.size());
64 for (int i = 0; i < results.size(); ++i) {
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/
H A DJarEntryTest.java92 assertEquals("Wrong entry constructed--wrong size", 311, jarEntry
177 if (1 == certs_bob.size()) {
182 assertEquals(2, certs_bob.size());
183 assertEquals(1, certs_alice.size());
/libcore/ojluni/src/main/java/java/io/
H A DBufferedInputStream.java57 * The maximum size of array to allocate.
60 * OutOfMemoryError: Requested array size exceeds VM limit
68 * a different size.
190 * with the specified buffer size,
193 * buffer array of length <code>size</code>
197 * @param size the buffer size.
198 * @exception IllegalArgumentException if {@code size <= 0}.
200 public BufferedInputStream(InputStream in, int size) { argument
202 if (size <
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DVector.java35 * accessed using an integer index. However, the size of a
42 * size; it is usually larger because as components are added to the
43 * vector, the vector's storage increases in chunks the size of
109 * incremented when its size becomes greater than its capacity. If
153 * has size {@code 10} and its standard capacity increment is
197 * size. If the capacity of this vector is larger than its current
198 * size, then the capacity is changed to equal the size by replacing
219 * larger one. The size of the new data array will be the old size plu
314 public synchronized int size() { method in class:Vector
[all...]
/libcore/ojluni/src/main/java/sun/net/
H A DProgressMonitor.java114 if (progressListenerList.size() > 0)
151 if (progressListenerList.size() > 0)
183 if (progressListenerList.size() > 0)
254 // 8K - same as default I/O buffer size
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DNativeObject.java46 // may be smaller than the base address due to page-size rounding
73 protected NativeObject(int size, boolean pageAligned) { argument
75 this.allocationAddress = unsafe.allocateMemory(size);
79 long a = unsafe.allocateMemory(size + ps);
117 * The offset of the address to be read. Note that the size of an
133 throw new InternalError("Address size not supported");
145 * size of an address is implementation-dependent.
159 throw new InternalError("Address size not supported");
356 * Returns the native architecture's address size in bytes.
358 * @return The address size o
[all...]
H A DDatagramSocketAdaptor.java303 public void setSendBufferSize(int size) throws SocketException { argument
304 if (size <= 0)
305 throw new IllegalArgumentException("Invalid send size");
306 setIntOption(StandardSocketOptions.SO_SNDBUF, size);
313 public void setReceiveBufferSize(int size) throws SocketException { argument
314 if (size <= 0)
315 throw new IllegalArgumentException("Invalid receive size");
316 setIntOption(StandardSocketOptions.SO_RCVBUF, size);
H A DSocketAdaptor.java362 public void setSendBufferSize(int size) throws SocketException { argument
363 // size 0 valid for SocketChannel, invalid for Socket
364 if (size <= 0)
365 throw new IllegalArgumentException("Invalid send size");
366 setIntOption(StandardSocketOptions.SO_SNDBUF, size);
373 public void setReceiveBufferSize(int size) throws SocketException { argument
374 // size 0 valid for SocketChannel, invalid for Socket
375 if (size <= 0)
376 throw new IllegalArgumentException("Invalid receive size");
377 setIntOption(StandardSocketOptions.SO_RCVBUF, size);
[all...]
/libcore/ojluni/src/main/java/sun/security/util/
H A DManifestEntryVerifier.java160 for (int i=0; i < digests.size(); i++) {
171 for (int i=0; i < digests.size(); i++) {
203 for (int i=0; i < digests.size(); i++) {
H A DDisabledAlgorithmConstraints.java465 * This class contains constraints dealing with the key size
470 private int minSize; // the minimal available key size
471 private int maxSize; // the maximal available key size
477 case EQ: // an unavailable key size
551 int size = KeyUtil.getKeySize(key);
552 if (size == 0) {
553 return false; // we don't allow any key of size 0.
554 } else if (size > 0) {
555 return !((size < minSize) || (size > maxSiz
[all...]
/libcore/ojluni/src/test/java/time/tck/java/time/zone/
H A DTCKZoneRulesProvider.java95 assertEquals(zoneIds.size(), 0);
141 assertTrue(versions.size() >= 1);
147 assertEquals(versions.size(), 0);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DFilterOutputStreamTest.java57 assertEquals("Bytes not written after flush", 500, bos.size());
69 assertEquals("Bytes not written after flush", 500, bos.size());
/libcore/jsr166-tests/src/test/java/jsr166/
H A DAbstractQueueTest.java37 public int size() { return 0; } method in class:AbstractQueueTest.Succeed
48 public int size() { return 0; } method in class:AbstractQueueTest.Fail
/libcore/luni/src/test/java/tests/org/w3c/dom/
H A DDOMImplementationHasFeature.java92 for (int indexN10063 = 0; indexN10063 < featuresXML.size(); indexN10063++) {
99 for (int indexN1007C = 0; indexN1007C < featuresCore.size(); indexN1007C++) {
/libcore/ojluni/src/main/java/java/lang/
H A DThreadLocal.java332 private int size = 0; field in class:ThreadLocal.ThreadLocalMap
335 * The next size value at which to resize.
369 size = 1;
397 size++;
482 int sz = ++size;
596 size--;
608 size--;
666 * Re-pack and/or re-size the table. First scan the entire
668 * shrink the size of the table, double the table size
[all...]
/libcore/ojluni/src/main/java/java/nio/
H A DDirectByteBuffer.java434 int size = rem >> 1;
438 size,
439 size,
536 int size = rem >> 1;
540 size,
541 size,
638 int size = rem >> 2;
642 size,
643 size,
740 int size
[all...]

Completed in 675 milliseconds

<<11121314151617181920>>