Searched refs:looper (Results 1 - 6 of 6) sorted by relevance

/system/hwservicemanager/
H A Dservice.cpp74 sp<Looper> looper(Looper::prepare(0 /* opts */));
88 if (looper->addFd(binder_fd, Looper::POLL_CALLBACK, Looper::EVENT_INPUT, cb,
115 looper->pollAll(-1 /* timeoutMillis */);
/system/core/libutils/
H A DLooper.cpp4 // 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 DLooper_test.cpp30 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 DLooper.h43 * 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 DLooper.h43 * 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 Daidl_test_service.cpp439 sp<Looper> looper(Looper::prepare(0 /* opts */));
449 if (looper->addFd(binder_fd, Looper::POLL_CALLBACK, Looper::EVENT_INPUT, cb,
460 const int result = looper->pollAll(-1 /* timeoutMillis */);

Completed in 146 milliseconds