Home
last modified time | relevance | path

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

/system/bt/gd/os/linux_generic/
Dalarm_unittest.cc35 alarm_ = new Alarm(handler_); in SetUp()
39 delete alarm_; in TearDown()
44 Alarm* alarm_; member in bluetooth::os::__anonce3dd2090111::AlarmTest
52 alarm_->Cancel(); in TEST_F()
61 alarm_->Schedule(BindOnce(&std::promise<void>::set_value, common::Unretained(&promise)), in TEST_F()
70alarm_->Schedule(BindOnce([]() { ASSERT_TRUE(false) << "Should not happen"; }), std::chrono::milli… in TEST_F()
71 alarm_->Cancel(); in TEST_F()
76alarm_->Schedule(BindOnce(&Alarm::Cancel, common::Unretained(alarm_)), std::chrono::milliseconds(1… in TEST_F()
81alarm_->Schedule(BindOnce([]() { ASSERT_TRUE(false) << "Should not happen"; }), std::chrono::milli… in TEST_F()
84 alarm_->Schedule(BindOnce(&std::promise<void>::set_value, common::Unretained(&promise)), in TEST_F()
[all …]
Drepeating_alarm_unittest.cc35 alarm_ = new RepeatingAlarm(handler_); in SetUp()
39 delete alarm_; in TearDown()
50alarm_->Schedule(common::Bind(&RepeatingAlarmTest::verify_delayed_tasks, common::Unretained(this), in VerifyMultipleDelayedTasks()
55 alarm_->Cancel(); in VerifyMultipleDelayedTasks()
70 RepeatingAlarm* alarm_; member in bluetooth::os::__anon293962870111::RepeatingAlarmTest
80 alarm_->Cancel(); in TEST_F()
88 alarm_->Schedule(common::Bind(&std::promise<void>::set_value, common::Unretained(&promise)), in TEST_F()
91 alarm_->Cancel(); in TEST_F()
98 alarm_->Schedule(should_not_happen_, std::chrono::milliseconds(1)); in TEST_F()
99 alarm_->Cancel(); 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/memory/libmemunreachable/
DScopedDisableMalloc.h85 alarm_ = nullptr; in Enable()
90 alarm_ = std::make_unique<ScopedAlarm>(timeout_, [&]() { in Disable()
102 std::unique_ptr<ScopedAlarm> alarm_; variable
/system/bt/gd/os/
Dalarm_benchmark.cc41 alarm_ = std::make_unique<Alarm>(handler_.get()); in SetUp()
52 alarm_ = nullptr; in TearDown()
84 std::unique_ptr<Alarm> alarm_; member in BM_ReactableAlarm
92 alarm_->Schedule( in BENCHMARK_DEFINE_F()
99 alarm_->Cancel(); in BENCHMARK_DEFINE_F()
/system/bt/gd/l2cap/classic/internal/
Dsignalling_manager.cc42 fixed_service_manager_(fixed_service_manager), alarm_(handler) { in ClassicSignallingManager()
64 alarm_.Cancel(); in OnCommandReject()
115 alarm_.Cancel(); in CancelAlarm()
213alarm_.Schedule(common::BindOnce(&ClassicSignallingManager::on_command_timeout, common::Unretained… in OnConnectionResponse()
219 alarm_.Cancel(); in OnConnectionResponse()
363alarm_.Schedule(common::BindOnce(&ClassicSignallingManager::on_command_timeout, common::Unretained… in OnConfigurationResponse()
416 alarm_.Cancel(); in OnConfigurationResponse()
443 alarm_.Cancel(); in OnDisconnectionResponse()
473 alarm_.Cancel(); in OnEchoResponse()
543 alarm_.Cancel(); in OnInformationResponse()
[all …]
Dsignalling_manager.h119 os::Alarm alarm_; variable
/system/bt/gd/l2cap/le/internal/
Dsignalling_manager.cc42 …service_manager_(dynamic_service_manager), channel_allocator_(channel_allocator), alarm_(handler) { in LeSignallingManager()
97 alarm_.Cancel(); in CancelAlarm()
106 alarm_.Cancel(); in OnCommandReject()
185 alarm_.Cancel(); in OnConnectionResponse()
238 alarm_.Cancel(); in OnDisconnectionResponse()
398alarm_.Schedule(common::BindOnce(&LeSignallingManager::on_command_timeout, common::Unretained(this… in handle_send_next_command()
405alarm_.Schedule(common::BindOnce(&LeSignallingManager::on_command_timeout, common::Unretained(this… in handle_send_next_command()
Dsignalling_manager.h111 os::Alarm alarm_; variable