Home
last modified time | relevance | path

Searched refs:INITIAL_CAPACITY (Results 1 – 7 of 7) sorted by relevance

/libcore/ojluni/src/test/java/util/Map/
DMapBinToFromTreeTest.java52 static final int INITIAL_CAPACITY = 64; field in MapBinToFromTreeTest
68 { HashMap.class.getName(), new HashMap(INITIAL_CAPACITY, LOAD_FACTOR) }, in mapProvider()
69 { LinkedHashMap.class.getName(), new LinkedHashMap(INITIAL_CAPACITY, LOAD_FACTOR) }, in mapProvider()
70 … { ConcurrentHashMap.class.getName(), new ConcurrentHashMap(INITIAL_CAPACITY, LOAD_FACTOR) }, in mapProvider()
126 put(INITIAL_CAPACITY, m, (i, s) -> { }); in testUntreeifyOnResizeWithGet()
128 for (int i = INITIAL_CAPACITY; i < SIZE; i++) { in testUntreeifyOnResizeWithGet()
134 for (int j = 0; j < INITIAL_CAPACITY; j++) { in testUntreeifyOnResizeWithGet()
138 for (int j = INITIAL_CAPACITY; j <= i; j++) { in testUntreeifyOnResizeWithGet()
148 put(INITIAL_CAPACITY, m, (i, s) -> { }); in testUntreeifyOnResizeWithTraverse()
152 for (int i = INITIAL_CAPACITY; i < SIZE; i++) { in testUntreeifyOnResizeWithTraverse()
[all …]
/libcore/ojluni/src/test/java/util/HashMap/
DPutNullKey.java40 static final int INITIAL_CAPACITY = 64; field in PutNullKey
84 Map<Object,Object> m = new HashMap<>(INITIAL_CAPACITY, LOAD_FACTOR); in main()
/libcore/ojluni/src/main/java/java/lang/
DThreadLocal.java342 private static final int INITIAL_CAPACITY = 16; field in ThreadLocal.ThreadLocalMap
387 table = new Entry[INITIAL_CAPACITY]; in ThreadLocalMap()
388 int i = firstKey.threadLocalHashCode & (INITIAL_CAPACITY - 1); in ThreadLocalMap()
391 setThreshold(INITIAL_CAPACITY); in ThreadLocalMap()
/libcore/ojluni/src/main/java/java/text/
DAttributedString.java58 private static final int INITIAL_CAPACITY = 10; field in AttributedString
416 int[] newRunStarts = new int[INITIAL_CAPACITY]; in createRunAttributeDataVectors()
419 … Vector<Attribute>[] newRunAttributes = (Vector<Attribute>[]) new Vector<?>[INITIAL_CAPACITY]; in createRunAttributeDataVectors()
422 Vector<Object>[] newRunAttributeValues = (Vector<Object>[]) new Vector<?>[INITIAL_CAPACITY]; in createRunAttributeDataVectors()
/libcore/ojluni/annotations/hiddenapi/java/lang/
DThreadLocal.java177 private static final int INITIAL_CAPACITY = 16; // 0x10 field in ThreadLocal.ThreadLocalMap
/libcore/ojluni/src/main/java/java/util/concurrent/
DSubmissionPublisher.java193 static final int INITIAL_CAPACITY = 32; field in SubmissionPublisher
346 Object[] array = new Object[max < INITIAL_CAPACITY ? in subscribe()
347 max : INITIAL_CAPACITY]; in subscribe()
DScheduledThreadPoolExecutor.java931 private static final int INITIAL_CAPACITY = 16; field in ScheduledThreadPoolExecutor.DelayedWorkQueue
933 new RunnableScheduledFuture<?>[INITIAL_CAPACITY];