Searched defs:looper (Results 1 - 3 of 3) sorted by relevance

/system/core/libutils/
H A DLooper.cpp4 // A looper implementation based on epoll().
101 void Looper::setForThread(const sp<Looper>& looper) { argument
104 if (looper != NULL) {
105 looper->incStrong((void*)threadDestructor);
108 pthread_setspecific(gTLSKey, looper.get());
124 sp<Looper> looper = Looper::getForThread(); local
125 if (looper == NULL) {
126 looper = new Looper(allowNonCallbacks);
127 Looper::setForThread(looper);
129 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/adb/
H A Dsysdeps_win32.cpp1373 event_looper_find_p( EventLooper looper, FH fh ) argument
1375 EventHook *pnode = &looper->hooks;
1387 event_looper_hook( EventLooper looper, int fd, int events ) argument
1398 pnode = event_looper_find_p( looper, f );
1419 event_looper_unhook( EventLooper looper, int fd, int events ) argument
1422 EventHook *pnode = event_looper_find_p( looper, fh );
1623 EventLooper looper = &win32_looper; local
1627 event_looper_hook( looper, fde->fd, events );
1632 EventLooper looper = &win32_looper; local
1636 event_looper_unhook( looper, fd
1641 EventLooper looper = &win32_looper; local
1660 EventLooper looper = &win32_looper; local
[all...]

Completed in 210 milliseconds