Lines Matching full:callback
13 // Debugs callback registration and invocation.
46 SimpleLooperCallback::SimpleLooperCallback(ALooper_callbackFunc callback) :
47 mCallback(callback) {
318 ALOGD("%p ~ pollOnce - invoking fd event callback %p: fd=%d, events=0x%x, data=%p",
319 this, response.request.callback.get(), fd, events, data);
321 int callbackResult = response.request.callback->handleEvent(fd, events, data);
325 // Clear the callback reference in the response structure promptly because we
327 response.request.callback.clear();
396 int Looper::addFd(int fd, int ident, int events, ALooper_callbackFunc callback, void* data) {
397 return addFd(fd, ident, events, callback ? new SimpleLooperCallback(callback) : NULL, data);
400 int Looper::addFd(int fd, int ident, int events, const sp<LooperCallback>& callback, void* data) {
402 ALOGD("%p ~ addFd - fd=%d, ident=%d, events=0x%x, callback=%p, data=%p", this, fd, ident,
403 events, callback.get(), data);
406 if (!callback.get()) {
408 ALOGE("Invalid attempt to set NULL callback but not allowed for this looper.");
413 ALOGE("Invalid attempt to set NULL callback with ident < 0.");
430 request.callback = callback;