Searched refs:size (Results 201 - 225 of 628) sorted by relevance

1234567891011>>

/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
H A DRangeTest.java65 int size = (start < end) ? end - start : 0;
66 int[] exp = new int[size];
72 assertEquals(inc.length, size);
85 int size = (start <= end) ? end - start + 1 : 0;
86 int[] exp = new int[size];
92 assertEquals(inc.length, size);
155 long size = start < end ? end - start : 0;
156 long[] exp = new long[(int) size];
162 assertEquals(inc.length, size);
175 long size
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DPriorityQueueTest.java127 assertEquals(array.length - 1, integerQueue.size());
136 for (int i = 0; i < integerQueue.size(); i++) {
182 * java.util.PriorityQueue.size()
186 assertEquals(0, integerQueue.size());
191 assertEquals(array.length, integerQueue.size());
200 assertEquals(0, queue.size());
210 assertEquals(0, queue.size());
221 assertEquals(0, queue.size());
227 assertEquals(0, queue.size());
258 assertEquals(0, integerQueue.size());
[all...]
H A DHashMapTest.java48 public int size() { method in class:HashMapTest.MockMap
58 public int size() { method in class:HashMapTest.MockMapNull
111 assertEquals("Created incorrect HashMap", 0, hm2.size());
120 assertEquals("Created incorrect HashMap", 0, hm2.size());
140 assertEquals("Created incorrect HashMap", 0, hm2.size());
177 assertEquals("Clear failed to reset size", 0, hm.size());
188 assertEquals("Failed to reset size on large integer map", 0, hm.size());
276 assertTrue("Returned set of incorrect size", h
[all...]
H A DCollectionsTest.java104 // ensure the list either contains the numbers from 0 to size-1 or
105 // the numbers from size to 2*size -1
124 // size or not, and the min number of iterations to run
127 colSize = c.size();
143 // starting at the value size to 2*size - 1
144 // else the list with be filled starting at 0 to size - 1
184 // ensure the list either contains the numbers from 0 to size-1 or
185 // the numbers from size t
2401 createArray(Class<?> elementType, int size) argument
[all...]
/libcore/jsr166-tests/src/test/java/jsr166/
H A DConcurrentHashMap8Test.java52 assertEquals(5, map.size());
173 assertEquals(n, a.size());
183 assertEquals(elements.length, a.size());
219 assertEquals(set2.size(), map.size());
220 assertEquals(set1.size(), map.size());
236 assertEquals(6, full.size());
238 assertEquals(6, full.size());
249 assertEquals(5, full.size());
[all...]
H A DArrayDequeTest.java33 * Returns a new deque of given size containing consecutive
42 assertEquals(n, q.size());
50 assertEquals(0, new ArrayDeque().size());
113 * size changes when elements added and removed
118 assertEquals(SIZE - i, q.size());
122 assertEquals(i, q.size());
581 assertEquals(0, q.size());
612 assertEquals(SIZE - i, q.size());
625 assertEquals(SIZE - i, q.size());
633 int size
[all...]
H A DConcurrentLinkedQueueTest.java34 * Returns a new queue of given size containing consecutive
43 assertEquals(n, q.size());
51 assertEquals(0, new ConcurrentLinkedQueue().size());
114 * size changes when elements added and removed
119 assertEquals(SIZE - i, q.size());
123 assertEquals(i, q.size());
165 assertEquals(i, q.size());
327 assertEquals(0, q.size());
362 assertEquals(SIZE - i, q.size());
375 assertEquals(SIZE - i, q.size());
[all...]
H A DBlockingQueueTest.java205 assertEquals(1, q.size());
345 final int size = Math.min(q.remainingCapacity(), SIZE);
346 final Object[] elts = new Object[size];
350 for (int i = 0; i < size; i++)
352 for (int i = 1; i < size; i += 2) {
358 if (i < size - 1)
362 if (size > 0)
364 for (int i = size - 2; i >= 0; i -= 2) {
/libcore/ojluni/src/main/java/java/util/
H A DHashMap.java47 * <tt>HashMap</tt> instance (the number of buckets) plus its size (the number
164 transient int size; field in class:HashMap
167 * The next size value at which to resize (capacity * load factor).
253 this(Math.max((int) (m.size() / DEFAULT_LOAD_FACTOR) + 1,
315 public int size() { method in class:HashMap
316 return size;
325 return size == 0;
361 if (size == 0) {
389 if (size == 0) {
542 int numKeysToBeAdded = m.size();
1190 public int size() { method in class:HashMap.KeySet
1248 public int size() { method in class:HashMap.Values
1321 public int size() { method in class:HashMap.EntrySet
[all...]
H A DDeque.java47 * deques as well as those with no fixed size limit.
559 int size(); method in interface:Deque
/libcore/luni/src/main/java/java/util/concurrent/
H A DConcurrentLinkedQueue.java51 * <p>Beware that, unlike in most collections, the {@code size} method
402 public int size() { method in class:ConcurrentLinkedQueue
408 break; // @see Collection.size()
536 int size = 0;
542 else if (size == a.length)
543 a = Arrays.copyOf(a, 2 * size);
545 a[size++] = s;
552 if (size == 0)
555 return Helpers.toString(a, size, charLength);
562 int size
[all...]
/libcore/dex/src/main/java/com/android/dex/
H A DEncodedValueReader.java86 * Begins reading the elements of an array, returning the array's size. The
260 for (int i = 0, size = readArray(); i < size; i++) {
265 for (int i = 0, size = readAnnotation(); i < size; i++) {
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DCharArrayWriterTest.java38 assertEquals("Created incorrect writer", 0, cw.size());
46 assertEquals("Created incorrect writer", 0, cw.size());
78 * java.io.CharArrayWriter#size()
81 assertEquals("Returned incorrect size", 0, cw.size());
83 assertEquals("Returned incorrect size", 5, cw.size());
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
H A DProcessBuilderTest.java44 assertEquals(1, pb.command().size());
61 assertEquals(1, pb.command().size());
71 assertEquals(1, pb.command().size());
75 assertEquals(2, pb.command().size());
/libcore/luni/src/test/java/dalvik/system/
H A DBlockGuardTest.java172 if (violations.size() != 0) {
173 throw new AssertionError("Expected 0 violations but found " + violations.size());
178 if (expected.length != violations.size()) {
180 + violations.size());
/libcore/luni/src/test/java/libcore/java/util/zip/
H A DGZIPInputStreamTest.java136 // less than the size of a header + trailer (which is the absolute minimum required).
157 // as the file has multiple members, and that the (compressed) size of
158 // the second member is larger than the size of the input buffer.
169 for (int size : memberSizes) {
173 gzos = new GZIPOutputStream(fos, size + 1);
174 gzos.write(bytes, offset, size);
175 offset += size;
/libcore/luni/src/test/java/tests/org/w3c/dom/
H A DDOMImplementationCreateDocumentType.java93 for (int indexN1005D = 0; indexN1005D < publicIds.size(); indexN1005D++) {
95 for (int indexN10061 = 0; indexN10061 < systemIds.size(); indexN10061++) {
135 for (int indexN10077 = 0; indexN10077 < qualifiedNames.size(); indexN10077++) {
172 for (int indexN10077 = 0; indexN10077 < qualifiedNames.size(); indexN10077++) {
H A DNodeIsSupported.java101 for (int indexN10063 = 0; indexN10063 < featuresXML.size(); indexN10063++) {
108 for (int indexN1007C = 0; indexN1007C < featuresCore.size(); indexN1007C++) {
136 for (int indexN10064 = 0; indexN10064 < featuresXML.size(); indexN10064++) {
143 for (int indexN1007D = 0; indexN1007D < featuresCore.size(); indexN1007D++) {
/libcore/ojluni/src/main/java/javax/sql/
H A DRowSetMetaData.java139 * @param size the normal maximum number of characters for
144 void setColumnDisplaySize(int columnIndex, int size) throws SQLException; argument
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
H A DIdentityScopeStub.java66 * @see java.security.IdentityScope#size()
68 public int size() { method in class:IdentityScopeStub
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/
H A DX509KeyManagerImpl.java129 String[] res = new String[vec.size()];
130 for (i = 0; i < vec.size(); i++) {
173 String[] res = new String[vec.size()];
174 for (i = 0; i < vec.size(); i++) {
/libcore/dom/src/test/java/org/w3c/domts/level2/core/
H A Ddomimplementationhasfeature01.java85 for (int indexN10063 = 0; indexN10063 < featuresXML.size(); indexN10063++) {
92 for (int indexN1007C = 0; indexN1007C < featuresCore.size(); indexN1007C++) {
H A Dnodeissupported01.java85 for (int indexN10063 = 0; indexN10063 < featuresXML.size(); indexN10063++) {
92 for (int indexN1007C = 0; indexN1007C < featuresCore.size(); indexN1007C++) {
H A Dnodeissupported02.java85 for (int indexN10064 = 0; indexN10064 < featuresXML.size(); indexN10064++) {
92 for (int indexN1007D = 0; indexN1007D < featuresCore.size(); indexN1007D++) {
/libcore/luni/src/test/java/libcore/java/util/jar/
H A DOldAttributesTest.java46 assertTrue(attr.size() >= 0);
51 assertTrue(attr.size() >= 0);

Completed in 686 milliseconds

1234567891011>>