Home
last modified time | relevance | path

Searched refs:mapSize (Results 1 – 9 of 9) sorted by relevance

/libcore/ojluni/src/test/java/util/concurrent/tck/
DTreeMapTest.java814 int mapSize = expensiveTests ? 1000 : 100;
817 bs = new BitSet(mapSize);
819 populate(map, mapSize);
820 check(map, 0, mapSize - 1, true);
821 check(map.descendingMap(), 0, mapSize - 1, false);
823 mutateMap(map, 0, mapSize - 1);
824 check(map, 0, mapSize - 1, true);
825 check(map.descendingMap(), 0, mapSize - 1, false);
827 bashSubMap(map.subMap(0, true, mapSize, false),
828 0, mapSize - 1, true);
DConcurrentSkipListMapTest.java1009 int mapSize = expensiveTests ? 1000 : 100;
1012 bs = new BitSet(mapSize);
1014 populate(map, mapSize);
1015 check(map, 0, mapSize - 1, true);
1016 check(map.descendingMap(), 0, mapSize - 1, false);
1018 mutateMap(map, 0, mapSize - 1);
1019 check(map, 0, mapSize - 1, true);
1020 check(map.descendingMap(), 0, mapSize - 1, false);
1022 bashSubMap(map.subMap(0, true, mapSize, false),
1023 0, mapSize - 1, true);
DConcurrentHashMapTest.java856 final int mapSize = expensiveTests ? 1_000_000 : 100; in testRemoveAll_performance() local
859 for (int i = 0; i < mapSize; i++) in testRemoveAll_performance()
865 assertEquals(mapSize, map.size()); in testRemoveAll_performance()
DConcurrentHashMap8Test.java1127 final int mapSize = 20; in testcomputeIfAbsent_performance() local
1128 final int iterations = expensiveTests ? (1 << 23) : mapSize * 2; in testcomputeIfAbsent_performance()
1131 for (int i = 0; i < mapSize; i++) in testcomputeIfAbsent_performance()
1139 result += map.computeIfAbsent(i % mapSize, k -> k + k); in testcomputeIfAbsent_performance()
/libcore/jsr166-tests/src/test/java/jsr166/
DTreeMapTest.java791 int mapSize = expensiveTests ? 1000 : 100;
794 bs = new BitSet(mapSize);
796 populate(map, mapSize);
797 check(map, 0, mapSize - 1, true);
798 check(map.descendingMap(), 0, mapSize - 1, false);
800 mutateMap(map, 0, mapSize - 1);
801 check(map, 0, mapSize - 1, true);
802 check(map.descendingMap(), 0, mapSize - 1, false);
804 bashSubMap(map.subMap(0, true, mapSize, false),
805 0, mapSize - 1, true);
DConcurrentSkipListMapTest.java986 int mapSize = expensiveTests ? 1000 : 100;
989 bs = new BitSet(mapSize);
991 populate(map, mapSize);
992 check(map, 0, mapSize - 1, true);
993 check(map.descendingMap(), 0, mapSize - 1, false);
995 mutateMap(map, 0, mapSize - 1);
996 check(map, 0, mapSize - 1, true);
997 check(map.descendingMap(), 0, mapSize - 1, false);
999 bashSubMap(map.subMap(0, true, mapSize, false),
1000 0, mapSize - 1, true);
/libcore/ojluni/src/main/java/sun/nio/ch/
DFileChannelImpl.java979 long mapSize = size + pagePosition; in map() local
984 addr = map0(imode, mapPosition, mapSize); in map()
995 addr = map0(imode, mapPosition, mapSize); in map()
1008 unmap0(addr, mapSize); in map()
1015 Unmapper um = new Unmapper(addr, mapSize, isize, mfd); in map()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DCollectionsTest.java163 int mapSize; field in CollectionsTest.SynchMapChecker
180 mapSize - 1)); in run()
182 .get(new Integer(mapSize)); in run()
184 2 * mapSize - 1)); in run()
211 mapSize = m.size(); in SynchMapChecker()
212 normalCountingMap = new HashMap(mapSize); in SynchMapChecker()
213 offsetCountingMap = new HashMap(mapSize); in SynchMapChecker()
214 for (int i = 0; i < mapSize; i++) { in SynchMapChecker()
218 for (int i = 0; i < mapSize; i++) { in SynchMapChecker()
219 myInt = new Integer(i + mapSize); in SynchMapChecker()
/libcore/ojluni/src/main/java/java/util/
DTreeMap.java314 int mapSize = map.size(); in putAll() local
315 if (size==0 && mapSize!=0 && map instanceof SortedMap) { in putAll()
320 buildFromSorted(mapSize, map.entrySet().iterator(), in putAll()