/system/core/libutils/ |
H A D | BasicHashtable.cpp | 89 bucket.cookie = 0; 105 if (bucket.cookie & Bucket::PRESENT) { 124 if (bucket.cookie & Bucket::PRESENT) { 129 if (!(bucket.cookie & Bucket::COLLISION)) { 140 if (bucket.cookie & Bucket::PRESENT) { 141 if ((bucket.cookie & Bucket::HASH_MASK) == hash 146 if (!(bucket.cookie & Bucket::COLLISION)) { 163 if (bucket->cookie & Bucket::PRESENT) { 166 bucket->cookie |= Bucket::COLLISION; 169 } while (bucket->cookie [all...] |
/system/core/include/cutils/ |
H A D | trace.h | 196 * the event, and the cookie provides a unique identifier for distinguishing 197 * simultaneous events. The name and cookie used to begin an event must be 200 #define ATRACE_ASYNC_BEGIN(name, cookie) \ 201 atrace_async_begin(ATRACE_TAG, name, cookie) 203 int32_t cookie) 207 atrace_async_begin_body(name, cookie); 215 #define ATRACE_ASYNC_END(name, cookie) atrace_async_end(ATRACE_TAG, name, cookie) 216 static inline void atrace_async_end(uint64_t tag, const char* name, int32_t cookie) argument 220 atrace_async_end_body(name, cookie); 202 atrace_async_begin(uint64_t tag, const char* name, int32_t cookie) argument [all...] |
H A D | properties.h | 110 int property_list(void (*propfn)(const char *key, const char *value, void *cookie), void *cookie);
|
/system/core/libcutils/ |
H A D | trace-host.c | 32 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 D | properties.c | 136 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 D | trace-dev.c | 204 void atrace_async_begin_body(const char* name, int32_t cookie) argument 210 getpid(), name, cookie); 214 void atrace_async_end_body(const char* name, int32_t cookie) argument 220 getpid(), name, cookie);
|
H A D | open_memstream.c | 121 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/core/toolbox/ |
H A D | watchprops.c | 46 static void populate_watchlist(const prop_info *pi, void *cookie) argument 48 Hashmap *watchlist = cookie; 56 static void update_watchlist(const prop_info *pi, void *cookie) argument 58 Hashmap *watchlist = cookie;
|
/system/core/adb/ |
H A D | services.cpp | 50 void (*func)(int fd, void *cookie); 52 void *cookie; member in struct:stinfo 59 sti->func(sti->fd, sti->cookie); 66 void restart_root_service(int fd, void *cookie) { argument 85 void restart_unroot_service(int fd, void *cookie) { argument 96 void restart_tcp_service(int fd, void *cookie) { argument 97 int port = (int) (uintptr_t) cookie; 111 void restart_usb_service(int fd, void *cookie) { argument 196 static int create_service_thread(void (*func)(int, void *), void *cookie) argument 210 sti->cookie 350 subproc_waiter_service(int fd, void *cookie) argument 494 char* cookie = strdup(name + 8); local 522 wait_for_state(int fd, void* cookie) argument 630 connect_service(int fd, void* cookie) argument [all...] |
H A D | file_sync_service.h | 69 void file_sync_service(int fd, void *cookie);
|
H A D | set_verity_enable_state_service.cpp | 155 void set_verity_enabled_state_service(int fd, void* cookie) argument 157 bool enable = (cookie != NULL);
|
H A D | remount_service.cpp | 85 void remount_service(int fd, void* cookie) { argument
|
H A D | adb.h | 290 void framebuffer_service(int fd, void *cookie); 291 void set_verity_enabled_state_service(int fd, void* cookie);
|
H A D | framebuffer_service.cpp | 57 void framebuffer_service(int fd, void *cookie) argument
|
H A D | file_sync_client.cpp | 92 typedef void (*sync_ls_cb)(unsigned mode, unsigned size, unsigned time, const char *name, void *cookie); 94 int sync_ls(int fd, const char *path, sync_ls_cb func, void *cookie) argument 125 buf, cookie); local 537 const char *name, void *cookie) 812 const char *name, void *cookie) 814 sync_ls_build_list_cb_args *args = (sync_ls_build_list_cb_args *)cookie; 536 do_sync_ls_cb(unsigned mode, unsigned size, unsigned time, const char *name, void *cookie) argument 811 sync_ls_build_list_cb(unsigned mode, unsigned size, unsigned time, const char *name, void *cookie) argument
|
H A D | file_sync_service.cpp | 414 void file_sync_service(int fd, void *cookie) argument
|
/system/core/include/ziparchive/ |
H A D | zip_archive.h | 145 * in the central directory but is stable for a given zip file. |cookie| will 146 * contain the value of an opaque cookie which can be used to make one or more 166 int32_t Next(void* cookie, ZipEntry* data, ZipEntryName *name); 172 void EndIteration(void* cookie);
|
/system/extras/sound/ |
H A D | playwav.c | 39 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 D | adf.c | 499 bool (*filter)(struct adf_overlay_engine_data *data, void *cookie), 500 void *cookie) 520 if (!filter(&data, cookie)) 550 struct adf_overlay_engine_data *data, void *cookie) 552 struct format_filter_cookie *c = cookie; 567 struct format_filter_cookie cookie = { formats, n_formats }; local 569 adf_overlay_engine_format_filter, &cookie); 497 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 549 adf_overlay_engine_format_filter( struct adf_overlay_engine_data *data, void *cookie) argument
|
/system/core/include/utils/ |
H A D | BasicHashtable.h | 46 uint32_t cookie; member in struct:android::BasicHashtableImpl::Bucket 109 // Copies the content of buckets (copies the cookie and invokes copyBucketEntry 119 // Trim a hash code to 30 bits to match what we store in the bucket's cookie. 357 return bucketAt(mBuckets, index).cookie;
|
/system/core/libziparchive/ |
H A D | zip_archive.cc | 894 IterationHandle* cookie = new IterationHandle(optional_prefix, optional_suffix); local 895 cookie->position = 0; 896 cookie->archive = archive; 898 *cookie_ptr = cookie ; 902 void EndIteration(void* cookie) { argument 903 delete reinterpret_cast<IterationHandle*>(cookie); 925 int32_t Next(void* cookie, ZipEntry* data, ZipEntryName* name) { argument 926 IterationHandle* handle = reinterpret_cast<IterationHandle*>(cookie);
|
/system/core/libutils/tests/ |
H A D | BasicHashtable_test.cpp | 114 uint32_t cookie = h.cookieAt(index); local 115 *collision = cookie & BasicHashtable<TKey, TEntry>::Bucket::COLLISION; 116 *present = cookie & BasicHashtable<TKey, TEntry>::Bucket::PRESENT; 117 *hash = cookie & BasicHashtable<TKey, TEntry>::Bucket::HASH_MASK;
|