Searched refs:map (Results 76 - 100 of 5687) sorted by relevance

1234567891011>>

/external/qemu/android/utils/
H A Dintmap.h26 /* Create new integer map */
29 /* Returns the number of keys stored in the map */
30 int aintmap_getCount( AIntMap* map );
32 /* Returns TRUE if the map has a value for the 'key'. Necessary because
33 * NULL is a valid value for the map.
35 int aintmap_has( AIntMap* map, int key );
37 /* Get the value associated with a 'key', or NULL if not in map */
38 void* aintMap_get( AIntMap* map, int key );
40 /* Get the value associated with a 'key', or 'def' if not in map */
41 void* aintMap_getWithDefault( AIntMap* map, in
[all...]
/external/chromium_org/base/posix/
H A Dfile_descriptor_shuffle_unittest.cc70 InjectiveMultimap map; local
73 EXPECT_TRUE(PerformInjectiveMultimap(map, &tracer));
78 InjectiveMultimap map; local
80 map.push_back(InjectionArc(0, 0, false));
82 EXPECT_TRUE(PerformInjectiveMultimap(map, &tracer));
87 InjectiveMultimap map; local
89 map.push_back(InjectionArc(0, 0, true));
91 EXPECT_TRUE(PerformInjectiveMultimap(map, &tracer));
96 InjectiveMultimap map; local
98 map
106 InjectiveMultimap map; local
118 InjectiveMultimap map; local
129 InjectiveMultimap map; local
141 InjectiveMultimap map; local
156 InjectiveMultimap map; local
171 InjectiveMultimap map; local
186 InjectiveMultimap map; local
201 InjectiveMultimap map; local
213 InjectiveMultimap map; local
226 InjectiveMultimap map; local
239 InjectiveMultimap map; local
265 InjectiveMultimap map; local
272 InjectiveMultimap map; local
280 InjectiveMultimap map; local
[all...]
/external/libcxx/test/containers/associative/map/map.cons/
H A DAndroid.mk17 test_makefile := external/libcxx/test/containers/associative/map/map.cons/Android.mk
19 test_name := containers/associative/map/map.cons/default
23 test_name := containers/associative/map/map.cons/compare
27 test_name := containers/associative/map/map.cons/alloc
31 test_name := containers/associative/map/map
[all...]
/external/guava/guava-tests/test/com/google/common/collect/
H A DMutableClassToInstanceMapTest.java60 MutableClassToInstanceMap<Number> map
64 map.putInstance(entry.getKey(), entry.getValue());
66 return (Map) map;
82 private ClassToInstanceMap<Number> map; field in class:MutableClassToInstanceMapTest
85 map = MutableClassToInstanceMap.create();
98 map.put(Integer.class, new Integer(5));
100 map.put(Double.class, new Long(42));
104 // Won't compile: map.put(String.class, "x");
108 assertNull(map.putInstance(Integer.class, new Integer(5)));
110 Integer oldValue = map
[all...]
H A DAbstractMultimapAsMapImplementsMapTest.java62 * this particular Map implementation, because {@code map.get()} returns a
64 * Thus, the expectation doesn't hold that {@code map.remove(x)} returns the
65 * same value which {@code map.get(x)} did immediately beforehand.
68 final Map<String, Collection<Integer>> map;
71 map = makePopulatedMap();
75 keyToRemove = map.keySet().iterator().next();
77 int initialSize = map.size();
78 map.get(keyToRemove);
79 map.remove(keyToRemove);
82 assertFalse(map
[all...]
/external/chromium_org/content/common/dom_storage/
H A Ddom_storage_map_unittest.cc26 scoped_refptr<DOMStorageMap> map(new DOMStorageMap(kQuota));
32 // Check the behavior of an empty map.
33 EXPECT_EQ(0u, map->Length());
34 EXPECT_TRUE(map->Key(0).is_null());
35 EXPECT_TRUE(map->Key(100).is_null());
36 EXPECT_TRUE(map->GetItem(kKey).is_null());
37 EXPECT_FALSE(map->RemoveItem(kKey, &old_value));
38 EXPECT_EQ(0u, map->bytes_used());
39 copy = map->DeepCopy();
42 map
[all...]
/external/guava/guava/src/com/google/common/collect/
H A DRegularImmutableMultiset.java36 private final transient ImmutableMap<E, Integer> map; field in class:RegularImmutableMultiset
39 RegularImmutableMultiset(ImmutableMap<E, Integer> map, int size) { argument
40 this.map = map;
46 return map.isPartialView();
51 Integer value = map.get(element);
62 return map.containsKey(element);
67 return map.keySet();
73 map.entrySet().iterator();
90 return map
[all...]
/external/valgrind/main/memcheck/tests/
H A Dpointer-trace.c22 char *map; local
54 map = mmap(0, stepsize * 2, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANONYMOUS, -1, 0);
55 if (map == (char *)-1)
59 map = mmap(0, stepsize * 2, PROT_WRITE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANONYMOUS, -1, 0);
60 if (map == (char *)-1)
66 map = mmap(0, stepsize * 2, PROT_WRITE|PROT_READ, MAP_PRIVATE, fd, 0);
67 if (map == (char *)-1)
69 //printf("trap 3 = %p-%p\n", map, map+stepsize*2);
72 map
[all...]
/external/chromium_org/tools/clang/rewrite_scoped_refptr/tests/
H A Dtest12-expected.cc6 #include <map>
15 typedef std::map<std::string, scoped_refptr<const Foo> > MyMap;
36 MyMap map; local
37 map["foo"] = new Foo;
38 map["bar"] = new Foo;
39 MyIter my_begin(map.begin());
40 MyIter my_end(map.end());
H A Dtest12-original.cc6 #include <map>
15 typedef std::map<std::string, scoped_refptr<const Foo> > MyMap;
36 MyMap map; local
37 map["foo"] = new Foo;
38 map["bar"] = new Foo;
39 MyIter my_begin(map.begin());
40 MyIter my_end(map.end());
/external/chromium_org/components/copresence/
H A Dtimed_map_unittest.cc37 Map map(base::TimeDelta::FromSeconds(9999), 3);
39 EXPECT_FALSE(map.HasKey(0));
40 EXPECT_EQ(0, map.GetValue(0).value);
42 map.Add(0x1337, Value(0x7331));
43 EXPECT_TRUE(map.HasKey(0x1337));
44 EXPECT_EQ(0x7331, map.GetValue(0x1337).value);
46 map.Add(0xbaad, Value(0xf00d));
47 EXPECT_TRUE(map.HasKey(0xbaad));
48 EXPECT_EQ(0xf00d, map.GetValue(0xbaad).value);
49 EXPECT_EQ(0x7331, map
[all...]
/external/chromium_org/v8/src/
H A Dlookup-inl.h14 JSReceiver* LookupIterator::NextHolder(Map* map) { argument
16 if (map->prototype()->IsNull()) return NULL;
18 JSReceiver* next = JSReceiver::cast(map->prototype());
19 DCHECK(!next->map()->IsGlobalObjectMap() ||
20 next->map()->is_hidden_prototype());
23 !(check_hidden() && next->map()->is_hidden_prototype()) &&
26 !map->IsJSGlobalProxyMap()) {
34 LookupIterator::State LookupIterator::LookupInHolder(Map* map, argument
40 if (map->IsJSProxyMap()) return JSPROXY;
41 if (map
[all...]
H A Dfield-index-inl.h14 inline FieldIndex FieldIndex::ForInObjectOffset(int offset, Map* map) { argument
17 if (map == NULL) {
20 int first_inobject_offset = map->GetInObjectPropertyOffset(0);
24 return FieldIndex::ForPropertyIndex(map, offset / kPointerSize);
29 inline FieldIndex FieldIndex::ForPropertyIndex(Map* map, argument
32 DCHECK(map->instance_type() >= FIRST_NONSTRING_TYPE);
33 int inobject_properties = map->inobject_properties();
37 first_inobject_offset = map->GetInObjectPropertyOffset(0);
50 inline FieldIndex FieldIndex::ForLoadByFieldIndex(Map* map, int orig_index) { argument
62 first_inobject_offset = map
94 ForDescriptor(Map* map, int descriptor_index) argument
104 ForKeyedLookupCacheIndex(Map* map, int index) argument
[all...]
/external/libcxx/test/containers/unord/unord.map/unord.map.cnstr/
H A DAndroid.mk17 test_makefile := external/libcxx/test/containers/unord/unord.map/unord.map.cnstr/Android.mk
19 test_name := containers/unord/unord.map/unord.map.cnstr/default
23 test_name := containers/unord/unord.map/unord.map.cnstr/size_hash
27 test_name := containers/unord/unord.map/unord.map.cnstr/range_size_hash_equal_allocator
31 test_name := containers/unord/unord.map/unord.map
[all...]
/external/guava/guava-testlib/src/com/google/common/collect/testing/
H A DSortedMapInterfaceTest.java79 final SortedMap<K, V> map;
81 map = makePopulatedMap();
85 Iterator<K> iterator = map.keySet().iterator();
87 Comparator<? super K> comparator = map.comparator();
94 assertTrue(map.comparator().compare(prior, current) < 0);
101 final Map<K, V> map;
104 map = makeEitherMap();
108 assertInvariants(map);
110 entrySet = map.entrySet();
123 final SortedMap<K, V> map;
[all...]
/external/chromium_org/third_party/cython/src/Cython/Includes/libcpp/
H A Dmap.pxd3 cdef extern from "<map>" namespace "std":
4 cdef cppclass map[T, U]:
21 map() nogil except +
22 map(map&) nogil except +
23 #map(key_compare&)
25 #map& operator=(map&)
26 bint operator==(map&, map
[all...]
/external/llvm/unittests/ADT/
H A DIntervalMapTest.cpp19 // Empty map tests
22 UUMap map(allocator);
23 EXPECT_TRUE(map.empty());
25 // Lookup on empty map.
26 EXPECT_EQ(0u, map.lookup(0));
27 EXPECT_EQ(7u, map.lookup(0, 7));
28 EXPECT_EQ(0u, map.lookup(~0u-1));
29 EXPECT_EQ(7u, map.lookup(~0u-1, 7));
32 EXPECT_TRUE(map.begin() == map
[all...]
/external/chromium_org/base/prefs/
H A Dpref_value_map_unittest.cc14 PrefValueMap map; local
16 EXPECT_FALSE(map.GetValue("key", &result));
19 EXPECT_TRUE(map.SetValue("key", new StringValue("test")));
20 EXPECT_FALSE(map.SetValue("key", new StringValue("test")));
21 EXPECT_TRUE(map.SetValue("key", new StringValue("hi mom!")));
23 EXPECT_TRUE(map.GetValue("key", &result));
28 PrefValueMap map; local
29 ASSERT_TRUE(map.SetValue("key", new FundamentalValue(5)));
32 EXPECT_TRUE(map.GetInteger("key", &int_value));
35 map
41 PrefValueMap map; local
52 PrefValueMap map; local
65 PrefValueMap map; local
[all...]
/external/apache-harmony/support/src/test/java/tests/support/
H A DSupport_UnmodifiableMapTest.java28 Map<String, Integer> map; field in class:Support_UnmodifiableMapTest
30 // must be a map containing the string keys "0"-"99" paired with the Integer
39 map = m;
45 assertTrue("UnmodifiableMapTest - Should contain the key \"0\"", map
47 assertTrue("UnmodifiableMapTest - Should contain the key \"50\"", map
50 !map.containsKey("100"));
53 assertTrue("UnmodifiableMapTest - Should contain the value 0", map
55 assertTrue("UnmodifiableMapTest - Should contain the value 50", map
57 assertTrue("UnmodifiableMapTest - Should not contain value 100", !map
61 Set<?> entrySet = map
[all...]
/external/chromium_org/third_party/angle/src/libGLESv2/
H A Dformatutils.cpp32 typedef std::map<FormatTypePair, FormatType> FormatMap;
34 // A helper function to insert data into the format map with fewer characters.
35 static inline void InsertFormatMapping(FormatMap *map, GLenum format, GLenum type, GLenum internalFormat, ColorWriteFunction writeFunc) argument
40 map->insert(FormatPair(FormatTypePair(format, type), info));
45 FormatMap map; local
50 InsertFormatMapping(&map, GL_RGBA, GL_UNSIGNED_BYTE, GL_RGBA8, WriteColor<R8G8B8A8, GLfloat> );
51 InsertFormatMapping(&map, GL_RGBA, GL_BYTE, GL_RGBA8_SNORM, WriteColor<R8G8B8A8S, GLfloat> );
52 InsertFormatMapping(&map, GL_RGBA, GL_UNSIGNED_SHORT_4_4_4_4, GL_RGBA4, WriteColor<R4G4B4A4, GLfloat> );
53 InsertFormatMapping(&map, GL_RGBA, GL_UNSIGNED_SHORT_5_5_5_1, GL_RGB5_A1, WriteColor<R5G5B5A1, GLfloat> );
54 InsertFormatMapping(&map, GL_RGB
156 InsertTypeInfo(TypeInfoMap *map, GLenum type, GLuint bytes, bool specialInterpretation) argument
172 TypeInfoMap map; local
378 InternalFormatInfoMap map; local
[all...]
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/nouveau/
H A Dnouveau_span.c38 GLboolean map)
42 if (map)
47 framebuffer_map_unmap(struct gl_context *ctx, struct gl_framebuffer *fb, GLboolean map) argument
52 renderbuffer_map_unmap(ctx, fb->_ColorDrawBuffers[i], map);
54 renderbuffer_map_unmap(ctx, fb->_ColorReadBuffer, map);
57 renderbuffer_map_unmap(ctx, fb->Attachment[BUFFER_DEPTH].Renderbuffer, map);
61 span_map_unmap(struct gl_context *ctx, GLboolean map) argument
65 framebuffer_map_unmap(ctx, ctx->DrawBuffer, map);
68 framebuffer_map_unmap(ctx, ctx->ReadBuffer, map);
71 if (map)
37 renderbuffer_map_unmap(struct gl_context *ctx, struct gl_renderbuffer *rb, GLboolean map) argument
[all...]
/external/chromium_org/v8/test/perf-test/Collections/
H A Dmap.js15 var map; variable
20 map = new Map;
22 map.set(i, i);
28 map = null;
40 if (!map.has(i)) {
45 if (map.has(i)) {
54 if (map.get(i) !== i) {
59 if (map.get(i) !== undefined) {
70 map.delete(i);
76 map
[all...]
/external/mesa3d/src/mesa/drivers/dri/nouveau/
H A Dnouveau_span.c38 GLboolean map)
42 if (map)
47 framebuffer_map_unmap(struct gl_context *ctx, struct gl_framebuffer *fb, GLboolean map) argument
52 renderbuffer_map_unmap(ctx, fb->_ColorDrawBuffers[i], map);
54 renderbuffer_map_unmap(ctx, fb->_ColorReadBuffer, map);
57 renderbuffer_map_unmap(ctx, fb->Attachment[BUFFER_DEPTH].Renderbuffer, map);
61 span_map_unmap(struct gl_context *ctx, GLboolean map) argument
65 framebuffer_map_unmap(ctx, ctx->DrawBuffer, map);
68 framebuffer_map_unmap(ctx, ctx->ReadBuffer, map);
71 if (map)
37 renderbuffer_map_unmap(struct gl_context *ctx, struct gl_renderbuffer *rb, GLboolean map) argument
[all...]
/external/chromium_org/third_party/libaddressinput/src/java/src/com/android/i18n/addressinput/
H A DStandardChecks.java26 * Loader for a map defining the standard checks to perform on AddressFields.
36 Map<AddressField, List<AddressProblemType>> map =
39 addToMap(map, AddressField.COUNTRY, AddressProblemType.USING_UNUSED_FIELD,
41 addToMap(map, AddressField.ADMIN_AREA, AddressProblemType.USING_UNUSED_FIELD,
43 addToMap(map, AddressField.LOCALITY, AddressProblemType.USING_UNUSED_FIELD,
45 addToMap(map, AddressField.DEPENDENT_LOCALITY, AddressProblemType.USING_UNUSED_FIELD,
47 addToMap(map, AddressField.POSTAL_CODE, AddressProblemType.USING_UNUSED_FIELD,
50 addToMap(map, AddressField.STREET_ADDRESS, AddressProblemType.USING_UNUSED_FIELD,
52 addToMap(map, AddressField.SORTING_CODE, AddressProblemType.USING_UNUSED_FIELD,
54 addToMap(map, AddressFiel
62 addToMap(Map<AddressField, List<AddressProblemType>> map, AddressField field, AddressProblemType... problems) argument
[all...]
/external/chromium_org/third_party/cython/src/Cython/Plex/
H A DTransitions.py18 the map by means of a list:
38 map = None # The list of codes and states variable in class:TransitionMap
41 def __init__(self, map = None, special = None):
42 if not map:
43 map = [-maxint, {}, maxint]
46 self.map = map
59 map = self.map
61 map[
[all...]

Completed in 9448 milliseconds

1234567891011>>