Home
last modified time | relevance | path

Searched defs:map (Results 1 – 25 of 1444) sorted by relevance

12345678910>>...58

/external/snakeyaml/src/test/java/org/yaml/snakeyaml/json/
DJsonTest.java30 Map<String, Integer> map = (Map<String, Integer>) loader.load("{a: 1}"); in testLooksLikeJson() local
35 Map<String, Integer> map = (Map<String, Integer>) loader.load("{\"a\": 1}"); in testSpaceAfterColon() local
49 Map<String, Integer> map = (Map<String, Integer>) loader.load("{\"a\":1}"); in testNoSpace() local
54 Map<String, Integer> map = (Map<String, Integer>) loader.load("{\"a\":\"1\"}"); in testNoSpaceBothDoubleQuoted() local
59 Map<String, Integer> map = (Map<String, Integer>) loader.load("{'a':1}"); in testNoSpaceSingleQouted() local
64 … Map<String, Object> map = (Map<String, Object>) loader.load("{\"a\":1,\"b\":true,\"c\":\"foo\"}"); in testManyValues() local
72 Map<String, Object> map = (Map<String, Object>) loader.load("{a: null}"); in testConstructNull() local
78 Map<String, Object> map = (Map<String, Object>) loader.load("{a: }"); in testConstructNullFromEmpty() local
84 Map<String, Object> map = (Map<String, Object>) loader.load("{a: true}"); in testConstructBoolean() local
/external/guava/guava-testlib/src/com/google/common/collect/testing/
DMapInterfaceTest.java155 protected final boolean supportsValuesHashCode(Map<K, V> map) { in supportsValuesHashCode()
179 protected final void assertInvariants(Map<K, V> map) { in assertInvariants()
271 protected void assertMoreInvariants(Map<K, V> map) { in assertMoreInvariants()
275 final Map<K, V> map; in testClear() local
297 final Map<K, V> map; in testContainsKey() local
322 final Map<K, V> map; in testContainsValue() local
344 final Map<K, V> map; in testEntrySet() local
369 final Map<K, V> map; in testEntrySetForEmptyMap() local
379 final Map<K, V> map; in testEntrySetContainsEntryIncompatibleKey() local
406 final Map<K, V> map; in testEntrySetContainsEntryNullKeyPresent() local
[all …]
/external/guava/guava-gwt/test-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/
DAtomicLongMapTest.java43 AtomicLongMap<String> map = AtomicLongMap.create(in); in testCreate_map() local
55 AtomicLongMap<String> map = AtomicLongMap.create(); in testIncrementAndGet() local
71 AtomicLongMap<String> map = AtomicLongMap.create(); in testIncrementAndGet_zero() local
88 AtomicLongMap<String> map = AtomicLongMap.create(); in testGetAndIncrement() local
104 AtomicLongMap<String> map = AtomicLongMap.create(); in testGetAndIncrement_zero() local
121 AtomicLongMap<String> map = AtomicLongMap.create(); in testDecrementAndGet() local
137 AtomicLongMap<String> map = AtomicLongMap.create(); in testDecrementAndGet_zero() local
154 AtomicLongMap<String> map = AtomicLongMap.create(); in testGetAndDecrement() local
170 AtomicLongMap<String> map = AtomicLongMap.create(); in testGetAndDecrement_zero() local
187 AtomicLongMap<String> map = AtomicLongMap.create(); in testAddAndGet() local
[all …]
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DAtomicLongMapTest.java52 AtomicLongMap<Object> map = AtomicLongMap.create(); in testNulls() local
58 AtomicLongMap<String> map = AtomicLongMap.create(in); in testCreate_map() local
70 AtomicLongMap<String> map = AtomicLongMap.create(); in testIncrementAndGet() local
86 AtomicLongMap<String> map = AtomicLongMap.create(); in testIncrementAndGet_zero() local
103 AtomicLongMap<String> map = AtomicLongMap.create(); in testGetAndIncrement() local
119 AtomicLongMap<String> map = AtomicLongMap.create(); in testGetAndIncrement_zero() local
136 AtomicLongMap<String> map = AtomicLongMap.create(); in testDecrementAndGet() local
152 AtomicLongMap<String> map = AtomicLongMap.create(); in testDecrementAndGet_zero() local
169 AtomicLongMap<String> map = AtomicLongMap.create(); in testGetAndDecrement() local
185 AtomicLongMap<String> map = AtomicLongMap.create(); in testGetAndDecrement_zero() local
[all …]
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.JavaExtensions/
DDictionaryExtensions.cs45 public static bool containsKey(IDictionary map, object key) { in containsKey()
50 public static object get(IDictionary map, object key) { in get()
55 public static TValue get<TKey, TValue>(IDictionary<TKey, TValue> map, TKey key) { in get()
67 public static TValue get<TKey, TValue>(Dictionary<TKey, TValue> map, TKey key) { in get()
78 public static TValue get<TKey, TValue>(SortedList<TKey, TValue> map, TKey key) { in get()
91 public static void put(IDictionary map, object key, object value) { in put()
96 … public static void put<TKey, TValue>(IDictionary<TKey, TValue> map, TKey key, TValue value) { in put()
101 public static void put<TKey, TValue>(Dictionary<TKey, TValue> map, TKey key, TValue value) { in put()
106 public static HashSet<object> keySet(IDictionary map) { in keySet()
111 public static HashSet<TKey> keySet<TKey, TValue>(IDictionary<TKey, TValue> map) { in keySet()
[all …]
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/
DDictionaryExtensions.cs44 public static bool containsKey( this IDictionary map, object key ) in containsKey()
50 public static object get( this IDictionary map, object key ) in get()
55 public static TValue get<TKey, TValue>( this IDictionary<TKey, TValue> map, TKey key ) in get()
68 public static TValue get<TKey, TValue>( this Dictionary<TKey, TValue> map, TKey key ) in get()
80 public static TValue get<TKey, TValue>( this SortedList<TKey, TValue> map, TKey key ) in get()
93 public static void put( this IDictionary map, object key, object value ) in put()
99 … public static void put<TKey, TValue>( this IDictionary<TKey, TValue> map, TKey key, TValue value ) in put()
105 … public static void put<TKey, TValue>( this Dictionary<TKey, TValue> map, TKey key, TValue value ) in put()
111 public static HashSet<object> keySet( this IDictionary map ) in keySet()
117 public static HashSet<TKey> keySet<TKey, TValue>( this IDictionary<TKey, TValue> map ) in keySet()
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DMapsTest.java82 HashMap<Integer, Integer> map = Maps.newHashMap(); in testHashMap() local
83 assertEquals(Collections.emptyMap(), map); in testHashMap() local
91 HashMap<String, Integer> map = Maps.newHashMap(original); in testHashMapWithInitialMap() local
100 HashMap<Object, Object> map = in testHashMapGeneralizesTypes() local
178 LinkedHashMap<Integer, Integer> map = Maps.newLinkedHashMap(); in testLinkedHashMap() local
179 assertEquals(Collections.emptyMap(), map); in testLinkedHashMap() local
184 Map<String, String> map = new LinkedHashMap<String, String>() {{ in testLinkedHashMapWithInitialMap() local
221 HashMap<Object, Object> map in testLinkedHashMapGeneralizesTypes() local
227 IdentityHashMap<Integer, Integer> map = Maps.newIdentityHashMap(); in testIdentityHashMap() local
228 assertEquals(Collections.emptyMap(), map); in testIdentityHashMap() local
[all …]
DMapsTransformValuesTest.java82 private void assertMapsEqual(Map<?, ?> expected, Map<?, ?> map) { in assertMapsEqual()
97 Map<String, String> map = Maps.transformValues( in testTransformEmptyMapEquality() local
99 assertMapsEqual(Maps.newHashMap(), map); in testTransformEmptyMapEquality() local
103 Map<String, String> map = Maps.transformValues( in testTransformSingletonMapEquality() local
112 Map<String, Integer> map = Maps.transformValues( in testTransformIdentityFunctionEquality() local
118 Map<String, String> map = Maps.transformValues( in testTransformPutEntryIsUnsupported() local
142 Map<String, String> map in testTransformRemoveEntry() local
153 Map<String, Boolean> map = Maps.transformValues(underlying, in testTransformEqualityOfMapsWithNullValues() local
176 Map<String, String> map in testTransformReflectsUnderlyingMap() local
201 Map<String, String> map in testTransformChangesAreReflectedInUnderlyingMap() local
[all …]
DImmutableSortedMapTest.java119 @Override protected void assertMoreInvariants(Map<K, V> map) { in assertMoreInvariants()
267 ImmutableSortedMap<String, Integer> map in testEmptyBuilder() local
269 assertEquals(Collections.<String, Integer>emptyMap(), map); in testEmptyBuilder() local
273 ImmutableSortedMap<String, Integer> map in testSingletonBuilder() local
281 ImmutableSortedMap<String, Integer> map in testBuilder() local
294 ImmutableSortedMap<String, Integer> map = in testBuilder_withImmutableEntry() local
340 ImmutableSortedMap<String, Integer> map in testBuilderPutAllWithEmptyMap() local
344 assertEquals(Collections.<String, Integer>emptyMap(), map); in testBuilderPutAllWithEmptyMap() local
356 ImmutableSortedMap<String, Integer> map in testBuilderPutAll() local
612 ImmutableSortedMap<String, Integer> map in testBuilderReverseOrder() local
[all …]
DWellBehavedMapTest.java34 WellBehavedMap<Foo, Integer> map = WellBehavedMap.wrap( in testEntrySet_contain() local
50 WellBehavedMap<Foo, Integer> map = WellBehavedMap.wrap( in testEntry_setValue() local
58 assertEquals(ImmutableMap.of(Foo.X, 6, Foo.Y, 7, Foo.Z, 8), map); in testEntry_setValue() local
62 WellBehavedMap<Foo, Integer> map = WellBehavedMap.wrap( in testEntriesAreMutableAndConsistent() local
89 WellBehavedMap<Foo, Integer> map = WellBehavedMap.wrap( in testEntrySet_remove() local
DForwardingConcurrentMapTest.java41 TestMap map = new TestMap(); in testPutIfAbsent() local
50 TestMap map = new TestMap(); in testRemove() local
60 TestMap map = new TestMap(); in testReplace() local
69 TestMap map = new TestMap(); in testReplaceConditional() local
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DMapsTest.java70 HashMap<Integer, Integer> map = Maps.newHashMap(); in testHashMap() local
71 assertEquals(Collections.emptyMap(), map); in testHashMap() local
79 HashMap<String, Integer> map = Maps.newHashMap(original); in testHashMapWithInitialMap() local
88 HashMap<Object, Object> map = in testHashMapGeneralizesTypes() local
117 LinkedHashMap<Integer, Integer> map = Maps.newLinkedHashMap(); in testLinkedHashMap() local
118 assertEquals(Collections.emptyMap(), map); in testLinkedHashMap() local
123 Map<String, String> map = new LinkedHashMap<String, String>() {{ in testLinkedHashMapWithInitialMap() local
160 HashMap<Object, Object> map in testLinkedHashMapGeneralizesTypes() local
166 IdentityHashMap<Integer, Integer> map = Maps.newIdentityHashMap(); in testIdentityHashMap() local
167 assertEquals(Collections.emptyMap(), map); in testIdentityHashMap() local
[all …]
DLinkedListMultimapTest.java112 LinkedListMultimap<String, Integer> map = create(); in testLinkedGetAdd() local
125 ListMultimap<String, Integer> map = create(); in testLinkedGetInsert() local
138 Multimap<String, Integer> map = create(); in testLinkedPutInOrder() local
147 Multimap<String, Integer> map = create(); in testLinkedPutOutOfOrder() local
167 Multimap<String, Integer> map = create(); in testLinkedReplaceValues() local
179 ListMultimap<String, Integer> map = create(); in testLinkedClear() local
195 Multimap<String, Integer> map = create(); in testLinkedKeySet() local
206 Multimap<String, Integer> map = create(); in testLinkedKeys() local
219 Multimap<String, Integer> map = create(); in testLinkedValues() local
230 Multimap<String, Integer> map = create(); in testLinkedEntries() local
[all …]
DImmutableEnumMapTest.java41 Map<AnEnum, String> map = Maps.newHashMap(); in create() local
50 ImmutableMap<AnEnum, String> map = Maps.immutableEnumMap(ImmutableMap.<AnEnum, String>of()); in testEmptyImmutableEnumMap() local
51 assertEquals(ImmutableMap.of(), map); in testEmptyImmutableEnumMap() local
55 ImmutableMap<AnEnum, String> map = Maps.immutableEnumMap( in testImmutableEnumMapOrdering() local
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/
DChapter2_3Test.java62 Map<String, String> map = (Map<String, String>) document.getNativeData(); in testExample_2_16() local
74 Map<String, String> map = (Map<String, String>) document.getNativeData(); in testExample_2_17() local
87 Map<String, String> map = (Map<String, String>) document.getNativeData(); in testExample_2_17_unicode() local
94 Map<String, String> map = (Map<String, String>) document.getNativeData(); in testExample_2_17_control() local
101 Map<String, String> map = (Map<String, String>) document.getNativeData(); in testExample_2_17_hexesc() local
108 Map<String, String> map = (Map<String, String>) document.getNativeData(); in testExample_2_17_single() local
115 Map<String, String> map = (Map<String, String>) document.getNativeData(); in testExample_2_17_quoted() local
122 Map<String, String> map = (Map<String, String>) document.getNativeData(); in testExample_2_17_tie_fighter() local
129 Map<String, String> map = (Map<String, String>) document.getNativeData(); in testExample_2_18() local
DChapter2_4Test.java45 Map<String, Object> map = (Map<String, Object>) document.getNativeData(); in testExample_2_19() local
59 Map<String, Object> map = (Map<String, Object>) document.getNativeData(); in testExample_2_20() local
74 Map<String, Object> map = (Map<String, Object>) document.getNativeData(); in testExample_2_21() local
85 Map<String, Object> map = (Map<String, Object>) document.getNativeData(); in testExample_2_22() local
111 Map<String, Object> map = (Map<String, Object>) document.getNativeData(); in testExample_2_23_non_date() local
122 Map<String, Object> map = (Map<String, Object>) document.getNativeData(); in testExample_2_23_picture() local
148 Map<String, Object> map = (Map<String, Object>) document.getNativeData(); in testExample_2_23() local
168 Map<String, String> map = (Map<String, String>) document.getNativeData(); in testExample_2_26() local
/external/v8/src/heap/
Dobjects-visiting.h207 INLINE(static ReturnType Visit(Map* map, HeapObject* object)) { in INLINE()
215 static inline ReturnType VisitSpecialized(Map* map, HeapObject* object) { in VisitSpecialized()
230 INLINE(static ReturnType Visit(Map* map, HeapObject* object)) { in INLINE()
258 INLINE(static int IterateBody(Map* map, HeapObject* obj)) { in INLINE()
278 inline static int UnreachableVisitor(Map* map, HeapObject* object) { in UnreachableVisitor()
283 INLINE(static int VisitByteArray(Map* map, HeapObject* object)) { in INLINE()
287 INLINE(static int VisitFixedDoubleArray(Map* map, HeapObject* object)) { in INLINE()
292 INLINE(static int VisitJSObject(Map* map, HeapObject* object)) { in INLINE()
296 INLINE(static int VisitSeqOneByteString(Map* map, HeapObject* object)) { in INLINE()
301 INLINE(static int VisitSeqTwoByteString(Map* map, HeapObject* object)) { in INLINE()
[all …]
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/collection/
DIsMapContainingKeyTest.java21 Map<String,Integer> map = new HashMap<String, Integer>(); in testMatchesSingletonMapContainingKey() local
28 Map<String,Integer> map = new HashMap<String, Integer>(); in testMatchesMapContainingKey() local
50 Map<Integer, String> map = new HashMap<Integer, String>(); in testMatchesMapContainingKeyWithIntegerKeys() local
58 Map<Number, String> map = new HashMap<Number, String>(); in testMatchesMapContainingKeyWithNumberKeys() local
77 Map<String,Integer> map = new TreeMap<String, Integer>(); in testDoesNotMatchMapMissingKey() local
/external/guava/guava/src/com/google/common/base/
DDefaults.java41 put(map, boolean.class, false); in put() argument
42 put(map, char.class, '\0'); in put() argument
43 put(map, byte.class, (byte) 0); in put() argument
44 put(map, short.class, (short) 0); in put() argument
45 put(map, int.class, 0); in put() argument
46 put(map, long.class, 0L); in put() argument
47 put(map, float.class, 0f); in put() argument
48 put(map, double.class, 0d); in put() argument
52 private static <T> void put(Map<Class<?>, Object> map, Class<T> type, T value) { in put()
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/utils/
DVisitorMapTest.java22 Map<CompilationUnit, Integer> map = new HashMap<>(); in normalEqualsDoesDeepCompare() local
33 …Map<CompilationUnit, Integer> map = new VisitorMap<>(new ObjectIdentityHashCodeVisitor(), new Obje… in objectIdentityEqualsDoesShallowCompare() local
43 …Map<CompilationUnit, Integer> map = new VisitorMap<>(new ObjectIdentityHashCodeVisitor(), new Obje… in visitorMapGet() local
52 …Map<CompilationUnit, Integer> map = new VisitorMap<>(new ObjectIdentityHashCodeVisitor(), new Obje… in visitorMapContainsKey() local
61 Map<CompilationUnit, Integer> map = new HashMap<>(); in visitorMapPutAll() local
72 …VisitorMap<CompilationUnit, Integer> map = new VisitorMap<>(new ObjectIdentityHashCodeVisitor(), n… in remove() local
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DSmallSortedMapTest.java150 SmallSortedMap<Integer, Integer> map = SmallSortedMap.newInstanceForTest(3); in testReplacingPut() local
161 SmallSortedMap<Integer, Integer> map = SmallSortedMap.newInstanceForTest(3); in testRemove() local
202 SmallSortedMap<Integer, Integer> map = SmallSortedMap.newInstanceForTest(3); in testClear() local
213 SmallSortedMap<Integer, Integer> map = SmallSortedMap.newInstanceForTest(3); in testGetArrayEntryAndOverflowEntries() local
235 SmallSortedMap<Integer, Integer> map = SmallSortedMap.newInstanceForTest(3); in testEntrySetContains() local
249 SmallSortedMap<Integer, Integer> map = SmallSortedMap.newInstanceForTest(3); in testEntrySetAdd() local
266 SmallSortedMap<Integer, Integer> map = SmallSortedMap.newInstanceForTest(3); in testEntrySetRemove() local
284 SmallSortedMap<Integer, Integer> map = SmallSortedMap.newInstanceForTest(3); in testEntrySetClear() local
296 SmallSortedMap<Integer, Integer> map = SmallSortedMap.newInstanceForTest(3); in testEntrySetIteratorNext() local
311 SmallSortedMap<Integer, Integer> map = SmallSortedMap.newInstanceForTest(3); in testEntrySetIteratorRemove() local
[all …]
/external/v8/src/
Dcontexts-inl.h84 Map* map = this->map(); in IsNativeContext() local
90 Map* map = this->map(); in IsFunctionContext() local
96 Map* map = this->map(); in IsCatchContext() local
102 Map* map = this->map(); in IsWithContext() local
107 Map* map = this->map(); in IsDebugEvaluateContext() local
112 Map* map = this->map(); in IsBlockContext() local
118 Map* map = this->map(); in IsModuleContext() local
123 Map* map = this->map(); in IsEvalContext() local
128 Map* map = this->map(); in IsScriptContext() local
/external/protobuf/src/google/protobuf/
Dmap_test_util.cc994 std::map<int32, int32> map; in ExpectMapFieldsSetViaReflection() local
1013 std::map<int64, int64> map; in ExpectMapFieldsSetViaReflection() local
1032 std::map<uint32, uint32> map; in ExpectMapFieldsSetViaReflection() local
1051 std::map<uint64, uint64> map; in ExpectMapFieldsSetViaReflection() local
1069 std::map<int32, int32> map; in ExpectMapFieldsSetViaReflection() local
1087 std::map<int64, int64> map; in ExpectMapFieldsSetViaReflection() local
1105 std::map<uint32, uint32> map; in ExpectMapFieldsSetViaReflection() local
1123 std::map<uint64, uint64> map; in ExpectMapFieldsSetViaReflection() local
1141 std::map<int32, int32> map; in ExpectMapFieldsSetViaReflection() local
1159 std::map<int64, int64> map; in ExpectMapFieldsSetViaReflection() local
[all …]
/external/libchrome/base/posix/
Dfile_descriptor_shuffle_unittest.cc68 InjectiveMultimap map; in TEST() local
76 InjectiveMultimap map; in TEST() local
85 InjectiveMultimap map; in TEST() local
94 InjectiveMultimap map; in TEST() local
104 InjectiveMultimap map; in TEST() local
116 InjectiveMultimap map; in TEST() local
127 InjectiveMultimap map; in TEST() local
139 InjectiveMultimap map; in TEST() local
154 InjectiveMultimap map; in TEST() local
169 InjectiveMultimap map; in TEST() local
[all …]
/external/libbrillo/brillo/
Dmap_utils.h17 inline std::set<typename T::key_type> GetMapKeys(const T& map) { in GetMapKeys()
27 inline std::vector<typename T::key_type> GetMapKeysAsVector(const T& map) { in GetMapKeysAsVector()
37 inline std::vector<typename T::mapped_type> GetMapValues(const T& map) { in GetMapValues()
48 MapToVector(const T& map) { in MapToVector()
60 const T& map, in GetOrDefault()

12345678910>>...58