/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
H A D | RangeTest.java | 65 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 D | ConcurrentHashMap8Test.java | 52 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 D | ArrayDequeTest.java | 33 * 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 D | ConcurrentLinkedQueueTest.java | 34 * 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 D | BlockingQueueTest.java | 205 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 D | CollectionsTest.java | 105 // 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 D | HashMapTest.java | 48 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 D | ConcurrentLinkedQueue.java | 80 * <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 D | CharArrayWriterTest.java | 38 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 D | ProcessBuilderTest.java | 44 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 D | DOMImplementationCreateDocumentType.java | 93 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 D | NodeIsSupported.java | 101 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 D | Deque.java | 45 * deques as well as those with no fixed size limit. 559 int size(); method in interface:Deque
|
H A D | Observable.java | 215 return obs.size();
|
/libcore/ojluni/src/main/java/javax/sql/ |
H A D | RowSetMetaData.java | 139 * @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 D | IdentityScopeStub.java | 66 * @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 D | X509KeyManagerImpl.java | 129 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 D | FileChannelTest.java | 145 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 D | domimplementationhasfeature01.java | 85 for (int indexN10063 = 0; indexN10063 < featuresXML.size(); indexN10063++) { 92 for (int indexN1007C = 0; indexN1007C < featuresCore.size(); indexN1007C++) {
|
H A D | nodeissupported01.java | 85 for (int indexN10063 = 0; indexN10063 < featuresXML.size(); indexN10063++) { 92 for (int indexN1007C = 0; indexN1007C < featuresCore.size(); indexN1007C++) {
|
H A D | nodeissupported02.java | 85 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 D | OldAttributesTest.java | 46 assertTrue(attr.size() >= 0); 51 assertTrue(attr.size() >= 0);
|
/libcore/ojluni/src/main/java/java/io/ |
H A D | ExpiringCache.java | 74 return size() > MAX_ENTRIES; 122 String[] keys = new String[keySet.size()];
|
/libcore/ojluni/src/main/java/java/security/cert/ |
H A D | CertPathValidatorException.java | 145 * 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 D | OpenListResourceBundle.java | 159 protected <K, V> Map<K, V> createMap(int size) { argument 160 return new HashMap<>(size);
|