Searched refs:map (Results 1 - 25 of 5687) sorted by relevance

1234567891011>>

/external/stlport/test/unit/
H A Dmap_header_test.cpp8 #include <map>
/external/chromium_org/tools/gyp/test/mac/sdkroot/
H A Dfile.cc1 #include <map>
2 using std::map;
/external/chromium_org/extensions/browser/
H A Dprocess_map_unittest.cc12 ProcessMap map; local
15 EXPECT_FALSE(map.Contains("a", 1));
16 EXPECT_FALSE(map.Remove("a", 1, 1));
17 EXPECT_EQ(0u, map.size());
20 EXPECT_TRUE(map.Insert("a", 1, 1));
21 EXPECT_TRUE(map.Contains("a", 1));
22 EXPECT_FALSE(map.Contains("a", 2));
23 EXPECT_FALSE(map.Contains("b", 1));
24 EXPECT_EQ(1u, map.size());
27 EXPECT_FALSE(map
[all...]
/external/chromium_org/third_party/mesa/src/src/mesa/program/
H A Dstring_to_uint_map.cpp39 string_to_uint_map_dtor(struct string_to_uint_map *map) argument
41 delete map;
/external/linux-tools-perf/perf-3.12.0/tools/perf/ui/browsers/
H A Dmap.h3 struct map;
5 int map__browse(struct map *self);
/external/mesa3d/src/mesa/program/
H A Dstring_to_uint_map.cpp39 string_to_uint_map_dtor(struct string_to_uint_map *map) argument
41 delete map;
/external/chromium_org/v8/test/mjsunit/es6/regress/
H A Dregress-2034.js29 var map = new WeakMap;
33 assertFalse(map.has(key));
34 assertSame(undefined, map.get(key));
37 map.set(key, 1);
38 assertTrue(map.has(key));
39 assertSame(1, map.get(key));
42 map.delete(key, 1);
43 assertFalse(map.has(key));
44 assertSame(undefined, map.get(key));
H A Dregress-2156.js32 var map = new WeakMap;
34 // Adding hidden properties preserves map sharing. Putting the key into
37 map.set(key1, 1);
38 map.set(key2, 2);
/external/apache-harmony/support/src/test/java/tests/support/
H A DSupport_MapTest2.java25 Map<String, String> map; field in class:Support_MapTest2
29 map = m;
30 if (!map.isEmpty()) {
38 map.put("one", "1");
39 assertEquals("size should be one", 1, map.size());
40 map.clear();
41 assertEquals("size should be zero", 0, map.size());
42 assertTrue("Should not have entries", !map.entrySet().iterator()
44 assertTrue("Should not have keys", !map.keySet().iterator()
46 assertTrue("Should not have values", !map
[all...]
/external/chromium_org/chromeos/system/
H A Dname_value_pairs_parser_unittest.cc14 NameValuePairsParser::NameValueMap map; local
15 NameValuePairsParser parser(&map);
19 ASSERT_EQ(1U, map.size());
20 EXPECT_EQ("Foo", map["foo"]);
24 NameValuePairsParser::NameValueMap map; local
25 NameValuePairsParser parser(&map);
28 EXPECT_EQ(3U, map.size());
29 EXPECT_EQ("Foo", map["foo"]);
30 EXPECT_EQ("Bar", map["bar"]);
31 EXPECT_EQ("FooBar", map["fooba
66 NameValuePairsParser::NameValueMap map; local
104 NameValuePairsParser::NameValueMap map; local
[all...]
/external/qemu/android/utils/
H A Dintmap.c18 /* We implement the map as two parallel arrays.
25 * number of items in the map.
42 AIntMap* map; local
44 ANEW0(map);
45 map->size = 0;
46 map->capacity = 4;
47 map->keys = map->keys0;
48 map->values = map
75 aintMap_get( AIntMap* map, int key ) argument
81 aintMap_getWithDefault( AIntMap* map, int key, void* def ) argument
125 aintMap_set( AIntMap* map, int key, void* value ) argument
158 aintMap_del( AIntMap* map, int key ) argument
202 AIntMap* map; local
[all...]
/external/chromium_org/chrome_elf/
H A Dchrome_elf_types.h8 #include <map>
11 typedef std::map<std::string, void*> FunctionLookupTable;
/external/chromium_org/third_party/angle/src/compiler/translator/
H A DHashNames.h10 #include <map>
16 typedef std::map<TPersistString, TPersistString> NameMap;
/external/libcxx/test/containers/associative/map/map.cons/
H A Ddefault_recursive.pass.cpp10 // <map>
12 // class map
14 // map();
16 #include <map>
22 std::map<int, X> m;
/external/chromium_org/v8/test/mjsunit/regress/
H A Dregress-1548.js31 function testfn(f) { return [1].map(f)[0]; }
32 function foo() { return [].map.caller; }
37 delete Array.prototype.map.caller;
41 function testarguments(f) { return [1].map(f)[0]; }
42 function bar() { return [].map.arguments; }
47 delete Array.prototype.map.arguments;
/external/guava/guava-testlib/src/com/google/common/collect/testing/
H A DConcurrentMapInterfaceTest.java51 * that will not be found in the map
71 final ConcurrentMap<K, V> map;
75 map = makeEitherMap();
82 int initialSize = map.size();
83 V oldValue = map.putIfAbsent(keyToPut, valueToPut);
84 assertEquals(valueToPut, map.get(keyToPut));
85 assertTrue(map.containsKey(keyToPut));
86 assertTrue(map.containsValue(valueToPut));
87 assertEquals(initialSize + 1, map.size());
91 map
[all...]
/external/guava/guava-tests/test/com/google/common/collect/
H A DForwardingConcurrentMapTest.java41 TestMap map = new TestMap();
42 map.put("foo", 1);
43 assertEquals(Integer.valueOf(1), map.putIfAbsent("foo", 2));
44 assertEquals(Integer.valueOf(1), map.get("foo"));
45 assertNull(map.putIfAbsent("bar", 3));
46 assertEquals(Integer.valueOf(3), map.get("bar"));
50 TestMap map = new TestMap();
51 map.put("foo", 1);
52 assertFalse(map.remove("foo", 2));
53 assertFalse(map
[all...]
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/
H A Dcpumap.h9 int map[]; member in struct:cpu_map
14 void cpu_map__delete(struct cpu_map *map);
16 size_t cpu_map__fprintf(struct cpu_map *map, FILE *fp);
17 int cpu_map__get_socket(struct cpu_map *map, int idx);
18 int cpu_map__get_core(struct cpu_map *map, int idx);
26 return sock->map[s];
39 static inline int cpu_map__nr(const struct cpu_map *map) argument
41 return map ? map->nr : 1;
44 static inline bool cpu_map__empty(const struct cpu_map *map) argument
[all...]
H A Dmap.h27 struct map { struct
44 u64 (*map_ip)(struct map *, u64);
46 u64 (*unmap_ip)(struct map *, u64);
63 static inline struct kmap *map__kmap(struct map *map) argument
65 return (struct kmap *)(map + 1);
68 static inline u64 map__map_ip(struct map *map, u64 ip) argument
70 return ip - map->start + map
73 map__unmap_ip(struct map *map, u64 ip) argument
131 map_groups__insert(struct map_groups *mg, struct map *map) argument
137 map_groups__remove(struct map_groups *mg, struct map *map) argument
154 map_groups__next(struct map *map) argument
[all...]
/external/libcxx/test/containers/associative/map/
H A Dcompare.pass.cpp10 // <map>
14 // class map
19 #include <map>
29 std::map<Key, int>::iterator it = std::map<Key, int>().find(Key(0));
30 std::pair<std::map<Key, int>::iterator, bool> result =
31 std::map<Key, int>().insert(std::make_pair(Key(0), 0));
/external/proguard/src/proguard/obfuscate/
H A DMapCleaner.java30 * This ClassVisitor clears a given map whenever it visits a class.
38 private final Map map; field in class:MapCleaner
43 * @param map the map to be cleared.
45 public MapCleaner(Map map) argument
47 this.map = map;
55 map.clear();
/external/guava/guava/src/com/google/common/base/
H A DDefaults.java34 Map<Class<?>, Object> map = new HashMap<Class<?>, Object>();
35 put(map, boolean.class, false);
36 put(map, char.class, '\0');
37 put(map, byte.class, (byte) 0);
38 put(map, short.class, (short) 0);
39 put(map, int.class, 0);
40 put(map, long.class, 0L);
41 put(map, float.class, 0f);
42 put(map, double.class, 0d);
43 DEFAULTS = Collections.unmodifiableMap(map);
46 put(Map<Class<?>, Object> map, Class<T> type, T value) argument
[all...]
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.JavaExtensions/
H A DDictionaryExtensions.cs45 public static bool containsKey(IDictionary map, object key) { argument
46 return map.Contains(key);
50 public static object get(IDictionary map, object key) { argument
51 return map[key];
55 public static TValue get<TKey, TValue>(IDictionary<TKey, TValue> map, TKey key) { argument
57 if (map.TryGetValue(key, out value))
67 public static TValue get<TKey, TValue>(Dictionary<TKey, TValue> map, TKey key) { argument
69 if (map.TryGetValue(key, out value))
78 public static TValue get<TKey, TValue>(SortedList<TKey, TValue> map, TKey key) { argument
80 if (map
91 put(IDictionary map, object key, object value) argument
96 put(IDictionary<TKey, TValue> map, TKey key, TValue value) argument
101 put(Dictionary<TKey, TValue> map, TKey key, TValue value) argument
106 keySet(IDictionary map) argument
111 keySet(IDictionary<TKey, TValue> map) argument
117 keySet(Dictionary<TKey, TValue> map) argument
122 keySet(SortedList<TKey, TValue> map) argument
[all...]
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/
H A DDictionaryExtensions.cs44 public static bool containsKey( this IDictionary map, object key ) argument
46 return map.Contains( key );
50 public static object get( this IDictionary map, object key ) argument
52 return map[key];
55 public static TValue get<TKey, TValue>( this IDictionary<TKey, TValue> map, TKey key ) argument
58 if ( map.TryGetValue( key, out value ) )
68 public static TValue get<TKey, TValue>( this Dictionary<TKey, TValue> map, TKey key ) argument
71 if ( map.TryGetValue( key, out value ) )
80 public static TValue get<TKey, TValue>( this SortedList<TKey, TValue> map, TKey key ) argument
83 if ( map
93 put( this IDictionary map, object key, object value ) argument
99 put( this IDictionary<TKey, TValue> map, TKey key, TValue value ) argument
105 put( this Dictionary<TKey, TValue> map, TKey key, TValue value ) argument
[all...]
/external/chromium_org/third_party/tcmalloc/chromium/src/tests/
H A Dpagemap_unittest.cc60 // Note: we leak memory every time a map is constructed, so do not
63 // Test specified map type
69 Type map(malloc);
71 map.Ensure(i, 1);
72 map.set(i, (void*)(i+1));
73 CHECK_EQ(map.get(i), (void*)(i+1));
76 CHECK_EQ(map.get(i), (void*)(i+1));
81 Type map(malloc);
82 map.Ensure(0, limit);
84 map
[all...]

Completed in 2524 milliseconds

1234567891011>>