/libcore/support/src/test/java/tests/support/ |
D | Support_MapTest.java | 34 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/ |
D | AbstractBasicFileAttributeView.java | 130 Map<String,Object> unmodifiableMap() { in unmodifiableMap() method in AbstractBasicFileAttributeView.AttributesBuilder 131 return Collections.unmodifiableMap(map); in unmodifiableMap() 169 return builder.unmodifiableMap(); in readAttributes()
|
D | UnixFileAttributeViews.java | 209 return builder.unmodifiableMap(); in readAttributes() 363 return builder.unmodifiableMap(); in readAttributes()
|
D | LinuxDosFileAttributeView.java | 113 return builder.unmodifiableMap(); in readAttributes()
|
/libcore/ojluni/src/test/java/util/Collections/ |
D | Wrappers.java | 79 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()
|
D | WrappedNull.java | 88 Map c = Collections.unmodifiableMap(null); in main() 182 Map m = Collections.unmodifiableMap(Collections.EMPTY_MAP); in main()
|
D | EmptyIterator.java | 49 import static java.util.Collections.unmodifiableMap; 97 equal(m, unmodifiableMap(m)); in testEmptyMap()
|
D | WrappedUnmodifiableCollections.java | 93 testWrapping(map, Collections::unmodifiableMap); in testUnmodifiableMapsDontWrap()
|
D | UnmodifiableMapEntrySet.java | 70 () -> Collections.unmodifiableMap(fillMap(size, new HashMap<>())) }); in mapCases()
|
D | RacingCollections.java | 71 import static java.util.Collections.unmodifiableMap; 317 frob(unmodifiableMap(x), y); in realMain()
|
D | DelegatingIteratorForEachRemaining.java | 188 assertThrowingIterator(Collections.unmodifiableMap(map()).entrySet().iterator()); in test_unmodifiableMap_entrySet()
|
D | SyncSubMutexes.java | 162 BASE_MAP = Collections.unmodifiableMap(map);
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | CollectionsTest.java | 456 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/ |
D | DomainLoadStoreParameter.java | 138 Collections.unmodifiableMap(new HashMap<>(protectionParams)); in DomainLoadStoreParameter()
|
/libcore/luni/src/test/java/libcore/java/math/ |
D | RunCSVTests.java | 39 UlpMap = Collections.unmodifiableMap(funcUlps);
|
/libcore/ojluni/src/main/java/java/security/cert/ |
D | CertificateRevokedException.java | 171 return Collections.unmodifiableMap(extensions); in getExtensions()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | CollectionsTest.java | 1763 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()
|
D | Collections2Test.java | 197 Collections.unmodifiableMap(null); in test_unmodifiableMapLjava_util_Map() 539 testMapForEach(Collections.unmodifiableMap(map)); in test_Map_forEach()
|
/libcore/tools/upstream/src/main/java/libcore/ |
D | Repository.java | 73 return Collections.unmodifiableMap(result); in historicRenames()
|
/libcore/metrictests/memory/host/src/libcore/heapmetrics/ |
D | HeapCategorization.java | 162 return Collections.unmodifiableMap(sizesByCategory); in sizesByCategory()
|
/libcore/dalvik/src/main/java/dalvik/system/ |
D | BaseDexClassLoader.java | 192 reporter.report(Collections.unmodifiableMap(dexFileMapping)); in reportClassLoaderChain()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | ProcessEnvironment.java | 113 return Collections.unmodifiableMap(buildEnvironment()); in getenv()
|
/libcore/ojluni/src/main/java/sun/net/www/ |
D | MessageHeader.java | 288 return Collections.unmodifiableMap(m); in filterAndAddHeaders()
|
/libcore/ojluni/src/test/java/util/Collection/ |
D | MOAT.java | 143 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/ |
D | Collections.annotated.java | 90 public static <K, V> java.util.Map<K,V> unmodifiableMap(java.util.Map<? extends K,? extends V> m) {… in unmodifiableMap() method in Collections
|