Lines Matching refs:device
728 for device in devices:
729 device.AsyncCommand(command)
730 for device in devices:
731 device.WaitForTasks()
810 for device in self.devices:
811 device.WaitForTasks()
819 for device in self.devices:
820 device_pb = stress_test_info.device.add()
821 device_pb.device_type = device.device_type
822 device_pb.serial_number = device.serial_number
850 for device in devices:
851 device.AsyncCommand(
852 shlex.split(command % device.cmd_string_replacements),
854 for device in devices:
855 device.WaitForTasks()
857 for device in devices:
858 device.StartLookingForEvents()
859 device.AsyncCommand(["shell", "log", "-t", "STRESS_TEST",
897 for device in devices:
898 device.AsyncCommand(
899 shlex.split(step.command % device.cmd_string_replacements),
901 for device in devices:
902 device.WaitForTasks()
924 for device in devices:
925 if device.serial_number in active_devices:
926 device.ProcessEvents()
928 logging.error("Dropped device %s", device.name)
930 "Dropped device %s" % device.name,
931 "Device %s is not longer present in the system" % device.name)
932 dropped_devices.append(device)
933 devices_to_remove.append(device)
937 for device in dropped_devices:
938 if device.serial_number in active_devices:
939 logging.info("Device %s reappeared", device.name)
940 device.Root()
941 device.TakeBugReport()
946 for device in devices:
947 device.WaitForTasks()
948 if device.remove_device:
949 devices_to_remove.append(device)
950 if device.abort_requested:
956 for device in devices_to_remove:
957 device.Stop()
978 for device in self.devices:
979 device.Stop()
980 for device in self.devices:
981 device.Join()
990 for device in self.devices:
991 lines.extend(device.GetSummaryLines())