Searched refs:DEFAULT_CAPACITY (Results 1 – 7 of 7) sorted by relevance
/libcore/ojluni/src/test/java/util/ArrayList/ |
D | ArrayManagement.java | 45 static final int DEFAULT_CAPACITY = 10; field in ArrayManagement 118 for (int i = 0; i < DEFAULT_CAPACITY; i++) { in defaultCapacity() 120 assertEquals(capacity(list), DEFAULT_CAPACITY); in defaultCapacity() local 123 assertEquals(capacity(list), newCapacity(DEFAULT_CAPACITY)); in defaultCapacity() 128 for (int i = 0; i <= DEFAULT_CAPACITY; i++) { in defaultCapacityEnsureCapacity() 132 for (int i = 0; i < DEFAULT_CAPACITY; i++) { in defaultCapacityEnsureCapacity() 134 assertEquals(capacity(list), DEFAULT_CAPACITY); in defaultCapacityEnsureCapacity() local 137 assertEquals(capacity(list), newCapacity(DEFAULT_CAPACITY)); in defaultCapacityEnsureCapacity() 152 list.ensureCapacity(DEFAULT_CAPACITY + 1); in ensureCapacityBeyondDefaultCapacity() 153 assertEquals(capacity(list), DEFAULT_CAPACITY + 1); in ensureCapacityBeyondDefaultCapacity() local [all …]
|
/libcore/ojluni/src/test/java/util/Vector/ |
D | ArrayManagement.java | 72 static final int DEFAULT_CAPACITY = 10; field in ArrayManagement 100 assertEquals(new PublicVector<Object>().capacity(), DEFAULT_CAPACITY); in defaultCapacity() 101 for (int i = 0; i < DEFAULT_CAPACITY; i++) { in defaultCapacity() 103 assertEquals(list.capacity(), DEFAULT_CAPACITY); in defaultCapacity() local 106 assertEquals(list.capacity(), newCapacity(DEFAULT_CAPACITY)); in defaultCapacity() 111 for (int i = 0; i <= DEFAULT_CAPACITY; i++) { in defaultCapacityEnsureCapacity() 113 assertEquals(list.capacity(), DEFAULT_CAPACITY); in defaultCapacityEnsureCapacity() local 115 for (int i = 0; i < DEFAULT_CAPACITY; i++) { in defaultCapacityEnsureCapacity() 117 assertEquals(list.capacity(), DEFAULT_CAPACITY); in defaultCapacityEnsureCapacity() local 120 assertEquals(list.capacity(), newCapacity(DEFAULT_CAPACITY)); in defaultCapacityEnsureCapacity() [all …]
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | ArrayList.java | 221 private static final int DEFAULT_CAPACITY = 10; // 0xa field in ArrayList
|
/libcore/luni/src/main/native/ |
D | org_apache_harmony_xml_ExpatParser.cpp | 68 StringStack() : array(new jstring[DEFAULT_CAPACITY]), capacity(DEFAULT_CAPACITY), size(0) { in StringStack() 98 enum { DEFAULT_CAPACITY = 10 }; enumerator
|
/libcore/ojluni/src/main/java/java/util/ |
D | ArrayList.java | 124 private static final int DEFAULT_CAPACITY = 10; field in ArrayList 225 && minCapacity <= DEFAULT_CAPACITY)) { in ensureCapacity() 246 return elementData = new Object[Math.max(DEFAULT_CAPACITY, minCapacity)]; in grow()
|
D | IdentityHashMap.java | 153 private static final int DEFAULT_CAPACITY = 32; field in IdentityHashMap 215 init(DEFAULT_CAPACITY); in IdentityHashMap()
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ConcurrentHashMap.java | 514 private static final int DEFAULT_CAPACITY = 16; field in ConcurrentHashMap 851 this.sizeCtl = DEFAULT_CAPACITY; in ConcurrentHashMap() 2304 int n = (sc > 0) ? sc : DEFAULT_CAPACITY; in initTable()
|