Lines Matching refs:Looper
47 sp<Looper> mLooper;
50 DelayedWake(int delayMillis, const sp<Looper> looper) : in DelayedWake()
76 void setCallback(const sp<Looper>& looper, int fd, int events) { in setCallback()
123 sp<Looper> mLooper;
126 mLooper = new Looper(true); in SetUp()
142 EXPECT_EQ(Looper::POLL_TIMEOUT, result) in TEST_F()
155 EXPECT_EQ(Looper::POLL_WAKE, result) in TEST_F()
169 EXPECT_EQ(Looper::POLL_WAKE, result) in TEST_F()
180 EXPECT_EQ(Looper::POLL_TIMEOUT, result) in TEST_F()
188 handler.setCallback(mLooper, pipe.receiveFd, Looper::EVENT_INPUT); in TEST_F()
196 EXPECT_EQ(Looper::POLL_TIMEOUT, result) in TEST_F()
207 handler.setCallback(mLooper, pipe.receiveFd, Looper::EVENT_INPUT); in TEST_F()
215 EXPECT_EQ(Looper::POLL_CALLBACK, result) in TEST_F()
221 EXPECT_EQ(Looper::EVENT_INPUT, handler.events) in TEST_F()
229 handler.setCallback(mLooper, pipe.receiveFd, Looper::EVENT_INPUT); in TEST_F()
237 EXPECT_EQ(Looper::POLL_TIMEOUT, result) in TEST_F()
248 handler.setCallback(mLooper, pipe.receiveFd, Looper::EVENT_INPUT); in TEST_F()
258 EXPECT_EQ(Looper::POLL_CALLBACK, result) in TEST_F()
264 EXPECT_EQ(Looper::EVENT_INPUT, handler.events) in TEST_F()
273 handler.setCallback(mLooper, pipe.receiveFd, Looper::EVENT_INPUT); in TEST_F()
284 EXPECT_EQ(Looper::POLL_CALLBACK, result) in TEST_F()
290 EXPECT_EQ(Looper::EVENT_INPUT, handler.events) in TEST_F()
298 handler.setCallback(mLooper, pipe.receiveFd, Looper::EVENT_INPUT); in TEST_F()
310 EXPECT_EQ(Looper::POLL_TIMEOUT, result) in TEST_F()
320 handler.setCallback(mLooper, pipe.receiveFd, Looper::EVENT_INPUT); in TEST_F()
333 EXPECT_EQ(Looper::POLL_CALLBACK, result) in TEST_F()
349 EXPECT_EQ(Looper::POLL_TIMEOUT, result) in TEST_F()
362 mLooper->addFd(pipe.receiveFd, expectedIdent, Looper::EVENT_INPUT, nullptr, expectedData); in TEST_F()
379 EXPECT_EQ(Looper::EVENT_INPUT, events) in TEST_F()
387 int result = mLooper->addFd(pipe.receiveFd, 0, Looper::EVENT_INPUT, nullptr, nullptr); in TEST_F()
395 int result = mLooper->addFd(pipe.receiveFd, -1, Looper::EVENT_INPUT, nullptr, nullptr); in TEST_F()
403 sp<Looper> looper = new Looper(false /*allowNonCallbacks*/); in TEST_F()
420 handler.setCallback(mLooper, pipe.receiveFd, Looper::EVENT_INPUT); in TEST_F()
440 handler1.setCallback(mLooper, pipe.receiveFd, Looper::EVENT_INPUT); in TEST_F()
441 handler2.setCallback(mLooper, pipe.receiveFd, Looper::EVENT_INPUT); // replace it in TEST_F()
452 EXPECT_EQ(Looper::POLL_CALLBACK, result) in TEST_F()
470 EXPECT_EQ(Looper::POLL_CALLBACK, result) in TEST_F()
492 EXPECT_EQ(Looper::POLL_CALLBACK, result) in TEST_F()
518 EXPECT_EQ(Looper::POLL_WAKE, result) in TEST_F()
532 EXPECT_EQ(Looper::POLL_CALLBACK, result) in TEST_F()
540 EXPECT_EQ(Looper::POLL_TIMEOUT, result) in TEST_F()
554 EXPECT_EQ(Looper::POLL_CALLBACK, result) in TEST_F()
572 EXPECT_EQ(Looper::POLL_CALLBACK, result) in TEST_F()
591 EXPECT_EQ(Looper::POLL_WAKE, result) in TEST_F()
605 EXPECT_EQ(Looper::POLL_CALLBACK, result) in TEST_F()
613 EXPECT_EQ(Looper::POLL_TIMEOUT, result) in TEST_F()
628 EXPECT_EQ(Looper::POLL_CALLBACK, result) in TEST_F()
647 EXPECT_EQ(Looper::POLL_CALLBACK, result) in TEST_F()
668 EXPECT_EQ(Looper::POLL_WAKE, result) in TEST_F()
675 EXPECT_EQ(Looper::POLL_TIMEOUT, result) in TEST_F()
696 EXPECT_EQ(Looper::POLL_CALLBACK, result) in TEST_F()
707 EXPECT_EQ(Looper::POLL_TIMEOUT, result) in TEST_F()