Home
last modified time | relevance | path

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

12

/system/bt/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);
/system/bt/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(AlarmSetOnMloop, void(alarm_t* alarm, uint64_t interval_ms,
14 alarm_t* AlarmNewImpl(const char* name) { in AlarmNewImpl()
19 return (alarm_t*)new uint8_t[30]; in AlarmNewImpl()
22 void AlarmFreeImpl(alarm_t* alarm) { in AlarmFreeImpl()
43 alarm_t* alarm_new(const char* name) { in alarm_new()
47 void alarm_free(alarm_t* alarm) { AlarmMock::Get()->AlarmFreeImpl(alarm); } in alarm_free()
[all …]
Dalarm_test.cc75 alarm_t* alarm = alarm_new("alarm_test.test_new_free_simple"); in TEST_F()
83 alarm_t* alarm = alarm_new("alarm_test.test_simple_cancel"); in TEST_F()
89 alarm_t* alarm = alarm_new("alarm_test.test_cancel"); in TEST_F()
101 alarm_t* alarm = alarm_new("alarm_test.test_cancel_idempotent"); in TEST_F()
110 alarm_t* alarm = alarm_new("alarm_test.test_set_short"); in TEST_F()
126 alarm_t* alarm = alarm_new_periodic("alarm_test.test_set_short_periodic"); in TEST_F()
146 alarm_t* alarm = alarm_new_periodic("alarm_test.test_set_zero_periodic"); in TEST_F()
165 alarm_t* alarm = alarm_new("alarm_test.test_set_long"); in TEST_F()
180 alarm_t* alarm[2] = {alarm_new("alarm_test.test_set_short_short_0"), in TEST_F()
204 alarm_t* alarm[2] = {alarm_new("alarm_test.test_set_short_long_0"), in TEST_F()
[all …]
/system/bt/osi/src/
Dalarm.cc86 struct alarm_t { struct
133 static alarm_t* alarm_new_internal(const char* name, bool is_periodic);
136 static void alarm_set_internal(alarm_t* alarm, uint64_t period_ms,
139 static void alarm_cancel_internal(alarm_t* alarm);
140 static void remove_pending_alarm(alarm_t* alarm);
141 static void schedule_next_instance(alarm_t* alarm);
160 alarm_t* alarm_new(const char* name) { return alarm_new_internal(name, false); } in alarm_new()
162 alarm_t* alarm_new_periodic(const char* name) { in alarm_new_periodic()
166 static alarm_t* alarm_new_internal(const char* name, bool is_periodic) { in alarm_new_internal()
173 alarm_t* ret = static_cast<alarm_t*>(osi_calloc(sizeof(alarm_t))); in alarm_new_internal()
[all …]
/system/bt/stack/btm/
Dbtm_int_types.h136 alarm_t* read_local_name_timer; /* Read local name timer */
140 alarm_t* read_rssi_timer; /* Read RSSI timer */
144 alarm_t* read_failed_contact_counter_timer; /* Read Failed Contact Counter */
149 alarm_t*
155 alarm_t* read_link_quality_timer;
159 alarm_t* read_tx_power_timer; /* Read tx power timer */
260 alarm_t* sec_collision_timer{nullptr};
275 alarm_t* pairing_timer{nullptr}; /* Timer for pairing process */
Dbtm_ble_int_types.h111 alarm_t* fast_adv_timer;
117 alarm_t* inquiry_timer;
131 alarm_t* refresh_raddr_timer;
224 alarm_t* observer_timer;
Dneighbor_inquiry.h188 alarm_t* remote_name_timer;
/system/bt/bta/hf_client/
Dbta_hf_client_at.h54 alarm_t* resp_timer; /* AT response timer */
55 alarm_t* hold_timer; /* AT hold timer */
/system/bt/osi/test/fuzzers/alarm/
Dfuzz_alarm.cc49 alarm_t* fuzz_init_alarm(FuzzedDataProvider* dataProvider) { in fuzz_init_alarm()
64 bool fuzz_set_alarm(alarm_t* alarm, uint64_t interval, alarm_callback_t cb, in fuzz_set_alarm()
99 alarm_t* alarm = nullptr; in LLVMFuzzerTestOneInput()
/system/bt/test/stub/
Dosi.cc373 alarm_t* alarm_new(const char* name) { in alarm_new()
377 alarm_t* alarm_new_periodic(const char* name) { in alarm_new_periodic()
381 bool alarm_is_scheduled(const alarm_t* alarm) { in alarm_is_scheduled()
385 uint64_t alarm_get_remaining_ms(const alarm_t* alarm) { in alarm_get_remaining_ms()
389 void alarm_cancel(alarm_t* alarm) { mock_function_count_map[__func__]++; } in alarm_cancel()
392 void alarm_free(alarm_t* alarm) { mock_function_count_map[__func__]++; } in alarm_free()
393 void alarm_set(alarm_t* alarm, uint64_t interval_ms, alarm_callback_t cb, in alarm_set()
399 void alarm_set_on_mloop(alarm_t* alarm, uint64_t interval_ms, in alarm_set_on_mloop()
/system/bt/bta/dm/
Dbta_dm_int.h294 alarm_t* timer[BTA_DM_PM_MODE_TIMER_MAX];
316 alarm_t* disable_timer;
348 alarm_t* switch_delay_timer;
364 alarm_t* search_timer;
378 alarm_t* gatt_close_timer; /* GATT channel close delay timer */
/system/bt/stack/rfcomm/
Dport_int.h81 alarm_t* mcb_timer = nullptr; /* MCB timer */
120 alarm_t* port_timer;
/system/bt/test/mock/
Dmock_bta_sys_main.cc61 void bta_sys_start_timer(alarm_t* alarm, uint64_t interval_ms, uint16_t event, in bta_sys_start_timer()
/system/bt/stack/hid/
Dhid_conn.h74 alarm_t* process_repage_timer;
/system/bt/stack/eatt/
Deatt.h51 alarm_t* ind_ack_timer_;
53 alarm_t* ind_confirmation_timer_;
/system/bt/stack/gatt/
Dconnection_manager.cc51 void alarm_set_closure(const base::Location& posted_from, alarm_t* alarm, in alarm_set_closure()
60 using unique_alarm_ptr = std::unique_ptr<alarm_t, decltype(&alarm_free)>;
242 alarm_t* timeout = alarm_new("wl_conn_params_30s"); in direct_connect_add()
/system/bt/bta/ag/
Dbta_ag_int.h237 alarm_t* bind_timer; /* Timer for toyota camry 2018 carkit workaround */
238 alarm_t* collision_timer;
239 alarm_t* ring_timer;
240 alarm_t* codec_negotiation_timer;
/system/bt/stack/l2cap/
Dl2c_int.h248 alarm_t* ack_timer; /* Timer delaying RR */
249 alarm_t* mon_retrans_timer; /* Timer Monitor or Retransmission */
305 alarm_t* l2c_ccb_timer; /* CCB Timer Entry */
430 alarm_t* l2c_lcb_timer; /* Timer entry for timeout evt */
443 alarm_t* info_resp_timer; /* Timer entry for info resp timeout evt */
591 alarm_t* receive_hold_timer; /* Timer entry for rcv hold */
/system/bt/btif/include/
Dbtif_hh.h91 alarm_t* vup_timer;
/system/bt/stack/avrc/
Davrc_int.h140 alarm_t* tle; /* Command timeout timer */
/system/bt/bta/sys/
Dbta_sys_main.cc192 void bta_sys_start_timer(alarm_t* alarm, uint64_t interval_ms, uint16_t event, in bta_sys_start_timer()
/system/bt/common/benchmark/
Dtimer_performance_benchmark.cc75 alarm_t* alarm_ = nullptr;
175 alarm_t* alarm_ = nullptr;
/system/bt/btif/src/
Dbtif_a2dp_sink.cc116 alarm_t* decode_alarm;
300 alarm_t* decode_alarm; in btif_a2dp_sink_cleanup()
456 alarm_t* old_alarm; in btif_a2dp_sink_audio_handle_stop_decoding()
/system/bt/stack/avdt/
Davdt_int.h487 alarm_t* transport_channel_timer; // Transport channel connect timer
608 alarm_t* idle_ccb_timer; // Idle CCB timer entry
609 alarm_t* ret_ccb_timer; // Ret CCB timer entry
610 alarm_t* rsp_ccb_timer; // Rsp CCB timer entry
/system/bt/stack/bnep/
Dbnep_int.h109 alarm_t* conn_timer;

12