Searched refs:alarm_ (Results 1 – 5 of 5) sorted by relevance
/system/bt/gd/os/linux_generic/ |
D | repeating_alarm_unittest.cc | 33 alarm_ = new RepeatingAlarm(thread_); in SetUp() 37 delete alarm_; in TearDown() 46 alarm_->Schedule( in VerifyMultipleDelayedTasks() 59 alarm_->Cancel(); in VerifyMultipleDelayedTasks() 62 RepeatingAlarm* alarm_; member in bluetooth::os::__anon0179fb050111::RepeatingAlarmTest 69 alarm_->Cancel(); in TEST_F() 77 alarm_->Schedule([&promise]() { promise.set_value(); }, std::chrono::milliseconds(period_ms)); in TEST_F() 79 alarm_->Cancel(); in TEST_F() 86 alarm_->Schedule([]() { ASSERT_TRUE(false); }, std::chrono::milliseconds(1)); in TEST_F() 87 alarm_->Cancel(); in TEST_F() [all …]
|
D | alarm_unittest.cc | 31 alarm_ = new Alarm(thread_); in SetUp() 35 delete alarm_; in TearDown() 38 Alarm* alarm_; member in bluetooth::os::__anon994815070111::AlarmTest 45 alarm_->Cancel(); in TEST_F() 54 alarm_->Schedule([&promise]() { promise.set_value(); }, std::chrono::milliseconds(delay_ms)); in TEST_F() 62 …alarm_->Schedule([]() { ASSERT_TRUE(false) << "Should not happen"; }, std::chrono::milliseconds(3)… in TEST_F() 63 alarm_->Cancel(); in TEST_F() 68 alarm_->Schedule([this]() { this->alarm_->Cancel(); }, std::chrono::milliseconds(1)); in TEST_F() 73 …alarm_->Schedule([]() { ASSERT_TRUE(false) << "Should not happen"; }, std::chrono::milliseconds(1)… in TEST_F() 76 alarm_->Schedule([&promise]() { promise.set_value(); }, std::chrono::milliseconds(10)); in TEST_F() [all …]
|
/system/bt/common/benchmark/ |
D | timer_performance_benchmark.cc | 66 alarm_ = alarm_new("osi_alarm_timer_test"); in SetUp() 72 alarm_free(alarm_); in TearDown() 76 alarm_t* alarm_ = nullptr; member in BM_OsiAlarmTimer 83 alarm_set(alarm_, milliseconds, &TimerFire, nullptr); in BENCHMARK_DEFINE_F() 161 alarm_ = alarm_new_periodic("osi_alarm_timer_test"); in SetUp() 172 alarm_free(alarm_); in TearDown() 176 alarm_t* alarm_ = nullptr; member in BM_OsiPeriodicAlarmTimer 185 alarm_set(alarm_, g_task_interval, &AlarmSleepAndCountDelayedTime, nullptr); in BENCHMARK_DEFINE_F() 187 alarm_cancel(alarm_); in BENCHMARK_DEFINE_F()
|
/system/core/libmemunreachable/ |
D | ScopedDisableMalloc.h | 86 alarm_ = nullptr; in Enable() 91 alarm_ = std::make_unique<ScopedAlarm>(timeout_, [&]() { in Disable() 103 std::unique_ptr<ScopedAlarm> alarm_; variable
|
/system/bt/gd/os/ |
D | alarm_benchmark.cc | 37 alarm_ = std::make_unique<Alarm>(thread_.get()); in SetUp() 48 alarm_ = nullptr; in TearDown() 78 std::unique_ptr<Alarm> alarm_; member in BM_ReactableAlarm 86 alarm_->Schedule([this] { return TimerFire(); }, std::chrono::milliseconds(milliseconds)); in BENCHMARK_DEFINE_F() 91 alarm_->Cancel(); in BENCHMARK_DEFINE_F()
|