Searched defs:context (Results 1 - 17 of 17) sorted by relevance

/system/extras/tests/memtest/
H A Dthumb.cpp8 extern "C" _Unwind_Reason_Code trace_function(_Unwind_Context *context, void *arg) argument
11 printf("0x%x\n", _Unwind_GetIP(context));
/system/core/init/
H A Dparser.h30 void *context; member in struct:parse_state
/system/core/libcorkscrew/
H A Dptrace.c102 ptrace_context_t* context = local
104 if (context) {
105 context->map_info_list = load_map_info_list(pid);
106 for (map_info_t* mi = context->map_info_list; mi; mi = mi->next) {
110 return context;
127 void free_ptrace_context(ptrace_context_t* context) { argument
128 for (map_info_t* mi = context->map_info_list; mi; mi = mi->next) {
131 free_map_info_list(context->map_info_list);
132 free(context);
135 void find_symbol_ptrace(const ptrace_context_t* context, argument
[all...]
H A Dbacktrace.c72 static _Unwind_Reason_Code unwind_backtrace_callback(struct _Unwind_Context* context, void* arg) { argument
74 uintptr_t pc = _Unwind_GetIP(context);
226 ssize_t unwind_backtrace_ptrace(pid_t tid, const ptrace_context_t* context, argument
229 return unwind_backtrace_ptrace_arch(tid, context, backtrace, ignore_depth, max_depth);
269 void get_backtrace_symbols_ptrace(const ptrace_context_t* context, argument
279 find_symbol_ptrace(context, frame->absolute_pc, &mi, &s);
/system/core/debuggerd/
H A Dbacktrace.c65 static void dump_thread(log_t* log, pid_t tid, ptrace_context_t* context, bool attached, argument
95 ssize_t frames = unwind_backtrace_ptrace(tid, context, backtrace, 0, STACK_DEPTH);
100 get_backtrace_symbols_ptrace(context, backtrace, frames, backtrace_symbols);
123 ptrace_context_t* context = load_ptrace_context(tid); local
125 dump_thread(&log, tid, context, true, detach_failed, total_sleep_time_usec);
143 dump_thread(&log, new_tid, context, false, detach_failed, total_sleep_time_usec);
149 free_ptrace_context(context);
H A Dtombstone.c233 static void dump_backtrace(const ptrace_context_t* context __attribute((unused)),
240 get_backtrace_symbols_ptrace(context, backtrace, frames, backtrace_symbols);
250 static void dump_stack_segment(const ptrace_context_t* context, log_t* log, pid_t tid, argument
260 find_symbol_ptrace(context, stack_content, &mi, &symbol);
298 static void dump_stack(const ptrace_context_t* context, log_t* log, pid_t tid, bool at_fault, argument
320 dump_stack_segment(context, log, tid, scopeFlags, &sp, STACK_WORDS, -1);
334 dump_stack_segment(context, log, tid, scopeFlags, &sp, STACK_WORDS, i);
345 dump_stack_segment(context, log, tid, scopeFlags, &sp, words, i);
350 static void dump_backtrace_and_stack(const ptrace_context_t* context, log_t* log, pid_t tid, argument
353 ssize_t frames = unwind_backtrace_ptrace(tid, context, backtrac
372 dump_nearby_maps(const ptrace_context_t* context, log_t* log, pid_t tid, bool at_fault) argument
424 dump_thread(const ptrace_context_t* context, log_t* log, pid_t tid, bool at_fault, int* total_sleep_time_usec) argument
437 dump_sibling_thread_report(const ptrace_context_t* context, log_t* log, pid_t pid, pid_t tid, int* total_sleep_time_usec) argument
695 ptrace_context_t* context = load_ptrace_context(tid); local
[all...]
/system/core/libcutils/
H A Ddir_hash.c41 SHA1_CTX context; local
65 SHA1Init(&context);
66 SHA1Update(&context, (unsigned char *) buf, len);
67 SHA1Final(md, &context);
77 SHA1Init(&context);
80 SHA1Update(&context, (unsigned char *) buf, len);
89 SHA1Final(md, &context);
H A Dhashmap.c252 void* (*initialValue)(void* key, void* context), void* context) {
267 void* value = initialValue(key, context);
307 bool (*callback)(void* key, void* value, void* context),
308 void* context) {
314 if (!callback(entry->key, entry->value, context)) {
251 hashmapMemoize(Hashmap* map, void* key, void* (*initialValue)(void* key, void* context), void* context) argument
306 hashmapForEach(Hashmap* map, bool (*callback)(void* key, void* value, void* context), void* context) argument
H A Dstr_parms.c78 static bool remove_pair(void *key, void *value, void *context) argument
80 struct remove_ctxt *ctxt = context;
287 static bool combine_strings(void *key, void *value, void *context) argument
289 char **old_str = context;
321 static bool dump_entry(void *key, void *value, void *context) argument
H A Dmq.c117 /** Optional context. */
118 void* context; member in struct:OutgoingPacket
365 static bool peerProxyRemoveConnection(void* key, void* value, void* context) { argument
366 PeerProxy* deadPeer = (PeerProxy*) context;
1179 void (*free)(void* context);
1180 void* context; member in struct:__anon410
1186 = (SharedBytesFreer*) packet->context;
1187 sharedBytesFreer->free(sharedBytesFreer->context);
1194 * free() with context after the bytes have been sent.
1201 void (*free)(void* context), voi
1200 peerSendSharedBytes(pid_t pid, char* bytes, size_t size, void (*free)(void* context), void* context) argument
[all...]
/system/netd/
H A DMDnsSdListener.h89 Element(int id, Context *context) argument
90 : mId(id), mNext(NULL), mContext(context), mReady(0) {}
H A DMDnsSdListener.cpp69 Context *context = new Context(requestId, mListener); local
70 DNSServiceRef *ref = mMonitor->allocateServiceRef(requestId, context);
82 domain, &MDnsSdListenerDiscoverCallback, context);
99 MDnsSdListener::Context *context = reinterpret_cast<MDnsSdListener::Context *>(inContext); local
101 int refNumber = context->mRefNumber;
105 context->mListener->sendBroadcast(ResponseCode::ServiceDiscoveryFailed, msg, false);
125 context->mListener->sendBroadcast(respCode, msg, false);
161 Context *context = new Context(requestId, mListener); local
162 DNSServiceRef *ref = mMonitor->allocateServiceRef(requestId, context);
174 context);
192 MDnsSdListener::Context *context = reinterpret_cast<MDnsSdListener::Context *>(inContext); local
217 Context *context = new Context(requestId, mListener); local
246 MDnsSdListener::Context *context = reinterpret_cast<MDnsSdListener::Context *>(inContext); local
272 Context *context = new Context(requestId, mListener); local
301 MDnsSdListener::Context *context = reinterpret_cast<MDnsSdListener::Context *>(inContext); local
332 Context *context = new Context(requestId, mListener); local
358 MDnsSdListener::Context *context = reinterpret_cast<MDnsSdListener::Context *>(inContext); local
641 allocateServiceRef(int id, Context *context) argument
[all...]
/system/core/libcorkscrew/arch-mips/
H A Dbacktrace-mips.c49 /* Machine context at the time a signal was raised. */
176 ssize_t unwind_backtrace_ptrace_arch(pid_t tid, const ptrace_context_t* context, argument
195 return unwind_backtrace_common(&memory, context->map_info_list,
/system/core/libcorkscrew/arch-arm/
H A Dbacktrace-arm.c42 * an abstract machine context consisting of just the ARM core registers.
69 /* Machine context at the time a signal was raised. */
585 ssize_t unwind_backtrace_ptrace_arch(pid_t tid, const ptrace_context_t* context, argument
599 return unwind_backtrace_common(&memory, context->map_info_list, &state,
/system/core/libcorkscrew/arch-x86/
H A Dbacktrace-x86.c67 /* Machine context at the time a signal was raised. */
832 ssize_t unwind_backtrace_ptrace_arch(pid_t tid, const ptrace_context_t* context, argument
846 return unwind_backtrace_common(&memory, context->map_info_list,
/system/core/libpixelflinger/
H A Dpixelflinger.cpp822 ssize_t gglInit(GGLContext** context) argument
826 // always align the context on cache lines
830 *context = (GGLContext*)c;
/system/core/libusbhost/
H A Dusbhost.c136 static void watch_existing_subdirs(struct usb_host_context *context, argument
142 wds[0] = inotify_add_watch(context->fd, USB_FS_DIR, IN_CREATE | IN_DELETE);
149 ret = inotify_add_watch(context->fd, path, IN_CREATE | IN_DELETE);
157 struct usb_host_context *context = calloc(1, sizeof(struct usb_host_context)); local
158 if (!context) {
162 context->fd = inotify_init();
163 if (context->fd < 0) {
165 free(context);
168 return context;
171 void usb_host_cleanup(struct usb_host_context *context) argument
177 usb_host_get_fd(struct usb_host_context *context) argument
182 usb_host_load(struct usb_host_context *context, usb_device_added_cb added_cb, usb_device_removed_cb removed_cb, usb_discovery_done_cb discovery_done_cb, void *client_data) argument
220 usb_host_read_event(struct usb_host_context *context) argument
287 usb_host_run(struct usb_host_context *context, usb_device_added_cb added_cb, usb_device_removed_cb removed_cb, usb_discovery_done_cb discovery_done_cb, void *client_data) argument
[all...]

Completed in 98 milliseconds