/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/test/fuzzers/alarm/ |
D | fuzz_alarm.cc | 64 bool fuzz_set_alarm(alarm_t* alarm, uint64_t interval, alarm_callback_t cb, in fuzz_set_alarm() argument 80 if (alarm) { in fuzz_set_alarm() 83 alarm_set_on_mloop(alarm, interval, cb, data_buffer); in fuzz_set_alarm() 85 alarm_set(alarm, interval, cb, data_buffer); in fuzz_set_alarm() 99 alarm_t* alarm = nullptr; in LLVMFuzzerTestOneInput() local 103 alarm = fuzz_init_alarm(&dataProvider); in LLVMFuzzerTestOneInput() 108 if (alarm) { in LLVMFuzzerTestOneInput() 109 if (!fuzz_set_alarm(alarm, MAX_ALARM_DURATION, cb, &dataProvider)) { in LLVMFuzzerTestOneInput() 112 alarm_cancel(alarm); in LLVMFuzzerTestOneInput() 116 alarm_is_scheduled(alarm); in LLVMFuzzerTestOneInput() [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/memory/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 | 73 alarm(5); in TEST() 80 alarm(0); in TEST()
|
D | liblog_benchmark.cpp | 660 alarm(alarm_time); in BM_log_latency() 671 alarm(alarm_time); in BM_log_latency() 705 alarm(0); in BM_log_latency() 734 alarm(alarm_time); in BM_log_delay() 744 alarm(alarm_time); in BM_log_delay() 775 alarm(0); in BM_log_delay()
|
D | liblog_test.cpp | 91 alarm(2); in RunLogTests() 92 auto alarm_guard = android::base::make_scope_guard([] { alarm(0); }); in RunLogTests() 582 alarm(alarm_time); in TEST() 592 alarm(alarm_time); in TEST() 625 alarm(0); in TEST() 740 alarm(alarm_time); in TEST() 748 alarm(alarm_time); in TEST() 781 alarm(0); in TEST() 1101 alarm(2); in TEST() 1102 auto alarm_guard = android::base::make_scope_guard([] { alarm(0); }); in TEST()
|
/system/core/logd/ |
D | logd_test.cpp | 519 unsigned int old_alarm = alarm(3); in timeout_negative() 524 alarm(old_alarm); in timeout_negative() 533 alarm_wrap = alarm(5); in timeout_negative() 550 alarm_timeout = alarm(old_alarm); in timeout_negative() 634 unsigned int old_alarm = alarm(3); in TEST() 639 alarm(old_alarm); in TEST() 648 alarm_wrap = alarm(5); in TEST() 665 alarm_timeout = alarm(old_alarm); in TEST() 745 unsigned int old_alarm = alarm(alarm_time); in TEST() 769 EXPECT_NE(0U, alarm(old_alarm)); in TEST()
|
/system/bt/gd/os/ |
D | Android.bp | 27 "linux_generic/alarm.cc",
|
/system/bt/gd/docs/architecture/ |
D | style_guide.md | 101 * alarm.h: common header for alarm 103 * alarm.cc: Linux generic implementation of alarm.h using timer_fd 104 * alarm_test.cc: unit test for alarm.h
|
D | architecture.md | 60 * Move alarm and timer mechanisms to their calling threads to avoid a separate 61 alarm thread
|
/system/bt/stack/gatt/ |
D | connection_manager.cc | 50 void alarm_set_closure(const base::Location& posted_from, alarm_t* alarm, in alarm_set_closure() argument 56 alarm_set_on_mloop(alarm, interval_ms, alarm_closure_cb, data); in alarm_set_closure()
|
/system/bt/bta/sys/ |
D | bta_sys_main.cc | 553 void bta_sys_start_timer(alarm_t* alarm, uint64_t interval_ms, uint16_t event, in bta_sys_start_timer() argument 560 alarm_set_on_mloop(alarm, interval_ms, bta_sys_sendmsg, p_buf); in bta_sys_start_timer()
|
D | bta_sys.h | 226 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 | 668 alarm(2); in TEST() 688 alarm(0); in TEST() 736 alarm(2); in TEST() 758 alarm(0); in TEST() 1210 alarm(2); in TEST() 1288 alarm(0); in TEST()
|
/system/bt/stack/sdp/ |
D | sdp_utils.cc | 358 alarm_t* alarm = p_ccb->sdp_conn_timer; in sdpu_allocate_ccb() local 360 p_ccb->sdp_conn_timer = alarm; in sdpu_allocate_ccb()
|
/system/bt/bta/dm/ |
D | bta_dm_pm.cc | 866 alarm_t* alarm = (alarm_t*)data; local 874 if (bta_dm_cb.pm_timer[i].timer[j] == alarm) {
|
/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/sepolicy/prebuilts/api/26.0/private/ |
D | service_contexts | 4 alarm u:object_r:alarm_service:s0
|
/system/core/debuggerd/ |
D | crash_dump.cpp | 439 alarm(30); in main()
|
/system/sepolicy/prebuilts/api/27.0/private/ |
D | service_contexts | 4 alarm u:object_r:alarm_service:s0
|