Searched refs:size (Results 276 - 300 of 628) sorted by relevance

<<11121314151617181920>>

/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
H A DDelayQueueTest.java136 * Returns a new queue of given size containing consecutive
148 assertEquals(n, q.size());
226 assertEquals(SIZE - i, q.size());
231 assertEquals(i, q.size());
251 assertEquals(i, q.size());
307 assertEquals(SIZE, q.size());
324 assertEquals(4, q.size());
526 assertEquals(0, q.size());
564 assertEquals(SIZE - i, q.size());
577 assertEquals(SIZE - i, q.size());
[all...]
/libcore/luni/src/main/java/java/util/concurrent/
H A DCopyOnWriteArraySet.java107 public int size() { method in class:CopyOnWriteArraySet
108 return al.size();
157 * specified array and the size of this set.
H A DConcurrentLinkedDeque.java37 * <p>Beware that, unlike in most collections, the {@code size} method
1074 * Additionally, it is possible for the size to change during
1081 public int size() { method in class:ConcurrentLinkedDeque
1087 break; // @see Collection.size()
1188 int size = 0;
1194 else if (size == a.length)
1195 a = Arrays.copyOf(a, 2 * size);
1197 a[size++] = s;
1204 if (size == 0)
1207 return Helpers.toString(a, size, charLengt
[all...]
H A DLinkedTransferQueue.java32 * <p>Beware that, unlike in most collections, the {@code size} method
758 * Used by methods size and getWaitingConsumerCount.
768 break; // @see Collection.size()
781 int size = 0;
788 else if (size == a.length)
789 a = Arrays.copyOf(a, 2 * size);
791 a[size++] = s;
800 if (size == 0)
803 return Helpers.toString(a, size, charLength);
810 int size
1441 public int size() { method in class:LinkedTransferQueue
[all...]
/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/security/cert/
H A DPKIXRevocationChecker.java193 Map<X509Certificate, byte[]> copy = new HashMap<>(responses.size());
212 Map<X509Certificate, byte[]> copy = new HashMap<>(ocspResponses.size());
/libcore/ojluni/src/main/java/javax/net/ssl/
H A DSSLParameters.java296 sniNames = new LinkedHashMap<>(serverNames.size());
391 sniMatchers = new HashMap<>(matchers.size());
/libcore/ojluni/src/main/java/sun/misc/
H A DMetaIndex.java190 if ((curJarName != null) && (contents.size() > 0)) {
215 if ((curJarName != null) && (contents.size() > 0)) {
/libcore/ojluni/src/main/java/sun/net/www/http/
H A DKeepAliveStream.java140 int size = (int) (expected - count);
141 byte[] buf = new byte[size];
/libcore/ojluni/src/main/java/sun/security/jca/
H A DProviders.java63 final int numConfiguredProviders = providerList.size();
65 if (numConfiguredProviders != providerList.size()) {
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DPropertiesTest.java460 assertEquals(2, set.size());
466 assertEquals(0, set.size());
469 assertTrue(set.size() > 0);
475 assertEquals(3, set.size());
482 assertEquals(3, set.size());
488 assertEquals(4, tProps.size());
489 assertEquals(3, set.size());
515 assertEquals(keys.length, nameSet.size());
531 assertEquals(keys.length, nameSet.size());
572 assertEquals(keyList.size(), nameSe
[all...]
/libcore/ojluni/src/main/java/java/nio/
H A DBits.java669 static int pageCount(long size) { argument
670 return (int) (size + (long) pageSize() - 1L) / pageSize();
692 // initialization if it is launched with "-XX:MaxDirectMemorySize=<size>".
702 static void reserveMemory(long size, int cap) { argument
712 reservedMemory += size;
729 reservedMemory += size;
736 static synchronized void unreserveMemory(long size, int cap) { argument
738 reservedMemory -= size;
815 long size = (length > UNSAFE_COPY_THRESHOLD) ? UNSAFE_COPY_THRESHOLD : length;
816 unsafe.copyMemoryFromPrimitiveArray(src, offset, dstAddr, size);
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DTreeMap.java129 private transient int size = 0; field in class:TreeMap
201 buildFromSorted(m.size(), m.entrySet().iterator(), null, null);
215 public int size() { method in class:TreeMap
216 return size;
241 * operation will probably require time linear in the map size for
314 int mapSize = map.size();
315 if (size==0 && mapSize!=0 && map instanceof SortedMap) {
566 size = 1;
608 size++;
643 size
1055 public int size() { method in class:TreeMap.Values
1109 public int size() { method in class:TreeMap.EntrySet
1156 public int size() { return m.size(); } method in class:TreeMap.KeySet
1532 public int size() { method in class:TreeMap.NavigableSubMap
1652 private transient int size = -1, sizeModCount; field in class:TreeMap.NavigableSubMap.EntrySetView
1654 public int size() { method in class:TreeMap.NavigableSubMap.EntrySetView
2504 readTreeSet(int size, java.io.ObjectInputStream s, V defaultVal) argument
2549 buildFromSorted(int size, Iterator<?> it, java.io.ObjectInputStream str, V defaultVal) argument
[all...]
/libcore/dom/src/test/java/org/w3c/domts/level2/core/
H A DdocumentcreateattributeNS03.java96 for (int indexN1005A = 0; indexN1005A < qualifiedNames.size(); indexN1005A++) {
H A DdocumentcreateattributeNS04.java91 for (int indexN1004E = 0; indexN1004E < qualifiedNames.size(); indexN1004E++) {
H A Ddomimplementationcreatedocument03.java106 for (int indexN1006B = 0; indexN1006B < qualifiedNames.size(); indexN1006B++) {
H A Ddomimplementationcreatedocumenttype02.java104 for (int indexN10077 = 0; indexN10077 < qualifiedNames.size(); indexN10077++) {
H A Ddomimplementationcreatedocumenttype04.java102 for (int indexN10073 = 0; indexN10073 < qualifiedNames.size(); indexN10073++) {
H A Delementsetattributens04.java82 for (int indexN10058 = 0; indexN10058 < qualifiedNames.size(); indexN10058++) {
H A Dnodesetprefix05.java81 for (int indexN10050 = 0; indexN10050 < prefixValues.size(); indexN10050++) {
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/helpers/
H A DNamespaceSupportTest.java169 prefixes.size() == 0);
173 prefixes.contains("xml") && prefixes.size() == 1);
177 prefixes.size() == 0);
316 return prefixes.size();
/libcore/json/src/main/java/org/json/
H A DJSONStringer.java194 stack.remove(stack.size() - 1);
209 return stack.get(stack.size() - 1);
216 stack.set(stack.size() - 1, topOfStack);
359 for (int i = 0; i < stack.size(); i++) {
/libcore/libart/src/main/java/java/lang/
H A DVMClassLoader.java57 return urlStreamHandlers.toArray(new ClassPathURLStreamHandler[urlStreamHandlers.size()]);
/libcore/luni/src/main/java/java/math/
H A DNativeBN.java133 /** Returns the expected size of the native allocation for a BIGNUM.
135 public static long size() { method in class:NativeBN

Completed in 1337 milliseconds

<<11121314151617181920>>