Searched defs:callback (Results 1 - 8 of 8) sorted by relevance

/system/core/libutils/
H A Dmisc.cpp41 sysprop_change_callback callback; member in struct:android::sysprop_change_callback_info
57 info.callback = cb;
85 listeners[i].callback();
H A DLooper.cpp13 // 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 DLogReader.cpp123 static bool callback(const LogBufferElement *element, void *obj) { function in class:LogFindStart
147 logFindStart.callback, &logFindStart);
/system/core/fastboot/
H A Dusb_osx.c56 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 Dusb_windows.c71 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 Dusb_linux.c115 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 DLooper.h36 * 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 DLruCache_test.cpp265 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 389 milliseconds