• Home
  • Raw
  • Download

Lines Matching refs:Looper

80     sp<Looper> mLooper;
83 DelayedWake(int delayMillis, const sp<Looper> looper) : in DelayedWake()
109 void setCallback(const sp<Looper>& looper, int fd, int events) { in setCallback()
156 sp<Looper> mLooper;
159 mLooper = new Looper(true); in SetUp()
175 EXPECT_EQ(Looper::POLL_TIMEOUT, result) in TEST_F()
188 EXPECT_EQ(Looper::POLL_WAKE, result) in TEST_F()
202 EXPECT_EQ(Looper::POLL_WAKE, result) in TEST_F()
213 EXPECT_EQ(Looper::POLL_TIMEOUT, result) in TEST_F()
221 handler.setCallback(mLooper, pipe.receiveFd, Looper::EVENT_INPUT); in TEST_F()
229 EXPECT_EQ(Looper::POLL_TIMEOUT, result) in TEST_F()
240 handler.setCallback(mLooper, pipe.receiveFd, Looper::EVENT_INPUT); in TEST_F()
248 EXPECT_EQ(Looper::POLL_CALLBACK, result) in TEST_F()
254 EXPECT_EQ(Looper::EVENT_INPUT, handler.events) in TEST_F()
262 handler.setCallback(mLooper, pipe.receiveFd, Looper::EVENT_INPUT); in TEST_F()
270 EXPECT_EQ(Looper::POLL_TIMEOUT, result) in TEST_F()
281 handler.setCallback(mLooper, pipe.receiveFd, Looper::EVENT_INPUT); in TEST_F()
291 EXPECT_EQ(Looper::POLL_CALLBACK, result) in TEST_F()
297 EXPECT_EQ(Looper::EVENT_INPUT, handler.events) in TEST_F()
306 handler.setCallback(mLooper, pipe.receiveFd, Looper::EVENT_INPUT); in TEST_F()
317 EXPECT_EQ(Looper::POLL_CALLBACK, result) in TEST_F()
323 EXPECT_EQ(Looper::EVENT_INPUT, handler.events) in TEST_F()
331 handler.setCallback(mLooper, pipe.receiveFd, Looper::EVENT_INPUT); in TEST_F()
343 EXPECT_EQ(Looper::POLL_TIMEOUT, result) in TEST_F()
353 handler.setCallback(mLooper, pipe.receiveFd, Looper::EVENT_INPUT); in TEST_F()
366 EXPECT_EQ(Looper::POLL_CALLBACK, result) in TEST_F()
382 EXPECT_EQ(Looper::POLL_TIMEOUT, result) in TEST_F()
395 mLooper->addFd(pipe.receiveFd, expectedIdent, Looper::EVENT_INPUT, nullptr, expectedData); in TEST_F()
412 EXPECT_EQ(Looper::EVENT_INPUT, events) in TEST_F()
420 int result = mLooper->addFd(pipe.receiveFd, 0, Looper::EVENT_INPUT, nullptr, nullptr); in TEST_F()
428 int result = mLooper->addFd(pipe.receiveFd, -1, Looper::EVENT_INPUT, nullptr, nullptr); in TEST_F()
436 sp<Looper> looper = new Looper(false /*allowNonCallbacks*/); in TEST_F()
453 handler.setCallback(mLooper, pipe.receiveFd, Looper::EVENT_INPUT); in TEST_F()
473 handler1.setCallback(mLooper, pipe.receiveFd, Looper::EVENT_INPUT); in TEST_F()
474 handler2.setCallback(mLooper, pipe.receiveFd, Looper::EVENT_INPUT); // replace it in TEST_F()
485 EXPECT_EQ(Looper::POLL_CALLBACK, result) in TEST_F()
503 EXPECT_EQ(Looper::POLL_CALLBACK, result) in TEST_F()
525 EXPECT_EQ(Looper::POLL_CALLBACK, result) in TEST_F()
551 EXPECT_EQ(Looper::POLL_WAKE, result) in TEST_F()
565 EXPECT_EQ(Looper::POLL_CALLBACK, result) in TEST_F()
573 EXPECT_EQ(Looper::POLL_TIMEOUT, result) in TEST_F()
587 EXPECT_EQ(Looper::POLL_CALLBACK, result) in TEST_F()
605 EXPECT_EQ(Looper::POLL_CALLBACK, result) in TEST_F()
624 EXPECT_EQ(Looper::POLL_WAKE, result) in TEST_F()
638 EXPECT_EQ(Looper::POLL_CALLBACK, result) in TEST_F()
646 EXPECT_EQ(Looper::POLL_TIMEOUT, result) in TEST_F()
661 EXPECT_EQ(Looper::POLL_CALLBACK, result) in TEST_F()
680 EXPECT_EQ(Looper::POLL_CALLBACK, result) in TEST_F()
701 EXPECT_EQ(Looper::POLL_WAKE, result) in TEST_F()
708 EXPECT_EQ(Looper::POLL_TIMEOUT, result) in TEST_F()
729 EXPECT_EQ(Looper::POLL_CALLBACK, result) in TEST_F()
740 EXPECT_EQ(Looper::POLL_TIMEOUT, result) in TEST_F()