Home
last modified time | relevance | path

Searched refs:alarms (Results 1 – 2 of 2) sorted by relevance

/system/bt/osi/src/
Dalarm.cc121 static list_t* alarms; variable
170 if (!alarms && !lazy_initialize()) { in alarm_new_internal()
228 CHECK(alarms != NULL); in alarm_set_internal()
246 CHECK(alarms != NULL); in alarm_cancel()
264 (!list_is_empty(alarms) && list_front(alarms) == alarm); in alarm_cancel_internal()
279 if ((alarms == NULL) || (alarm == NULL)) return false; in alarm_is_scheduled()
285 if (!alarms) return; in alarm_cleanup()
304 list_free(alarms); in alarm_cleanup()
305 alarms = NULL; in alarm_cleanup()
309 CHECK(alarms == NULL); in lazy_initialize()
[all …]
/system/bt/osi/test/
Dalarm_test.cc276 alarm_t* alarms[100]; in TEST_F() local
281 alarms[i] = alarm_new(alarm_name.c_str()); in TEST_F()
285 alarm_set(alarms[i], 100, ordered_cb, INT_TO_PTR(i)); in TEST_F()
295 for (int i = 0; i < 100; i++) alarm_free(alarms[i]); in TEST_F()
303 alarm_t* alarms[100]; in TEST_F() local
316 alarms[i] = alarm_new(alarm_name.c_str()); in TEST_F()
320 alarm_set_on_mloop(alarms[i], 100, ordered_cb, INT_TO_PTR(i)); in TEST_F()
330 for (int i = 0; i < 100; i++) alarm_free(alarms[i]); in TEST_F()