/system/bt/osi/test/ |
D | alarm_test.cc | 76 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 …]
|
D | alarm_mock.h | 11 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/ |
D | alarm.cc | 138 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/ |
D | alarm.h | 53 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/ |
D | DisableMalloc_test.cpp | 31 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/ |
D | log_wrap_test.cpp | 92 alarm(45); in TEST() 107 unsigned int alarm_left = alarm(0); in TEST() 109 alarm(alarm_left); in TEST() 116 alarm(0); in TEST()
|
D | liblog_benchmark.cpp | 693 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()
|
D | liblog_test.cpp | 701 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/ |
D | logd_test.cpp | 368 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/ |
D | Android.bp | 4 "linux_generic/alarm.cc",
|
/system/core/liblog/ |
D | logd_reader.cpp | 408 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/ |
D | connection_manager.cc | 48 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/ |
D | bta_sys_main.cc | 545 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()
|
D | bta_sys.h | 225 extern void bta_sys_start_timer(alarm_t* alarm, uint64_t interval_ms,
|
/system/bt/osi/ |
D | BUILD.gn | 19 "src/alarm.cc",
|
D | Android.bp | 46 "src/alarm.cc",
|
/system/core/logcat/tests/ |
D | logcat_test.cpp | 675 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/ |
D | perfprofdcore.cc | 204 alarm(num_seconds); in AlarmHelper() 208 alarm(0); in ~AlarmHelper()
|
/system/bt/bta/dm/ |
D | bta_dm_pm.cc | 864 alarm_t* alarm = (alarm_t*)data; local 872 if (bta_dm_cb.pm_timer[i].timer[j] == alarm) {
|
/system/core/llkd/ |
D | README.md | 34 condition. Add a alarm self watchdog should llkd ever get locked up that is 127 the alarm watchdog for llkd.
|
/system/bt/stack/sdp/ |
D | sdp_utils.cc | 353 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/ |
D | ble_advertiser_test.cc | 59 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/ |
D | debuggerd_test.cpp | 77 alarm(seconds); \ 83 alarm(0); \
|
D | crash_dump.cpp | 426 alarm(30); in main()
|
/system/sepolicy/prebuilts/api/26.0/private/ |
D | service_contexts | 4 alarm u:object_r:alarm_service:s0
|