/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(Looper_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, Looper_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/logd/ |
H A D | LogReader.cpp | 123 static bool callback(const LogBufferElement *element, void *obj) { function in class:LogFindStart 147 logFindStart.callback, &logFindStart);
|
/system/core/fastboot/ |
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 | 71 int recognized_device(usb_handle* handle, ifc_match_func callback); 278 int recognized_device(usb_handle* handle, ifc_match_func callback) { argument 322 if (callback(&info) == 0) { 329 static usb_handle *find_usb_device(ifc_match_func callback) { argument 359 if (recognized_device(handle, callback)) { 376 usb_handle *usb_open(ifc_match_func callback) argument 378 return find_usb_device(callback);
|
H A D | usb_linux.c | 115 ifc_match_func callback, 231 if(callback(&info) == 0) { 301 static usb_handle *find_usb_device(const char *base, ifc_match_func callback) argument 334 if(filter_usb_device(de->d_name, desc, n, writable, callback, 465 usb_handle *usb_open(ifc_match_func callback) argument 467 return find_usb_device("/sys/bus/usb/devices", callback); 113 filter_usb_device(char* sysfs_name, char *ptr, int len, int writable, ifc_match_func callback, int *ept_in_id, int *ept_out_id, int *ifc_id) argument
|
/system/core/include/utils/ |
H A D | Looper.h | 36 * For callback-based event loops, this is the prototype of the function 43 * to have this file descriptor and callback unregistered from the looper. 96 * A looper callback. 110 * to have this file descriptor and callback unregistered from the looper. 123 SimpleLooperCallback(Looper_callbackFunc callback); 214 * Looper_addFd() that do not have a callback (that is provide NULL 215 * for the callback). In this case the caller of Looper_pollOnce() 227 * pollOnce() is prepared to handle callback-less events itself. 256 * and it has no callback function (requiring the caller here to handle it). 270 * data has been consumed or a file descriptor is available with no callback 422 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);
|