Lines Matching refs:modem_path
147 def _WaitForModemToReturn(manager, preexisting_modems_original, modem_path):
149 preexisting_modems.remove(modem_path)
152 lambda: _SawNewModem(manager, preexisting_modems, modem_path),
169 def SetFirmwareForTechnologyFamily(manager, modem_path, family):
175 logger.debug('SetFirmwareForTechnologyFamily : modem_path : %s ' %
176 modem_path)
180 gobi = manager.GetModem(modem_path).GobiModem()
184 modem_path, family)
193 return _WaitForModemToReturn(manager, preexisting_modems, modem_path)
209 def _IsCdmaModemConfiguredCorrectly(manager, modem_path):
210 """Returns true iff the CDMA modem at modem_path is configured correctly."""
214 status = manager.GetModem(modem_path).SimpleModem().GetStatus()
229 def PrepareCdmaModem(manager, modem_path):
232 if _IsCdmaModemConfiguredCorrectly(manager, modem_path):
233 return modem_path
237 cdma = manager.GetModem(modem_path).CdmaModem()
252 manager, preexisting_modems, modem_path)
259 def PrepareModemForTechnology(modem_path, target_technology):
262 manager, modem_path = mm.PickOneModem(modem_path)
264 logger.info('Found modem %s' % modem_path)
268 current_family = manager.GetModem(modem_path).GetCurrentTechnologyFamily()
274 modem_path = SetFirmwareForTechnologyFamily(
275 manager, modem_path, target_family)
278 modem_path = PrepareCdmaModem(manager, modem_path)
281 manager.GetModem(modem_path).GobiModem().ForceModemActivatedStatus()
292 gobi = manager.GetModem(modem_path).GobiModem()
298 return modem_path
303 manager, modem_path = mm.PickOneModem(modem_pattern)
305 modem = manager.GetModem(modem_path).Modem()
307 return _WaitForModemToReturn(manager, preexisting_modems, modem_path)