Home
last modified time | relevance | path

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

12

/system/bt/osi/test/
Dalarm_test.cc76 alarm_t* alarm = alarm_new("alarm_test.test_new_free_simple"); in TEST_F() local
77 ASSERT_TRUE(alarm != NULL); in TEST_F()
78 alarm_free(alarm); in TEST_F()
84 alarm_t* alarm = alarm_new("alarm_test.test_simple_cancel"); in TEST_F() local
85 alarm_cancel(alarm); in TEST_F()
86 alarm_free(alarm); in TEST_F()
90 alarm_t* alarm = alarm_new("alarm_test.test_cancel"); in TEST_F() local
91 alarm_set(alarm, 10, cb, NULL); in TEST_F()
92 alarm_cancel(alarm); in TEST_F()
98 alarm_free(alarm); in TEST_F()
[all …]
Dalarm_mock.h11 MOCK_METHOD4(AlarmSetOnMloop, void(alarm_t* alarm, uint64_t interval_ms,
22 void AlarmFreeImpl(alarm_t* alarm) { in AlarmFreeImpl() argument
23 uint8_t* ptr = (uint8_t*)alarm; in AlarmFreeImpl()
25 return AlarmFree(alarm); in AlarmFreeImpl()
47 void alarm_free(alarm_t* alarm) { AlarmMock::Get()->AlarmFreeImpl(alarm); } in alarm_free() argument
49 void alarm_set_on_mloop(alarm_t* alarm, uint64_t interval_ms, in alarm_set_on_mloop() argument
51 AlarmMock::Get()->AlarmSetOnMloop(alarm, interval_ms, cb, data); in alarm_set_on_mloop()
/system/bt/osi/src/
Dalarm.cc138 static void alarm_set_internal(alarm_t* alarm, uint64_t period_ms,
141 static void alarm_cancel_internal(alarm_t* alarm);
142 static void remove_pending_alarm(alarm_t* alarm);
143 static void schedule_next_instance(alarm_t* alarm);
191 void alarm_free(alarm_t* alarm) { in alarm_free() argument
192 if (!alarm) return; in alarm_free()
194 alarm_cancel(alarm); in alarm_free()
196 osi_free((void*)alarm->stats.name); in alarm_free()
197 alarm->closure.~CancelableClosureInStruct(); in alarm_free()
198 osi_free(alarm); in alarm_free()
[all …]
/system/bt/osi/include/
Dalarm.h53 void alarm_free(alarm_t* alarm);
73 void alarm_set(alarm_t* alarm, uint64_t interval_ms, alarm_callback_t cb,
79 void alarm_set_on_mloop(alarm_t* alarm, uint64_t interval_ms,
87 void alarm_cancel(alarm_t* alarm);
91 bool alarm_is_scheduled(const alarm_t* alarm);
96 uint64_t alarm_get_remaining_ms(const alarm_t* alarm);
/system/core/libmemunreachable/tests/
DDisableMalloc_test.cpp31 void alarm(std::chrono::microseconds us) { in alarm() function in android::DisableMallocTest
43 alarm(100ms); in TEST_F()
63 alarm(100ms); in TEST_F()
83 alarm(100ms); in TEST_F()
99 alarm(250ms); in TEST_F()
113 alarm(100ms); in TEST_F()
124 alarm(100ms); in TEST_F()
/system/core/liblog/tests/
Dlog_wrap_test.cpp92 alarm(45); in TEST()
107 unsigned int alarm_left = alarm(0); in TEST()
109 alarm(alarm_left); in TEST()
116 alarm(0); in TEST()
Dliblog_benchmark.cpp693 alarm(alarm_time); in BM_log_latency()
704 alarm(alarm_time); in BM_log_latency()
738 alarm(0); in BM_log_latency()
768 alarm(alarm_time); in BM_log_delay()
778 alarm(alarm_time); in BM_log_delay()
809 alarm(0); in BM_log_delay()
Dliblog_test.cpp701 alarm(alarm_time); in TEST()
711 alarm(alarm_time); in TEST()
744 alarm(0); in TEST()
861 alarm(alarm_time); in TEST()
869 alarm(alarm_time); in TEST()
902 alarm(0); in TEST()
/system/core/logd/tests/
Dlogd_test.cpp368 unsigned int old_alarm = alarm(10); in TEST()
379 alarm(old_alarm); in TEST()
625 unsigned int old_alarm = alarm(3); in timeout_negative()
630 alarm(old_alarm); in timeout_negative()
639 alarm_wrap = alarm(5); in timeout_negative()
656 alarm_timeout = alarm(old_alarm); in timeout_negative()
739 unsigned int old_alarm = alarm(3); in TEST()
744 alarm(old_alarm); in TEST()
753 alarm_wrap = alarm(5); in TEST()
770 alarm_timeout = alarm(old_alarm); in TEST()
[all …]
/system/bt/gd/os/
DAndroid.bp4 "linux_generic/alarm.cc",
/system/core/liblog/
Dlogd_reader.cpp408 old_alarm = alarm(30); in logdOpen()
416 alarm(old_alarm); in logdOpen()
469 old_alarm = alarm(new_alarm); in logdRead()
481 alarm(old_alarm); in logdRead()
/system/bt/stack/gatt/
Dconnection_manager.cc48 void alarm_set_closure(const base::Location& posted_from, alarm_t* alarm, in alarm_set_closure() argument
54 alarm_set_on_mloop(alarm, interval_ms, alarm_closure_cb, data); in alarm_set_closure()
/system/bt/bta/sys/
Dbta_sys_main.cc545 void bta_sys_start_timer(alarm_t* alarm, uint64_t interval_ms, uint16_t event, in bta_sys_start_timer() argument
552 alarm_set_on_mloop(alarm, interval_ms, bta_sys_sendmsg, p_buf); in bta_sys_start_timer()
Dbta_sys.h225 extern void bta_sys_start_timer(alarm_t* alarm, uint64_t interval_ms,
/system/bt/osi/
DBUILD.gn19 "src/alarm.cc",
DAndroid.bp46 "src/alarm.cc",
/system/core/logcat/tests/
Dlogcat_test.cpp675 alarm(2); in TEST()
695 alarm(0); in TEST()
743 alarm(2); in TEST()
765 alarm(0); in TEST()
1217 alarm(2); in TEST()
1295 alarm(0); in TEST()
/system/extras/perfprofd/
Dperfprofdcore.cc204 alarm(num_seconds); in AlarmHelper()
208 alarm(0); in ~AlarmHelper()
/system/bt/bta/dm/
Dbta_dm_pm.cc864 alarm_t* alarm = (alarm_t*)data; local
872 if (bta_dm_cb.pm_timer[i].timer[j] == alarm) {
/system/core/llkd/
DREADME.md34 condition. Add a alarm self watchdog should llkd ever get locked up that is
127 the alarm watchdog for llkd.
/system/bt/stack/sdp/
Dsdp_utils.cc353 alarm_t* alarm = p_ccb->sdp_conn_timer; in sdpu_allocate_ccb() local
355 p_ccb->sdp_conn_timer = alarm; in sdpu_allocate_ccb()
/system/bt/stack/test/
Dble_advertiser_test.cc59 void alarm_set_on_mloop(alarm_t* alarm, uint64_t interval_ms, in alarm_set_on_mloop() argument
65 void alarm_cancel(alarm_t* alarm) {} in alarm_cancel() argument
68 void alarm_free(alarm_t* alarm) {} in alarm_free() argument
/system/core/debuggerd/
Ddebuggerd_test.cpp77 alarm(seconds); \
83 alarm(0); \
Dcrash_dump.cpp426 alarm(30); in main()
/system/sepolicy/prebuilts/api/26.0/private/
Dservice_contexts4 alarm u:object_r:alarm_service:s0

12