/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 | 207 * the event, and the cookie provides a unique identifier for distinguishing 208 * simultaneous events. The name and cookie used to begin an event must be 211 #define ATRACE_ASYNC_BEGIN(name, cookie) \ 212 atrace_async_begin(ATRACE_TAG, name, cookie) 214 int32_t cookie) 221 name, cookie); 230 #define ATRACE_ASYNC_END(name, cookie) atrace_async_end(ATRACE_TAG, name, cookie) 232 int32_t cookie) 239 name, cookie); 213 atrace_async_begin(uint64_t tag, const char* name, int32_t cookie) argument 231 atrace_async_end(uint64_t tag, const char* name, int32_t cookie) argument [all...] |
H A D | properties.h | 51 int property_list(void (*propfn)(const char *key, const char *value, void *cookie), void *cookie);
|
/system/core/include/zipfile/ |
H A D | zipfile.h | 52 zipentry_t iterate_zipfile(zipfile_t file, void** cookie);
|
/system/core/toolbox/ |
H A D | watchprops.c | 47 static void populate_watchlist(const prop_info *pi, void *cookie) argument 49 Hashmap *watchlist = cookie; 57 static void update_watchlist(const prop_info *pi, void *cookie) argument 59 Hashmap *watchlist = cookie;
|
H A D | notify.c | 98 printf("%s: %08x %08x \"%s\"\n", file_names[event->wd + id_offset], event->mask, event->cookie, event->len ? event->name : "");
|
/system/core/libcutils/ |
H A D | properties.c | 57 void (*propfn)(const char *key, const char *value, void *cookie); 58 void *cookie; member in struct:property_list_callback_data 61 static void property_list_callback(const prop_info *pi, void *cookie) argument 65 struct property_list_callback_data *data = cookie; 68 data->propfn(name, value, data->cookie); 72 void (*propfn)(const char *key, const char *value, void *cookie), 73 void *cookie) 75 struct property_list_callback_data data = { propfn, cookie }; 250 int property_list(void (*propfn)(const char *key, const char *value, void *cookie), argument 251 void *cookie) 71 property_list( void (*propfn)(const char *key, const char *value, void *cookie), void *cookie) argument 333 property_list(void (*propfn)(const char *key, const char *value, void *cookie), void *cookie) argument [all...] |
H A D | open_memstream.c | 123 static int write_memstream(void* cookie, const char* buf, int size) argument 125 MemStream* stream = (MemStream*) cookie; 164 static fpos_t seek_memstream(void* cookie, fpos_t offset, int whence) argument 166 MemStream* stream = (MemStream*) cookie; 216 static int close_memstream(void* cookie) argument 218 free(cookie);
|
/system/core/adb/ |
H A D | services.c | 44 void (*func)(int fd, void *cookie); 46 void *cookie; member in struct:stinfo 53 sti->func(sti->fd, sti->cookie); 60 void restart_root_service(int fd, void *cookie) argument 85 void restart_tcp_service(int fd, void *cookie) argument 89 int port = (int)cookie; 105 void restart_usb_service(int fd, void *cookie) argument 146 static int create_service_thread(void (*func)(int, void *), void *cookie) argument 160 sti->cookie = cookie; 257 subproc_waiter_service(int fd, void *cookie) argument 405 wait_for_state(int fd, void* cookie) argument 526 connect_service(int fd, void* cookie) argument [all...] |
H A D | log_service.c | 33 void log_service(int fd, void *cookie) argument 36 char * log_filepath = cookie;
|
H A D | file_sync_service.h | 79 void file_sync_service(int fd, void *cookie);
|
H A D | remount_service.c | 106 void remount_service(int fd, void *cookie) argument
|
H A D | adb.h | 326 void framebuffer_service(int fd, void *cookie); 327 void log_service(int fd, void *cookie); 328 void remount_service(int fd, void *cookie);
|
H A D | framebuffer_service.c | 55 void framebuffer_service(int fd, void *cookie) argument
|
H A D | file_sync_client.c | 75 typedef 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) argument 108 buf, cookie); local 536 const char *name, void *cookie) 811 const char *name, void *cookie) 813 sync_ls_build_list_cb_args *args = (sync_ls_build_list_cb_args *)cookie; 535 do_sync_ls_cb(unsigned mode, unsigned size, unsigned time, const char *name, void *cookie) argument 810 sync_ls_build_list_cb(unsigned mode, unsigned size, unsigned time, const char *name, void *cookie) argument
|
H A D | file_sync_service.c | 359 void file_sync_service(int fd, void *cookie) argument
|
/system/core/libzipfile/ |
H A D | zipfile.c | 148 iterate_zipfile(zipfile_t file, void** cookie) argument 150 Zipentry* entry = (Zipentry*)*cookie; 153 *cookie = zip->entries; 154 return *cookie; 157 *cookie = entry;
|
/system/extras/sound/ |
H A D | playwav.c | 37 int (*fill)(void *buf, unsigned sz, void *cookie), 38 void *cookie) 71 if (fill(buf, sz, cookie)) 85 if (fill(buf, sz, cookie)) 125 int fill_buffer(void *buf, unsigned sz, void *cookie) argument 36 pcm_play(unsigned rate, unsigned channels, int (*fill)(void *buf, unsigned sz, void *cookie), 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/libutils/tests/ |
H A D | BasicHashtable_test.cpp | 109 uint32_t cookie = h.cookieAt(index); local 110 *collision = cookie & BasicHashtable<TKey, TEntry>::Bucket::COLLISION; 111 *present = cookie & BasicHashtable<TKey, TEntry>::Bucket::PRESENT; 112 *hash = cookie & BasicHashtable<TKey, TEntry>::Bucket::HASH_MASK;
|