Home
last modified time | relevance | path

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

/system/core/libutils/
DBasicHashtable.cpp89 bucket.cookie = 0; in clear()
105 if (bucket.cookie & Bucket::PRESENT) { in next()
124 if (bucket.cookie & Bucket::PRESENT) { in find()
129 if (!(bucket.cookie & Bucket::COLLISION)) { in find()
140 if (bucket.cookie & Bucket::PRESENT) { in find()
141 if ((bucket.cookie & Bucket::HASH_MASK) == hash in find()
146 if (!(bucket.cookie & Bucket::COLLISION)) { in find()
163 if (bucket->cookie & Bucket::PRESENT) { in add()
166 bucket->cookie |= Bucket::COLLISION; in add()
169 } while (bucket->cookie & Bucket::PRESENT); in add()
[all …]
/system/core/include/cutils/
Dtrace.h211 #define ATRACE_ASYNC_BEGIN(name, cookie) \ argument
212 atrace_async_begin(ATRACE_TAG, name, cookie)
214 int32_t cookie) in atrace_async_begin() argument
221 name, cookie); in atrace_async_begin()
230 #define ATRACE_ASYNC_END(name, cookie) atrace_async_end(ATRACE_TAG, name, cookie) argument
232 int32_t cookie) in atrace_async_end() argument
239 name, cookie); in atrace_async_end()
286 #define ATRACE_ASYNC_BEGIN(name, cookie)
287 #define ATRACE_ASYNC_END(name, cookie)
Dproperties.h51 int property_list(void (*propfn)(const char *key, const char *value, void *cookie), void *cookie); …
/system/core/libcutils/
Dproperties.c57 void (*propfn)(const char *key, const char *value, void *cookie);
58 void *cookie; member
61 static void property_list_callback(const prop_info *pi, void *cookie) in property_list_callback() argument
65 struct property_list_callback_data *data = cookie; in property_list_callback()
68 data->propfn(name, value, data->cookie); in property_list_callback()
72 void (*propfn)(const char *key, const char *value, void *cookie), in property_list() argument
73 void *cookie) in property_list()
75 struct property_list_callback_data data = { propfn, cookie }; in property_list()
250 int property_list(void (*propfn)(const char *key, const char *value, void *cookie), in property_list() argument
251 void *cookie) in property_list()
[all …]
Dopen_memstream.c123 static int write_memstream(void* cookie, const char* buf, int size) in write_memstream() argument
125 MemStream* stream = (MemStream*) cookie; in write_memstream()
164 static fpos_t seek_memstream(void* cookie, fpos_t offset, int whence) in seek_memstream() argument
166 MemStream* stream = (MemStream*) cookie; in seek_memstream()
216 static int close_memstream(void* cookie) in close_memstream() argument
218 free(cookie); in close_memstream()
/system/core/adb/
Dservices.c44 void (*func)(int fd, void *cookie);
46 void *cookie; member
53 sti->func(sti->fd, sti->cookie); in service_bootstrap_func()
60 void restart_root_service(int fd, void *cookie) in restart_root_service() argument
85 void restart_tcp_service(int fd, void *cookie) in restart_tcp_service() argument
89 int port = (int)cookie; in restart_tcp_service()
105 void restart_usb_service(int fd, void *cookie) in restart_usb_service() argument
146 static int create_service_thread(void (*func)(int, void *), void *cookie) in create_service_thread() argument
160 sti->cookie = cookie; in create_service_thread()
257 static void subproc_waiter_service(int fd, void *cookie) in subproc_waiter_service() argument
[all …]
Dlog_service.c33 void log_service(int fd, void *cookie) in log_service() argument
36 char * log_filepath = cookie; in log_service()
Dadb.h326 void framebuffer_service(int fd, void *cookie);
327 void log_service(int fd, void *cookie);
328 void remount_service(int fd, void *cookie);
Dfile_sync_service.h79 void file_sync_service(int fd, void *cookie);
Dremount_service.c106 void remount_service(int fd, void *cookie) in remount_service() argument
Dfile_sync_client.c75 …ef void (*sync_ls_cb)(unsigned mode, unsigned size, unsigned time, const char *name, void *cookie);
77 int sync_ls(int fd, const char *path, sync_ls_cb func, void *cookie) in sync_ls() argument
108 buf, cookie); in sync_ls()
536 const char *name, void *cookie) in do_sync_ls_cb() argument
811 const char *name, void *cookie) in sync_ls_build_list_cb() argument
813 sync_ls_build_list_cb_args *args = (sync_ls_build_list_cb_args *)cookie; in sync_ls_build_list_cb()
Dframebuffer_service.c55 void framebuffer_service(int fd, void *cookie) in framebuffer_service() argument
Dfile_sync_service.c359 void file_sync_service(int fd, void *cookie) argument
/system/core/toolbox/
Dwatchprops.c47 static void populate_watchlist(const prop_info *pi, void *cookie) in populate_watchlist() argument
49 Hashmap *watchlist = cookie; in populate_watchlist()
57 static void update_watchlist(const prop_info *pi, void *cookie) in update_watchlist() argument
59 Hashmap *watchlist = cookie; in update_watchlist()
Dnotify.c98 …x %08x \"%s\"\n", file_names[event->wd + id_offset], event->mask, event->cookie, event->len ? even… in notify_main()
/system/core/libzipfile/
Dzipfile.c148 iterate_zipfile(zipfile_t file, void** cookie) in iterate_zipfile() argument
150 Zipentry* entry = (Zipentry*)*cookie; in iterate_zipfile()
153 *cookie = zip->entries; in iterate_zipfile()
154 return *cookie; in iterate_zipfile()
157 *cookie = entry; in iterate_zipfile()
/system/extras/sound/
Dplaywav.c37 int (*fill)(void *buf, unsigned sz, void *cookie), in pcm_play() argument
38 void *cookie) in pcm_play()
71 if (fill(buf, sz, cookie)) in pcm_play()
85 if (fill(buf, sz, cookie)) in pcm_play()
125 int fill_buffer(void *buf, unsigned sz, void *cookie) in fill_buffer() argument
/system/core/include/zipfile/
Dzipfile.h52 zipentry_t iterate_zipfile(zipfile_t file, void** cookie);
/system/core/include/utils/
DBasicHashtable.h46 uint32_t cookie; member
357 return bucketAt(mBuckets, index).cookie; in cookieAt()
/system/core/libutils/tests/
DBasicHashtable_test.cpp109 uint32_t cookie = h.cookieAt(index); in cookieAt() local
110 *collision = cookie & BasicHashtable<TKey, TEntry>::Bucket::COLLISION; in cookieAt()
111 *present = cookie & BasicHashtable<TKey, TEntry>::Bucket::PRESENT; in cookieAt()
112 *hash = cookie & BasicHashtable<TKey, TEntry>::Bucket::HASH_MASK; in cookieAt()