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.cc255 if (bta_dm_cb.is_bta_dm_active) { in bta_dm_enable()
271 if (p_sec_cback != NULL) bta_dm_cb.p_sec_cback = p_sec_cback; in bta_dm_enable()
273 bta_dm_cb.is_bta_dm_active = true; in bta_dm_enable()
297 memset(&bta_dm_cb, 0, sizeof(bta_dm_cb)); in bta_dm_init_cb()
298 bta_dm_cb.disable_timer = alarm_new("bta_dm.disable_timer"); in bta_dm_init_cb()
299 bta_dm_cb.switch_delay_timer = alarm_new("bta_dm.switch_delay_timer"); in bta_dm_init_cb()
302 bta_dm_cb.pm_timer[i].timer[j] = alarm_new("bta_dm.pm_timer"); in bta_dm_init_cb()
322 alarm_free(bta_dm_cb.disable_timer); in bta_dm_deinit_cb()
323 alarm_free(bta_dm_cb.switch_delay_timer); in bta_dm_deinit_cb()
326 alarm_free(bta_dm_cb.pm_timer[i].timer[j]); in bta_dm_deinit_cb()
[all …]
Dbta_dm_pm.cc92 BTM_PmRegister((BTM_PM_REG_SET | BTM_PM_REG_NOTIF), &bta_dm_cb.pm_id, in bta_dm_init_pm()
99 bta_dm_cb.pm_timer[i].srvc_id[j] = BTA_ID_MAX; in bta_dm_init_pm()
114 BTM_PmRegister(BTM_PM_DEREG, &bta_dm_cb.pm_id, NULL); in bta_dm_disable_pm()
125 bta_dm_pm_stop_timer_by_index(&bta_dm_cb.pm_timer[i], j); in bta_dm_disable_pm()
126 bta_dm_cb.pm_timer[i].pm_action[j] = BTA_DM_PM_NO_ACTION; in bta_dm_disable_pm()
163 if (bta_dm_cb.pm_timer[i].in_use && in bta_dm_pm_stop_timer()
164 bta_dm_cb.pm_timer[i].peer_bdaddr == peer_addr) { in bta_dm_pm_stop_timer()
166 bta_dm_pm_stop_timer_by_index(&bta_dm_cb.pm_timer[i], j); in bta_dm_pm_stop_timer()
222 if (bta_dm_cb.pm_timer[i].in_use && in bta_dm_pm_stop_timer_by_mode()
223 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