Lines Matching refs:device
47 def installToDevice (device, printPrefix=""):
49 print "Installing to %s (%s)...\n" % (device.serial, device.model),
51 print printPrefix + "Installing to %s\n" % device.serial,
53 install(['-s', device.serial], printPrefix)
56 padLen = max([len(device.model) for device in devices])+1
58 common.parallelApply(installToDevice, [(device, ("(%s):%s" % (device.model, ' ' * (padLen - len(device.model))))) for device in devices]);
60 common.serialApply(installToDevice, [(device, ) for device in devices]);
69 parser.add_argument('-s', '--serial', dest='serial', type=str, nargs='+', help="Install package to device with serial number.")
84 print "More than one device connected:"
88 deviceNdx = int(raw_input("Choose device (1-%d): " % len(devices)))
98 print("Couldn't find device matching serial '%s'" % notFound)