Searched refs:callback (Results 1 - 7 of 7) sorted by relevance
/system/core/fastboot/ |
H A D | usb.h | 61 usb_handle *usb_open(ifc_match_func callback);
|
H A D | usb_windows.c | 70 int recognized_device(usb_handle* handle, ifc_match_func callback); 272 int recognized_device(usb_handle* handle, ifc_match_func callback) { argument 316 if (callback(&info) == 0) { 323 static usb_handle *find_usb_device(ifc_match_func callback) { argument 353 if (recognized_device(handle, callback)) { 370 usb_handle *usb_open(ifc_match_func callback) argument 372 return find_usb_device(callback);
|
H A D | usb_osx.c | 56 ifc_match_func callback; member in struct:usb_handle 220 if (handle->callback(&handle->info) == 0) { 381 static int init_usb(ifc_match_func callback, usb_handle **handle) { argument 389 h.callback = callback; 454 usb_handle *usb_open(ifc_match_func callback) { argument 457 if (init_usb(callback, &handle) < 0) {
|
H A D | usb_linux.c | 99 ifc_match_func callback, 233 if(callback(&info) == 0) { 244 static usb_handle *find_usb_device(const char *base, ifc_match_func callback) argument 285 if(filter_usb_device(fd, desc, n, writable, callback, 432 usb_handle *usb_open(ifc_match_func callback) argument 434 return find_usb_device("/dev/bus/usb", callback); 98 filter_usb_device(int fd, char *ptr, int len, int writable, ifc_match_func callback, int *ept_in_id, int *ept_out_id, int *ifc_id) argument
|
/system/core/libcutils/ |
H A D | selector.c | 127 * Adds an fd to the given set if the callback is non-null. Returns true 131 void (*callback)(SelectableFd*), fd_set* fdSet) { 132 if (callback != NULL) { 198 * Invokes a callback if the callback is non-null and the fd is in the given 202 void (*callback)(SelectableFd*), fd_set* fdSet) { 203 if (callback != NULL && !selectableFd->remove && 206 callback(selectableFd); 130 maybeAdd(SelectableFd* selectableFd, void (*callback)(SelectableFd*), fd_set* fdSet) argument 201 maybeInvoke(SelectableFd* selectableFd, void (*callback)(SelectableFd*), fd_set* fdSet) argument
|
H A D | hashmap.c | 307 bool (*callback)(void* key, void* value, void* context), 314 if (!callback(entry->key, entry->value, context)) {
|
/system/core/include/cutils/ |
H A D | hashmap.h | 77 * value and creates an entry using the given callback. 79 * If memory allocation fails, the callback is not called, this function 97 * Invokes the given callback on each entry in the map. Stops iterating if 98 * the callback returns false. 101 bool (*callback)(void* key, void* value, void* context),
|
Completed in 403 milliseconds