Home
last modified time | relevance | path

Searched refs:bta_dm_cb (Results 1 – 6 of 6) sorted by relevance

/system/bt/bta/dm/
Dbta_dm_act.cc257 if (bta_dm_cb.is_bta_dm_active) { in bta_dm_enable()
273 if (p_sec_cback != NULL) bta_dm_cb.p_sec_cback = p_sec_cback; in bta_dm_enable()
275 bta_dm_cb.is_bta_dm_active = true; in bta_dm_enable()
299 memset(&bta_dm_cb, 0, sizeof(bta_dm_cb)); in bta_dm_init_cb()
300 bta_dm_cb.disable_timer = alarm_new("bta_dm.disable_timer"); in bta_dm_init_cb()
301 bta_dm_cb.switch_delay_timer = alarm_new("bta_dm.switch_delay_timer"); in bta_dm_init_cb()
304 bta_dm_cb.pm_timer[i].timer[j] = alarm_new("bta_dm.pm_timer"); in bta_dm_init_cb()
324 alarm_free(bta_dm_cb.disable_timer); in bta_dm_deinit_cb()
325 alarm_free(bta_dm_cb.switch_delay_timer); in bta_dm_deinit_cb()
328 alarm_free(bta_dm_cb.pm_timer[i].timer[j]); in bta_dm_deinit_cb()
[all …]
Dbta_dm_pm.cc93 BTM_PmRegister((BTM_PM_REG_SET | BTM_PM_REG_NOTIF), &bta_dm_cb.pm_id, in bta_dm_init_pm()
100 bta_dm_cb.pm_timer[i].srvc_id[j] = BTA_ID_MAX; in bta_dm_init_pm()
115 BTM_PmRegister(BTM_PM_DEREG, &bta_dm_cb.pm_id, NULL); in bta_dm_disable_pm()
126 bta_dm_pm_stop_timer_by_index(&bta_dm_cb.pm_timer[i], j); in bta_dm_disable_pm()
127 bta_dm_cb.pm_timer[i].pm_action[j] = BTA_DM_PM_NO_ACTION; in bta_dm_disable_pm()
164 if (bta_dm_cb.pm_timer[i].in_use && in bta_dm_pm_stop_timer()
165 bta_dm_cb.pm_timer[i].peer_bdaddr == peer_addr) { in bta_dm_pm_stop_timer()
167 bta_dm_pm_stop_timer_by_index(&bta_dm_cb.pm_timer[i], j); in bta_dm_pm_stop_timer()
223 if (bta_dm_cb.pm_timer[i].in_use && in bta_dm_pm_stop_timer_by_mode()
224 bta_dm_cb.pm_timer[i].peer_bdaddr == peer_addr) { in bta_dm_pm_stop_timer_by_mode()
[all …]
Dbta_dm_main.cc33 tBTA_DM_CB bta_dm_cb; variable
Dbta_dm_int.h465 extern tBTA_DM_CB bta_dm_cb;
Dbta_dm_api.cc60 if (bta_dm_cb.disabling) return BTA_FAILURE; in BTA_EnableBluetooth()
/system/bt/doc/
Dpower_management.md133 in `bta_dm_cb.pm_timer` is started.
146 At this point, if one of the timers in `bta_dm_cb.pm_timer` times out, a call is