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

12

/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(pm_map_t *map, pm_memusage_t *usage_out) { argument
37 if (!map || !usage_out)
40 error = pm_map_pagemap(map, &pagemap, &len);
50 error = pm_kernel_count(map->proc->ker, PM_PAGEMAP_PFN(pagemap[i]),
54 usage.vss += map
70 pm_map_workingset(pm_map_t *map, pm_memusage_t *ws_out) argument
117 pm_map_destroy(pm_map_t *map) argument
[all...]
H A Dpm_process.c227 pm_map_t *map, **maps, **new_maps; local
260 maps[maps_count] = map = calloc(1, sizeof(*map));
262 map->proc = proc;
265 &map->start, &map->end, perms, &map->offset, name);
267 map->name = malloc(strlen(name) + 1);
268 if (!map->name) {
275 strcpy(map
[all...]
/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
80 hashKey(Hashmap* map, void* key) argument
93 hashmapSize(Hashmap* map) argument
101 expandIfNecessary(Hashmap* map) argument
132 hashmapLock(Hashmap* map) argument
136 hashmapUnlock(Hashmap* map) argument
140 hashmapFree(Hashmap* map) argument
189 hashmapPut(Hashmap* map, void* key, void* value) argument
221 hashmapGet(Hashmap* map, void* key) argument
236 hashmapContainsKey(Hashmap* map, void* key) argument
251 hashmapMemoize(Hashmap* map, void* key, void* (*initialValue)(void* key, void* context), void* context) argument
284 hashmapRemove(Hashmap* map, void* key) argument
306 hashmapForEach(Hashmap* map, bool (*callback)(void* key, void* value, void* context), void* context) argument
322 hashmapCurrentCapacity(Hashmap* map) argument
327 hashmapCountCollisions(Hashmap* map) argument
[all...]
H A Dstr_parms.c34 Hashmap *map; member in struct:str_parms
62 str_parms->map = hashmapCreate(5, str_hash_fn, str_eq);
63 if (!str_parms->map)
77 hashmapRemove(str_parms->map, key);
85 hashmapForEach(str_parms->map, remove_pair, str_parms);
86 hashmapFree(str_parms->map);
130 old_val = hashmapPut(str_parms->map, key, value);
154 hashmapRemove(str_parms->map, (void *)key);
164 old_val = hashmapPut(str_parms->map, (void *)key, tmp);
207 value = hashmapGet(str_parms->map, (voi
[all...]
/system/core/include/cutils/
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);
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...]
H A Dlogprint.h115 * If "map" is non-NULL, it will be used to convert the log tag number
119 AndroidLogEntry *entry, const EventTagMap* map, char* messageBuf,
/system/core/liblog/
H A Devent_tag_map.c50 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.
112 void android_closeEventTagMap(EventTagMap* map) argument
126 android_lookupEventTag(const EventTagMap* map, int tag) argument
186 processFile(EventTagMap* map) argument
225 countMapLines(const EventTagMap* map) argument
262 parseMapLines(EventTagMap* map) argument
407 sortTags(EventTagMap* map) argument
429 dumpTags(const EventTagMap* map) argument
[all...]
/system/core/debuggerd/
H A Ddebuggerd.h26 extern int unwind_backtrace_with_ptrace(int tfd, pid_t pid, mapinfo *map,
33 extern int unwind_backtrace_with_ptrace_x86(int tfd, pid_t pid, mapinfo *map, bool at_fault);
35 void dump_pc_and_lr(int tfd, int pid, mapinfo *map, int unwound_level, bool at_fault);
37 void dump_stack_and_code(int tfd, int pid, mapinfo *map,
/system/extras/libpagemap/include/pagemap/
H A Dpagemap.h88 /* Get the map count (from /proc/kpagecount) of a physical frame.
150 /* Get the name, flags, start/end address, or offset of a map. */
151 #define pm_map_name(map) ((map)->name)
152 #define pm_map_flags(map) ((map)->flags)
156 #define pm_map_start(map) ((map)->start)
157 #define pm_map_end(map) ((map)
[all...]
/system/core/debuggerd/arm/
H A Dmachine.c51 extern int unwind_backtrace_with_ptrace(int tfd, pid_t pid, mapinfo *map,
62 static void show_nearby_maps(int tfd, int pid, mapinfo *map) argument
80 _LOG(tfd, false, "\nmemory map around addr %08x:\n", si.si_addr);
89 while (map != NULL) {
90 if (addr >= map->start && addr < map->end) {
92 next = map->next;
94 } else if (addr >= map->end) {
95 /* map would be between "prev" and this entry */
96 next = map;
193 dump_stack_and_code(int tfd, int pid, mapinfo *map, int unwind_depth, unsigned int sp_list[], bool at_fault) argument
317 dump_pc_and_lr(int tfd, int pid, mapinfo *map, int unwound_level, bool at_fault) argument
[all...]
H A Dunwind.c284 get_eitp(_uw return_address, pid_t pid, mapinfo *map, mapinfo **containing_map) argument
298 for (mi = map; mi != NULL; mi = mi->next) {
317 mapinfo *map, mapinfo **containing_map)
321 eitp = get_eitp(return_address, pid, map, containing_map);
389 mapinfo *map,
454 mi = pc_to_mapinfo(map, pc, &rel_pc);
478 int unwind_backtrace_with_ptrace(int tfd, pid_t pid, mapinfo *map, argument
509 if (get_eitp(saved_vrs.core.r[R_PC], pid, map, NULL) == NULL) {
512 map, sp_list, at_fault);
520 if (get_eit_entry(ucbp, saved_vrs.core.r[R_PC], pid, map,
316 get_eit_entry(_Unwind_Control_Block *ucbp, _uw return_address, pid_t pid, mapinfo *map, mapinfo **containing_map) argument
386 log_function(_Unwind_Context *context, pid_t pid, int tfd, int stack_level, mapinfo *map, unsigned int sp_list[], bool at_fault) argument
[all...]
/system/core/toolbox/
H A Dreadtty.c13 } map[] = { variable in typeref:struct:__anon446
30 for(i = 0; i < sizeof(map) / sizeof(map[0]); i++) {
31 if(key == map[i].key) {
32 next = strchr(map[i].chars, current);
35 return map[i].chars[1];
45 for(i = 0; i < sizeof(map) / sizeof(map[0]); i++) {
46 if(key == map[i].key) {
47 next = strchr(map[
[all...]
/system/media/mca/filterfw/native/core/
H A Dgl_env.h22 #include <map>
229 std::map<int, EGLContext> contexts_;
230 std::map<int, SurfaceWindowPair> surfaces_;
249 std::map<int, ShaderProgram*> attached_shaders_;
250 std::map<int, VertexFrame*> attached_vframes_;
H A Dtime_util.cpp22 #include <map>
76 static map<string, NamedStopWatch*> watches;
H A Dgl_frame.h20 #include <map>
207 std::map<GLenum, GLint> tex_params_;
H A Dgl_env.cpp25 #include <map>
44 for (std::map<int, SurfaceWindowPair>::iterator it = surfaces_.begin();
57 for (std::map<int, EGLContext>::iterator it = contexts_.begin();
254 for (std::map<int, SurfaceWindowPair>::iterator it = surfaces_.begin();
H A Dshader_program.h21 #include <map>
424 typedef std::map<ProgramVar, VertexAttrib> VertexAttribMap;
436 // Scans for all uniforms in the shader and creates index -> id map.
547 std::map<ProgramVar, GLuint> uniform_indices_;
/system/extras/showmap/
H A Dshowmap.c125 static void enqueue_map(mapinfo **head, mapinfo *map, int sort_by_address, int coalesce_by_name) { argument
129 if (!map) {
134 if (current && coalesce_by_name && !strcmp(map->name, current->name)) {
135 current->size += map->size;
136 current->rss += map->rss;
137 current->pss += map->pss;
138 current->shared_clean += map->shared_clean;
139 current->shared_dirty += map->shared_dirty;
140 current->private_clean += map->private_clean;
141 current->private_dirty += map
[all...]
/system/core/debuggerd/x86/
H A Dunwind.c7 int unwind_backtrace_with_ptrace_x86(int tfd, pid_t pid, mapinfo *map, argument
27 mi = pc_to_mapinfo(map, eip, &rel_pc);
56 mi = pc_to_mapinfo(map, stack_content, &rel_pc);
/system/extras/procmem/
H A Dprocmem.c26 pm_map_t *map; member in struct:map_info
164 mi->map = maps[i];
169 error = pm_map_workingset(mi->map, &mi->usage);
171 error = pm_map_usage(mi->map, &mi->usage);
174 fprintf(stderr, "error getting usage for map.\n");
182 error = pm_map_pagemap(mi->map, &pagemap, &num_pages);
185 fprintf(stderr, "error getting pagemap for map.\n");
192 address = pm_map_start(mi->map) + j * ker->pagesize;
253 pm_map_name(mi->map)
265 pm_map_name(mi->map)
[all...]
/system/media/mca/filterpacks/base/native/
H A Dtime_util.cpp22 #include <map>
74 static std::map<std::string, NamedStopWatch*> watches;
/system/media/mca/filterfw/
H A DAndroid.mk45 # to add this library to the prelink map and set this to true. However,
/system/media/mca/filterfw/jni/
H A DAndroid.mk45 # to add this library to the prelink map and set this to true. However,

Completed in 213 milliseconds

12