Home
last modified time | relevance | path

Searched refs:looper (Results 1 – 5 of 5) sorted by relevance

/system/hwservicemanager/
Dservice.cpp67 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/
DLooper.cpp90 void Looper::setForThread(const sp<Looper>& looper) { in setForThread() argument
93 if (looper != nullptr) { in setForThread()
94 looper->incStrong((void*)threadDestructor); in setForThread()
97 pthread_setspecific(gTLSKey, looper.get()); in setForThread()
113 sp<Looper> looper = Looper::getForThread(); in prepare() local
114 if (looper == nullptr) { in prepare()
115 looper = new Looper(allowNonCallbacks); in prepare()
116 Looper::setForThread(looper); in prepare()
118 if (looper->getAllowNonCallbacks() != allowNonCallbacks) { in prepare()
122 return looper; in prepare()
DLooper_test.cpp83 DelayedWake(int delayMillis, const sp<Looper> looper) : in DelayedWake() argument
84 DelayedTask(delayMillis), mLooper(looper) { in DelayedWake()
109 void setCallback(const sp<Looper>& looper, int fd, int events) { in setCallback() argument
110 looper->addFd(fd, 0, events, staticHandler, this); in setCallback()
436 sp<Looper> looper = new Looper(false /*allowNonCallbacks*/); in TEST_F() local
437 int result = looper->addFd(pipe.receiveFd, 0, 0, nullptr, nullptr); in TEST_F()
/system/tools/aidl/tests/
Daidl_test_service.cpp490 sp<Looper> looper(Looper::prepare(0 /* opts */)); in Run() local
500 if (looper->addFd(binder_fd, Looper::POLL_CALLBACK, Looper::EVENT_INPUT, cb, in Run()
511 const int result = looper->pollAll(-1 /* timeoutMillis */); in Run()
/system/core/libutils/include/utils/
DLooper.h413 static void setForThread(const sp<Looper>& looper);