Home
last modified time | relevance | path

Searched refs:map (Results 1 – 25 of 3680) sorted by relevance

12345678910>>...148

/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
44 assertFalse(map.isEmpty()); in testCreate_map()
45 assertSame(3, map.size()); in testCreate_map()
46 assertTrue(map.containsKey("1")); in testCreate_map()
47 assertTrue(map.containsKey("2")); in testCreate_map()
48 assertTrue(map.containsKey("3")); in testCreate_map()
49 assertEquals(1L, map.get("1")); in testCreate_map()
50 assertEquals(2L, map.get("2")); in testCreate_map()
51 assertEquals(3L, map.get("3")); in testCreate_map()
55 AtomicLongMap<String> map = AtomicLongMap.create(); in testIncrementAndGet() local
[all …]
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DAtomicLongMapTest.java52 AtomicLongMap<Object> map = AtomicLongMap.create(); in testNulls() local
53 tester.testAllPublicInstanceMethods(map); in testNulls()
58 AtomicLongMap<String> map = AtomicLongMap.create(in); in testCreate_map() local
59 assertFalse(map.isEmpty()); in testCreate_map()
60 assertSame(3, map.size()); in testCreate_map()
61 assertTrue(map.containsKey("1")); in testCreate_map()
62 assertTrue(map.containsKey("2")); in testCreate_map()
63 assertTrue(map.containsKey("3")); in testCreate_map()
64 assertEquals(1L, map.get("1")); in testCreate_map()
65 assertEquals(2L, map.get("2")); in testCreate_map()
[all …]
/external/guava/guava-testlib/src/com/google/common/collect/testing/
DMapInterfaceTest.java155 protected final boolean supportsValuesHashCode(Map<K, V> map) { in supportsValuesHashCode() argument
157 Collection<V> values = map.values(); in supportsValuesHashCode()
179 protected final void assertInvariants(Map<K, V> map) { in assertInvariants() argument
180 Set<K> keySet = map.keySet(); in assertInvariants()
181 Collection<V> valueCollection = map.values(); in assertInvariants()
182 Set<Entry<K, V>> entrySet = map.entrySet(); in assertInvariants()
184 assertEquals(map.size() == 0, map.isEmpty()); in assertInvariants()
185 assertEquals(map.size(), keySet.size()); in assertInvariants()
191 V value = map.get(key); in assertInvariants()
193 assertTrue(map.containsKey(key)); in assertInvariants()
[all …]
/external/clang/test/OpenMP/
Dtarget_map_messages.cpp67 #pragma omp target map // expected-error {{expected '(' after 'map'}} in tmain()
68 #pragma omp target map( // expected-error {{expected ')'}} expected-note {{to match this '('}} expe… in tmain()
69 #pragma omp target map() // expected-error {{expected expression}} in tmain()
70 #pragma omp target map(alloc) // expected-error {{use of undeclared identifier 'alloc'}} in tmain()
71 #pragma omp target map(to argc // expected-error {{expected ')'}} expected-note {{to match this '('… in tmain()
72 #pragma omp target map(to:) // expected-error {{expected expression}} in tmain()
73 #pragma omp target map(from: argc, // expected-error {{expected expression}} expected-error {{expec… in tmain()
74 #pragma omp target map(x: y) // expected-error {{incorrect map type, expected one of 'to', 'from', … in tmain()
75 #pragma omp target map(x) in tmain()
77 #pragma omp target map(tofrom: t[:I]) in tmain()
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_keymap.c67 default_delete_func(const struct keymap *map, in default_delete_func() argument
113 struct keymap *map = MALLOC_STRUCT(keymap); in util_new_keymap() local
114 if (!map) in util_new_keymap()
117 map->cso = cso_hash_create(); in util_new_keymap()
118 if (!map->cso) { in util_new_keymap()
119 FREE(map); in util_new_keymap()
123 map->max_entries = maxEntries; in util_new_keymap()
124 map->num_entries = 0; in util_new_keymap()
125 map->key_size = keySize; in util_new_keymap()
126 map->delete_func = deleteFunc ? deleteFunc : default_delete_func; in util_new_keymap()
[all …]
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DLinkedListMultimapTest.java112 LinkedListMultimap<String, Integer> map = create(); in testLinkedGetAdd() local
113 map.put("bar", 1); in testLinkedGetAdd()
114 Collection<Integer> foos = map.get("foo"); in testLinkedGetAdd()
117 map.put("bar", 4); in testLinkedGetAdd()
118 map.put("foo", 5); in testLinkedGetAdd()
119 assertEquals("{bar=[1, 4], foo=[2, 3, 5]}", map.toString()); in testLinkedGetAdd()
121 map.entries().toString()); in testLinkedGetAdd()
125 ListMultimap<String, Integer> map = create(); in testLinkedGetInsert() local
126 map.put("bar", 1); in testLinkedGetInsert()
127 List<Integer> foos = map.get("foo"); in testLinkedGetInsert()
[all …]
/external/libchrome/base/
Did_map_unittest.cc26 IDMap<TestObject> map; in TEST() local
27 EXPECT_TRUE(map.IsEmpty()); in TEST()
28 EXPECT_EQ(0U, map.size()); in TEST()
33 int32_t id1 = map.Add(&obj1); in TEST()
34 EXPECT_FALSE(map.IsEmpty()); in TEST()
35 EXPECT_EQ(1U, map.size()); in TEST()
36 EXPECT_EQ(&obj1, map.Lookup(id1)); in TEST()
38 int32_t id2 = map.Add(&obj2); in TEST()
39 EXPECT_FALSE(map.IsEmpty()); in TEST()
40 EXPECT_EQ(2U, map.size()); in TEST()
[all …]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DUrlComponentEncodingTester.java42 Map<Integer, Encoding> map = new LinkedHashMap<>();
43 map.put( 0x0, Encoding.PERCENT); // Null character
44 map.put( 0x1, Encoding.PERCENT); // Start of Header
45 map.put( 0x2, Encoding.PERCENT); // Start of Text
46 map.put( 0x3, Encoding.PERCENT); // End of Text
47 map.put( 0x4, Encoding.PERCENT); // End of Transmission
48 map.put( 0x5, Encoding.PERCENT); // Enquiry
49 map.put( 0x6, Encoding.PERCENT); // Acknowledgment
50 map.put( 0x7, Encoding.PERCENT); // Bell
51 map.put((int) '\b', Encoding.PERCENT); // Backspace in map.put()
[all …]
/external/llvm/unittests/ADT/
DIntervalMapTest.cpp22 UUMap map(allocator); in TEST() local
23 EXPECT_TRUE(map.empty()); in TEST()
26 EXPECT_EQ(0u, map.lookup(0)); in TEST()
27 EXPECT_EQ(7u, map.lookup(0, 7)); in TEST()
28 EXPECT_EQ(0u, map.lookup(~0u-1)); in TEST()
29 EXPECT_EQ(7u, map.lookup(~0u-1, 7)); in TEST()
32 EXPECT_TRUE(map.begin() == map.begin()); in TEST()
33 EXPECT_TRUE(map.begin() == map.end()); in TEST()
34 EXPECT_TRUE(map.end() == map.end()); in TEST()
35 EXPECT_FALSE(map.begin() != map.begin()); in TEST()
[all …]
/external/v8/test/mjsunit/es6/
Dmap-minus-zero.js7 var map = new Map(); variable
19 assertEquals(map.size, 0);
21 map.set(objectKey, 'aaa');
22 map.set(stringKey, 'bbb');
23 map.set(numberKey, 'ccc');
24 map.set(booleanKey, 'ddd');
25 map.set(undefinedKey, 'eee');
26 map.set(nullKey, 'fff');
27 map.set(nanKey, 'ggg');
28 map.set(zeroKey, 'hhh');
[all …]
/external/google-breakpad/src/common/
Dsimple_string_dictionary_unittest.cc37 TestMap map; in TEST() local
39 const TestMap::Entry* entry = TestMap::Iterator(map).Next(); in TEST()
43 map.SetKeyValue("key1", "value1"); in TEST()
44 entry = TestMap::Iterator(map).Next(); in TEST()
50 map.SetKeyValue("key1", "value3"); in TEST()
57 map.RemoveKey("key1"); in TEST()
93 NonAllocatingMap<10, 10, 10> map; in TEST() local
94 map.SetKeyValue("one", "a"); in TEST()
95 map.SetKeyValue("two", "b"); in TEST()
96 map.SetKeyValue("three", "c"); in TEST()
[all …]
/external/protobuf/java/src/test/java/com/google/protobuf/
DSmallSortedMapTest.java134 for (SmallSortedMap<Integer, Integer> map : allMaps) { in runPutAndGetTest()
135 assertEquals(numElements, map.size()); in runPutAndGetTest()
137 assertEquals(new Integer(i + 1), map.get(i)); in runPutAndGetTest()
147 SmallSortedMap<Integer, Integer> map = SmallSortedMap.newInstanceForTest(3); in testReplacingPut() local
149 assertNull(map.put(i, i + 1)); in testReplacingPut()
150 assertNull(map.remove(i + 1)); in testReplacingPut()
153 assertEquals(new Integer(i + 1), map.put(i, i + 2)); in testReplacingPut()
158 SmallSortedMap<Integer, Integer> map = SmallSortedMap.newInstanceForTest(3); in testRemove() local
160 assertNull(map.put(i, i + 1)); in testRemove()
161 assertNull(map.remove(i + 1)); in testRemove()
[all …]
/external/libunwind/src/
Dos-hpux.c59 map = map_find_from_addr(as->map_list, ip); in tdep_get_elf_image()
60 if (map) in tdep_get_elf_image()
67 map = map_find_from_addr(as->map_list, ip); in tdep_get_elf_image()
68 if (map) in tdep_get_elf_image()
79 map = mempool_alloc (&map_pool); in tdep_get_elf_image()
80 if (!map) in tdep_get_elf_image()
83 map->start = lmd.text_base; in tdep_get_elf_image()
84 map->end = cur_map->start + lmd.text_size; in tdep_get_elf_image()
85 map->offset = 0; /* XXX fix me? */ in tdep_get_elf_image()
86 map->flags = ; in tdep_get_elf_image()
[all …]
DLos-common.c93 struct map_info *map; in rebuild_if_necessary() local
99 map = map_find_from_addr (new_list, addr); in rebuild_if_necessary()
100 if (map && (map->end - addr >= bytes) && (expected_flags == 0 || (map->flags & expected_flags))) in rebuild_if_necessary()
111 map = map_find_from_addr (local_map_list, addr); in rebuild_if_necessary()
112 … if (!map || (map->end - addr < bytes) || (expected_flags != 0 && !(map->flags & expected_flags))) in rebuild_if_necessary()
116 map = local_map_list; in rebuild_if_necessary()
118 new_list = map; in rebuild_if_necessary()
132 struct map_info *map; in is_flag_set() local
137 map = map_find_from_addr (local_map_list, addr); in is_flag_set()
138 if (map != NULL) in is_flag_set()
[all …]
/external/libchrome/base/posix/
Dfile_descriptor_shuffle_unittest.cc68 InjectiveMultimap map; in TEST() local
71 EXPECT_TRUE(PerformInjectiveMultimap(map, &tracer)); in TEST()
76 InjectiveMultimap map; in TEST() local
78 map.push_back(InjectionArc(0, 0, false)); in TEST()
80 EXPECT_TRUE(PerformInjectiveMultimap(map, &tracer)); in TEST()
85 InjectiveMultimap map; in TEST() local
87 map.push_back(InjectionArc(0, 0, true)); in TEST()
89 EXPECT_TRUE(PerformInjectiveMultimap(map, &tracer)); in TEST()
94 InjectiveMultimap map; in TEST() local
96 map.push_back(InjectionArc(0, 1, false)); in TEST()
[all …]
/external/mesa3d/src/mesa/drivers/dri/intel/
Dintel_mipmap_tree.c1070 struct intel_miptree_map *map, in intel_miptree_map_gtt() argument
1076 int x = map->x; in intel_miptree_map_gtt()
1077 int y = map->y; in intel_miptree_map_gtt()
1087 base = intel_region_map(intel, mt->region, map->mode); in intel_miptree_map_gtt()
1090 map->ptr = NULL; in intel_miptree_map_gtt()
1099 map->stride = mt->region->pitch * mt->cpp; in intel_miptree_map_gtt()
1100 map->ptr = base + y * map->stride + x * mt->cpp; in intel_miptree_map_gtt()
1104 map->x, map->y, map->w, map->h, in intel_miptree_map_gtt()
1106 x, y, map->ptr, map->stride); in intel_miptree_map_gtt()
1112 struct intel_miptree_map *map, in intel_miptree_unmap_gtt() argument
[all …]
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_mipmap_tree.c1070 struct intel_miptree_map *map, in intel_miptree_map_gtt() argument
1076 int x = map->x; in intel_miptree_map_gtt()
1077 int y = map->y; in intel_miptree_map_gtt()
1087 base = intel_region_map(intel, mt->region, map->mode); in intel_miptree_map_gtt()
1090 map->ptr = NULL; in intel_miptree_map_gtt()
1099 map->stride = mt->region->pitch * mt->cpp; in intel_miptree_map_gtt()
1100 map->ptr = base + y * map->stride + x * mt->cpp; in intel_miptree_map_gtt()
1104 map->x, map->y, map->w, map->h, in intel_miptree_map_gtt()
1106 x, y, map->ptr, map->stride); in intel_miptree_map_gtt()
1112 struct intel_miptree_map *map, in intel_miptree_unmap_gtt() argument
[all …]
/external/mesa3d/src/mesa/drivers/dri/i965/
Dintel_mipmap_tree.c1070 struct intel_miptree_map *map, in intel_miptree_map_gtt() argument
1076 int x = map->x; in intel_miptree_map_gtt()
1077 int y = map->y; in intel_miptree_map_gtt()
1087 base = intel_region_map(intel, mt->region, map->mode); in intel_miptree_map_gtt()
1090 map->ptr = NULL; in intel_miptree_map_gtt()
1099 map->stride = mt->region->pitch * mt->cpp; in intel_miptree_map_gtt()
1100 map->ptr = base + y * map->stride + x * mt->cpp; in intel_miptree_map_gtt()
1104 map->x, map->y, map->w, map->h, in intel_miptree_map_gtt()
1106 x, y, map->ptr, map->stride); in intel_miptree_map_gtt()
1112 struct intel_miptree_map *map, in intel_miptree_unmap_gtt() argument
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DForwardingConcurrentMapTest.java41 TestMap map = new TestMap(); in testPutIfAbsent() local
42 map.put("foo", 1); in testPutIfAbsent()
43 assertEquals(Integer.valueOf(1), map.putIfAbsent("foo", 2)); in testPutIfAbsent()
44 assertEquals(Integer.valueOf(1), map.get("foo")); in testPutIfAbsent()
45 assertNull(map.putIfAbsent("bar", 3)); in testPutIfAbsent()
46 assertEquals(Integer.valueOf(3), map.get("bar")); in testPutIfAbsent()
50 TestMap map = new TestMap(); in testRemove() local
51 map.put("foo", 1); in testRemove()
52 assertFalse(map.remove("foo", 2)); in testRemove()
53 assertFalse(map.remove("bar", 1)); in testRemove()
[all …]
DLinkedListMultimapTest.java159 LinkedListMultimap<String, Integer> map = create(); in testLinkedGetAdd() local
160 map.put("bar", 1); in testLinkedGetAdd()
161 Collection<Integer> foos = map.get("foo"); in testLinkedGetAdd()
164 map.put("bar", 4); in testLinkedGetAdd()
165 map.put("foo", 5); in testLinkedGetAdd()
166 assertEquals("{bar=[1, 4], foo=[2, 3, 5]}", map.toString()); in testLinkedGetAdd()
168 map.entries().toString()); in testLinkedGetAdd()
172 ListMultimap<String, Integer> map = create(); in testLinkedGetInsert() local
173 map.put("bar", 1); in testLinkedGetInsert()
174 List<Integer> foos = map.get("foo"); in testLinkedGetInsert()
[all …]
/external/guava/guava-tests/test/com/google/common/reflect/
DMutableTypeToInstanceMapTest.java66 MutableTypeToInstanceMap<Object> map in suite()
70 map.putInstance(entry.getKey(), entry.getValue()); in suite()
72 return (Map) map; in suite()
89 private TypeToInstanceMap<Object> map; field in MutableTypeToInstanceMapTest
92 map = new MutableTypeToInstanceMap<Object>(); in setUp()
97 map.put(TypeToken.of(Integer.class), new Integer(5)); in testPutThrows()
104 map.putAll(ImmutableMap.of(TypeToken.of(Integer.class), new Integer(5))); in testPutAllThrows()
110 map.putInstance(String.class, "test"); in testEntrySetMutationThrows()
111 assertEquals(TypeToken.of(String.class), map.entrySet().iterator().next().getKey()); in testEntrySetMutationThrows()
112 assertEquals("test", map.entrySet().iterator().next().getValue()); in testEntrySetMutationThrows()
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/
DChapter2_4Test.java45 Map<String, Object> map = (Map<String, Object>) document.getNativeData(); in testExample_2_19() local
46 assertEquals(5, map.size()); in testExample_2_19()
47 assertEquals("Expect 12345 to be an Integer.", Integer.class, map.get("canonical") in testExample_2_19()
49 assertEquals(new Integer(12345), map.get("canonical")); in testExample_2_19()
50 assertEquals(new Integer(12345), map.get("decimal")); in testExample_2_19()
51 assertEquals(new Integer(3 * 3600 + 25 * 60 + 45), map.get("sexagesimal")); in testExample_2_19()
52 assertEquals(new Integer(014), map.get("octal")); in testExample_2_19()
53 assertEquals(new Integer(0xC), map.get("hexadecimal")); in testExample_2_19()
59 Map<String, Object> map = (Map<String, Object>) document.getNativeData(); in testExample_2_20() local
60 assertEquals(6, map.size()); in testExample_2_20()
[all …]
DChapter2_3Test.java62 Map<String, String> map = (Map<String, String>) document.getNativeData(); in testExample_2_16() local
63 assertEquals(map.toString(), 3, map.size()); in testExample_2_16()
64 assertEquals("Mark McGwire", map.get("name")); in testExample_2_16()
66 map.get("accomplishment")); in testExample_2_16()
67 assertEquals("65 Home Runs\n0.278 Batting Average\n", map.get("stats")); in testExample_2_16()
74 Map<String, String> map = (Map<String, String>) document.getNativeData(); in testExample_2_17() local
75 assertEquals(map.toString(), 6, map.size()); in testExample_2_17()
76 assertEquals("Sosa did fine.\u263A", map.get("unicode")); in testExample_2_17()
77 assertEquals("\b1998\t1999\t2000\n", map.get("control")); in testExample_2_17()
78 assertEquals("\r\n is \r\n", map.get("hexesc")); in testExample_2_17()
[all …]
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowBundle.java22 Map<String, Object> map = new TreeMap<String, Object>(); field in ShadowBundle
30 map.clear(); in clear()
35 map.remove(key); in remove()
40 return map.get(key); in get()
45 map.put(key, value); in putString()
50 Object value = map.get(key); in getString()
59 Object value = map.get(key); in getString()
65 map.put(key, value); in putLong()
75 Object value = map.get(key); in getLong()
81 map.put(key, value); in putInt()
[all …]
/external/v8/src/compiler/
Daccess-info.cc21 bool CanInlineElementAccess(Handle<Map> map) { in CanInlineElementAccess() argument
22 if (!map->IsJSObjectMap()) return false; in CanInlineElementAccess()
23 if (map->is_access_check_needed()) return false; in CanInlineElementAccess()
24 if (map->has_indexed_interceptor()) return false; in CanInlineElementAccess()
25 ElementsKind const elements_kind = map->elements_kind(); in CanInlineElementAccess()
32 bool CanInlinePropertyAccess(Handle<Map> map) { in CanInlinePropertyAccess() argument
37 if (map->IsBooleanMap()) return true; in CanInlinePropertyAccess()
38 if (map->instance_type() < LAST_PRIMITIVE_TYPE) return true; in CanInlinePropertyAccess()
39 return map->IsJSObjectMap() && !map->is_dictionary_map() && in CanInlinePropertyAccess()
40 !map->has_named_interceptor() && in CanInlinePropertyAccess()
[all …]

12345678910>>...148