Home
last modified time | relevance | path

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

12345678910>>...20

/system/bt/osi/test/
Dhash_map_utils_test.cc32 map.clear(); in TearDown()
36 std::unordered_map<std::string, std::string> map; member in HashMapUtilsTest
41 map = hash_map_utils_new_from_string_params(params); in TEST_F()
42 EXPECT_TRUE(map.empty()); in TEST_F()
47 map = hash_map_utils_new_from_string_params(params); in TEST_F()
48 EXPECT_TRUE(map.empty()); in TEST_F()
55 map = hash_map_utils_new_from_string_params(params); in TEST_F()
56 EXPECT_EQ(1u, map.size()); in TEST_F()
57 EXPECT_EQ(value, map[key]); in TEST_F()
58 map.clear(); in TEST_F()
[all …]
/system/core/libbacktrace/
DBacktraceMap.cpp51 void BacktraceMap::FillIn(uint64_t addr, backtrace_map_t* map) { in FillIn() argument
56 *map = *entry; in FillIn()
60 *map = {}; in FillIn()
64 static bool ParseLine(const char* line, backtrace_map_t* map) { in ParseLine() argument
80 map->start = start; in ParseLine()
81 map->end = end; in ParseLine()
82 map->flags = PROT_NONE; in ParseLine()
84 map->flags |= PROT_READ; in ParseLine()
87 map->flags |= PROT_WRITE; in ParseLine()
90 map->flags |= PROT_EXEC; in ParseLine()
[all …]
DUnwindStackMap.cpp59 backtrace_map_t map; in Build() local
60 map.start = map_info->start; in Build()
61 map.end = map_info->end; in Build()
62 map.offset = map_info->offset; in Build()
64 map.load_bias = static_cast<uint64_t>(-1); in Build()
65 map.flags = map_info->flags; in Build()
66 map.name = map_info->name; in Build()
68 maps_.push_back(map); in Build()
74 void UnwindStackMap::FillIn(uint64_t addr, backtrace_map_t* map) { in FillIn() argument
75 BacktraceMap::FillIn(addr, map); in FillIn()
[all …]
DUnwindMap.cpp55 backtrace_map_t map; in GenerateMap() local
57 map.start = unw_map.start; in GenerateMap()
58 map.end = unw_map.end; in GenerateMap()
59 map.offset = unw_map.offset; in GenerateMap()
60 map.load_bias = unw_map.load_base; in GenerateMap()
61 map.flags = unw_map.flags; in GenerateMap()
62 map.name = unw_map.path; in GenerateMap()
65 maps_.push_front(map); in GenerateMap()
104 backtrace_map_t map; in GenerateMap() local
106 map.start = unw_map.start; in GenerateMap()
[all …]
DBacktrace.cpp41 Backtrace::Backtrace(pid_t pid, pid_t tid, BacktraceMap* map) in Backtrace() argument
42 : pid_(pid), tid_(tid), map_(map), map_shared_(true) { in Backtrace()
56 std::string Backtrace::GetFunctionName(uint64_t pc, uint64_t* offset, const backtrace_map_t* map) { in GetFunctionName() argument
58 if (map == nullptr) { in GetFunctionName()
60 map = &map_value; in GetFunctionName()
63 if (map->start == 0 || (map->flags & PROT_DEVICE_MAP)) { in GetFunctionName()
87 if (BacktraceMap::IsValid(frame->map)) { in FormatFrameData()
88 map_name = frame->map.Name(); in FormatFrameData()
89 if (!frame->map.name.empty()) { in FormatFrameData()
92 map_name += StringPrintf(":%" PRIPTR "]", frame->map.start); in FormatFrameData()
[all …]
DBacktracePtrace.cpp54 backtrace_map_t map; in ReadWord()
55 FillInMap(ptr, &map); in ReadWord()
56 if (!BacktraceMap::IsValid(map) || !(map.flags & PROT_READ)) { in ReadWord()
69 backtrace_map_t map; in Read()
70 FillInMap(addr, &map); in Read()
71 if (!BacktraceMap::IsValid(map) || !(map.flags & PROT_READ)) { in Read()
75 bytes = MIN(map.end - addr, bytes); in Read()
Dbacktrace_read_benchmarks.cpp117 static void CreateRemoteProcess(size_t size, void** map, pid_t* pid) { in CreateRemoteProcess() argument
118 *map = mmap(nullptr, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in CreateRemoteProcess()
119 if (*map == MAP_FAILED) { in CreateRemoteProcess()
123 memset(*map, 0xaa, size); in CreateRemoteProcess()
136 munmap(*map, size); in CreateRemoteProcess()
140 void* map; in BM_read_with_ptrace() local
142 CreateRemoteProcess(state.range(0), &map, &pid); in BM_read_with_ptrace()
146 uint64_t addr = reinterpret_cast<uint64_t>(map); in BM_read_with_ptrace()
158 void* map; in BM_read_with_process_vm_read() local
160 CreateRemoteProcess(state.range(0), &map, &pid); in BM_read_with_process_vm_read()
[all …]
DUnwindStack.cpp121 back_frame->map.name = frame->map_name; in Unwind()
122 back_frame->map.start = frame->map_start; in Unwind()
123 back_frame->map.end = frame->map_end; in Unwind()
124 back_frame->map.offset = frame->map_elf_start_offset; in Unwind()
125 back_frame->map.load_bias = frame->map_load_bias; in Unwind()
126 back_frame->map.flags = frame->map_flags; in Unwind()
148 UnwindStackCurrent::UnwindStackCurrent(pid_t pid, pid_t tid, BacktraceMap* map) in UnwindStackCurrent() argument
149 : BacktraceCurrent(pid, tid, map) {} in UnwindStackCurrent()
173 UnwindStackPtrace::UnwindStackPtrace(pid_t pid, pid_t tid, BacktraceMap* map) in UnwindStackPtrace() argument
174 : BacktracePtrace(pid, tid, map), memory_(pid) {} in UnwindStackPtrace()
[all …]
/system/core/libcutils/
Dhashmap.cpp48 Hashmap* map = static_cast<Hashmap*>(malloc(sizeof(Hashmap))); in hashmapCreate() local
49 if (map == NULL) { in hashmapCreate()
55 map->bucketCount = 1; in hashmapCreate()
56 while (map->bucketCount <= minimumBucketCount) { in hashmapCreate()
58 map->bucketCount <<= 1; in hashmapCreate()
61 map->buckets = static_cast<Entry**>(calloc(map->bucketCount, sizeof(Entry*))); in hashmapCreate()
62 if (map->buckets == NULL) { in hashmapCreate()
63 free(map); in hashmapCreate()
67 map->size = 0; in hashmapCreate()
69 map->hash = hash; in hashmapCreate()
[all …]
Dstr_parms.cpp48 Hashmap *map; member
75 s->map = hashmapCreate(5, str_hash_fn, str_eq); in str_parms_create()
76 if (!s->map) { in str_parms_create()
113 hashmapRemove(ctxt->str_parms->map, key); in remove_pair()
125 hashmapForEach(str_parms->map, remove_pair, &ctxt); in str_parms_del()
134 hashmapForEach(str_parms->map, remove_pair, &ctxt); in str_parms_destroy()
135 hashmapFree(str_parms->map); in str_parms_destroy()
179 old_val = hashmapPut(str_parms->map, key, value); in str_parms_create_str()
228 old_val = hashmapPut(str_parms->map, tmp_key, tmp_val); in str_parms_add_str()
282 return hashmapGet(str_parms->map, (void *)key) != NULL; in str_parms_has_key()
[all …]
/system/core/libbacktrace/testdata/arm64/
Doffline_testdata2 map: start: 557066e000 end: 55706ee000 offset: 0 load_bias: 0 flags: 5 name: /data/backtrace_test64
3 map: start: 55706ef000 end: 55706f2000 offset: 80000 load_bias: 0 flags: 1 name: /data/backtrace_te…
4 map: start: 55706f2000 end: 55706f3000 offset: 83000 load_bias: 0 flags: 3 name: /data/backtrace_te…
5 map: start: 7014200000 end: 7014600000 offset: 0 load_bias: 0 flags: 3 name: [anon:libc_malloc]
6 map: start: 701464c000 end: 701465c000 offset: 0 load_bias: 0 flags: 5 name: /system/lib64/libcutil…
7 map: start: 701465c000 end: 701465d000 offset: 0 load_bias: 0 flags: 0 name:
8 map: start: 701465d000 end: 701465e000 offset: 10000 load_bias: 0 flags: 1 name: /system/lib64/libc…
9 map: start: 701465e000 end: 701465f000 offset: 11000 load_bias: 0 flags: 3 name: /system/lib64/libc…
10 map: start: 7014691000 end: 70146b5000 offset: 0 load_bias: 0 flags: 5 name: /system/lib64/liblzma.…
11 map: start: 70146b5000 end: 70146b6000 offset: 23000 load_bias: 0 flags: 1 name: /system/lib64/libl…
[all …]
/system/core/libbacktrace/testdata/arm/
Doffline_testdata2 map: start: aad19000 end: aad6c000 offset: 0 load_bias: 0 flags: 5 name: /data/backtrace_test32
3 map: start: aad6c000 end: aad6e000 offset: 52000 load_bias: 0 flags: 1 name: /data/backtrace_test32
4 map: start: aad6e000 end: aad6f000 offset: 54000 load_bias: 0 flags: 3 name: /data/backtrace_test32
5 map: start: e7380000 end: e7400000 offset: 0 load_bias: 0 flags: 3 name: [anon:libc_malloc]
6 map: start: e745f000 end: e7463000 offset: 0 load_bias: 0 flags: 5 name: /system/lib/libnetd_client…
7 map: start: e7463000 end: e7464000 offset: 3000 load_bias: 0 flags: 1 name: /system/lib/libnetd_cli…
8 map: start: e7464000 end: e7465000 offset: 4000 load_bias: 0 flags: 3 name: /system/lib/libnetd_cli…
9 map: start: e7480000 end: e7500000 offset: 0 load_bias: 0 flags: 3 name: [anon:libc_malloc]
10 map: start: e7558000 end: e756c000 offset: 0 load_bias: 0 flags: 5 name: /system/lib/libunwind.so
11 map: start: e756c000 end: e756d000 offset: 0 load_bias: 0 flags: 0 name:
[all …]
/system/core/libbacktrace/testdata/x86_64/
Doffline_testdata2 map: start: 7fd5aa784000 end: 7fd5aa93e000 offset: 0 load_bias: 0 flags: 5 name: /lib/x86_64-linux-…
3 map: start: 7fd5aa93e000 end: 7fd5aab3e000 offset: 1ba000 load_bias: 0 flags: 0 name: /lib/x86_64-l…
4 map: start: 7fd5aab3e000 end: 7fd5aab42000 offset: 1ba000 load_bias: 0 flags: 1 name: /lib/x86_64-l…
5 map: start: 7fd5aab42000 end: 7fd5aab44000 offset: 1be000 load_bias: 0 flags: 3 name: /lib/x86_64-l…
6 map: start: 7fd5aab44000 end: 7fd5aab49000 offset: 0 load_bias: 0 flags: 3 name:
7 map: start: 7fd5aab49000 end: 7fd5aac4e000 offset: 0 load_bias: 0 flags: 5 name: /lib/x86_64-linux-…
8 map: start: 7fd5aac4e000 end: 7fd5aae4d000 offset: 105000 load_bias: 0 flags: 0 name: /lib/x86_64-l…
9 map: start: 7fd5aae4d000 end: 7fd5aae4e000 offset: 104000 load_bias: 0 flags: 1 name: /lib/x86_64-l…
10 map: start: 7fd5aae4e000 end: 7fd5aae4f000 offset: 105000 load_bias: 0 flags: 3 name: /lib/x86_64-l…
11 map: start: 7fd5aae4f000 end: 7fd5aae65000 offset: 0 load_bias: 0 flags: 5 name: /lib/x86_64-linux-…
[all …]
/system/core/libbacktrace/testdata/x86/
Doffline_testdata2 map: start: f705a000 end: f705c000 offset: 0 load_bias: 0 flags: 3 name:
3 map: start: f705c000 end: f707f000 offset: 0 load_bias: 0 flags: 5 name: /ssd/android/aosp_master/o…
4 map: start: f707f000 end: f7080000 offset: 22000 load_bias: 0 flags: 1 name: /ssd/android/aosp_mast…
5 map: start: f7080000 end: f7081000 offset: 23000 load_bias: 0 flags: 3 name: /ssd/android/aosp_mast…
6 map: start: f7081000 end: f7088000 offset: 0 load_bias: 0 flags: 3 name:
7 map: start: f7088000 end: f7230000 offset: 0 load_bias: 0 flags: 5 name: /lib/i386-linux-gnu/libc-2…
8 map: start: f7230000 end: f7231000 offset: 1a8000 load_bias: 0 flags: 0 name: /lib/i386-linux-gnu/l…
9 map: start: f7231000 end: f7233000 offset: 1a8000 load_bias: 0 flags: 1 name: /lib/i386-linux-gnu/l…
10 map: start: f7233000 end: f7234000 offset: 1aa000 load_bias: 0 flags: 3 name: /lib/i386-linux-gnu/l…
11 map: start: f7234000 end: f7237000 offset: 0 load_bias: 0 flags: 3 name:
[all …]
/system/core/libcutils/include/cutils/
Dhashmap.h50 void hashmapFree(Hashmap* map);
65 void* hashmapPut(Hashmap* map, void* key, void* value);
71 void* hashmapGet(Hashmap* map, void* key);
77 void* hashmapRemove(Hashmap* map, void* key);
83 void hashmapForEach(Hashmap* map, bool (*callback)(void* key, void* value, void* context),
93 void hashmapLock(Hashmap* map);
98 void hashmapUnlock(Hashmap* map);
/system/core/libcutils/include_vndk/cutils/
Dhashmap.h50 void hashmapFree(Hashmap* map);
65 void* hashmapPut(Hashmap* map, void* key, void* value);
71 void* hashmapGet(Hashmap* map, void* key);
77 void* hashmapRemove(Hashmap* map, void* key);
83 void hashmapForEach(Hashmap* map, bool (*callback)(void* key, void* value, void* context),
93 void hashmapLock(Hashmap* map);
98 void hashmapUnlock(Hashmap* map);
/system/core/libbacktrace/include/backtrace/
DBacktraceMap.h78 iterator(BacktraceMap* map, size_t index) : map_(map), index_(index) {} in iterator() argument
104 backtrace_map_t* map = &map_->maps_[index_]; variable
105 if (map->load_bias == static_cast<uint64_t>(-1)) {
106 map->load_bias = map_->GetLoadBias(index_);
108 return map;
120 virtual void FillIn(uint64_t addr, backtrace_map_t* map);
129 backtrace_map_t map; in GetFlags() local
130 FillIn(pc, &map); in GetFlags()
131 if (IsValid(map)) { in GetFlags()
132 return map.flags; in GetFlags()
[all …]
/system/sepolicy/
DAndroid.bp18 name: "26.0.board.compat.map",
25 name: "27.0.board.compat.map",
32 name: "28.0.board.compat.map",
39 name: "26.0.board.ignore.map",
46 name: "27.0.board.ignore.map",
53 name: "28.0.board.ignore.map",
61 bottom_half: [":26.0.board.compat.map"],
67 bottom_half: [":27.0.board.compat.map"],
73 bottom_half: [":28.0.board.compat.map"],
79 bottom_half: [":26.0.board.ignore.map"],
[all …]
/system/libvintf/include/vintf/
DMapValueIterator.h85 IterableImpl(map_ref map) : mMap(map) {} in IterableImpl()
120 using ConstMapValueIterable = typename MapIterTypes<std::map<K, V>>::ConstValueIterable;
124 using MapValueIterable = typename MapIterTypes<std::map<K, V>>::ValueIterable;
129 ConstMapValueIterable<K, V> iterateValues(const std::map<K, V> &map) { in iterateValues() argument
130 return map; in iterateValues()
133 ConstMultiMapValueIterable<K, V> iterateValues(const std::multimap<K, V> &map) { in iterateValues() argument
134 return map; in iterateValues()
137 MapValueIterable<K, V> iterateValues(std::map<K, V>& map) { in iterateValues() argument
138 return map; in iterateValues()
141 MultiMapValueIterable<K, V> iterateValues(std::multimap<K, V>& map) { in iterateValues() argument
[all …]
/system/core/liblog/include/log/
Devent_tag_map.h38 void android_closeEventTagMap(EventTagMap* map);
43 const char* android_lookupEventTag(const EventTagMap* map, unsigned int tag)
52 const char* android_lookupEventTag_len(const EventTagMap* map, size_t* len,
59 const char* android_lookupEventFormat_len(const EventTagMap* map, size_t* len,
65 int android_lookupEventTagNum(EventTagMap* map, const char* tagname,
/system/sepolicy/prebuilts/api/28.0/
Dvendor_sepolicy.cil476 (allow init_28_0 hal_audio_default_exec (file (read getattr map execute open)))
478 (allow hal_audio_default hal_audio_default_exec (file (read getattr map execute entrypoint open)))
483 (allow hal_audio_default hal_audio_default_tmpfs (file (read write getattr map)))
485 (allow init_28_0 hal_audiocontrol_default_exec (file (read getattr map execute open)))
487 (allow hal_audiocontrol_default hal_audiocontrol_default_exec (file (read getattr map execute entry…
492 (allow hal_audiocontrol_default hal_audiocontrol_default_tmpfs (file (read write getattr map)))
494 (allow init_28_0 hal_authsecret_default_exec (file (read getattr map execute open)))
496 (allow hal_authsecret_default hal_authsecret_default_exec (file (read getattr map execute entrypoin…
501 (allow hal_authsecret_default hal_authsecret_default_tmpfs (file (read write getattr map)))
503 (allow init_28_0 hal_bluetooth_default_exec (file (read getattr map execute open)))
[all …]
/system/sepolicy/public/
Dprofman.te5 allow profman user_profile_data_file:file { getattr read write lock map };
8 allow profman asec_apk_file:file { read map };
9 allow profman apk_data_file:file { getattr read map };
12 allow profman oemfs:file { read map };
14 allow profman tmpfs:file { read map };
15 allow profman profman_dump_data_file:file { write map };
22 allow profman { privapp_data_file app_data_file }:file { getattr read write lock map };
/system/sepolicy/prebuilts/api/29.0/public/
Dprofman.te5 allow profman user_profile_data_file:file { getattr read write lock map };
8 allow profman asec_apk_file:file { read map };
9 allow profman apk_data_file:file { getattr read map };
12 allow profman oemfs:file { read map };
14 allow profman tmpfs:file { read map };
15 allow profman profman_dump_data_file:file { write map };
22 allow profman { privapp_data_file app_data_file }:file { getattr read write lock map };
/system/bt/osi/src/
Dhash_map_utils.cc33 std::unordered_map<std::string, std::string> map; in hash_map_utils_new_from_string_params() local
36 if (!str) return map; in hash_map_utils_new_from_string_params()
62 map[key] = value; in hash_map_utils_new_from_string_params()
75 return map; in hash_map_utils_new_from_string_params()
79 std::unordered_map<std::string, std::string>& map) { in hash_map_utils_dump_string_keys_string_values() argument
80 for (const auto& ptr : map) { in hash_map_utils_dump_string_keys_string_values()
/system/core/libutils/
DPropertyMap.cpp108 void PropertyMap::addAll(const PropertyMap* map) { in addAll() argument
109 for (size_t i = 0; i < map->mProperties.size(); i++) { in addAll()
110 mProperties.add(map->mProperties.keyAt(i), map->mProperties.valueAt(i)); in addAll()
122 PropertyMap* map = new PropertyMap(); in load() local
123 if (!map) { in load()
130 Parser parser(map, tokenizer); in load()
139 delete map; in load()
141 *outMap = map; in load()
152 PropertyMap::Parser::Parser(PropertyMap* map, Tokenizer* tokenizer) : in Parser() argument
153 mMap(map), mTokenizer(tokenizer) { in Parser()

12345678910>>...20