Lines Matching refs:new_mode
120 const tBTM_PM_PWR_MD& new_mode) { in BTM_SetPowerMode() argument
127 new_mode.mode, in BTM_SetPowerMode()
132 if (p_acl->policy.Mode() == new_mode.mode) { in BTM_SetPowerMode()
144 p_acl->policy.Mode(), power_mode_state_text(new_mode.mode).c_str(), in BTM_SetPowerMode()
145 new_mode.mode); in BTM_SetPowerMode()
147 p_acl->policy.mode.pending_ = new_mode.mode; in BTM_SetPowerMode()
148 switch (new_mode.mode) { in BTM_SetPowerMode()
154 set_sniff_mode(*p_acl, new_mode.max, new_mode.min, new_mode.attempt, in BTM_SetPowerMode()
155 new_mode.timeout); in BTM_SetPowerMode()
159 return set_hold_mode(*p_acl, new_mode.max, new_mode.min); in BTM_SetPowerMode()
175 tBTM_PM_MODE new_mode = HCI_TO_BTM_POWER_MODE(hci_mode); in btm_pm_on_mode_change() local
180 hci_error_code_text(status).c_str(), handle, new_mode, interval); in btm_pm_on_mode_change()
197 power_mode_state_text(new_mode).c_str(), new_mode, in btm_pm_on_mode_change()
201 p_acl->policy.Mode(), power_mode_state_text(new_mode).c_str(), in btm_pm_on_mode_change()
202 new_mode, power_mode_state_text(pending).c_str()); in btm_pm_on_mode_change()
203 p_acl->policy.mode.mode_ = new_mode; in btm_pm_on_mode_change()
205 if (new_mode == (BTM_PM_ST_ACTIVE) || new_mode == (BTM_PM_ST_SNIFF)) { in btm_pm_on_mode_change()
229 (*client_callback)(p_acl->remote_addr, new_mode, interval, status); in btm_pm_on_mode_change()