/system/core/libutils/ |
D | misc.cpp | 41 sysprop_change_callback callback; member 57 info.callback = cb; in add_sysprop_change_callback() 85 listeners[i].callback(); in report_sysprop_change()
|
D | Looper.cpp | 46 SimpleLooperCallback::SimpleLooperCallback(Looper_callbackFunc callback) : in SimpleLooperCallback() argument 47 mCallback(callback) { in SimpleLooperCallback() 327 this, response.request.callback.get(), fd, events, data); in pollInner() 329 int callbackResult = response.request.callback->handleEvent(fd, events, data); in pollInner() 335 response.request.callback.clear(); in pollInner() 404 int Looper::addFd(int fd, int ident, int events, Looper_callbackFunc callback, void* data) { in addFd() argument 405 return addFd(fd, ident, events, callback ? new SimpleLooperCallback(callback) : NULL, data); in addFd() 408 int Looper::addFd(int fd, int ident, int events, const sp<LooperCallback>& callback, void* data) { in addFd() argument 411 events, callback.get(), data); in addFd() 414 if (!callback.get()) { in addFd() [all …]
|
/system/core/libutils/tests/ |
D | LruCache_test.cpp | 265 EntryRemovedCallback callback; in TEST_F() local 266 cache.setOnEntryRemovedListener(&callback); in TEST_F() 273 EXPECT_EQ(1, callback.callbackCount); in TEST_F() 274 EXPECT_EQ(1, callback.lastKey); in TEST_F() 275 EXPECT_STREQ("one", callback.lastValue); in TEST_F() 280 EntryRemovedCallback callback; in TEST_F() local 281 cache.setOnEntryRemovedListener(&callback); in TEST_F() 288 EXPECT_EQ(3, callback.callbackCount); in TEST_F()
|
/system/core/fastboot/ |
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) { in recognized_device() argument 322 if (callback(&info) == 0) { in recognized_device() 329 static usb_handle *find_usb_device(ifc_match_func callback) { in find_usb_device() argument 359 if (recognized_device(handle, callback)) { in find_usb_device() 376 usb_handle *usb_open(ifc_match_func callback) in usb_open() argument 378 return find_usb_device(callback); in usb_open()
|
D | usb_osx.c | 56 ifc_match_func callback; member 220 if (handle->callback(&handle->info) == 0) { in try_interfaces() 381 static int init_usb(ifc_match_func callback, usb_handle **handle) { in init_usb() argument 389 h.callback = callback; in init_usb() 454 usb_handle *usb_open(ifc_match_func callback) { in usb_open() argument 457 if (init_usb(callback, &handle) < 0) { in usb_open()
|
D | usb_linux.c | 115 ifc_match_func callback, in filter_usb_device() argument 231 if(callback(&info) == 0) { in filter_usb_device() 301 static usb_handle *find_usb_device(const char *base, ifc_match_func callback) in find_usb_device() argument 334 if(filter_usb_device(de->d_name, desc, n, writable, callback, in find_usb_device() 465 usb_handle *usb_open(ifc_match_func callback) in usb_open() argument 467 return find_usb_device("/sys/bus/usb/devices", callback); in usb_open()
|
D | usb.h | 61 usb_handle *usb_open(ifc_match_func callback);
|
/system/core/include/utils/ |
D | Looper.h | 123 SimpleLooperCallback(Looper_callbackFunc callback); 317 int addFd(int fd, int ident, int events, Looper_callbackFunc callback, void* data); 318 int addFd(int fd, int ident, int events, const sp<LooperCallback>& callback, void* data); 422 sp<LooperCallback> callback; member
|
/system/core/logd/ |
D | LogReader.cpp | 123 static bool callback(const LogBufferElement *element, void *obj) { in onDataAvailable() function in LogReader::onDataAvailable::LogFindStart 147 logFindStart.callback, &logFindStart); in onDataAvailable()
|
/system/core/include/cutils/ |
D | hashmap.h | 101 bool (*callback)(void* key, void* value, void* context),
|
/system/core/libcutils/ |
D | hashmap.c | 307 bool (*callback)(void* key, void* value, void* context), in hashmapForEach() 314 if (!callback(entry->key, entry->value, context)) { in hashmapForEach()
|