Home
last modified time | relevance | path

Searched refs:unmodifiableMap (Results 1 – 25 of 34) sorted by relevance

12

/libcore/support/src/test/java/tests/support/
DSupport_MapTest.java34 private final Map<String, Integer> unmodifiableMap; field in Support_MapTest
39 unmodifiableMap = Collections.unmodifiableMap(modifiableMap); in Support_MapTest()
45 testContents(unmodifiableMap); in runTest()
51 unmodifiableMap.values()).runTest(); in runTest()
54 testEntrySet(modifiableMap.entrySet(), unmodifiableMap.entrySet()); in runTest()
57 testKeySet(modifiableMap.keySet(), unmodifiableMap.keySet()); in runTest()
/libcore/ojluni/src/main/java/sun/nio/fs/
DAbstractBasicFileAttributeView.java130 Map<String,Object> unmodifiableMap() { in unmodifiableMap() method in AbstractBasicFileAttributeView.AttributesBuilder
131 return Collections.unmodifiableMap(map); in unmodifiableMap()
169 return builder.unmodifiableMap(); in readAttributes()
DUnixFileAttributeViews.java209 return builder.unmodifiableMap(); in readAttributes()
363 return builder.unmodifiableMap(); in readAttributes()
DLinuxDosFileAttributeView.java113 return builder.unmodifiableMap(); in readAttributes()
/libcore/ojluni/src/test/java/util/Collections/
DWrappers.java79 cases.add(new Object[] { Collections.unmodifiableMap(seedMap).entrySet() }); in collectionCases()
80 cases.add(new Object[] { Collections.unmodifiableMap(seedMap).keySet() }); in collectionCases()
81 cases.add(new Object[] { Collections.unmodifiableMap(seedMap).values() }); in collectionCases()
DWrappedNull.java88 Map c = Collections.unmodifiableMap(null); in main()
182 Map m = Collections.unmodifiableMap(Collections.EMPTY_MAP); in main()
DEmptyIterator.java49 import static java.util.Collections.unmodifiableMap;
97 equal(m, unmodifiableMap(m)); in testEmptyMap()
DWrappedUnmodifiableCollections.java93 testWrapping(map, Collections::unmodifiableMap); in testUnmodifiableMapsDontWrap()
DUnmodifiableMapEntrySet.java70 () -> Collections.unmodifiableMap(fillMap(size, new HashMap<>())) }); in mapCases()
DRacingCollections.java71 import static java.util.Collections.unmodifiableMap;
317 frob(unmodifiableMap(x), y); in realMain()
DDelegatingIteratorForEachRemaining.java188 assertThrowingIterator(Collections.unmodifiableMap(map()).entrySet().iterator()); in test_unmodifiableMap_entrySet()
DSyncSubMutexes.java162 BASE_MAP = Collections.unmodifiableMap(map);
/libcore/luni/src/test/java/libcore/java/util/
DCollectionsTest.java456 Map<Integer, Double> m = Collections.unmodifiableMap(delegate); in test_unmodifiableMap_getOrDefault()
467 Collections.unmodifiableMap(delegate).forEach(replica::put); in test_unmodifiableMap_forEach()
475 Collections.unmodifiableMap(new HashMap<>()).putIfAbsent(1, 5.0); in test_unmodifiableMap_putIfAbsent()
484 Collections.unmodifiableMap(m).putIfAbsent(1, 5.0); in test_unmodifiableMap_putIfAbsent()
492 Collections.unmodifiableMap(new HashMap<>()).remove(1, 5.0); in test_unmodifiableMap_remove()
501 Collections.unmodifiableMap(m).remove(1, 5.0); in test_unmodifiableMap_remove()
509 Collections.unmodifiableMap(new HashMap<>()).replace(1, 5.0, 1.0); in test_unmodifiableMap_replace$K$V$V()
518 Collections.unmodifiableMap(m).replace(1, 5.0, 1.0); in test_unmodifiableMap_replace$K$V$V()
526 Collections.unmodifiableMap(new HashMap<>()).replace(1, 5.0); in test_unmodifiableMap_replace$K$V()
535 Collections.unmodifiableMap(m).replace(1, 5.0); in test_unmodifiableMap_replace$K$V()
[all …]
/libcore/ojluni/src/main/java/java/security/
DDomainLoadStoreParameter.java138 Collections.unmodifiableMap(new HashMap<>(protectionParams)); in DomainLoadStoreParameter()
/libcore/luni/src/test/java/libcore/java/math/
DRunCSVTests.java39 UlpMap = Collections.unmodifiableMap(funcUlps);
/libcore/ojluni/src/main/java/java/security/cert/
DCertificateRevokedException.java171 return Collections.unmodifiableMap(extensions); in getExtensions()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DCollectionsTest.java1763 Map c = Collections.unmodifiableMap(hm); in test_unmodifiableMapLjava_util_Map()
1823 Map unmodMap = Collections.unmodifiableMap(smallMap); in test_unmodifiableMapLjava_util_Map()
1954 Map um = Collections.unmodifiableMap(m); in test_unmodifiable_toString_methods()
2255 private final Map<String, Integer> unmodifiableMap; field in CollectionsTest.MapTestSupport
2259 unmodifiableMap = Collections.unmodifiableMap(modifiableMap); in MapTestSupport()
2264 testContents(unmodifiableMap); in runTest()
2270 unmodifiableMap.values()).runTest(); in runTest()
2273 testEntrySet(modifiableMap.entrySet(), unmodifiableMap.entrySet()); in runTest()
2276 testKeySet(modifiableMap.keySet(), unmodifiableMap.keySet()); in runTest()
DCollections2Test.java197 Collections.unmodifiableMap(null); in test_unmodifiableMapLjava_util_Map()
539 testMapForEach(Collections.unmodifiableMap(map)); in test_Map_forEach()
/libcore/tools/upstream/src/main/java/libcore/
DRepository.java73 return Collections.unmodifiableMap(result); in historicRenames()
/libcore/metrictests/memory/host/src/libcore/heapmetrics/
DHeapCategorization.java162 return Collections.unmodifiableMap(sizesByCategory); in sizesByCategory()
/libcore/dalvik/src/main/java/dalvik/system/
DBaseDexClassLoader.java192 reporter.report(Collections.unmodifiableMap(dexFileMapping)); in reportClassLoaderChain()
/libcore/ojluni/src/main/java/java/lang/
DProcessEnvironment.java113 return Collections.unmodifiableMap(buildEnvironment()); in getenv()
/libcore/ojluni/src/main/java/sun/net/www/
DMessageHeader.java288 return Collections.unmodifiableMap(m); in filterAndAddHeaders()
/libcore/ojluni/src/test/java/util/Collection/
DMOAT.java143 testImmutableMap(unmodifiableMap(Collections.singletonMap(1,2))); in realMain()
150 testMapMutatorsAlwaysThrow(unmodifiableMap(Collections.singletonMap(1,2))); in realMain()
151 testMapMutatorsAlwaysThrow(unmodifiableMap(Collections.emptyMap())); in realMain()
152 testEmptyMapMutatorsAlwaysThrow(unmodifiableMap(Collections.emptyMap())); in realMain()
/libcore/ojluni/annotations/flagged_api/java/util/
DCollections.annotated.java90 public static <K, V> java.util.Map<K,V> unmodifiableMap(java.util.Map<? extends K,? extends V> m) {… in unmodifiableMap() method in Collections

12