Home
last modified time | relevance | path

Searched refs:alarm (Results 1 – 14 of 14) sorted by relevance

/system/bt/osi/test/
Dalarm_test.cpp59 alarm_t *alarm = alarm_new(); in TEST_F() local
60 ASSERT_TRUE(alarm != NULL); in TEST_F()
61 alarm_free(alarm); in TEST_F()
69 alarm_t *alarm = alarm_new(); in TEST_F() local
70 alarm_cancel(alarm); in TEST_F()
71 alarm_free(alarm); in TEST_F()
75 alarm_t *alarm = alarm_new(); in TEST_F() local
76 alarm_set(alarm, 10, cb, NULL); in TEST_F()
77 alarm_cancel(alarm); in TEST_F()
83 alarm_free(alarm); in TEST_F()
[all …]
/system/bt/osi/src/
Dalarm.c85 static void alarm_set_internal(alarm_t *alarm, period_ms_t deadline, alarm_callback_t cb, void *dat…
86 static void schedule_next_instance(alarm_t *alarm, bool force_reschedule);
128 void alarm_free(alarm_t *alarm) { in alarm_free() argument
129 if (!alarm) in alarm_free()
132 alarm_cancel(alarm); in alarm_free()
133 pthread_mutex_destroy(&alarm->callback_lock); in alarm_free()
134 osi_free(alarm); in alarm_free()
137 period_ms_t alarm_get_remaining_ms(const alarm_t *alarm) { in alarm_get_remaining_ms() argument
138 assert(alarm != NULL); in alarm_get_remaining_ms()
142 if (alarm->deadline) in alarm_get_remaining_ms()
[all …]
Dnon_repeating_timer.c26 alarm_t *alarm; member
37 ret->alarm = alarm_new(); in non_repeating_timer_new()
38 if (!ret->alarm) in non_repeating_timer_new()
55 alarm_free(timer->alarm); in non_repeating_timer_free()
66 alarm_set(timer->alarm, timer->duration, timer->callback, timer->data); in non_repeating_timer_restart_if()
73 alarm_cancel(timer->alarm); in non_repeating_timer_cancel()
/system/bt/osi/include/
Dalarm.h36 void alarm_free(alarm_t *alarm);
43 void alarm_set(alarm_t *alarm, period_ms_t deadline, alarm_callback_t cb, void *data);
47 void alarm_set_periodic(alarm_t *alarm, period_ms_t period, alarm_callback_t cb, void *data);
53 void alarm_cancel(alarm_t *alarm);
58 period_ms_t alarm_get_remaining_ms(const alarm_t *alarm);
/system/bt/stack/btu/
Dbtu_task.c462 alarm_t *alarm = hash_map_get(btu_general_alarm_hash_map, p_tle); in btu_start_timer() local
463 if (alarm == NULL) { in btu_start_timer()
467 alarm_cancel(alarm); in btu_start_timer()
473 alarm_set(alarm, (period_ms_t)(timeout_sec * 1000), btu_general_alarm_cb, (void *)p_tle); in btu_start_timer()
493 alarm_t *alarm = hash_map_get(btu_general_alarm_hash_map, p_tle); in btu_stop_timer() local
494 if (alarm == NULL) { in btu_stop_timer()
498 alarm_cancel(alarm); in btu_stop_timer()
542 alarm_t *alarm = hash_map_get(btu_l2cap_alarm_hash_map, p_tle); in btu_start_quick_timer() local
543 if (alarm == NULL) { in btu_start_quick_timer()
547 alarm_cancel(alarm); in btu_start_quick_timer()
[all …]
/system/core/liblog/tests/
Dliblog_benchmark.cpp141 alarm(alarm_time); in BM_log_latency()
152 alarm(alarm_time); in BM_log_latency()
190 alarm(0); in BM_log_latency()
219 alarm(alarm_time); in BM_log_delay()
232 alarm(alarm_time); in BM_log_delay()
262 alarm(0); in BM_log_delay()
Dliblog_test.cpp244 alarm(alarm_time); in TEST()
254 alarm(alarm_time); in TEST()
285 alarm(0); in TEST()
/system/bt/bta/sys/
Dbta_sys_main.c635 alarm_t *alarm = hash_map_get(bta_alarm_hash_map, p_tle); in bta_sys_start_timer() local
636 if (alarm == NULL) { in bta_sys_start_timer()
643 alarm_set(alarm, (period_ms_t)timeout_ms, bta_alarm_cb, p_tle); in bta_sys_start_timer()
648 alarm_t *alarm = (alarm_t *)hash_map_entry->data; in hash_iter_ro_cb() local
650 *p_remaining_ms += alarm_get_remaining_ms(alarm); in hash_iter_ro_cb()
677 alarm_t *alarm = hash_map_get(bta_alarm_hash_map, p_tle); in bta_sys_stop_timer() local
678 if (alarm == NULL) { in bta_sys_stop_timer()
682 alarm_cancel(alarm); in bta_sys_stop_timer()
/system/core/logcat/tests/
Dlogcat_test.cpp377 alarm(2); in TEST()
399 alarm(0); in TEST()
446 alarm(2); in TEST()
470 alarm(0); in TEST()
614 alarm(2); in TEST()
645 alarm(0); in TEST()
/system/bt/osi/
DAndroid.mk31 ./src/alarm.c \
/system/core/liblog/
Dlog_read.c818 old_alarm = alarm(30); in android_logger_list_read()
826 alarm(old_alarm); in android_logger_list_read()
851 old_alarm = alarm(30); in android_logger_list_read()
861 alarm(old_alarm); in android_logger_list_read()
/system/core/logd/tests/
Dlogd_test.cpp287 unsigned int old_alarm = alarm(10); in TEST()
298 alarm(old_alarm); in TEST()
/system/core/rootdir/
Dueventd.rc38 /dev/alarm 0664 system radio
/system/bt/doc/
Dstyle_guide.md224 void template_use_alarm(alarm_t *alarm);