Lines Matching refs:mm1_constants

14 from autotest_lib.client.cros.cellular import mm1_constants
120 path = mm1_constants.MM1 + '/SIM/' + str(index)
128 mm1_constants.MM_MODEM_LOCK_SIM_PIN : {
132 mm1_constants.MM_MODEM_LOCK_SIM_PUK : {
140 self._lock_type = mm1_constants.MM_MODEM_LOCK_SIM_PIN
142 self._lock_type = mm1_constants.MM_MODEM_LOCK_NONE
161 path = mm1_constants.MM1 + '/SIM/' + str(self._index)
170 self._lock_type = mm1_constants.MM_MODEM_LOCK_SIM_PIN
212 return mm1_constants.MM_MODEM_3GPP_FACILITY_SIM
213 return mm1_constants.MM_MODEM_3GPP_FACILITY_NONE
219 return not (self._lock_type == mm1_constants.MM_MODEM_LOCK_NONE or
220 self._lock_type == mm1_constants.MM_MODEM_LOCK_UNKNOWN)
273 return { mm1_constants.I_SIM : self._DBusPropertiesDict() }
277 self.SetAll(mm1_constants.I_SIM, self._DBusPropertiesDict())
311 if lock_type == mm1_constants.MM_MODEM_LOCK_SIM_PIN:
313 elif lock_type == mm1_constants.MM_MODEM_LOCK_SIM_PUK:
321 @dbus.service.method(mm1_constants.I_SIM, in_signature='s')
333 if self._lock_type == mm1_constants.MM_MODEM_LOCK_SIM_PUK:
345 self._CheckCode(pin, lock_data, mm1_constants.MM_MODEM_LOCK_SIM_PUK,
349 self._ResetRetries(mm1_constants.MM_MODEM_LOCK_SIM_PIN)
350 self._lock_type = mm1_constants.MM_MODEM_LOCK_NONE
357 @dbus.service.method(mm1_constants.I_SIM, in_signature='ss')
366 if self._lock_type != mm1_constants.MM_MODEM_LOCK_SIM_PUK:
382 self._ResetRetries(mm1_constants.MM_MODEM_LOCK_SIM_PIN)
383 self._ResetRetries(mm1_constants.MM_MODEM_LOCK_SIM_PUK)
384 self._lock_data[mm1_constants.MM_MODEM_LOCK_SIM_PIN]['code'] = pin
385 self._lock_type = mm1_constants.MM_MODEM_LOCK_NONE
392 @dbus.service.method(mm1_constants.I_SIM, in_signature='sb')
413 lock_data = self._lock_data[mm1_constants.MM_MODEM_LOCK_SIM_PIN]
414 self._CheckCode(pin, lock_data, mm1_constants.MM_MODEM_LOCK_SIM_PUK,
418 self._ResetRetries(mm1_constants.MM_MODEM_LOCK_SIM_PIN)
430 lock_data = self._lock_data[mm1_constants.MM_MODEM_LOCK_SIM_PIN]
432 mm1_constants.MM_MODEM_LOCK_SIM_PUK, SimPukError())
433 self._ResetRetries(mm1_constants.MM_MODEM_LOCK_SIM_PIN)
440 @dbus.service.method(mm1_constants.I_SIM, in_signature='ss')
452 lock_data = self._lock_data[mm1_constants.MM_MODEM_LOCK_SIM_PIN]
454 mm1_constants.MM_MODEM_LOCK_SIM_PUK, SimPukError())
455 self._ResetRetries(mm1_constants.MM_MODEM_LOCK_SIM_PIN)
456 self._lock_data[mm1_constants.MM_MODEM_LOCK_SIM_PIN]['code'] = new_pin