Searched refs:timer_ (Results 1 – 4 of 4) sorted by relevance
59 void CancelTimerAndWait() { timer_->CancelAndWait(); } in CancelTimerAndWait()65 timer_ = new OnceTimer(); in SetUp()74 if (timer_ != nullptr) { in TearDown()75 delete timer_; in TearDown()76 timer_ = nullptr; in TearDown()81 OnceTimer* timer_; member in OnceTimerTest86 ASSERT_FALSE(timer_->IsScheduled()); in TEST_F()97 timer_->Schedule(message_loop_thread.GetWeakPtr(), FROM_HERE, in TEST_F()101 EXPECT_TRUE(timer_->IsScheduled()); in TEST_F()105 EXPECT_FALSE(timer_->IsScheduled()); in TEST_F()[all …]
83 timer_->SchedulePeriodic( in VerifyMultipleDelayedTasks()91 timer_->CancelAndWait(); in VerifyMultipleDelayedTasks()94 void CancelRepeatingTimerAndWait() { timer_->CancelAndWait(); } in CancelRepeatingTimerAndWait()100 timer_ = new RepeatingTimer(); in SetUp()109 if (timer_ != nullptr) { in TearDown()110 delete timer_; in TearDown()111 timer_ = nullptr; in TearDown()116 RepeatingTimer* timer_; member in RepeatingTimerTest121 ASSERT_FALSE(timer_->IsScheduled()); in TEST_F()129 EXPECT_FALSE(timer_->IsScheduled()); in TEST_F()[all …]
105 android::base::Timer timer_{};
496 os << "timer=" << timer_.duration().count() << ","; in Dump()507 os << " Duration = " << timer_.duration().count() << "ms" << std::endl; in Dump()