Home
last modified time | relevance | path

Searched refs:tableSizeFor (Results 1 – 6 of 6) sorted by relevance

/libcore/ojluni/src/test/java/util/HashMap/
DWhiteBoxResizeTest.java70 int tableSizeFor(int n) { in tableSizeFor() method in WhiteBoxResizeTest
88 assertEquals(tableSizeFor(0), 1); in testTableSizeFor()
89 assertEquals(tableSizeFor(1), 1); in testTableSizeFor()
90 assertEquals(tableSizeFor(2), 2); in testTableSizeFor()
91 assertEquals(tableSizeFor(3), 4); in testTableSizeFor()
92 assertEquals(tableSizeFor(15), 16); in testTableSizeFor()
93 assertEquals(tableSizeFor(16), 16); in testTableSizeFor()
94 assertEquals(tableSizeFor(17), 32); in testTableSizeFor()
96 assertEquals(tableSizeFor(maxSize - 1), maxSize); in testTableSizeFor()
97 assertEquals(tableSizeFor(maxSize), maxSize); in testTableSizeFor()
[all …]
/libcore/ojluni/src/main/java/java/util/
DHashSet.java343 .checkArray(s, Map.Entry[].class, HashMap.tableSizeFor(capacity)); in readObject()
DHashMap.java376 static final int tableSizeFor(int cap) { in tableSizeFor() method in HashMap
454 this.threshold = tableSizeFor(initialCapacity); in HashMap()
509 threshold = tableSizeFor(t); in putMapEntries()
1545 tableSizeFor((int)dc)); in readObject()
DProperties.java1569 … .checkArray(s, Map.Entry[].class, HashMap.tableSizeFor((int)(elements / 0.75))); in readHashtable()
/libcore/ojluni/annotations/hiddenapi/java/util/
DHashMap.java62 static final int tableSizeFor(int cap) { in tableSizeFor() method in HashMap
/libcore/ojluni/src/main/java/java/util/concurrent/
DConcurrentHashMap.java704 private static final int tableSizeFor(int c) { in tableSizeFor() method in ConcurrentHashMap
900 MAXIMUM_CAPACITY : tableSizeFor((int)size); in ConcurrentHashMap()
1473 MAXIMUM_CAPACITY : tableSizeFor((int)ts); in readObject()
2395 tableSizeFor(size + (size >>> 1) + 1); in tryPresize()