Home
last modified time | relevance | path

Searched refs:alarm_ (Results 1 – 5 of 5) sorted by relevance

/system/bt/gd/os/linux_generic/
Drepeating_alarm_unittest.cc33 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 …]
Dalarm_unittest.cc31 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()
62alarm_->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()
73alarm_->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/
Dtimer_performance_benchmark.cc66 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/
DScopedDisableMalloc.h86 alarm_ = nullptr; in Enable()
91 alarm_ = std::make_unique<ScopedAlarm>(timeout_, [&]() { in Disable()
103 std::unique_ptr<ScopedAlarm> alarm_; variable
/system/bt/gd/os/
Dalarm_benchmark.cc37 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()