Searched refs:looper (Results 1 – 4 of 4) sorted by relevance
/system/core/libutils/ |
D | Looper.cpp | 104 void Looper::setForThread(const sp<Looper>& looper) { in setForThread() argument 107 if (looper != NULL) { in setForThread() 108 looper->incStrong((void*)threadDestructor); in setForThread() 111 pthread_setspecific(gTLSKey, looper.get()); in setForThread() 127 sp<Looper> looper = Looper::getForThread(); in prepare() local 128 if (looper == NULL) { in prepare() 129 looper = new Looper(allowNonCallbacks); in prepare() 130 Looper::setForThread(looper); in prepare() 132 if (looper->getAllowNonCallbacks() != allowNonCallbacks) { in prepare() 136 return looper; in prepare()
|
/system/core/libutils/tests/ |
D | Looper_test.cpp | 30 DelayedWake(int delayMillis, const sp<Looper> looper) : in DelayedWake() argument 31 DelayedTask(delayMillis), mLooper(looper) { in DelayedWake() 56 void setCallback(const sp<Looper>& looper, int fd, int events) { in setCallback() argument 57 looper->addFd(fd, 0, events, staticHandler, this); in setCallback() 383 sp<Looper> looper = new Looper(false /*allowNonCallbacks*/); in TEST_F() local 384 int result = looper->addFd(pipe.receiveFd, 0, 0, NULL, NULL); in TEST_F()
|
/system/tools/aidl/tests/ |
D | aidl_test_service.cpp | 401 sp<Looper> looper(Looper::prepare(0 /* opts */)); in Run() local 411 if (looper->addFd(binder_fd, Looper::POLL_CALLBACK, Looper::EVENT_INPUT, cb, in Run() 422 const int result = looper->pollAll(-1 /* timeoutMillis */); in Run()
|
/system/core/include/utils/ |
D | Looper.h | 411 static void setForThread(const sp<Looper>& looper);
|