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

/system/core/include/cutils/
H A Dtrace.h199 * the event, and the cookie provides a unique identifier for distinguishing
200 * simultaneous events. The name and cookie used to begin an event must be
203 #define ATRACE_ASYNC_BEGIN(name, cookie) \
204 atrace_async_begin(ATRACE_TAG, name, cookie)
206 int32_t cookie)
210 atrace_async_begin_body(name, cookie);
218 #define ATRACE_ASYNC_END(name, cookie) atrace_async_end(ATRACE_TAG, name, cookie)
219 static inline void atrace_async_end(uint64_t tag, const char* name, int32_t cookie) argument
223 atrace_async_end_body(name, cookie);
205 atrace_async_begin(uint64_t tag, const char* name, int32_t cookie) argument
[all...]
H A Dproperties.h110 int property_list(void (*propfn)(const char *key, const char *value, void *cookie), void *cookie);
/system/core/libcutils/
H A Dtrace-host.c32 void atrace_async_begin_body(const char* name __unused, int32_t cookie __unused) { }
33 void atrace_async_end_body(const char* name __unused, int32_t cookie __unused) { }
H A Dproperties.c136 void (*propfn)(const char *key, const char *value, void *cookie);
137 void *cookie; member in struct:property_list_callback_data
140 static void property_list_callback(const prop_info *pi, void *cookie) argument
144 struct property_list_callback_data *data = cookie;
147 data->propfn(name, value, data->cookie);
151 void (*propfn)(const char *key, const char *value, void *cookie),
152 void *cookie)
154 struct property_list_callback_data data = { propfn, cookie };
150 property_list( void (*propfn)(const char *key, const char *value, void *cookie), void *cookie) argument
H A Dtrace-dev.c215 void atrace_async_begin_body(const char* name, int32_t cookie) argument
217 WRITE_MSG("S|%d|", "|%" PRId32, getpid(), name, cookie);
220 void atrace_async_end_body(const char* name, int32_t cookie) argument
222 WRITE_MSG("F|%d|", "|%" PRId32, getpid(), name, cookie);
H A Dopen_memstream.c121 static int write_memstream(void* cookie, const char* buf, int size) argument
123 MemStream* stream = (MemStream*) cookie;
162 static fpos_t seek_memstream(void* cookie, fpos_t offset, int whence) argument
164 MemStream* stream = (MemStream*) cookie;
214 static int close_memstream(void* cookie) argument
216 free(cookie);
/system/extras/simpleperf/
H A Dgtest_main.cpp60 void* cookie; local
61 int ret = StartIteration(handle, &cookie, nullptr, nullptr);
66 std::unique_ptr<void, decltype(&EndIteration)> guard(cookie, EndIteration);
69 while (Next(cookie, &entry, &name) == 0) {
/system/core/adb/
H A Dset_verity_enable_state_service.cpp91 void set_verity_enabled_state_service(int fd, void* cookie) argument
93 bool enable = (cookie != NULL);
H A Dservices.cpp56 void (*func)(int fd, void *cookie);
58 void *cookie; member in struct:stinfo
64 sti->func(sti->fd, sti->cookie);
70 void restart_root_service(int fd, void *cookie) { argument
89 void restart_unroot_service(int fd, void *cookie) { argument
100 void restart_tcp_service(int fd, void *cookie) { argument
101 int port = (int) (uintptr_t) cookie;
115 void restart_usb_service(int fd, void *cookie) { argument
249 static int create_service_thread(void (*func)(int, void *), void *cookie) argument
263 sti->cookie
[all...]
H A Dfile_sync_service.h66 void file_sync_service(int fd, void* cookie);
H A Dadb.h182 void framebuffer_service(int fd, void *cookie);
183 void set_verity_enabled_state_service(int fd, void* cookie);
H A Dremount_service.cpp109 void remount_service(int fd, void* cookie) { argument
H A Dframebuffer_service.cpp57 void framebuffer_service(int fd, void *cookie) argument
H A Dfile_sync_service.cpp430 void file_sync_service(int fd, void* cookie) { argument
/system/core/include/ziparchive/
H A Dzip_archive.h165 * in the central directory but is stable for a given zip file. |cookie| will
166 * contain the value of an opaque cookie which can be used to make one or more
185 int32_t Next(void* cookie, ZipEntry* data, ZipString* name);
191 void EndIteration(void* cookie);
/system/extras/libfec/
H A Dfec_process.cpp31 static void * __process(void *cookie) argument
33 process_info *p = static_cast<process_info *>(cookie);
/system/extras/tests/net_test/
H A 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
146 # Check that we can find a diag_msg once we know the cookie.
148 req.id.cookie = cookie
311 # Get the cookie wrong and ensure that we get an error and the socket
313 real_cookie = diag_msg.id.cookie
314 diag_msg.id.cookie
[all...]
/system/extras/sound/
H A Dplaywav.c39 int (*fill)(void *buf, unsigned sz, void *cookie),
40 void *cookie)
73 if (fill(buf, sz, cookie))
87 if (fill(buf, sz, cookie))
127 int fill_buffer(void *buf, unsigned sz, void *cookie) argument
38 pcm_play(unsigned rate, unsigned channels, int (*fill)(void *buf, unsigned sz, void *cookie), void *cookie) argument
/system/core/adf/libadf/
H A Dadf.c498 bool (*filter)(struct adf_overlay_engine_data *data, void *cookie),
499 void *cookie)
519 if (!filter(&data, cookie))
549 struct adf_overlay_engine_data *data, void *cookie)
551 struct format_filter_cookie *c = cookie;
566 struct format_filter_cookie cookie = { formats, n_formats }; local
568 adf_overlay_engine_format_filter, &cookie);
496 adf_overlay_engines_filter(struct adf_device *dev, adf_id_t *in, size_t n_in, adf_id_t **out, bool (*filter)(struct adf_overlay_engine_data *data, void *cookie), void *cookie) argument
548 adf_overlay_engine_format_filter( struct adf_overlay_engine_data *data, void *cookie) argument
/system/core/libziparchive/
H A Dzip_archive.cc690 IterationHandle* cookie = new IterationHandle(optional_prefix, optional_suffix); local
691 cookie->position = 0;
692 cookie->archive = archive;
694 *cookie_ptr = cookie ;
698 void EndIteration(void* cookie) { argument
699 delete reinterpret_cast<IterationHandle*>(cookie);
721 int32_t Next(void* cookie, ZipEntry* data, ZipString* name) { argument
722 IterationHandle* handle = reinterpret_cast<IterationHandle*>(cookie);
/system/connectivity/dhcp_client/
H A Ddhcp_message.cc64 uint32_t cookie; member in struct:dhcp_client::__anon1330::RawDHCPMessage
132 message->cookie_ = ntohl(raw_message->cookie);
268 LOG(ERROR) << "DHCP message cookie does not match";
287 raw_message.cookie = htonl(cookie_);
/system/extras/verity/fec/
H A Dimage.cpp531 static void * process(void *cookie) argument
533 image_proc_ctx *ctx = (image_proc_ctx *)cookie;

Completed in 7388 milliseconds