Home | History | Annotate | Download | only in android

Lines Matching refs:looper

20 #include <android/looper.h>
21 #include <utils/Looper.h>
24 using android::Looper;
29 return Looper::getForThread().get();
33 return Looper::prepare(opts).get();
36 void ALooper_acquire(ALooper* looper) {
37 static_cast<Looper*>(looper)->incStrong((void*)ALooper_acquire);
40 void ALooper_release(ALooper* looper) {
41 static_cast<Looper*>(looper)->decStrong((void*)ALooper_acquire);
45 sp<Looper> looper = Looper::getForThread();
46 if (looper == NULL) {
47 ALOGE("ALooper_pollOnce: No looper for this thread!");
52 return looper->pollOnce(timeoutMillis, outFd, outEvents, outData);
56 sp<Looper> looper = Looper::getForThread();
57 if (looper == NULL) {
58 ALOGE("ALooper_pollAll: No looper for this thread!");
63 return looper->pollAll(timeoutMillis, outFd, outEvents, outData);
66 void ALooper_wake(ALooper* looper) {
67 static_cast<Looper*>(looper)->wake();
70 int ALooper_addFd(ALooper* looper, int fd, int ident, int events,
72 return static_cast<Looper*>(looper)->addFd(fd, ident, events, callback, data);
75 int ALooper_removeFd(ALooper* looper, int fd) {
76 return static_cast<Looper*>(looper)->removeFd(fd);