Searched refs:looper (Results 1 - 5 of 5) sorted by relevance
/system/core/libutils/ |
H A D | Looper.cpp | 4 // A looper implementation based on epoll(). 95 void Looper::setForThread(const sp<Looper>& looper) { argument 98 if (looper != NULL) { 99 looper->incStrong((void*)threadDestructor); 102 pthread_setspecific(gTLSKey, looper.get()); 118 sp<Looper> looper = Looper::getForThread(); local 119 if (looper == NULL) { 120 looper = new Looper(allowNonCallbacks); 121 Looper::setForThread(looper); 123 if (looper [all...] |
/system/core/libutils/tests/ |
H A D | Looper_test.cpp | 30 DelayedWake(int delayMillis, const sp<Looper> looper) : argument 31 DelayedTask(delayMillis), mLooper(looper) { 56 void setCallback(const sp<Looper>& looper, int fd, int events) { argument 57 looper->addFd(fd, 0, events, staticHandler, this); 383 sp<Looper> looper = new Looper(false /*allowNonCallbacks*/); local 384 int result = looper->addFd(pipe.receiveFd, 0, 0, NULL, NULL); 647 << "elapsed time should approx. zero because message was sent so looper was awoken"; 649 << "pollOnce result should be Looper::POLL_WAKE because looper was awoken"; 675 << "elapsed time should approx. zero because message was sent so looper was awoken";
|
/system/core/include/utils/ |
H A D | Looper.h | 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. 134 * A looper can be associated with a thread although there is no requirement that it must be. 169 * Flags for file descriptor events that a looper can monitor. 187 * The looper always sends notifications about errors; it is not necessary 196 * The looper always sends notifications about hangups; it is not necessary 205 * The looper always sends notifications about invalid file descriptors; it is not necessary 213 * Option for Looper_prepare: this looper will accept calls to 223 * Creates a looper [all...] |
/system/core/libutils/include/utils/ |
H A D | Looper.h | 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. 134 * A looper can be associated with a thread although there is no requirement that it must be. 169 * Flags for file descriptor events that a looper can monitor. 187 * The looper always sends notifications about errors; it is not necessary 196 * The looper always sends notifications about hangups; it is not necessary 205 * The looper always sends notifications about invalid file descriptors; it is not necessary 213 * Option for Looper_prepare: this looper will accept calls to 223 * Creates a looper [all...] |
/system/tools/aidl/tests/ |
H A D | aidl_test_service.cpp | 447 sp<Looper> looper(Looper::prepare(0 /* opts */)); 457 if (looper->addFd(binder_fd, Looper::POLL_CALLBACK, Looper::EVENT_INPUT, cb, 468 const int result = looper->pollAll(-1 /* timeoutMillis */);
|
Completed in 121 milliseconds