Home
last modified time | relevance | path

Searched refs:getMap (Results 1 – 25 of 71) sorted by relevance

123

/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DBiMapClearTester.java34 BiMap<V, K> inv = getMap().inverse(); in testClearClearsInverse()
35 getMap().clear(); in testClearClearsInverse()
36 assertTrue(getMap().isEmpty()); in testClearClearsInverse()
42 BiMap<V, K> inv = getMap().inverse(); in testKeySetClearClearsInverse()
43 getMap().keySet().clear(); in testKeySetClearClearsInverse()
44 assertTrue(getMap().isEmpty()); in testKeySetClearClearsInverse()
50 BiMap<V, K> inv = getMap().inverse(); in testValuesClearClearsInverse()
51 getMap().values().clear(); in testValuesClearClearsInverse()
52 assertTrue(getMap().isEmpty()); in testValuesClearClearsInverse()
58 BiMap<V, K> inv = getMap().inverse(); in testClearInverseClears()
[all …]
DBiMapPutTester.java40 getMap().put(k0, v0); in testPutWithSameValueFails()
42 getMap().put(k1, v0); in testPutWithSameValueFails()
58 getMap().put(k0, v0); in testPutPresentKeyDifferentValue()
59 getMap().put(k0, v1); in testPutPresentKeyDifferentValue()
69 getMap().put(samples.e0.getKey(), samples.e0.getValue()); in putDistinctKeysDistinctValues()
70 getMap().put(samples.e1.getKey(), samples.e1.getValue()); in putDistinctKeysDistinctValues()
81 getMap().put(k0, v0); in testForcePutOverwritesOldValueEntry()
82 getMap().forcePut(k1, v0); in testForcePutOverwritesOldValueEntry()
95 getMap().put(k0, v0); in testInversePut()
96 getMap().inverse().put(v1, k1); in testInversePut()
DBiMapRemoveTester.java41 getMap().remove(samples.e0.getKey()); in testRemoveKeyRemovesFromInverse()
49 getMap().keySet().remove(samples.e0.getKey()); in testRemoveKeyFromKeySetRemovesFromInverse()
57 getMap().values().remove(samples.e0.getValue()); in testRemoveFromValuesRemovesFromInverse()
65 getMap().inverse().remove(samples.e0.getValue()); in testRemoveFromInverseRemovesFromForward()
73 getMap().inverse().keySet().remove(samples.e0.getValue()); in testRemoveFromInverseKeySetRemovesFromForward()
81 getMap().inverse().values().remove(samples.e0.getKey()); in testRemoveFromInverseValuesRemovesFromInverse()
89 Iterator<K> iterator = getMap().keySet().iterator(); in testKeySetIteratorRemove()
92 assertEquals(initialSize - 1, getMap().size()); in testKeySetIteratorRemove()
93 assertEquals(initialSize - 1, getMap().inverse().size()); in testKeySetIteratorRemove()
DAbstractBiMapTester.java36 protected BiMap<K, V> getMap() { in getMap() method in AbstractBiMapTester
37 return (BiMap<K, V>) super.getMap(); in getMap()
51 Helpers.assertEqualIgnoringOrder(getMap().inverse().entrySet(), reversedEntries); in expectContents()
54 assertEquals("Wrong key for value " + entry.getValue(), entry.getKey(), getMap() in expectContents()
65 BiMap<V, K> inv = getMap().inverse(); in expectMissing()
73 getMap().get(entry.getValue())); in expectMissing()
DBiMapInverseTester.java45 assertSame(getMap(), getMap().inverse().inverse()); in testInverseSame()
50 BiMapPair<K, V> pair = new BiMapPair<K, V>(getMap()); in testInverseSerialization()
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
DMapRemoveTester.java50 int initialSize = getMap().size(); in testRemove_present()
52 samples.e0.getValue(), getMap().remove(samples.e0.getKey())); in testRemove_present()
54 initialSize - 1, getMap().size()); in testRemove_present()
63 Iterator<Entry<K, V>> iterator = getMap().entrySet().iterator(); in testRemovePresentConcurrentWithEntrySetIteration()
64 getMap().remove(samples.e0.getKey()); in testRemovePresentConcurrentWithEntrySetIteration()
77 Iterator<K> iterator = getMap().keySet().iterator(); in testRemovePresentConcurrentWithKeySetIteration()
78 getMap().remove(samples.e0.getKey()); in testRemovePresentConcurrentWithKeySetIteration()
91 Iterator<V> iterator = getMap().values().iterator(); in testRemovePresentConcurrentWithValuesIteration()
92 getMap().remove(samples.e0.getKey()); in testRemovePresentConcurrentWithValuesIteration()
103 getMap().remove(samples.e3.getKey())); in testRemove_notPresent()
[all …]
DMapClearTester.java45 getMap().clear(); in testClear()
47 getMap().isEmpty()); in testClear()
55 Iterator<Entry<K, V>> iterator = getMap().entrySet().iterator(); in testClearConcurrentWithEntrySetIteration()
56 getMap().clear(); in testClearConcurrentWithEntrySetIteration()
69 Iterator<K> iterator = getMap().keySet().iterator(); in testClearConcurrentWithKeySetIteration()
70 getMap().clear(); in testClearConcurrentWithKeySetIteration()
83 Iterator<V> iterator = getMap().values().iterator(); in testClearConcurrentWithValuesIteration()
84 getMap().clear(); in testClearConcurrentWithValuesIteration()
96 getMap().clear(); in testClear_unsupported()
108 getMap().clear(); in testClear_unsupportedByEmptyCollection()
DMapEqualsTester.java44 getMap().equals(newHashMap(getSampleEntries()))); in testEquals_otherMapWithSameEntries()
54 getMap().equals(other) in testEquals_otherMapWithDifferentEntries()
67 getMap().equals(newHashMap(entries))); in testEquals_containingNullKey()
79 getMap().equals(other)); in testEquals_otherContainsNullKey()
91 getMap().equals(newHashMap(entries))); in testEquals_containingNullValue()
103 getMap().equals(other)); in testEquals_otherContainsNullValue()
111 getMap().equals(newHashMap(fewerEntries))); in testEquals_smallerMap()
118 getMap().equals(newHashMap(moreEntries))); in testEquals_largerMap()
123 getMap().equals(Helpers.copyToList(getMap().entrySet()))); in testEquals_list()
DMapEntrySetTester.java56 Set<Entry<K, V>> entrySet = getMap().entrySet(); in testEntrySetIteratorRemove()
60 assertTrue(getMap().isEmpty()); in testEntrySetIteratorRemove()
65 assertFalse(getMap() in testContainsEntryWithIncomparableKey()
70 assertFalse(getMap() in testContainsEntryWithIncomparableValue()
76 assertFalse(getMap() in testContainsEntryWithNullKeyAbsent()
84 assertTrue(getMap() in testContainsEntryWithNullKeyPresent()
90 assertFalse(getMap() in testContainsEntryWithNullValueAbsent()
98 assertTrue(getMap() in testContainsEntryWithNullValuePresent()
DMapContainsValueTester.java41 getMap().containsValue(samples.e0.getValue())); in testContains_yes()
46 getMap().containsValue(samples.e3.getValue())); in testContains_no()
52 getMap().containsValue(null)); in testContains_nullNotContainedButAllowed()
66 getMap().containsValue(samples.e3.getValue())); in testContains_nonNullWhenNullContained()
74 getMap().containsValue(null)); in testContains_nullContained()
81 getMap().containsValue(WrongType.VALUE)); in testContains_wrongType()
DMapContainsKeyTester.java41 getMap().containsKey(samples.e0.getKey())); in testContains_yes()
46 getMap().containsKey(samples.e3.getKey())); in testContains_no()
52 getMap().containsKey(null)); in testContains_nullNotContainedButAllowed()
66 getMap().containsKey(samples.e3.getKey())); in testContains_nonNullWhenNullContained()
74 getMap().containsKey(null)); in testContains_nullContained()
81 getMap().containsKey(WrongType.VALUE)); in testContains_wrongType()
DMapToStringTester.java42 assertNotNull("toString() should not return null", getMap().toString()); in testToString_minimal()
47 assertEquals("emptyMap.toString should return {}", "{}", getMap().toString()); in testToString_size0()
53 "size1Map.toString should return {entry}", "{" + samples.e0 + "}", getMap().toString()); in testToString_size1()
72 "map.toString() incorrect", expectedToString(getMap().entrySet()), getMap().toString()); in testToString_formatting()
DMapPutTester.java72 Iterator<Entry<K, V>> iterator = getMap().entrySet().iterator(); in testPutAbsentConcurrentWithEntrySetIteration()
85 Iterator<K> iterator = getMap().keySet().iterator(); in testPutAbsentConcurrentWithKeySetIteration()
98 Iterator<V> iterator = getMap().values().iterator(); in testPutAbsentConcurrentWithValueIteration()
133 getMap().put(samples.e0.getKey(), samples.e3.getValue()); in testPut_unsupportedPresentDifferentValue()
215 getMap().put(getKeyForNullValue(), null)); in testPut_replaceNullValueWithNullSupported()
239 return getMap().put(entry.getKey(), entry.getValue()); in put()
DMapPutAllTester.java65 getMap().putAll(emptyMap()); in testPutAll_supportedNothing()
72 getMap().putAll(emptyMap()); in testPutAll_unsupportedNothing()
107 Iterator<Entry<K, V>> iterator = getMap().entrySet().iterator(); in testPutAllSomePresentConcurrentWithEntrySetIteration()
182 getMap().putAll(null); in testPutAll_nullCollectionReference()
197 getMap().putAll(map); in putAll()
DMapIsEmptyTester.java36 assertTrue("isEmpty() should return true", getMap().isEmpty()); in testIsEmpty_yes()
41 assertFalse("isEmpty() should return false", getMap().isEmpty()); in testIsEmpty_no()
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue61/
DGenericMapBeanTest.java32 listProvider.getMap().put("foo", 17); in testGenericMap()
33 listProvider.getMap().put("bar", 19); in testGenericMap()
40 assertEquals(new Integer(17), listProvider2.getMap().get("foo")); in testGenericMap()
41 assertEquals(new Integer(19), listProvider2.getMap().get("bar")); in testGenericMap()
51 listProvider.getMap().put("foo", foo); in testGenericBean()
55 listProvider.getMap().put("bar", bar); in testGenericBean()
63 Bean foo2 = (Bean) listProvider2.getMap().get("foo"); in testGenericBean()
66 Bean bar2 = (Bean) listProvider2.getMap().get("bar"); in testGenericBean()
74 public Map<K, V> getMap() { in getMap() method in GenericMapBeanTest.MapProvider
86 return map.equals(((MapProvider) obj).getMap()); in equals()
/external/guava/guava-testlib/src/com/google/common/collect/testing/
DAbstractMapTester.java42 protected Map<K, V> getMap() { in getMap() method in AbstractMapTester
53 return getMap().entrySet(); in actualContents()
64 getMap().containsKey(element)); in expectMissingKeys()
71 getMap().containsValue(element)); in expectMissingValues()
132 assertFalse(message, getMap().containsKey(null)); in expectNullKeyMissingWhenNullKeysUnsupported()
148 assertFalse(message, getMap().containsValue(null)); in expectNullValueMissingWhenNullValuesUnsupported()
178 equal(getMap().get(entry.getKey()), entry.getValue())); in expectMissing()
196 entry.getValue(), getMap().get(entry.getKey())); in expectContents()
225 return getMap().get(key); in get()
/external/testng/src/test/java/test/thread/
DBaseSequentialSample.java9 getMap().put(id, id); in addId()
12 Map getMap() { in getMap() method in BaseSequentialSample
13 Map result = Helper.getMap(getClass().getName()); in getMap()
DSequentialTest.java70 Helper.getMap(classes[0]), in runTest()
71 Helper.getMap(classes[1]), in runTest()
72 Helper.getMap(classes[2]), in runTest()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DLibCallSemantics.cpp23 static StringMap<const LibCallFunctionInfo*> *getMap(void *Ptr) { in getMap() function
28 delete getMap(Impl); in ~LibCallInfo()
45 StringMap<const LibCallFunctionInfo*> *Map = getMap(Impl); in getFunctionInfo()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DMapField.java178 public Map<K, V> getMap() { in getMap() method in MapField
203 getMutableMap().putAll(MapFieldLite.copy(other.getMap())); in mergeFrom()
218 return MapFieldLite.<K, V>equals(getMap(), other.getMap()); in equals()
223 return MapFieldLite.<K, V>calculateHashCodeForMap(getMap()); in hashCode()
229 converter, StorageMode.MAP, MapFieldLite.copy(getMap())); in copy()
/external/guava/guava-gwt/test-super/com/google/common/collect/testing/super/com/google/common/collect/testing/testers/
DMapPutTester.java69 Iterator<Entry<K, V>> iterator = getMap().entrySet().iterator(); in testPutAbsentConcurrentWithEntrySetIteration()
82 Iterator<K> iterator = getMap().keySet().iterator(); in testPutAbsentConcurrentWithKeySetIteration()
95 Iterator<V> iterator = getMap().values().iterator(); in testPutAbsentConcurrentWithValueIteration()
130 getMap().put(samples.e0.getKey(), samples.e3.getValue()); in testPut_unsupportedPresentDifferentValue()
212 getMap().put(getKeyForNullValue(), null)); in testPut_replaceNullValueWithNullSupported()
236 return getMap().put(entry.getKey(), entry.getValue()); in put()
DMapPutAllTester.java62 getMap().putAll(emptyMap()); in testPutAll_supportedNothing()
69 getMap().putAll(emptyMap()); in testPutAll_unsupportedNothing()
104 Iterator<Entry<K, V>> iterator = getMap().entrySet().iterator(); in testPutAllSomePresentConcurrentWithEntrySetIteration()
179 getMap().putAll(null); in testPutAll_nullCollectionReference()
194 getMap().putAll(map); in putAll()
/external/guava/guava-gwt/test-super/com/google/common/collect/testing/google/super/com/google/common/collect/testing/google/
DBiMapInverseTester.java40 assertSame(getMap(), getMap().inverse().inverse()); in testInverseSame()
45 BiMapPair<K, V> pair = new BiMapPair<K, V>(getMap()); in testInverseSerialization()
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue143/
DGenericMapTest.java27 GenericMap<Integer> shash = fact.getMap(); in testMap()
41 public GenericMap<Integer> getMap() { in getMap() method in GenericMapTest.BeanWithMap

123