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

1234567891011>>

/system/bt/osi/test/
H A Dhash_map_utils_test.cc32 map.clear();
36 std::unordered_map<std::string, std::string> map; member in class:HashMapUtilsTest
41 map = hash_map_utils_new_from_string_params(params);
42 EXPECT_TRUE(map.empty());
47 map = hash_map_utils_new_from_string_params(params);
48 EXPECT_TRUE(map.empty());
55 map = hash_map_utils_new_from_string_params(params);
56 EXPECT_EQ(1u, map.size());
57 EXPECT_EQ(value, map[key]);
58 map
[all...]
/system/core/debuggerd/libdebuggerd/test/
H A Dtombstone_test.cpp89 backtrace_map_t map; local
91 map.start = 0x123456789abcd000UL;
92 map.end = 0x123456789abdf000UL;
94 map.start = 0x1234000;
95 map.end = 0x1235000;
97 map_mock_->AddMap(map);
105 "\nmemory map (1 entry):\n"
121 backtrace_map_t map; local
123 map.start = 0x123456789abcd000UL;
124 map
158 backtrace_map_t map; local
197 backtrace_map_t map; local
261 backtrace_map_t map; local
313 backtrace_map_t map; local
365 backtrace_map_t map; local
415 backtrace_map_t map; local
[all...]
H A DBacktraceMock.h27 void AddMap(backtrace_map_t& map) { argument
28 maps_.push_back(map);
/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/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, unsigned int tag)
53 const char* android_lookupEventTag_len(const EventTagMap* map, size_t* len,
60 const char* android_lookupEventFormat_len(const EventTagMap* map, size_t* len,
66 int android_lookupEventTagNum(EventTagMap* map, const char* tagname,
/system/core/liblog/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, unsigned int tag)
53 const char* android_lookupEventTag_len(const EventTagMap* map, size_t* len,
60 const char* android_lookupEventFormat_len(const EventTagMap* map, size_t* len,
66 int android_lookupEventTagNum(EventTagMap* map, const char* tagname,
/system/core/libbacktrace/
H A DBacktraceMap.cpp17 #define LOG_TAG "backtrace-map"
51 void BacktraceMap::FillIn(uint64_t addr, backtrace_map_t* map) { argument
56 *map = *entry;
60 *map = {};
63 bool BacktraceMap::ParseLine(const char* line, backtrace_map_t* map) { argument
87 map->start = start;
88 map->end = end;
89 map->flags = PROT_NONE;
91 map->flags |= PROT_READ;
94 map
133 backtrace_map_t map; local
151 BacktraceMap* map = new BacktraceMap(pid); local
[all...]
H A DUnwindStackMap.cpp58 backtrace_map_t map; local
59 map.start = map_info->start;
60 map.end = map_info->end;
61 map.offset = map_info->offset;
63 map.load_bias = static_cast<uint64_t>(-1);
64 map.flags = map_info->flags;
65 map.name = map_info->name;
67 maps_.push_back(map);
73 void UnwindStackMap::FillIn(uint64_t addr, backtrace_map_t* map) { argument
74 BacktraceMap::FillIn(addr, map);
165 BacktraceMap* map; local
186 UnwindStackOfflineMap* map = new UnwindStackOfflineMap(pid); local
[all...]
H A DUnwindMap.cpp34 // of maps using the same map cursor.
55 backtrace_map_t map; local
57 map.start = unw_map.start;
58 map.end = unw_map.end;
59 map.offset = unw_map.offset;
60 map.load_bias = unw_map.load_base;
61 map.flags = unw_map.flags;
62 map.name = unw_map.path;
65 maps_.push_front(map);
91 // It's possible for the map t
104 backtrace_map_t map; local
137 FillIn(uint64_t addr, backtrace_map_t* map) argument
[all...]
H A DBacktrace.cpp41 Backtrace::Backtrace(pid_t pid, pid_t tid, BacktraceMap* map) argument
42 : pid_(pid), tid_(tid), map_(map), map_shared_(true) {
56 std::string Backtrace::GetFunctionName(uint64_t pc, uint64_t* offset, const backtrace_map_t* map) { argument
58 if (map == nullptr) {
60 map = &map_value;
62 // If no map is found, or this map is backed by a device, then return nothing.
63 if (map->start == 0 || (map->flags & PROT_DEVICE_MAP)) {
87 if (BacktraceMap::IsValid(frame->map)) {
117 FillInMap(uint64_t pc, backtrace_map_t* map) argument
123 Create(pid_t pid, pid_t tid, BacktraceMap* map) argument
[all...]
/system/core/libcutils/
H A Dhashmap.cpp49 Hashmap* map = static_cast<Hashmap*>(malloc(sizeof(Hashmap))); local
50 if (map == NULL) {
56 map->bucketCount = 1;
57 while (map->bucketCount <= minimumBucketCount) {
59 map->bucketCount <<= 1;
62 map->buckets = static_cast<Entry**>(calloc(map->bucketCount, sizeof(Entry*)));
63 if (map->buckets == NULL) {
64 free(map);
68 map
84 hashKey(Hashmap* map, void* key) argument
97 hashmapSize(Hashmap* map) argument
105 expandIfNecessary(Hashmap* map) argument
136 hashmapLock(Hashmap* map) argument
140 hashmapUnlock(Hashmap* map) argument
144 hashmapFree(Hashmap* map) argument
197 hashmapPut(Hashmap* map, void* key, void* value) argument
229 hashmapGet(Hashmap* map, void* key) argument
244 hashmapContainsKey(Hashmap* map, void* key) argument
259 hashmapMemoize(Hashmap* map, void* key, void* (*initialValue)(void* key, void* context), void* context) argument
292 hashmapRemove(Hashmap* map, void* key) argument
314 hashmapForEach(Hashmap* map, bool (*callback)(void* key, void* value, void* context), void* context) argument
330 hashmapCurrentCapacity(Hashmap* map) argument
335 hashmapCountCollisions(Hashmap* map) argument
[all...]
/system/core/debuggerd/libdebuggerd/include/libdebuggerd/
H A Dbacktrace.h23 #include <map>
35 void dump_backtrace(android::base::unique_fd output_fd, BacktraceMap* map,
36 const std::map<pid_t, ThreadInfo>& thread_info, pid_t target_thread);
39 void dump_backtrace_thread(int output_fd, BacktraceMap* map, const ThreadInfo& thread);
H A Dtombstone.h24 #include <map>
41 void engrave_tombstone(int tombstone_fd, BacktraceMap* map, const OpenFilesList* open_files,
43 const std::map<pid_t, std::string>& threads, uint64_t abort_msg_address,
49 void engrave_tombstone(android::base::unique_fd output_fd, BacktraceMap* map,
51 const std::map<pid_t, ThreadInfo>& thread_info, pid_t target_thread,
/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/core/libcutils/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/core/libcutils/include_vndk/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/iotop/
H A Dtasklist.h15 #include <map>
23 static bool Scan(std::map<pid_t, std::vector<pid_t>>&);
/system/netd/libnetdutils/include/netdutils/
H A DMisc.h20 #include <map>
25 // Lookup key in map, returing a default value if key is not found
27 inline const V& findWithDefault(const std::map<U, V>& map, const U& key, const V& dflt) { argument
28 auto it = map.find(key);
29 return (it == map.end()) ? dflt : it->second;
/system/extras/simpleperf/
H A Dtest_util.h17 #include <map>
30 void ParseSymbol(const ElfFileSymbol& symbol, std::map<std::string, ElfFileSymbol>* symbols);
31 void CheckElfFileSymbols(const std::map<std::string, ElfFileSymbol>& symbols);
/system/core/include/backtrace/
H A DBacktraceMap.h40 // Special flag to indicate a map is in /dev/. However, a map in
62 // If uncached is true, then parse the current process map as of the call.
63 // Passing a map created with uncached set to true to Backtrace::Create()
73 iterator(BacktraceMap* map, size_t index) : map_(map), index_(index) {} argument
99 backtrace_map_t* map = &map_->maps_[index_]; local
100 if (map->load_bias == static_cast<uint64_t>(-1)) {
101 map->load_bias = map_->GetLoadBias(index_);
103 return map;
124 backtrace_map_t map; local
146 IsValid(const backtrace_map_t& map) argument
178 ScopedBacktraceMapIteratorLock(BacktraceMap* map) argument
[all...]
/system/core/libbacktrace/include/backtrace/
H A DBacktraceMap.h40 // Special flag to indicate a map is in /dev/. However, a map in
62 // If uncached is true, then parse the current process map as of the call.
63 // Passing a map created with uncached set to true to Backtrace::Create()
73 iterator(BacktraceMap* map, size_t index) : map_(map), index_(index) {} argument
99 backtrace_map_t* map = &map_->maps_[index_]; local
100 if (map->load_bias == static_cast<uint64_t>(-1)) {
101 map->load_bias = map_->GetLoadBias(index_);
103 return map;
124 backtrace_map_t map; local
146 IsValid(const backtrace_map_t& map) argument
178 ScopedBacktraceMapIteratorLock(BacktraceMap* map) argument
[all...]
/system/extras/perfprofd/
H A Dconfigreader.h22 #include <map>
68 std::map<std::string, values> u_info;
69 std::map<std::string, unsigned> u_entries;
70 std::map<std::string, std::string> s_entries;
/system/libhidl/transport/
H A DStatic.cpp46 static BnConstructorMap map{};
47 return map;
51 static BsConstructorMap map{};
52 return map;
/system/libvintf/include/vintf/
H A DKernelConfigParser.h21 #include <map>
37 std::map<std::string, std::string>& configs();
38 const std::map<std::string, std::string>& configs() const;
42 std::map<std::string, std::string> mConfigs;

Completed in 710 milliseconds

1234567891011>>