Home
last modified time | relevance | path

Searched refs:cookie (Results 1 – 22 of 22) sorted by relevance

/system/core/include/cutils/
Dtrace.h203 #define ATRACE_ASYNC_BEGIN(name, cookie) \ argument
204 atrace_async_begin(ATRACE_TAG, name, cookie)
206 int32_t cookie) in atrace_async_begin() argument
210 atrace_async_begin_body(name, cookie); in atrace_async_begin()
218 #define ATRACE_ASYNC_END(name, cookie) atrace_async_end(ATRACE_TAG, name, cookie) argument
219 static inline void atrace_async_end(uint64_t tag, const char* name, int32_t cookie) in atrace_async_end() argument
223 atrace_async_end_body(name, cookie); in atrace_async_end()
Dproperties.h110 int property_list(void (*propfn)(const char *key, const char *value, void *cookie), void *cookie); …
/system/core/libcutils/
Dproperties.c136 void (*propfn)(const char *key, const char *value, void *cookie);
137 void *cookie; member
140 static void property_list_callback(const prop_info *pi, void *cookie) in property_list_callback() argument
144 struct property_list_callback_data *data = cookie; in property_list_callback()
147 data->propfn(name, value, data->cookie); in property_list_callback()
151 void (*propfn)(const char *key, const char *value, void *cookie), in property_list() argument
152 void *cookie) in property_list()
154 struct property_list_callback_data data = { propfn, cookie }; in property_list()
Dopen_memstream.c121 static int write_memstream(void* cookie, const char* buf, int size) in write_memstream() argument
123 MemStream* stream = (MemStream*) cookie; in write_memstream()
162 static fpos_t seek_memstream(void* cookie, fpos_t offset, int whence) in seek_memstream() argument
164 MemStream* stream = (MemStream*) cookie; in seek_memstream()
214 static int close_memstream(void* cookie) in close_memstream() argument
216 free(cookie); in close_memstream()
Dtrace-host.c32 void atrace_async_begin_body(const char* name __unused, int32_t cookie __unused) { } in atrace_async_begin_body()
33 void atrace_async_end_body(const char* name __unused, int32_t cookie __unused) { } in atrace_async_end_body()
Dtrace-dev.c215 void atrace_async_begin_body(const char* name, int32_t cookie) in atrace_async_begin_body() argument
217 WRITE_MSG("S|%d|", "|%" PRId32, getpid(), name, cookie); in atrace_async_begin_body()
220 void atrace_async_end_body(const char* name, int32_t cookie) in atrace_async_end_body() argument
222 WRITE_MSG("F|%d|", "|%" PRId32, getpid(), name, cookie); in atrace_async_end_body()
/system/core/adb/
Dservices.cpp56 void (*func)(int fd, void *cookie);
58 void *cookie; member
64 sti->func(sti->fd, sti->cookie); in service_bootstrap_func()
70 void restart_root_service(int fd, void *cookie) { in restart_root_service() argument
89 void restart_unroot_service(int fd, void *cookie) { in restart_unroot_service() argument
100 void restart_tcp_service(int fd, void *cookie) { in restart_tcp_service() argument
101 int port = (int) (uintptr_t) cookie; in restart_tcp_service()
115 void restart_usb_service(int fd, void *cookie) { in restart_usb_service() argument
249 static int create_service_thread(void (*func)(int, void *), void *cookie) in create_service_thread() argument
263 sti->cookie = cookie; in create_service_thread()
Dset_verity_enable_state_service.cpp91 void set_verity_enabled_state_service(int fd, void* cookie) in set_verity_enabled_state_service() argument
93 bool enable = (cookie != NULL); in set_verity_enabled_state_service()
Dadb.h182 void framebuffer_service(int fd, void *cookie);
183 void set_verity_enabled_state_service(int fd, void* cookie);
Dfile_sync_service.h66 void file_sync_service(int fd, void* cookie);
Dremount_service.cpp109 void remount_service(int fd, void* cookie) { in remount_service() argument
Dframebuffer_service.cpp57 void framebuffer_service(int fd, void *cookie) in framebuffer_service() argument
Dfile_sync_service.cpp430 void file_sync_service(int fd, void* cookie) { in file_sync_service() argument
/system/extras/simpleperf/
Dgtest_main.cpp60 void* cookie; in ExtractTestDataFromElfSection() local
61 int ret = StartIteration(handle, &cookie, nullptr, nullptr); in ExtractTestDataFromElfSection()
66 std::unique_ptr<void, decltype(&EndIteration)> guard(cookie, EndIteration); in ExtractTestDataFromElfSection()
69 while (Next(cookie, &entry, &name) == 0) { in ExtractTestDataFromElfSection()
/system/extras/sound/
Dplaywav.c39 int (*fill)(void *buf, unsigned sz, void *cookie), in pcm_play() argument
40 void *cookie) in pcm_play()
73 if (fill(buf, sz, cookie)) in pcm_play()
87 if (fill(buf, sz, cookie)) in pcm_play()
127 int fill_buffer(void *buf, unsigned sz, void *cookie) in fill_buffer() argument
/system/extras/tests/net_test/
Dsock_diag_test.py129 cookies[(addr, sport, dport)] = diag_msg.id.cookie
131 cookies[(addr, sport, dport)] = diag_msg.id.cookie
144 cookie = self.sock_diag.FindSockDiagFromFd(sock).id.cookie
148 req.id.cookie = cookie
313 real_cookie = diag_msg.id.cookie
314 diag_msg.id.cookie = os.urandom(len(real_cookie))
320 req.id.cookie = real_cookie
425 req.id.cookie = "\x00" * 8
/system/core/include/ziparchive/
Dzip_archive.h185 int32_t Next(void* cookie, ZipEntry* data, ZipString* name);
191 void EndIteration(void* cookie);
/system/extras/libfec/
Dfec_process.cpp31 static void * __process(void *cookie) in __process() argument
33 process_info *p = static_cast<process_info *>(cookie); in __process()
/system/core/adf/libadf/
Dadf.c498 bool (*filter)(struct adf_overlay_engine_data *data, void *cookie), in adf_overlay_engines_filter() argument
499 void *cookie) in adf_overlay_engines_filter()
519 if (!filter(&data, cookie)) in adf_overlay_engines_filter()
549 struct adf_overlay_engine_data *data, void *cookie) in adf_overlay_engine_format_filter() argument
551 struct format_filter_cookie *c = cookie; in adf_overlay_engine_format_filter()
566 struct format_filter_cookie cookie = { formats, n_formats }; in adf_overlay_engines_filter_by_format() local
568 adf_overlay_engine_format_filter, &cookie); in adf_overlay_engines_filter_by_format()
/system/core/libziparchive/
Dzip_archive.cc690 IterationHandle* cookie = new IterationHandle(optional_prefix, optional_suffix); in StartIteration() local
691 cookie->position = 0; in StartIteration()
692 cookie->archive = archive; in StartIteration()
694 *cookie_ptr = cookie ; in StartIteration()
698 void EndIteration(void* cookie) { in EndIteration() argument
699 delete reinterpret_cast<IterationHandle*>(cookie); in EndIteration()
721 int32_t Next(void* cookie, ZipEntry* data, ZipString* name) { in Next() argument
722 IterationHandle* handle = reinterpret_cast<IterationHandle*>(cookie); in Next()
/system/connectivity/dhcp_client/
Ddhcp_message.cc64 uint32_t cookie; member
132 message->cookie_ = ntohl(raw_message->cookie); in InitFromBuffer()
287 raw_message.cookie = htonl(cookie_); in Serialize()
/system/extras/verity/fec/
Dimage.cpp531 static void * process(void *cookie) in process() argument
533 image_proc_ctx *ctx = (image_proc_ctx *)cookie; in process()