Lines Matching refs:lock_data
280 def _CheckCode(self, code, lock_data, next_lock, error_to_raise):
281 # Checks |code| against |lock_data['code']|. If the codes don't match:
283 # - if the number of retries left for |lock_data| drops down to 0,
291 if code == lock_data['code']:
297 lock_data['retries'] -= 1
299 if lock_data['retries'] == 0:
339 lock_data = self._lock_data.get(self._lock_type, None)
340 if not lock_data:
345 self._CheckCode(pin, lock_data, mm1_constants.MM_MODEM_LOCK_SIM_PUK,
370 lock_data = self._lock_data.get(self._lock_type, None)
371 if not lock_data:
376 if lock_data['retries'] == 0:
379 self._CheckCode(puk, lock_data, None, SimFailureError())
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,
430 lock_data = self._lock_data[mm1_constants.MM_MODEM_LOCK_SIM_PIN]
431 self._CheckCode(pin, lock_data,
452 lock_data = self._lock_data[mm1_constants.MM_MODEM_LOCK_SIM_PIN]
453 self._CheckCode(old_pin, lock_data,