Lines Matching full:callback
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" is non-NULL, then this function will be called when there is
214 * (2) If "callback" is NULL, the 'ident' will be returned by ALooper_pollOnce
223 * The callback may either be specified as a bare function pointer or as a smart
224 * pointer callback object. The smart pointer should be preferred because it is
225 * easier to avoid races when the callback is removed from a different thread.
228 int addFd(int fd, int ident, int events, ALooper_callbackFunc callback, void* data);
229 int addFd(int fd, int ident, int events, const sp<LooperCallback>& callback, void* data);
235 * will no longer have a reference to it. However, it is possible for the callback to
238 * For example, if the callback takes care of removing itself during its own execution either
326 sp<LooperCallback> callback;