Searched refs:period_ms (Results 1 – 4 of 4) sorted by relevance
/system/bt/gd/os/linux_generic/ |
D | repeating_alarm.cc | 56 long period_ms = period.count(); in Schedule() local 57 itimerspec timer_itimerspec{{period_ms / 1000, period_ms % 1000 * 1000000}, in Schedule() 58 {period_ms / 1000, period_ms % 1000 * 1000000}}; in Schedule()
|
D | repeating_alarm_unittest.cc | 99 int period_ms = 10; in TEST_F() local 101 …td::promise<void>::set_value, common::Unretained(&promise)), std::chrono::milliseconds(period_ms)); in TEST_F() 106 ASSERT_NEAR(duration.count(), period_ms * 1000000, error_ms * 1000000); in TEST_F()
|
/system/bt/gd/os/fuzz/ |
D | fake_timerfd.cc | 33 uint64_t period_ms; member in bluetooth::os::fuzz::FakeTimerFd 69 uint64_t period_ms = timespec_to_ms(&new_value->it_value); in fake_timerfd_settime() local 71 entry->period_ms = period_ms; in fake_timerfd_settime() 113 bool is_periodic = to_fire->period_ms != 0; in fire_next_event() 115 to_fire->trigger_ms += to_fire->period_ms; in fire_next_event()
|
/system/bt/osi/src/ |
D | alarm.cc | 96 uint64_t period_ms; member 138 static void alarm_set_internal(alarm_t* alarm, uint64_t period_ms, 225 static void alarm_set_internal(alarm_t* alarm, uint64_t period_ms, in alarm_set_internal() argument 235 alarm->period_ms = period_ms; in alarm_set_internal() 428 if ((alarm->is_periodic) && (alarm->period_ms != 0)) in schedule_next_instance() 430 ((just_now_ms - alarm->creation_time_ms) % alarm->period_ms); in schedule_next_instance() 431 alarm->deadline_ms = just_now_ms + (alarm->period_ms - ms_into_period); in schedule_next_instance() 762 (unsigned long long)alarm->period_ms, in alarm_debug_dump()
|