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

1234567891011>>

/system/bt/osi/include/
H A Dhash_map_utils.h23 // Creates a hash map based on the |params| string containing key and value
28 // "key0=value10;key1=value1;" -> map: [key0]="value0" [key1]="value1"
29 // "key0=;key1=value1;" -> map: [key0]="" [key1]="value1"
30 // "=value0;key1=value1;" -> map: [key1]="value1"
31 // A new hash map or NULL is returned and is owned by the caller.
35 // If |map| is not NULL, all entries of |map| will be dumped, otherwise nothing
36 // will be dumped. Note that this function does not take the ownership of |map|.
37 void hash_map_utils_dump_string_keys_string_values(hash_map_t *map);
/system/bt/osi/test/
H A Dhash_map_utils_test.cpp34 map = NULL;
37 hash_map_free(map);
41 hash_map_t *map; member in class:HashMapUtilsTest
46 map = hash_map_utils_new_from_string_params(params);
47 EXPECT_TRUE(hash_map_is_empty(map));
52 map = hash_map_utils_new_from_string_params(params);
53 EXPECT_TRUE(hash_map_is_empty(map));
60 map = hash_map_utils_new_from_string_params(params);
61 EXPECT_EQ(1u, hash_map_size(map));
62 EXPECT_EQ(0, strcmp(value, (char *)hash_map_get(map, ke
120 hash_map_t *map = NULL; local
[all...]
/system/extras/libpagemap/
H A Dpm_map.h22 int pm_map_destroy(pm_map_t *map);
H A Dpm_map.c22 int pm_map_pagemap(pm_map_t *map, uint64_t **pagemap_out, size_t *len) { argument
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, argument
38 if (!map || !usage_out)
41 error = pm_map_pagemap(map, &pagemap, &len);
48 usage.vss += map->proc->ker->pagesize;
57 error = pm_kernel_flags(map
88 pm_map_usage(pm_map_t *map, pm_memusage_t *usage_out) argument
92 pm_map_workingset(pm_map_t *map, pm_memusage_t *ws_out) argument
136 pm_map_destroy(pm_map_t *map) argument
[all...]
/system/core/libbacktrace/
H A DBacktraceMap.cpp37 void BacktraceMap::FillIn(uintptr_t addr, backtrace_map_t* map) { argument
41 *map = *it;
45 *map = {};
48 bool BacktraceMap::ParseLine(const char* line, backtrace_map_t* map) { argument
72 map->start = start;
73 map->end = end;
74 map->flags = PROT_NONE;
76 map->flags |= PROT_READ;
79 map->flags |= PROT_WRITE;
82 map
118 backtrace_map_t map; local
136 BacktraceMap* map = new BacktraceMap(pid); local
[all...]
H A DUnwindMap.cpp33 // of maps using the same map cursor.
54 backtrace_map_t map; local
56 map.start = unw_map.start;
57 map.end = unw_map.end;
58 map.offset = unw_map.offset;
59 map.load_base = unw_map.load_base;
60 map.flags = unw_map.flags;
61 map.name = unw_map.path;
64 maps_.push_front(map);
85 // It's possible for the map t
97 backtrace_map_t map; local
125 FillIn(uintptr_t addr, backtrace_map_t* map) argument
142 BacktraceMap* map; local
[all...]
H A DBacktrace.cpp40 Backtrace::Backtrace(pid_t pid, pid_t tid, BacktraceMap* map) argument
41 : pid_(pid), tid_(tid), map_(map), map_shared_(true) {
79 if (BacktraceMap::IsValid(frame->map)) {
80 relative_pc = BacktraceMap::GetRelativePc(frame->map, frame->pc);
81 if (!frame->map.name.empty()) {
82 map_name = frame->map.name.c_str();
85 map_name += StringPrintf(":%" PRIPTR "]", frame->map.start);
88 map_name = StringPrintf("<anonymous:%" PRIPTR ">", frame->map.start);
99 if (frame->map.offset != 0) {
100 line += " (offset " + StringPrintf("0x%" PRIxPTR, frame->map
113 FillInMap(uintptr_t pc, backtrace_map_t* map) argument
119 Create(pid_t pid, pid_t tid, BacktraceMap* map) argument
[all...]
H A DBacktracePtrace.cpp55 backtrace_map_t map;
56 FillInMap(ptr, &map);
57 if (!BacktraceMap::IsValid(map) || !(map.flags & PROT_READ)) {
70 backtrace_map_t map;
71 FillInMap(addr, &map);
72 if (!BacktraceMap::IsValid(map) || !(map.flags & PROT_READ)) {
76 bytes = MIN(map.end - addr, bytes);
/system/core/libcutils/
H A Dhashmap.c48 Hashmap* map = malloc(sizeof(Hashmap)); local
49 if (map == NULL) {
55 map->bucketCount = 1;
56 while (map->bucketCount <= minimumBucketCount) {
58 map->bucketCount <<= 1;
61 map->buckets = calloc(map->bucketCount, sizeof(Entry*));
62 if (map->buckets == NULL) {
63 free(map);
67 map
83 hashKey(Hashmap* map, void* key) argument
96 hashmapSize(Hashmap* map) argument
104 expandIfNecessary(Hashmap* map) argument
135 hashmapLock(Hashmap* map) argument
139 hashmapUnlock(Hashmap* map) argument
143 hashmapFree(Hashmap* map) argument
196 hashmapPut(Hashmap* map, void* key, void* value) argument
228 hashmapGet(Hashmap* map, void* key) argument
243 hashmapContainsKey(Hashmap* map, void* key) argument
258 hashmapMemoize(Hashmap* map, void* key, void* (*initialValue)(void* key, void* context), void* context) argument
291 hashmapRemove(Hashmap* map, void* key) argument
313 hashmapForEach(Hashmap* map, bool (*callback)(void* key, void* value, void* context), void* context) argument
329 hashmapCurrentCapacity(Hashmap* map) argument
334 hashmapCountCollisions(Hashmap* map) argument
[all...]
/system/core/debuggerd/test/
H A Dtombstone_test.cpp98 backtrace_map_t map; local
100 map.start = 0x123456789abcd000UL;
101 map.end = 0x123456789abdf000UL;
103 map.start = 0x1234000;
104 map.end = 0x1235000;
106 map_mock_->AddMap(map);
114 "\nmemory map:\n"
130 backtrace_map_t map; local
132 map.start = 0x123456789abcd000UL;
133 map
167 backtrace_map_t map; local
206 backtrace_map_t map; local
270 backtrace_map_t map; local
326 backtrace_map_t map; local
382 backtrace_map_t map; local
436 backtrace_map_t map; local
496 backtrace_map_t map; local
530 backtrace_map_t map; local
[all...]
/system/core/include/log/
H A Devent_tag_map.h30 * Open the specified file as an event log tag map.
37 * Close the map.
39 void android_closeEventTagMap(EventTagMap* map);
44 const char* android_lookupEventTag(const EventTagMap* map, int tag);
/system/core/include/cutils/
H A Dhashmap.h18 * Hash map.
31 /** A hash map. */
35 * Creates a new hash map. Returns NULL if memory allocation fails.
45 * Frees the hash map. Does not free the keys or values themselves.
47 void hashmapFree(Hashmap* map);
56 * Puts value for the given key in the map. Returns pre-existing value if
59 * If memory allocation fails, this function returns NULL, the map's size
62 void* hashmapPut(Hashmap* map, void* key, void* value);
65 * Gets a value from the map. Returns NULL if no entry for the given key is
68 void* hashmapGet(Hashmap* map, voi
[all...]
/system/extras/simpleperf/
H A Dtest_util.h17 #include <map>
27 void ParseSymbol(const ElfFileSymbol& symbol, std::map<std::string, ElfFileSymbol>* symbols);
28 void CheckElfFileSymbols(const std::map<std::string, ElfFileSymbol>& symbols);
/system/core/liblog/
H A Devent_tag_map.c53 static int processFile(EventTagMap* map);
54 static int countMapLines(const EventTagMap* map);
55 static int parseMapLines(EventTagMap* map);
57 static int sortTags(EventTagMap* map);
61 * Open the map file and allocate a structure to manage it.
78 fprintf(stderr, "%s: unable to open map '%s': %s\n",
86 fprintf(stderr, "%s: unable to seek map '%s'\n", OUT_TAG, fileName);
112 * Close the map.
114 LIBLOG_ABI_PUBLIC void android_closeEventTagMap(EventTagMap* map) argument
116 if (map
128 android_lookupEventTag(const EventTagMap* map, int tag) argument
189 processFile(EventTagMap* map) argument
226 countMapLines(const EventTagMap* map) argument
263 parseMapLines(EventTagMap* map) argument
408 sortTags(EventTagMap* map) argument
[all...]
/system/core/include/backtrace/
H A DBacktraceMap.h47 // If uncached is true, then parse the current process map as of the call.
48 // Passing a map created with uncached set to true to Backtrace::Create()
56 // Fill in the map data structure for the given address.
57 virtual void FillIn(uintptr_t addr, backtrace_map_t* map);
62 backtrace_map_t map; local
63 FillIn(pc, &map);
64 if (IsValid(map)) {
65 return map.flags;
84 static inline bool IsValid(const backtrace_map_t& map) { argument
85 return map
88 GetRelativePc(const backtrace_map_t& map, uintptr_t pc) argument
[all...]
/system/connectivity/shill/supplicant/
H A Dsupplicant_network_proxy_interface.h20 #include <map>
/system/core/crash_reporter/
H A Dcrash_collector_test.h22 #include <map>
32 bool(std::map<std::string, std::string> *sessions));
/system/core/init/
H A Dbuiltins.h20 #include <map>
32 Map& map() const override;
/system/extras/iotop/
H A Dtasklist.h15 #include <map>
23 static bool Scan(std::map<pid_t, std::vector<pid_t>>&);
/system/netd/server/
H A DClatdController.h20 #include <map>
35 std::map<std::string, pid_t> mClatdPids;
/system/bt/osi/src/
H A Dhash_map_utils.c39 hash_map_t *map = hash_map_new(BUCKETS_NUM, hash_function_string, osi_free, local
41 if (!map)
50 // Parse |str| and add extracted key-and-value pair(s) in |map|.
73 hash_map_set(map, key, value);
84 return map;
87 void hash_map_utils_dump_string_keys_string_values(hash_map_t *map) { argument
88 if (!map) {
89 LOG_VERBOSE( LOG_TAG, "%s: the given map is NULL\n", __func__);
92 hash_map_foreach(map, dump_entry, NULL);
/system/connectivity/shill/
H A Dgeolocation_info.h20 #include <map>
40 const std::map<std::string, std::string> properties() const {
50 std::map<std::string, std::string> properties_;
/system/extras/perfprofd/
H A Dconfigreader.h22 #include <map>
61 std::map<std::string, values> u_info;
62 std::map<std::string, unsigned> u_entries;
63 std::map<std::string, std::string> s_entries;
/system/nativepower/daemon/
H A Dsystem_property_setter_stub.h20 #include <map>
43 std::map<std::string, std::string> properties_;
/system/extras/libpagemap/include/pagemap/
H A Dpagemap.h122 /* Get the map count (from /proc/kpagecount) of a physical frame.
207 /* Get the name, flags, start/end address, or offset of a map. */
208 #define pm_map_name(map) ((map)->name)
209 #define pm_map_flags(map) ((map)->flags)
214 #define pm_map_start(map) ((map)->start)
215 #define pm_map_end(map) ((map)
[all...]

Completed in 624 milliseconds

1234567891011>>