Home | History | Annotate | Download | only in at-factory-tool

Lines Matching refs:serial

137     serial_number: The serial number for the device.
257 The interface to get the USB physical location to serial number map.
269 # The serial numbers for the devices that are at least seen twice.
285 # The map mapping serial number to USB location.
287 # The map mapping rebooting device serial number to their reboot callback
321 Get the serial number of the ATFA device and the target device. If the
322 device does not exist, the returned serial number would be None.
337 device_serials: The device serial numbers.
379 device_serials: The list of serial numbers of the fastboot devices.
385 for serial in device_serials:
386 if serial in stable_serials_copy or serial in pending_serials_copy:
388 self.stable_serials.append(serial)
391 self.pending_serials.append(serial)
419 for serial in device_serials:
420 if not serial:
423 if serial.startswith('ATFA'):
424 atfa_serial = serial
426 new_targets.append(serial)
445 for serial in new_targets:
446 if serial not in common_serials:
447 self._CreateNewTargetDevice(serial)
449 def _CreateNewTargetDevice(self, serial, check_status=True):
453 serial: The serial number for the new target device.
457 controller = self._fastboot_device_controller(serial)
458 location = self._serial_mapper.get_location(serial)
460 new_target_dev = DeviceInfo(controller, serial, location)
467 self.stable_serials.remove(serial)
477 atfa_serial: The serial number of the ATFA device to be added.
541 for serial in self._reboot_callbacks:
542 if serial in self.stable_serials:
543 callback_lock = self._reboot_callbacks[serial].lock
546 success_serials.append(serial)
548 for serial in success_serials:
549 self._reboot_callbacks[serial].success()
646 def GetTargetDevice(self, serial):
647 """Get the target DeviceInfo object according to the serial number.
650 serial: The serial number for the device object.
655 if device.serial_number == serial:
797 serial = target.serial_number
802 self.stable_serials.remove(serial)
803 # Create a rebooting target device that only contains serial and location.
804 rebooting_target = DeviceInfo(None, serial, location)
810 self.RebootCallbackWrapper(success_callback, serial, True),
811 self.RebootCallbackWrapper(timeout_callback, serial, False))
812 self._reboot_callbacks[serial] = reboot_callback
818 def RebootCallbackWrapper(self, callback, serial, success):
828 serial: The serial number for the device.
833 def RebootCallbackFunc(callback=callback, serial=serial, success=success):
835 rebooting_dev = self.GetTargetDevice(serial)
841 self._CreateNewTargetDevice(serial, True)
842 self.GetTargetDevice(serial).provision_status = (
845 self._reboot_callbacks[serial].Release()
846 del self._reboot_callbacks[serial]
849 self._reboot_callbacks[serial].lock.release()
978 """Issue fastboot command to get serial number for the ATFA device.
984 self.atft_manager.atfa_dev.Oem('serial')