Home
last modified time | relevance | path

Searched refs:Looper (Results 1 – 5 of 5) 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.cpp73 Looper::Looper(bool allowNonCallbacks) : in Looper() function in android::Looper
85 Looper::~Looper() { in ~Looper()
92 void Looper::initTLSKey() { in initTLSKey()
97 void Looper::threadDestructor(void *st) { in threadDestructor()
98 Looper* const self = static_cast<Looper*>(st); in threadDestructor()
104 void Looper::setForThread(const sp<Looper>& looper) { in setForThread()
105 sp<Looper> old = getForThread(); // also has side-effect of initializing TLS in setForThread()
118 sp<Looper> Looper::getForThread() { in getForThread()
122 return (Looper*)pthread_getspecific(gTLSKey); in getForThread()
125 sp<Looper> Looper::prepare(int opts) { in prepare()
[all …]
DAndroid.mk46 LOCAL_SRC_FILES_linux := Looper.cpp ProcessCallStack.cpp
68 Looper.cpp \
/system/core/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/tools/aidl/tests/
Daidl_test_service.cpp46 using android::Looper;
401 sp<Looper> looper(Looper::prepare(0 /* opts */)); in Run()
411 if (looper->addFd(binder_fd, Looper::POLL_CALLBACK, Looper::EVENT_INPUT, cb, in Run()