Searched defs:callback (Results 1 - 7 of 7) sorted by relevance
/system/core/libutils/ |
H A D | misc.cpp | 41 sysprop_change_callback callback; member in struct:android::sysprop_change_callback_info 57 info.callback = cb; 85 listeners[i].callback();
|
H A D | Looper.cpp | 13 // Debugs callback registration and invocation. 46 SimpleLooperCallback::SimpleLooperCallback(ALooper_callbackFunc callback) : argument 47 mCallback(callback) { 326 ALOGD("%p ~ pollOnce - invoking fd event callback %p: fd=%d, events=0x%x, data=%p", 327 this, response.request.callback.get(), fd, events, data); 329 int callbackResult = response.request.callback->handleEvent(fd, events, data); 333 // Clear the callback reference in the response structure promptly because we 335 response.request.callback.clear(); 404 int Looper::addFd(int fd, int ident, int events, ALooper_callbackFunc callback, void* data) { argument 405 return addFd(fd, ident, events, callback 408 addFd(int fd, int ident, int events, const sp<LooperCallback>& callback, void* data) argument [all...] |
/system/core/fastboot/ |
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
|
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_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);
|
/system/core/include/utils/ |
H A D | Looper.h | 86 * A looper callback. 100 * to have this file descriptor and callback unregistered from the looper. 114 SimpleLooperCallback(ALooper_callbackFunc callback); 138 * pollOnce() is prepared to handle callback-less events itself. 167 * and it has no callback function (requiring the caller here to handle it). 181 * data has been consumed or a file descriptor is available with no callback. 203 * The identifier must be >= 0, or ALOOPER_POLL_CALLBACK if providing a non-NULL callback. 205 * "callback" is the function to call when there is an event on the file descriptor. 206 * "data" is a private data pointer to supply to the callback. 210 * (1) If "callback" i 333 sp<LooperCallback> callback; member in struct:android::Looper::Request [all...] |
/system/core/libutils/tests/ |
H A D | LruCache_test.cpp | 265 EntryRemovedCallback callback; local 266 cache.setOnEntryRemovedListener(&callback); 273 EXPECT_EQ(1, callback.callbackCount); 274 EXPECT_EQ(1, callback.lastKey); 275 EXPECT_STREQ("one", callback.lastValue); 280 EntryRemovedCallback callback; local 281 cache.setOnEntryRemovedListener(&callback); 288 EXPECT_EQ(3, callback.callbackCount);
|
Completed in 69 milliseconds