Home
last modified time | relevance | path

Searched refs:alarm_t (Results 1 – 25 of 56) sorted by relevance

123

/packages/modules/Bluetooth/system/test/mock/
Dmock_osi_alarm.h43 std::function<void(alarm_t* alarm)> body{[](alarm_t* /* alarm */) {}};
44 void operator()(alarm_t* alarm) { body(alarm); }; in operator()
70 std::function<void(alarm_t* alarm)> body{[](alarm_t* /* alarm */) {}};
71 void operator()(alarm_t* alarm) { body(alarm); }; in operator()
80 std::function<uint64_t(const alarm_t* alarm)> body{
81 [this](const alarm_t* /* alarm */) { return return_value; }};
82 uint64_t operator()(const alarm_t* alarm) { return body(alarm); }; in operator()
91 std::function<bool(const alarm_t* alarm)> body{
92 [this](const alarm_t* /* alarm */) { return return_value; }};
93 bool operator()(const alarm_t* alarm) { return body(alarm); }; in operator()
[all …]
Dmock_osi_alarm.cc53 void alarm_cancel(alarm_t* alarm) { in alarm_cancel()
65 void alarm_free(alarm_t* alarm) { in alarm_free()
69 uint64_t alarm_get_remaining_ms(const alarm_t* alarm) { in alarm_get_remaining_ms()
73 bool alarm_is_scheduled(const alarm_t* alarm) { in alarm_is_scheduled()
77 alarm_t* alarm_new(const char* name) { in alarm_new()
81 alarm_t* alarm_new_periodic(const char* name) { in alarm_new_periodic()
85 void alarm_set(alarm_t* alarm, uint64_t interval_ms, alarm_callback_t cb, in alarm_set()
90 void alarm_set_on_mloop(alarm_t* alarm, uint64_t interval_ms, in alarm_set_on_mloop()
Dmock_bta_sys_main.h120 std::function<void(alarm_t* alarm, uint64_t interval_ms, uint16_t event,
122 body{[](alarm_t* /* alarm */, uint64_t /* interval_ms */,
124 void operator()(alarm_t* alarm, uint64_t interval_ms, uint16_t event, in operator()
/packages/modules/Bluetooth/system/osi/test/
Dalarm_mock.h4 struct alarm_t;
8 MOCK_METHOD1(AlarmNew, alarm_t*(const char*));
9 MOCK_METHOD1(AlarmFree, void(alarm_t*));
10 MOCK_METHOD1(AlarmCancel, void(alarm_t*));
11 MOCK_METHOD4(AlarmSet, void(alarm_t* alarm, uint64_t interval_ms,
13 MOCK_METHOD4(AlarmSetOnMloop, void(alarm_t* alarm, uint64_t interval_ms,
15 MOCK_METHOD1(AlarmIsScheduled, bool(const alarm_t*));
17 alarm_t* AlarmNewImpl(const char* name) { in AlarmNewImpl()
22 return (alarm_t*)new uint8_t[30]; in AlarmNewImpl()
25 void AlarmFreeImpl(alarm_t* alarm) { in AlarmFreeImpl()
[all …]
Dalarm_test.cc97 alarm_t* alarm = alarm_new("alarm_test.test_new_free_simple"); in TEST_F()
105 alarm_t* alarm = alarm_new("alarm_test.test_simple_cancel"); in TEST_F()
111 alarm_t* alarm = alarm_new("alarm_test.test_cancel"); in TEST_F()
123 alarm_t* alarm = alarm_new("alarm_test.test_cancel_idempotent"); in TEST_F()
132 alarm_t* alarm = alarm_new("alarm_test.test_set_short"); in TEST_F()
148 alarm_t* alarm = alarm_new_periodic("alarm_test.test_set_short_periodic"); in TEST_F()
168 alarm_t* alarm = alarm_new_periodic("alarm_test.test_set_zero_periodic"); in TEST_F()
187 alarm_t* alarm = alarm_new("alarm_test.test_set_long"); in TEST_F()
202 alarm_t* alarm[2] = {alarm_new("alarm_test.test_set_short_short_0"), in TEST_F()
226 alarm_t* alarm[2] = {alarm_new("alarm_test.test_set_short_long_0"), in TEST_F()
[all …]
/packages/modules/Bluetooth/system/osi/include/
Dalarm.h24 typedef struct alarm_t alarm_t; typedef
38 alarm_t* alarm_new(const char* name);
47 alarm_t* alarm_new_periodic(const char* name);
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);
/packages/modules/Bluetooth/system/osi/src/
Dalarm.cc81 struct alarm_t { struct
128 static alarm_t* alarm_new_internal(const char* name, bool is_periodic);
131 static void alarm_set_internal(alarm_t* alarm, uint64_t period_ms,
134 static void alarm_cancel_internal(alarm_t* alarm);
135 static void remove_pending_alarm(alarm_t* alarm);
136 static void schedule_next_instance(alarm_t* alarm);
155 alarm_t* alarm_new(const char* name) { return alarm_new_internal(name, false); } in alarm_new()
157 alarm_t* alarm_new_periodic(const char* name) { in alarm_new_periodic()
161 static alarm_t* alarm_new_internal(const char* name, bool is_periodic) { in alarm_new_internal()
169 alarm_t* ret = static_cast<alarm_t*>(osi_calloc(sizeof(alarm_t))); in alarm_new_internal()
[all …]
/packages/modules/Bluetooth/system/stack/btm/
Dbtm_int_types.h70 alarm_t* read_local_name_timer; /* Read local name timer */
74 alarm_t* read_rssi_timer; /* Read RSSI timer */
78 alarm_t* read_failed_contact_counter_timer; /* Read Failed Contact Counter */
83 alarm_t*
89 alarm_t* read_tx_power_timer; /* Read tx power timer */
Dbtm_ble_int_types.h107 alarm_t* fast_adv_timer;
113 alarm_t* inquiry_timer;
127 alarm_t* refresh_raddr_timer;
220 alarm_t* observer_timer;
Dbtm_sec_cb.h53 alarm_t* sec_collision_timer{nullptr};
68 alarm_t* pairing_timer{nullptr}; /* Timer for pairing process */
69 alarm_t* execution_wait_timer{nullptr}; /* To avoid concurrent auth request */
Dneighbor_inquiry.h215 alarm_t* remote_name_timer;
216 alarm_t* classic_inquiry_timer;
/packages/modules/Bluetooth/system/test/stub/
Dosi.cc346 alarm_t* alarm_new(const char* name) { in alarm_new()
348 return (alarm_t*)new uint8_t[30]; in alarm_new()
350 alarm_t* alarm_new_periodic(const char* name) { in alarm_new_periodic()
355 bool alarm_is_scheduled(const alarm_t* alarm) { in alarm_is_scheduled()
359 uint64_t alarm_get_remaining_ms(const alarm_t* alarm) { in alarm_get_remaining_ms()
363 void alarm_cancel(alarm_t* alarm) { in alarm_cancel()
371 void alarm_free(alarm_t* alarm) { in alarm_free()
376 void alarm_set(alarm_t* alarm, uint64_t interval_ms, alarm_callback_t cb, in alarm_set()
381 void alarm_set_on_mloop(alarm_t* alarm, uint64_t interval_ms, in alarm_set_on_mloop()
/packages/modules/Bluetooth/system/osi/test/fuzzers/alarm/
Dfuzz_alarm.cc76 alarm_t* fuzz_init_alarm(FuzzedDataProvider* dataProvider) { in fuzz_init_alarm()
91 bool fuzz_set_alarm(alarm_t* alarm, uint64_t interval, alarm_callback_t cb, in fuzz_set_alarm()
126 alarm_t* alarm = nullptr; in LLVMFuzzerTestOneInput()
/packages/modules/Bluetooth/system/bta/hf_client/
Dbta_hf_client_at.h54 alarm_t* resp_timer; /* AT response timer */
55 alarm_t* hold_timer; /* AT hold timer */
/packages/modules/Bluetooth/system/bta/test/
Dbta_av_test.cc36 struct alarm_t { struct
37 alarm_t(const char* name){}; in alarm_t() function
/packages/modules/Bluetooth/system/device/test/
Ddevice_iot_config_test.cc51 struct alarm_t { struct
52 alarm_t(const char* name){}; in alarm_t() argument
61 struct alarm_t placeholder_alarm(""); argument
68 test::mock::osi_alarm::alarm_new.body = [&](const char* name) -> alarm_t* { in SetUp()
76 [&](alarm_t* alarm, uint64_t interval_ms, alarm_callback_t cb, in SetUp()
79 test::mock::osi_alarm::alarm_free.body = [](alarm_t* alarm) {}; in SetUp()
82 [&](const alarm_t* alarm) -> bool { return false; }; in SetUp()
740 [&](const alarm_t* alarm) -> bool { return return_value; }; in TEST_F_WITH_FLAGS()
786 [&](const alarm_t* alarm) -> bool { return return_value; }; in TEST_F_WITH_FLAGS()
829 test::mock::osi_alarm::alarm_new.body = [&](const char* name) -> alarm_t* { in SetUp()
[all …]
/packages/modules/Bluetooth/system/test/fake/
Dfake_osi.cc28 struct alarm_t { struct
32 alarm_t(const char* /* name */) { in alarm_t() function
87 test::mock::osi_alarm::alarm_free.body = [](alarm_t* alarm) { in FakeOsi()
94 return new alarm_t(name); in FakeOsi()
98 [](alarm_t* alarm, uint64_t /* interval_ms */, alarm_callback_t cb, in FakeOsi()
104 test::mock::osi_alarm::alarm_cancel.body = [](alarm_t* alarm) { in FakeOsi()
/packages/modules/Bluetooth/system/bta/dm/
Dbta_dm_int.h187 alarm_t* timer[BTA_DM_PM_MODE_TIMER_MAX];
210 alarm_t* disable_timer;
220 alarm_t* switch_delay_timer;
Dbta_dm_disc_int_legacy.h157 alarm_t* search_timer;
171 alarm_t* gatt_close_timer; /* GATT channel close delay timer */
/packages/modules/Bluetooth/system/bta/ag/
Dbta_ag_int.h290 alarm_t* bind_timer; /* Timer for toyota camry 2018 carkit workaround */
291 alarm_t* collision_timer;
292 alarm_t* ring_timer;
293 alarm_t* codec_negotiation_timer;
/packages/modules/Bluetooth/system/stack/eatt/
Deatt.h56 alarm_t* ind_ack_timer_;
58 alarm_t* ind_confirmation_timer_;
/packages/modules/Bluetooth/system/stack/rfcomm/
Dport_int.h85 alarm_t* mcb_timer = nullptr; /* MCB timer */
124 alarm_t* port_timer;
/packages/modules/Bluetooth/system/stack/l2cap/
Dl2c_int.h245 alarm_t* ack_timer; /* Timer delaying RR */
246 alarm_t* mon_retrans_timer; /* Timer Monitor or Retransmission */
298 alarm_t* l2c_ccb_timer; /* CCB Timer Entry */
421 alarm_t* l2c_lcb_timer; /* Timer entry for timeout evt */
441 alarm_t* info_resp_timer; /* Timer entry for info resp timeout evt */
/packages/modules/Bluetooth/system/stack/gatt/
Dconnection_manager.cc61 void alarm_set_closure(const base::Location& posted_from, alarm_t* alarm, in alarm_set_closure()
70 using unique_alarm_ptr = std::unique_ptr<alarm_t, decltype(&alarm_free)>;
489 alarm_t* timeout = alarm_new("wl_conn_params_30s"); in direct_connect_add()
/packages/modules/Bluetooth/system/stack/hid/
Dhid_conn.h73 alarm_t* process_repage_timer;

123