Lines Matching refs:pm_timer
93 bta_dm_cb.pm_timer[i].srvc_id[j] = BTA_ID_MAX; in bta_dm_init_pm()
119 bta_dm_pm_stop_timer_by_index(&bta_dm_cb.pm_timer[i], j); in bta_dm_disable_pm()
120 bta_dm_cb.pm_timer[i].pm_action[j] = BTA_DM_PM_NO_ACTION; in bta_dm_disable_pm()
157 if (bta_dm_cb.pm_timer[i].in_use && in bta_dm_pm_stop_timer()
158 bta_dm_cb.pm_timer[i].peer_bdaddr == peer_addr) { in bta_dm_pm_stop_timer()
160 bta_dm_pm_stop_timer_by_index(&bta_dm_cb.pm_timer[i], j); in bta_dm_pm_stop_timer()
216 if (bta_dm_cb.pm_timer[i].in_use && in bta_dm_pm_stop_timer_by_mode()
217 bta_dm_cb.pm_timer[i].peer_bdaddr == peer_addr) { in bta_dm_pm_stop_timer_by_mode()
218 if (bta_dm_cb.pm_timer[i].srvc_id[timer_idx] != BTA_ID_MAX) { in bta_dm_pm_stop_timer_by_mode()
219 bta_dm_pm_stop_timer_by_index(&bta_dm_cb.pm_timer[i], timer_idx); in bta_dm_pm_stop_timer_by_mode()
226 bta_dm_cb.pm_timer[i].pm_action[timer_idx] = power_mode; in bta_dm_pm_stop_timer_by_mode()
246 if (bta_dm_cb.pm_timer[i].in_use && in bta_dm_pm_stop_timer_by_srvc_id()
247 bta_dm_cb.pm_timer[i].peer_bdaddr == peer_addr) { in bta_dm_pm_stop_timer_by_srvc_id()
249 if (bta_dm_cb.pm_timer[i].srvc_id[j] == srvc_id) { in bta_dm_pm_stop_timer_by_srvc_id()
250 bta_dm_pm_stop_timer_by_index(&bta_dm_cb.pm_timer[i], j); in bta_dm_pm_stop_timer_by_srvc_id()
251 bta_dm_cb.pm_timer[i].pm_action[j] = BTA_DM_PM_NO_ACTION; in bta_dm_pm_stop_timer_by_srvc_id()
606 if (bta_dm_cb.pm_timer[i].in_use && in bta_dm_pm_set_mode()
607 bta_dm_cb.pm_timer[i].peer_bdaddr == peer_addr) { in bta_dm_pm_set_mode()
611 alarm_get_remaining_ms(bta_dm_cb.pm_timer[i].timer[timer_idx]); in bta_dm_pm_set_mode()
621 bta_dm_pm_stop_timer_by_index(&bta_dm_cb.pm_timer[i], timer_idx); in bta_dm_pm_set_mode()
622 bta_dm_pm_start_timer(&bta_dm_cb.pm_timer[i], timer_idx, timeout_ms, in bta_dm_pm_set_mode()
628 } else if (!bta_dm_cb.pm_timer[i].in_use) { in bta_dm_pm_set_mode()
635 bta_dm_cb.pm_timer[available_timer].peer_bdaddr = peer_addr; in bta_dm_pm_set_mode()
638 bta_dm_pm_start_timer(&bta_dm_cb.pm_timer[available_timer], timer_idx, in bta_dm_pm_set_mode()
918 bta_dm_cb.pm_timer[i].in_use); in bta_dm_pm_timer_cback()
919 if (bta_dm_cb.pm_timer[i].in_use) { in bta_dm_pm_timer_cback()
921 if (bta_dm_cb.pm_timer[i].timer[j] == alarm) { in bta_dm_pm_timer_cback()
922 bta_dm_cb.pm_timer[i].active--; in bta_dm_pm_timer_cback()
923 bta_dm_cb.pm_timer[i].srvc_id[j] = BTA_ID_MAX; in bta_dm_pm_timer_cback()
928 if (bta_dm_cb.pm_timer[i].active == 0) in bta_dm_pm_timer_cback()
929 bta_dm_cb.pm_timer[i].in_use = false; in bta_dm_pm_timer_cback()
939 FROM_HERE, base::Bind(bta_dm_pm_timer, bta_dm_cb.pm_timer[i].peer_bdaddr, in bta_dm_pm_timer_cback()
940 bta_dm_cb.pm_timer[i].pm_action[j])); in bta_dm_pm_timer_cback()