Lines Matching refs:serial_number
109 serial_number = config.get("serial_number")
110 if serial_number is None:
111 serial_number = ""
115 if serial_number == "DUT" or serial_number == "CERT":
122 .replace("$(serial_number)", serial_number)
386 type_identifier: str, name: str, serial_number: str, verbose_mode: bool):
388 asserts.assert_true(serial_number, "serial_number must not be None nor empty")
389 self.serial_number = serial_number
390 self.adb = AdbProxy(serial_number)
393 logging.info("Setting up device %s %s" % (self.label, self.serial_number))
394 … asserts.assert_true(self.adb.ensure_root(), "device %s cannot run as root", self.serial_number)
415 …log_path_base, '%s_%s_%s_logcat_logs.txt' % (self.type_identifier, self.label, self.serial_number))
416 …self.logcat_cmd = ["adb", "-s", self.serial_number, "logcat", "-T", "1", "-v", "year", "-v", "uid"]
427 tag="%s_%s" % (self.label, self.serial_number),
431 logging.info("Done preparation for %s, starting backing process" % self.serial_number)
442 (self.label, self.serial_number))
448 … logging.error("Failed to kill logcat_process %s %s" % (self.label, self.serial_number))
451 …error("logcat_process %s_%s stopped with code: %d" % (self.label, self.serial_number, return_code))
574 logging.debug("Disabling verity and remount for %s", self.serial_number)
589 logging.debug("Rebooting %s", self.serial_number)
609 …ssert_true(self.adb.ensure_root(), "device %s cannot run as root after reboot", self.serial_number)
630 asserts.fail(msg='Device %s booting process timed out.' % self.serial_number)