Searched refs:looper (Results 1 – 5 of 5) sorted by relevance
/system/hwservicemanager/ |
D | service.cpp | 67 static sp<HwBinderCallback> setupTo(const sp<Looper>& looper) { in setupTo() argument 77 int ret = looper->addFd(fdHwBinder, in setupTo() 96 …static sp<ClientCallbackCallback> setupTo(const sp<Looper>& looper, const sp<ServiceManager>& mana… in setupTo() argument 116 int addRes = looper->addFd(fdTimer, in setupTo() 171 sp<Looper> looper = Looper::prepare(0 /* opts */); in main() local 173 (void)HwBinderCallback::setupTo(looper); in main() 174 (void)ClientCallbackCallback::setupTo(looper, manager); in main() 179 looper->pollAll(-1 /* timeoutMillis */); in main()
|
/system/core/libutils/ |
D | Looper.cpp | 92 void Looper::setForThread(const sp<Looper>& looper) { in setForThread() argument 95 if (looper != nullptr) { in setForThread() 96 looper->incStrong((void*)threadDestructor); in setForThread() 99 pthread_setspecific(gTLSKey, looper.get()); in setForThread() 115 sp<Looper> looper = Looper::getForThread(); in prepare() local 116 if (looper == nullptr) { in prepare() 117 looper = new Looper(allowNonCallbacks); in prepare() 118 Looper::setForThread(looper); in prepare() 120 if (looper->getAllowNonCallbacks() != allowNonCallbacks) { in prepare() 124 return looper; in prepare()
|
D | Looper_test.cpp | 84 DelayedWake(int delayMillis, const sp<Looper> looper) : in DelayedWake() argument 85 DelayedTask(delayMillis), mLooper(looper) { in DelayedWake() 110 void setCallback(const sp<Looper>& looper, int fd, int events) { in setCallback() argument 111 looper->addFd(fd, 0, events, staticHandler, this); in setCallback() 437 sp<Looper> looper = new Looper(false /*allowNonCallbacks*/); in TEST_F() local 438 int result = looper->addFd(pipe.receiveFd, 0, 0, nullptr, nullptr); in TEST_F()
|
/system/core/libutils/include/utils/ |
D | Looper.h | 415 static void setForThread(const sp<Looper>& looper);
|
/system/tools/aidl/tests/ |
D | aidl_test_service.cpp | 520 sp<Looper> looper(Looper::prepare(0 /* opts */)); in Run() local 530 if (looper->addFd(binder_fd, Looper::POLL_CALLBACK, Looper::EVENT_INPUT, cb, in Run() 552 const int result = looper->pollAll(-1 /* timeoutMillis */); in Run()
|