Home
last modified time | relevance | path

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

/system/bt/gd/os/linux_generic/
Drepeating_alarm.cc39 RepeatingAlarm::RepeatingAlarm(Handler* handler) : handler_(handler), fd_(TIMERFD_CREATE(ALARM_CLOC… in RepeatingAlarm() function in bluetooth::os::RepeatingAlarm
43 fd_, common::Bind(&RepeatingAlarm::on_fire, common::Unretained(this)), common::Closure()); in RepeatingAlarm()
46 RepeatingAlarm::~RepeatingAlarm() { in ~RepeatingAlarm()
54 void RepeatingAlarm::Schedule(Closure task, std::chrono::milliseconds period) { in Schedule()
65 void RepeatingAlarm::Cancel() { in Cancel()
72 void RepeatingAlarm::on_fire() { in on_fire()
Drepeating_alarm_unittest.cc35 alarm_ = new RepeatingAlarm(handler_); in SetUp()
82 RepeatingAlarm* alarm_;
117 …common::Bind(&RepeatingAlarm::Cancel, common::Unretained(this->alarm_)), std::chrono::milliseconds… in TEST_F()
/system/bt/gd/os/
Drepeating_alarm.h34 class RepeatingAlarm {
37 explicit RepeatingAlarm(Handler* handler);
40 ~RepeatingAlarm();
42 DISALLOW_COPY_AND_ASSIGN(RepeatingAlarm);
Dalarm_benchmark.cc31 using ::bluetooth::os::RepeatingAlarm;
41 repeating_alarm_ = std::make_unique<RepeatingAlarm>(handler_.get()); in SetUp()
84 std::unique_ptr<RepeatingAlarm> repeating_alarm_;
Dhandler.h97 friend class RepeatingAlarm; variable