Home
last modified time | relevance | path

Searched refs:context (Results 1 – 23 of 23) sorted by relevance

/system/core/libusbhost/
Dusbhost.c138 static void watch_existing_subdirs(struct usb_host_context *context, in watch_existing_subdirs() argument
144 wds[0] = inotify_add_watch(context->fd, USB_FS_DIR, IN_CREATE | IN_DELETE); in watch_existing_subdirs()
151 ret = inotify_add_watch(context->fd, path, IN_CREATE | IN_DELETE); in watch_existing_subdirs()
159 struct usb_host_context *context = calloc(1, sizeof(struct usb_host_context)); in usb_host_init() local
160 if (!context) { in usb_host_init()
164 context->fd = inotify_init(); in usb_host_init()
165 if (context->fd < 0) { in usb_host_init()
167 free(context); in usb_host_init()
170 return context; in usb_host_init()
173 void usb_host_cleanup(struct usb_host_context *context) in usb_host_cleanup() argument
[all …]
/system/netd/server/
DMDnsSdListener.cpp69 Context *context = new Context(requestId, mListener); in discover() local
70 DNSServiceRef *ref = mMonitor->allocateServiceRef(requestId, context); in discover()
82 domain, &MDnsSdListenerDiscoverCallback, context); in discover()
99 MDnsSdListener::Context *context = reinterpret_cast<MDnsSdListener::Context *>(inContext); in MDnsSdListenerDiscoverCallback() local
101 int refNumber = context->mRefNumber; in MDnsSdListenerDiscoverCallback()
105 context->mListener->sendBroadcast(ResponseCode::ServiceDiscoveryFailed, msg, false); in MDnsSdListenerDiscoverCallback()
125 context->mListener->sendBroadcast(respCode, msg, false); in MDnsSdListenerDiscoverCallback()
161 Context *context = new Context(requestId, mListener); in serviceRegister() local
162 DNSServiceRef *ref = mMonitor->allocateServiceRef(requestId, context); in serviceRegister()
174 context); in serviceRegister()
[all …]
DMDnsSdListener.h89 Element(int id, Context *context) in Element() argument
90 : mId(id), mNext(NULL), mContext(context), mReady(0) {} in Element()
/system/core/include/cutils/
Dhashmap.h83 void* (*initialValue)(void* key, void* context), void* context);
101 bool (*callback)(void* key, void* value, void* context),
102 void* context);
/system/extras/ext4_utils/
Dsha1.c198 void SHA1Init(context) in SHA1Init() argument
199 SHA1_CTX *context; in SHA1Init()
202 assert(context != 0);
205 context->state[0] = 0x67452301;
206 context->state[1] = 0xEFCDAB89;
207 context->state[2] = 0x98BADCFE;
208 context->state[3] = 0x10325476;
209 context->state[4] = 0xC3D2E1F0;
210 context->count[0] = context->count[1] = 0;
217 void SHA1Update(context, data, len) in SHA1Update() argument
[all …]
/system/core/include/usbhost/
Dusbhost.h73 void usb_host_cleanup(struct usb_host_context *context);
76 int usb_host_get_fd(struct usb_host_context *context);
79 int usb_host_load(struct usb_host_context *context,
86 int usb_host_read_event(struct usb_host_context *context);
97 void usb_host_run(struct usb_host_context *context,
/system/extras/tests/memtest/
Dthumb.cpp8 extern "C" _Unwind_Reason_Code trace_function(_Unwind_Context *context, void *arg) in trace_function() argument
11 printf("0x%x\n", _Unwind_GetIP(context)); in trace_function()
/system/core/libcutils/
Ddir_hash.c41 SHA1_CTX context; in get_file_hash() local
65 SHA1Init(&context); in get_file_hash()
66 SHA1Update(&context, (unsigned char *) buf, len); in get_file_hash()
67 SHA1Final(md, &context); in get_file_hash()
77 SHA1Init(&context); in get_file_hash()
80 SHA1Update(&context, (unsigned char *) buf, len); in get_file_hash()
89 SHA1Final(md, &context); in get_file_hash()
Dhashmap.c252 void* (*initialValue)(void* key, void* context), void* context) { in hashmapMemoize() argument
267 void* value = initialValue(key, context); in hashmapMemoize()
307 bool (*callback)(void* key, void* value, void* context), in hashmapForEach() argument
308 void* context) { in hashmapForEach()
314 if (!callback(entry->key, entry->value, context)) { in hashmapForEach()
Dstr_parms.c79 static bool remove_pair(void *key, void *value, void *context) in remove_pair() argument
81 struct remove_ctxt *ctxt = context; in remove_pair()
316 static bool combine_strings(void *key, void *value, void *context) in combine_strings() argument
318 char **old_str = context; in combine_strings()
350 static bool dump_entry(void *key, void *value, void *context UNUSED) in dump_entry()
/system/core/fastbootd/
Dnetwork_discovery.c50 const char *name, const char *regtype, const char *domain, void *context) in reg_reply() argument
54 (void)context; // Unused in reg_reply()
/system/core/init/
Dueventd_parser.c131 struct ueventd_subsystem *s = state->context; in parse_line_subsystem()
170 state->context = parse_subsystem(state, nargs, args); in parse_new_section()
171 if (state->context) { in parse_new_section()
Dparser.h30 void *context; member
Dreadme.txt73 socket <name> <type> <perm> [ <user> [ <group> [ <context> ] ] ]
77 Context is the SELinux security context for the socket.
78 It defaults to the service security context, as specified by seclabel or
79 computed based on the service executable file security context.
98 based on their file security context.
99 If not specified and no transition is defined in policy, defaults to the init context.
206 Restore the file named by <path> to the security context specified
218 Set the current process security context to the specified string.
219 This is typically only used from early-init to set the init context
Dinit_parser.c327 state->context = parse_service(state, nargs, args); in parse_new_section()
328 if (state->context) { in parse_new_section()
334 state->context = parse_action(state, nargs, args); in parse_new_section()
335 if (state->context) { in parse_new_section()
653 struct service *svc = state->context; in parse_line_service()
849 struct action *act = state->context; in parse_line_action()
/system/core/libbacktrace/
DUnwindCurrent.h38 void GetUnwContextFromUcontext(const ucontext_t* context);
/system/core/include/pixelflinger/
Dpixelflinger.h315 ssize_t gglInit(GGLContext** context);
316 ssize_t gglUninit(GGLContext* context);
/system/core/include/backtrace/
DBacktrace.h75 virtual bool Unwind(size_t num_ignore_frames, ucontext_t* context = NULL);
/system/core/logcat/
Devent.logtags75 50000 menu_item_selected (Menu type where 0 is options and 1 is context|1|5),(Menu item title|3)
76 50001 menu_opened (Menu type where 0 is options and 1 is context|1|5)
/system/core/include/private/pixelflinger/
Dggl_context.h555 void ggl_init_context(context_t* context);
556 void ggl_uninit_context(context_t* context);
/system/core/sdcard/
Dsdcard.c1616 static bool remove_str_to_int(void *key, void *value, void *context) { in remove_str_to_int() argument
1617 Hashmap* map = context; in remove_str_to_int()
1623 static bool remove_int_to_null(void *key, void *value, void *context) { in remove_int_to_null() argument
1624 Hashmap* map = context; in remove_int_to_null()
/system/core/libpixelflinger/
Dpixelflinger.cpp822 ssize_t gglInit(GGLContext** context) in gglInit() argument
830 *context = (GGLContext*)c; in gglInit()
/system/core/rootdir/
Dinit.rc20 # Set the security context for the init process.
24 # Set the security context of /adb_keys if present.