Lines Matching refs:cr50
58 self.can_set_ccd_level = (not self.cr50.using_ccd() or
59 self.cr50.testlab_is_on())
60 self.original_ccd_level = self.cr50.get_ccd_level()
61 self.original_ccd_settings = self.cr50.get_cap_dict(
62 info=self.cr50.CAP_SETTING)
71 self.cr50.set_ccd_level('lock')
321 state['cr50_image_bid'] = self.cr50.get_active_board_id_str()
359 if self.cr50.get_ccd_info()['Password'] != 'none':
361 self.cr50.send_command('ccd reset')
362 if self.cr50.get_ccd_info()['Password'] != 'none':
365 current_settings = self.cr50.get_cap_dict(info=self.cr50.CAP_SETTING)
371 self.cr50.set_caps(self.original_ccd_settings)
374 if self.cr50.testlab_is_on() and self.original_ccd_level == 'open':
376 if self.original_ccd_level != self.cr50.get_ccd_level():
377 self.cr50.set_ccd_level(self.original_ccd_level)
434 self.cr50.send_command('rddkeepalive disable')
435 self.cr50.send_command('ccd reset')
436 self.cr50.send_command('wp follow_batt_pres atboot')
439 if self.cr50.get_cap('GscFullConsole')[self.cr50.CAP_IS_ACCESSIBLE]:
440 self.cr50.reboot()
443 self.cr50.ccd_enable()
578 running_rw = self.cr50.get_version()
582 if expect_rollback != self.cr50.rolledback():
628 original_rw = self.cr50.get_version()
632 self.cr50.wait_until_update_is_allowed()
639 self.cr50.wait_for_reboot(timeout=10)
642 self.cr50.erase_nvmem()
645 self.cr50.rollback(chip_bid=chip_bid, chip_flags=chip_flags)
691 expected_value=True, timeout_sec=self.cr50.PP_LONG)
697 logging.info(self.cr50.get_ccd_info())
716 self.cr50.get_ccd_info()['State'])
740 if self.cr50.OPEN != self.cr50.get_ccd_level():
754 self.cr50.send_command('ccd testlab open')
755 if self.cr50.get_ccd_level() == 'open':
761 if not self.cr50.get_cap('OpenNoDevMode')[self.cr50.CAP_IS_ACCESSIBLE]:
764 if self.cr50.get_cap('OpenFromUSB')[self.cr50.CAP_IS_ACCESSIBLE]:
765 self.cr50.set_ccd_level(self.cr50.OPEN)
770 self.cr50.set_ccd_testlab('on')
813 time.sleep(self.cr50.CONSERVATIVE_CCD_WAIT)
837 if not self.cr50.testlab_is_on():
856 if (mode == 'dev') == self.cr50.in_dev_mode():
862 if (mode == 'dev') != self.cr50.in_dev_mode():