Searched refs:size (Results 201 - 225 of 667) 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/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/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DCollectionsTest.java105 // ensure the list either contains the numbers from 0 to size-1 or
106 // the numbers from size to 2*size -1
125 // size or not, and the min number of iterations to run
128 colSize = c.size();
144 // starting at the value size to 2*size - 1
145 // else the list with be filled starting at 0 to size - 1
185 // ensure the list either contains the numbers from 0 to size-1 or
186 // the numbers from size t
2403 createArray(Class<?> elementType, int size) argument
[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...]
/libcore/ojluni/src/main/java/java/util/concurrent/
H A DConcurrentLinkedQueue.java80 * <p>Beware that, unlike in most collections, the {@code size} method
431 public int size() { method in class:ConcurrentLinkedQueue
437 break; // @see Collection.size()
565 int size = 0;
571 else if (size == a.length)
572 a = Arrays.copyOf(a, 2 * size);
574 a[size++] = s;
581 if (size == 0)
584 return Helpers.toString(a, size, charLength);
591 int size
[all...]
/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/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/java/util/
H A DDeque.java45 * deques as well as those with no fixed size limit.
559 int size(); method in interface:Deque
H A DObservable.java215 return obs.size();
/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/luni/src/test/java/libcore/java/nio/channels/
H A DFileChannelTest.java145 assertEquals(initialFileSize, fc.size());
152 assertEquals(expectedNewLength, fc.size());
163 fc.position(initialPosition); // Should not affect the file size
165 assertEquals(initialFileSize, fc.size());
167 // truncateArg < position, truncateArg > initialFileSize: Should not affect the file size
170 fc.truncate(truncateArg); // Should not affect the file size, but should move the position.
171 assertEquals(initialFileSize, fc.size());
187 assertEquals(initialFileSize, fc.size());
189 // truncateArg > position, truncateArg > initialFileSize: Should not affect the file size
193 assertEquals(initialFileSize, fc.size());
[all...]
/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);
/libcore/ojluni/src/main/java/java/io/
H A DExpiringCache.java74 return size() > MAX_ENTRIES;
122 String[] keys = new String[keySet.size()];
/libcore/ojluni/src/main/java/java/security/cert/
H A DCertPathValidatorException.java145 * certPath.getCertificates().size()) }
168 * certPath.getCertificates().size()) }
182 (certPath != null && index >= certPath.getCertificates().size())) {
241 (certPath != null && index >= certPath.getCertificates().size())) {
/libcore/ojluni/src/main/java/sun/util/resources/
H A DOpenListResourceBundle.java159 protected <K, V> Map<K, V> createMap(int size) { argument
160 return new HashMap<>(size);

Completed in 728 milliseconds

1234567891011>>