Home
last modified time | relevance | path

Searched refs:serial (Results 1 – 25 of 66) sorted by relevance

123

/test/framework/harnesses/host_controller/campaigns/
Dcampaign_common.py314 for serial in serials:
315 result.append("adb -s %s root" % serial)
316 serial_arg_list.append("--serial %s" % serial)
371 for serial in serials:
372 serial_arg_list.append("--serial %s" % serial)
502 def GenerateSdm845SetupCommands(serial): argument
515 serial)
516 result.append("fastboot -s %s -- reboot bootloader" % serial)
518 "fastboot -s %s flash radio {device-image[radio.img]}" % serial)
519 result.append("fastboot -s %s -- reboot bootloader" % serial)
[all …]
/test/framework/harnesses/host_controller/command_processor/
Dcommand_device.py71 for serial in self.console.GetSerials():
73 device["serial"] = serial
77 devices_dict[serial] = device
91 serial = device["serial"]
94 if (serial in devices_dict
96 devices_dict[serial][
102 devices_dict[serial]["product"] = product
106 serial, suppress_lock_warning) == False:
108 serial] = common._DEVICE_STATUS_DICT["use"]
110 logging.info("Device %s already locked." % serial)
[all …]
Dcommand_adb.py65 if args.serial:
66 if "," in args.serial:
69 cmd_list.append("-s %s" % args.serial)
77 usb_utils.ResetUsbDeviceOfSerial_Callback, args.serial)
82 if self.console.job_pool and args.serial:
84 args.serial] = common._DEVICE_STATUS_DICT["error"]
Dcommand_fastboot.py73 if args.serial:
74 if "," in args.serial:
77 cmd_list.append("-s %s" % args.serial)
87 usb_utils.ResetUsbDeviceOfSerial_Callback, args.serial)
97 if self.console.job_pool and args.serial:
99 args.serial] = common._DEVICE_STATUS_DICT["error"]
Dcommand_reproduce.py103 serial = []
104 if args.serial:
105 serial = args.serial.split(",")
106 setup_command_list = self.GenerateSetupCommands(report_msg, serial)
135 report_msg.suite_plan, serial)
140 def GenerateSetupCommands(self, report_msg, serial): argument
157 elif not serial:
169 kwargs["shards"] = str(len(serial))
172 kwargs["serial"] = serial
Dcommand_retry.py257 if args.serial:
258 for serial in args.serial:
259 retry_test_command += " --serial %s" % serial
262 for (command, serial) in itertools.product(
263 _DEVICE_CLEANUP_COMMAND_LIST, args.serial):
264 if not self.console.onecmd(command.format(serial=serial)):
267 "Skipping retry run(s)", serial)
269 serial] = common._DEVICE_STATUS_DICT["use"]
Dcommand_dut.py88 args.serial, device_callback_port=-1)
91 logging.error("Device %s failed to bootup.", args.serial)
93 args.serial] = common._DEVICE_STATUS_DICT["error"]
98 adb_proxy = adb.AdbProxy(serial=args.serial)
/test/framework/harnesses/host_controller/utils/ipc/
Dfile_lock.py59 def _OpenFile(self, serial, mode=None): argument
67 if serial in self._lock_fd and self._lock_fd[serial]:
68 logging.info("Lock for the device %s already exists." % serial)
74 self._lock_fd[serial] = open(
75 os.path.join(self._devlock_dir, serial), mode, 0)
80 def LockDevice(self, serial, suppress_lock_warning=False, block=False): argument
92 if serial not in self._lock_fd:
93 ret = self._OpenFile(serial)
101 fcntl.lockf(self._lock_fd[serial], operation)
109 def UnlockDevice(self, serial): argument
[all …]
/test/framework/harnesses/host_controller/tradefed/
Dremote_operation.py115 def AllocateDevice(serial): argument
121 return RemoteOperation("ALLOCATE_DEVICE", serial=serial)
124 def FreeDevice(serial): argument
130 return RemoteOperation("FREE_DEVICE", serial=serial)
149 def ExecuteCommand(serial, *command_args): argument
157 "EXEC_COMMAND", serial=serial, commandArgs=command_args)
160 def GetLastCommandResult(serial): argument
172 return RemoteOperation("GET_LAST_COMMAND_RESULT", serial=serial)
/test/vts/utils/python/coverage/
Dsancov_utils.py85 serial = str(device.get(keys.ConfigKeys.IKEY_SERIAL))
88 if not serial or not sancov_resource_path:
92 self._device_resource_dict[serial] = sancov_resource_path
106 serial = dut.adb.shell('getprop ro.serialno').strip()
107 if serial not in self._device_resource_dict:
108 logging.error("Invalid device provided: %s", serial)
152 serial = dut.adb.shell('getprop ro.serialno').strip()
153 if serial not in self._device_resource_dict:
154 logging.error('Invalid device provided: %s', serial)
159 def _InitializeFileVectors(self, serial, binary_path): argument
[all …]
Dcoverage_utils.py132 serial = device.get(keys.ConfigKeys.IKEY_SERIAL)
135 if not serial:
143 self._device_resource_dict[str(serial)] = str(
237 def _ClearTargetGcov(self, dut, serial, path_suffix=None): argument
248 self._ExecuteOneAdbShellCommand(dut, serial, _CLEAN_TRACE_COMMAND)
276 def InitializeDeviceCoverage(self, dut=None, serial=None): argument
285 self._ExecuteOneAdbShellCommand(dut, serial, "setenforce 0")
286 self._ExecuteOneAdbShellCommand(dut, serial, _FLUSH_COMMAND)
288 self._ClearTargetGcov(dut, serial)
295 self._ExecuteOneAdbShellCommand(dut, serial, cmd)
[all …]
/test/framework/harnesses/host_controller/utils/usb/
Dusb_utils.py50 serial, _, _ = cmd_utils.ExecuteOneShellCommand(
53 if serial:
54 device_serial = serial.split("=")[1].strip().strip("'")
79 def ResetUsbDeviceOfSerial(serial): argument
90 if serial in device_file_path:
92 "Device %s not responding. Resetting device file %s.", serial,
93 device_file_path[serial])
94 return ResetDeviceUsb(device_file_path[serial])
/test/vti/test_serving/gae/webapp/src/tasks/
Dremoving_outdated_devices_test.py56 device = self.GenerateDeviceModel(serial=device_a_serial)
62 device = self.GenerateDeviceModel(serial=device_b_serial)
68 for serial in [device_c_serial, device_d_serial]:
69 device = self.GenerateDeviceModel(serial=serial)
80 self.assertTrue(device_a_serial not in [x.serial for x in devices])
94 self.assertTrue(device_b_serial not in [x.serial for x in devices])
/test/vts/utils/python/controllers/
Dandroid_device.py111 if ad.serial not in connected_ads:
113 " but is not attached.") % ad.serial)
223 serial = c.pop(keys.ConfigKeys.IKEY_SERIAL)
236 ad = AndroidDevice(serial, product_type)
312 serials = [ad.serial for ad in filtered]
380 serial="", argument
384 self.serial = serial
389 {"serial": self.serial})
391 self.log_path = os.path.join(base_log_path, "AndroidDevice%s" % serial)
395 self.adb = adb.AdbProxy(serial)
[all …]
Dfastboot.py55 def __init__(self, serial=""): argument
56 self.serial = serial
57 if serial:
58 self.fastboot_str = "fastboot -s {}".format(serial)
Dadb.py120 def __init__(self, serial="", log=None): argument
121 self.serial = serial
122 if serial:
123 self.adb_str = "adb -s {}".format(serial)
/test/vti/test_serving/gae/webapp/src/endpoint/
Djob_queue.py67 model.DeviceModel.serial.IN(job.serial))
101 x for x in existing_jobs if set(x.serial) == set(request.serial)
110 request.build_target, request.test_name, request.serial))
120 model.DeviceModel.serial.IN(job.serial))
128 ", ".join([device.serial for device in devices])))
155 format(request.serial))
Djob_queue_test.py80 for serial in test_values["serial"]:
81 self.GenerateDeviceModel(serial=serial).put()
117 serial=response.jobs[0].serial,
137 serial=response.jobs[0].serial,
Dhost_info.py52 device.serial = "n/a"
83 model.DeviceModel.serial == request_device.serial
90 device.serial = request_device.serial
Dlab_info.py83 if config_device.serial and config_device.product:
85 model.DeviceModel.serial == config_device.serial)
94 config_device.serial))
107 device.serial = config_device.serial
/test/framework/harnesses/host_controller/
Dconsole.py170 for serial in kwargs["serial"]:
172 serial, common._DEVICE_STATUS_DICT["use"])
194 for serial in kwargs["serial"]:
196 serial, common._DEVICE_STATUS_DICT["ready"])
403 def ChangeDeviceState(self, serial, state): argument
415 ret = self._file_lock.LockDevice(serial)
419 current_status = self.device_status[serial]
420 self.device_status[serial] = state
425 self._file_lock.UnlockDevice(serial)
609 for serial in kwargs["serial"]:
[all …]
Dinvocation_thread.py64 for serial in self.device_serials:
66 remote_operation.AllocateDevice(serial))
67 self._allocated_serials.append(serial)
109 for serial in self._allocated_serials:
112 remote_operation.FreeDevice(serial))
/test/vts/utils/python/systrace/
Dsystrace_utils.py78 serial = device_spec.get(keys.ConfigKeys.IKEY_SERIAL)
79 if not serial:
82 serial = str(serial)
86 android_vts_path, device_serial=serial, process_name=process_name)
/test/vts/testcases/host/fastboot/
DVtsFastbootVerification.py61 "%s" % self.gtest_bin_path, "--serial=%s" % self.dut.serial,
71 "%s" % self.gtest_bin_path, "--serial=%s" % self.dut.serial,
86 "%s" % self.gtest_bin_path, "--serial=%s" % self.dut.serial,
95 "%s" % self.gtest_bin_path, "--serial=%s" % self.dut.serial,
/test/framework/harnesses/host_controller/build/
Dbuild_flasher.py38 def __init__(self, serial="", customflasher_path=""): argument
49 if serial != "":
51 serial, device_callback_port=-1)
67 def SetSerial(self, serial): argument
76 if not serial:
81 serial, device_callback_port=-1)

123