/system/extras/libpagemap/ |
pm_map.c | 22 int pm_map_pagemap(pm_map_t *map, uint64_t **pagemap_out, size_t *len) { 23 if (!map) 26 return pm_process_pagemap_range(map->proc, map->start, map->end, 30 int pm_map_usage_flags(pm_map_t *map, pm_memusage_t *usage_out, 38 if (!map || !usage_out) 41 error = pm_map_pagemap(map, &pagemap, &len); 47 usage.vss += map->proc->ker->pagesize; 55 error = pm_kernel_flags(map->proc->ker, PM_PAGEMAP_PFN(pagemap[i]) [all...] |
/system/core/liblog/ |
event_tag_map.c | 37 * Map. 50 static int processFile(EventTagMap* map); 51 static int countMapLines(const EventTagMap* map); 52 static int parseMapLines(EventTagMap* map); 54 static int sortTags(EventTagMap* map); 55 static void dumpTags(const EventTagMap* map); 59 * Open the map file and allocate a structure to manage it. 76 fprintf(stderr, "%s: unable to open map '%s': %s\n", 84 fprintf(stderr, "%s: unable to seek map '%s'\n", OUT_TAG, fileName); 110 * Close the map [all...] |
/external/guava/guava-tests/test/com/google/common/collect/ |
MutableClassToInstanceMapTest.java | 30 import java.util.Map; 31 import java.util.Map.Entry; 59 public Map<Class, Number> create(Object... elements) { 60 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)) [all...] |
AbstractMultimapAsMapImplementsMapTest.java | 23 import java.util.Map; 62 * 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; local 71 map = makePopulatedMap(); 75 keyToRemove = map.keySet().iterator().next(); 77 int initialSize = map.size() [all...] |
/external/chromium_org/content/common/dom_storage/ |
dom_storage_map_unittest.cc | 24 scoped_refptr<DOMStorageMap> map(new DOMStorageMap(kQuota)); 30 // Check the behavior of an empty map. 31 EXPECT_EQ(0u, map->Length()); 32 EXPECT_TRUE(map->Key(0).is_null()); 33 EXPECT_TRUE(map->Key(100).is_null()); 34 EXPECT_TRUE(map->GetItem(kKey).is_null()); 35 EXPECT_FALSE(map->RemoveItem(kKey, &old_value)); 36 EXPECT_EQ(0u, map->bytes_used()); 37 copy = map->DeepCopy(); 40 map->SwapValues(&swap) [all...] |
/external/qemu/memcheck/ |
memcheck_mmrange_map.h | 15 * tree (a map) of module memory mapping ranges in the guest system. The map is 16 * organized in such a way, that each entry in the map describes a virtual 18 * Map considers two ranges to be equal if their address ranges intersect in 32 /* Memory mapping range map. */ 34 /* Head of the map. */ 39 // Map API 42 /* Initializes the map. 44 * map - Map to initialize [all...] |
/external/guava/guava/src/com/google/common/collect/ |
RegularImmutableMultiset.java | 22 import java.util.Map; 36 private final transient ImmutableMap<E, Integer> map; field in class:RegularImmutableMultiset 39 RegularImmutableMultiset(ImmutableMap<E, Integer> map, int size) { 40 this.map = map; 46 return map.isPartialView(); 51 Integer value = map.get(element); 62 return map.containsKey(element); 67 return map.keySet(); 72 final Iterator<Map.Entry<E, Integer>> mapIterator [all...] |
/external/valgrind/main/memcheck/tests/ |
pointer-trace.c | 22 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 = mmap(0, 256*1024, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANONYMOUS, -1, 0) [all...] |
/external/chromium_org/chrome/browser/chromeos/contacts/ |
contact_map_unittest.cc | 18 ContactMap map; local 19 EXPECT_TRUE(map.empty()); 20 EXPECT_EQ(0U, map.size()); 27 // Merge it into the map and check that it's stored. 31 map.Merge(contacts_to_merge.Pass(), ContactMap::KEEP_DELETED_CONTACTS); 32 EXPECT_FALSE(map.empty()); 33 EXPECT_EQ(1U, map.size()); 34 ASSERT_TRUE(map.Find(kContactId1)); 35 EXPECT_EQ(ContactMapToString(map), VarContactsToString(1, contact1.get())); 42 // Merge it into the map. Since we request keeping deleted contacts, th 88 ContactMap map; local [all...] |
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
SortedMapInterfaceTest.java | 25 import java.util.Map; 26 import java.util.Map.Entry; 79 final SortedMap<K, V> map; local 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() [all...] |
/external/llvm/unittests/ADT/ |
IntervalMapTest.cpp | 19 // 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.begin()) [all...] |
/external/apache-harmony/support/src/test/java/tests/support/ |
Support_UnmodifiableMapTest.java | 22 import java.util.Map; 28 Map<String, Integer> map; field in class:Support_UnmodifiableMapTest 30 // must be a map containing the string keys "0"-"99" paired with the Integer 37 public Support_UnmodifiableMapTest(String p1, Map<String, Integer> m) { 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 [all...] |
/libcore/support/src/test/java/tests/support/ |
Support_UnmodifiableMapTest.java | 22 import java.util.Map; 28 Map<String, Integer> map; field in class:Support_UnmodifiableMapTest 30 // must be a map containing the string keys "0"-"99" paired with the Integer 37 public Support_UnmodifiableMapTest(String p1, Map<String, Integer> m) { 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 [all...] |
/external/chromium_org/third_party/harfbuzz-ng/src/ |
hb-ot-shape-private.hh | 32 #include "hb-ot-map-private.hh" 41 hb_ot_map_t map; member in struct:hb_ot_shape_plan_t 52 map.collect_lookups (table_index, lookups); 54 inline void substitute (hb_font_t *font, hb_buffer_t *buffer) const { map.substitute (this, font, buffer); } 55 inline void position (hb_font_t *font, hb_buffer_t *buffer) const { map.position (this, font, buffer); } 57 void finish (void) { map.finish (); } 66 hb_ot_map_builder_t map; member in struct:hb_ot_shape_planner_t 72 map (face, &props) {} 73 ~hb_ot_shape_planner_t (void) { map.finish (); } 79 map.compile (plan.map) [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/nouveau/ |
nouveau_span.c | 38 GLboolean map) 42 if (map) 47 framebuffer_map_unmap(struct gl_context *ctx, struct gl_framebuffer *fb, GLboolean map) 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) 65 framebuffer_map_unmap(ctx, ctx->DrawBuffer, map); 68 framebuffer_map_unmap(ctx, ctx->ReadBuffer, map); 71 if (map) [all...] |
/external/harfbuzz_ng/src/ |
hb-ot-shape-private.hh | 32 #include "hb-ot-map-private.hh" 42 hb_ot_map_t map; member in struct:hb_ot_shape_plan_t 53 map.collect_lookups (table_index, lookups); 55 inline void substitute (hb_font_t *font, hb_buffer_t *buffer) const { map.substitute (this, font, buffer); } 56 inline void position (hb_font_t *font, hb_buffer_t *buffer) const { map.position (this, font, buffer); } 58 void finish (void) { map.finish (); } 67 hb_ot_map_builder_t map; member in struct:hb_ot_shape_planner_t 73 map (face, &props) {} 74 ~hb_ot_shape_planner_t (void) { map.finish (); } 80 map.compile (plan.map) [all...] |
/external/mesa3d/src/mesa/drivers/dri/nouveau/ |
nouveau_span.c | 38 GLboolean map) 42 if (map) 47 framebuffer_map_unmap(struct gl_context *ctx, struct gl_framebuffer *fb, GLboolean map) 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) 65 framebuffer_map_unmap(ctx, ctx->DrawBuffer, map); 68 framebuffer_map_unmap(ctx, ctx->ReadBuffer, map); 71 if (map) [all...] |
/frameworks/av/drm/libdrmframework/plugins/common/util/include/ |
SessionMap.h | 42 * Adds a new value in the session map table. It expects memory to be allocated already 53 map.add(key, value); 72 * returns the number of objects in the session map table 78 return map.size(); 82 * returns the session object by the index in the session map table 92 if (map.size() > index) { 93 value = map.valueAt(index); 99 * deletes the object from session map. It also frees up memory for the session object. 107 map.removeItem(key); 126 map = objectCopy.map 131 KeyedVector<int, TValue> map; member in class:android::SessionMap [all...] |
/external/chromium/base/ |
id_map_unittest.cc | 26 IDMap<TestObject> map; local 27 EXPECT_TRUE(map.IsEmpty()); 28 EXPECT_EQ(0U, map.size()); 33 int32 id1 = map.Add(&obj1); 34 EXPECT_FALSE(map.IsEmpty()); 35 EXPECT_EQ(1U, map.size()); 36 EXPECT_EQ(&obj1, map.Lookup(id1)); 38 int32 id2 = map.Add(&obj2); 39 EXPECT_FALSE(map.IsEmpty()); 40 EXPECT_EQ(2U, map.size()) 60 IDMap<TestObject> map; local 88 IDMap<TestObject> map; local [all...] |
/external/chromium_org/chrome/browser/content_settings/ |
content_settings_origin_identifier_value_map_unittest.cc | 15 content_settings::OriginIdentifierValueMap map; local 18 map.GetValue(GURL("http://www.google.com"), 22 map.SetValue(ContentSettingsPattern::FromString("[*.]google.com"), 29 EXPECT_TRUE(expected_value->Equals(map.GetValue(GURL("http://www.google.com"), 35 map.GetValue(GURL("http://www.google.com"), 41 map.GetValue(GURL("http://www.youtube.com"), 47 map.GetValue(GURL("http://www.google.com"), 52 EXPECT_EQ(NULL, map.GetValue(GURL("http://www.google.com"), 59 content_settings::OriginIdentifierValueMap map; local 61 EXPECT_EQ(NULL, map.GetValue(GURL("http://www.google.com") 114 content_settings::OriginIdentifierValueMap map; local 147 content_settings::OriginIdentifierValueMap map; local 176 content_settings::OriginIdentifierValueMap map; local 184 content_settings::OriginIdentifierValueMap map; local [all...] |
/external/chromium_org/remoting/protocol/ |
name_value_map.h | 5 // Helper functions that allow to map enum values to strings. 21 const char* ValueToName(const NameMapElement<T> (&map)[N], T value) { 23 if (map[i].value == value) 24 return map[i].name; 31 bool NameToValue(const NameMapElement<T> (&map)[N], 35 if (map[i].name == name) { 36 *result = map[i].value;
|
/external/eigen/demos/mix_eigen_and_c/ |
example.c | 44 struct C_Map_MatrixXd *map; local 53 map = Map_MatrixXd_new(array, 5, 1); 54 Map_MatrixXd_add(map, map, map); 55 Map_MatrixXd_delete(map);
|
/libcore/luni/src/main/java/java/util/jar/ |
Attributes.java | 23 import java.util.Map; 31 public class Attributes implements Cloneable, Map<Object, Object> { 39 protected Map<Object, Object> map; field in class:Attributes 187 map = new HashMap<Object, Object>(); 199 map = (Map<Object, Object>) ((HashMap) attrib.map).clone(); 210 map = new HashMap<Object, Object>(size); 217 map.clear() [all...] |
/external/chromium_org/third_party/protobuf/java/src/test/java/com/google/protobuf/ |
SmallSortedMapTest.java | 40 import java.util.Map; 50 private static class SimpleEntry<K, V> implements Map.Entry<K, V> { 79 if (!(o instanceof Map.Entry)) 81 Map.Entry e = (Map.Entry) o; 134 for (SmallSortedMap<Integer, Integer> map : allMaps) { 135 assertEquals(numElements, map.size()); 137 assertEquals(new Integer(i + 1), map.get(i)); 147 SmallSortedMap<Integer, Integer> map = SmallSortedMap.newInstanceForTest(3); local 149 assertNull(map.put(i, i + 1)) 158 SmallSortedMap<Integer, Integer> map = SmallSortedMap.newInstanceForTest(3); local 199 SmallSortedMap<Integer, Integer> map = SmallSortedMap.newInstanceForTest(3); local 210 SmallSortedMap<Integer, Integer> map = SmallSortedMap.newInstanceForTest(3); local 232 SmallSortedMap<Integer, Integer> map = SmallSortedMap.newInstanceForTest(3); local 246 SmallSortedMap<Integer, Integer> map = SmallSortedMap.newInstanceForTest(3); local 263 SmallSortedMap<Integer, Integer> map = SmallSortedMap.newInstanceForTest(3); local 281 SmallSortedMap<Integer, Integer> map = SmallSortedMap.newInstanceForTest(3); local 293 SmallSortedMap<Integer, Integer> map = SmallSortedMap.newInstanceForTest(3); local 308 SmallSortedMap<Integer, Integer> map = SmallSortedMap.newInstanceForTest(3); local 323 SmallSortedMap<Integer, Integer> map = SmallSortedMap.newInstanceForTest(3); local 338 SmallSortedMap<Integer, Integer> map = SmallSortedMap.newInstanceForTest(3); local [all...] |
/cts/tests/src/android/content/cts/ |
MockReceiverAbort.java | 36 Bundle map = getResultExtras(false); local 37 map.putString(RESULT_EXTRAS_ABORT_KEY, RESULT_EXTRAS_ABORT_VALUE); 38 setResult(RESULT_CODE, RESULT_DATA, map);
|