Lines Matching refs:pm_timer
99 bta_dm_cb.pm_timer[i].srvc_id[j] = BTA_ID_MAX; in bta_dm_init_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()
224 if (bta_dm_cb.pm_timer[i].srvc_id[timer_idx] != BTA_ID_MAX) { in bta_dm_pm_stop_timer_by_mode()
225 bta_dm_pm_stop_timer_by_index(&bta_dm_cb.pm_timer[i], timer_idx); in bta_dm_pm_stop_timer_by_mode()
232 bta_dm_cb.pm_timer[i].pm_action[timer_idx] = power_mode; in bta_dm_pm_stop_timer_by_mode()
252 if (bta_dm_cb.pm_timer[i].in_use && in bta_dm_pm_stop_timer_by_srvc_id()
253 bta_dm_cb.pm_timer[i].peer_bdaddr == peer_addr) { in bta_dm_pm_stop_timer_by_srvc_id()
255 if (bta_dm_cb.pm_timer[i].srvc_id[j] == srvc_id) { in bta_dm_pm_stop_timer_by_srvc_id()
256 bta_dm_pm_stop_timer_by_index(&bta_dm_cb.pm_timer[i], j); in bta_dm_pm_stop_timer_by_srvc_id()
257 bta_dm_cb.pm_timer[i].pm_action[j] = BTA_DM_PM_NO_ACTION; in bta_dm_pm_stop_timer_by_srvc_id()
599 if (bta_dm_cb.pm_timer[i].in_use && in bta_dm_pm_set_mode()
600 bta_dm_cb.pm_timer[i].peer_bdaddr == peer_addr) { in bta_dm_pm_set_mode()
604 alarm_get_remaining_ms(bta_dm_cb.pm_timer[i].timer[timer_idx]); in bta_dm_pm_set_mode()
614 bta_dm_pm_stop_timer_by_index(&bta_dm_cb.pm_timer[i], timer_idx); in bta_dm_pm_set_mode()
615 bta_dm_pm_start_timer(&bta_dm_cb.pm_timer[i], timer_idx, timeout_ms, in bta_dm_pm_set_mode()
621 } else if (!bta_dm_cb.pm_timer[i].in_use) { in bta_dm_pm_set_mode()
629 bta_dm_cb.pm_timer[available_timer].peer_bdaddr = peer_addr; in bta_dm_pm_set_mode()
632 bta_dm_pm_start_timer(&bta_dm_cb.pm_timer[available_timer], timer_idx, in bta_dm_pm_set_mode()
869 bta_dm_cb.pm_timer[i].in_use);
870 if (bta_dm_cb.pm_timer[i].in_use) {
872 if (bta_dm_cb.pm_timer[i].timer[j] == alarm) {
873 bta_dm_cb.pm_timer[i].active--;
874 bta_dm_cb.pm_timer[i].srvc_id[j] = BTA_ID_MAX;
879 if (bta_dm_cb.pm_timer[i].active == 0)
880 bta_dm_cb.pm_timer[i].in_use = false;
890 FROM_HERE, base::Bind(bta_dm_pm_timer, bta_dm_cb.pm_timer[i].peer_bdaddr,
891 bta_dm_cb.pm_timer[i].pm_action[j]));