Home
last modified time | relevance | path

Searched refs:Looper (Results 1 – 8 of 8) sorted by relevance

/system/core/libutils/tests/
DLooper_test.cpp27 sp<Looper> mLooper;
30 DelayedWake(int delayMillis, const sp<Looper> looper) : in DelayedWake()
56 void setCallback(const sp<Looper>& looper, int fd, int events) { in setCallback()
103 sp<Looper> mLooper;
106 mLooper = new Looper(true); in SetUp()
122 EXPECT_EQ(Looper::POLL_TIMEOUT, result) in TEST_F()
135 EXPECT_EQ(Looper::POLL_WAKE, result) in TEST_F()
149 EXPECT_EQ(Looper::POLL_WAKE, result) in TEST_F()
160 EXPECT_EQ(Looper::POLL_TIMEOUT, result) in TEST_F()
168 handler.setCallback(mLooper, pipe.receiveFd, Looper::EVENT_INPUT); in TEST_F()
[all …]
/system/core/libutils/
DLooper.cpp63 Looper::Looper(bool allowNonCallbacks) : in Looper() function in android::Looper
75 Looper::~Looper() { in ~Looper()
83 void Looper::initTLSKey() { in initTLSKey()
88 void Looper::threadDestructor(void *st) { in threadDestructor()
89 Looper* const self = static_cast<Looper*>(st); in threadDestructor()
95 void Looper::setForThread(const sp<Looper>& looper) { in setForThread()
96 sp<Looper> old = getForThread(); // also has side-effect of initializing TLS in setForThread()
109 sp<Looper> Looper::getForThread() { in getForThread()
113 return (Looper*)pthread_getspecific(gTLSKey); in getForThread()
116 sp<Looper> Looper::prepare(int opts) { in prepare()
[all …]
DAndroid.bp100 "Looper.cpp",
129 "Looper.cpp",
136 "Looper.cpp",
/system/hwservicemanager/
Dservice.cpp24 using android::Looper;
77 sp<Looper> looper(Looper::prepare(0 /* opts */)); in main()
91 if (looper->addFd(binder_fd, Looper::POLL_CALLBACK, Looper::EVENT_INPUT, cb, in main()
/system/core/libutils/include/utils/
DLooper.h136 class Looper : public RefBase {
138 virtual ~Looper();
229 Looper(bool allowNonCallbacks);
403 static sp<Looper> prepare(int opts);
411 static void setForThread(const sp<Looper>& looper);
417 static sp<Looper> getForThread();
/system/connectivity/wificond/
Dlooper_backed_event_loop.cpp73 looper_ = android::Looper::prepare(Looper::PREPARE_ALLOW_NON_CALLBACKS); in LooperBackedEventLoop()
99 event = Looper::EVENT_INPUT; in WatchFileDescriptor()
101 event = Looper::EVENT_OUTPUT; in WatchFileDescriptor()
Dlooper_backed_event_loop.h62 sp<android::Looper> looper_;
/system/tools/aidl/tests/
Daidl_test_service.cpp50 using android::Looper;
439 sp<Looper> looper(Looper::prepare(0 /* opts */)); in Run()
449 if (looper->addFd(binder_fd, Looper::POLL_CALLBACK, Looper::EVENT_INPUT, cb, in Run()