Home
last modified time | relevance | path

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

12345678

/tools/test/connectivity/acts/framework/tests/
Dacts_android_device_test.py54 ad = mock.MagicMock(name="AndroidDevice", serial=i, h_port=None)
65 return [ad.serial for ad in get_mock_ads(5)]
72 serial, argument
77 self.serial = serial
114 return "\t".join([str(self.serial), "device"])
118 logging.log_path, "AndroidDevice%s" % self.serial,
120 (self.serial,
140 def __init__(self, serial): argument
141 self.serial = serial
182 self.assertEqual(actual.serial, expected.serial)
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/
Dandroid_device.py96 ads[0].log.info('The primary device under test is "%s".' % ads[0].serial)
102 " but is not attached.") % ad.serial,
103 serial=ad.serial)
136 info = {"serial": ad.serial, "model": ad.model}
228 serial = c.pop('serial')
238 ad = AndroidDevice(serial, ssh_connection=ssh_connection)
315 serials = [ad.serial for ad in filtered]
360 def __init__(self, serial='', ssh_connection=None): argument
361 self.serial = serial
364 self.log_dir = 'AndroidDevice%s' % serial
[all …]
Darduino_wifi_dongle.py25 from serial import Serial
122 def __init__(self, serial): argument
128 if not serial:
131 self.serial = serial
134 'ArduinoWifiDongle|%s' % self.serial)
137 log_path_base, 'ArduinoWifiDongle_%s_serial_log.txt' % self.serial)
173 if self.serial == result.group(1):
175 (self.serial, tty_port))
178 ' but is not attached.' % self.serial)
/tools/test/connectivity/acts/framework/acts/test_utils/car/
Dcar_telecom_utils.py47 ad.serial, uri))
51 log.info("We're still in call {}".format(ad.serial))
75 log.info("Call ID: {} dev {}".format(call_id, ad.serial))
106 call_id, state, ad.serial))
127 ad.serial, call_id, call_state))
131 state, ad.serial))
149 ad.serial, call_id))
152 log.info("We are not in-call {}".format(ad.serial))
191 ad.serial, conf_id))
195 log.info("We are not in-call {}".format(ad.serial))
[all …]
Dtel_telecom_utils.py41 ad.serial, uri))
62 log.info("Call ID: {} dev {}".format(call_id, ad.serial))
92 call_id, state, ad.serial))
103 state, ad.serial))
122 ad.serial, call_id))
125 log.info("We are not in-call {}".format(ad.serial))
171 calls, ad.serial))
185 ad.serial))
232 log.info("call id {} droid {}".format(call_id, ad.serial))
248 " " + str(ad.serial))
[all …]
/tools/tradefederation/core/src/com/android/tradefed/device/
DDeviceManager.java309 public DeviceDescriptor getDeviceDescriptor(String serial) { in startAdbBridgeAndDependentServices()
310 return DeviceManager.this.getDeviceDescriptor(serial); in startAdbBridgeAndDependentServices()
563 for (String serial : serials) { in addFastbootDevices()
564 FastbootDevice d = new FastbootDevice(serial); in addFastbootDevices()
576 public FastbootDevice(String serial) { in FastbootDevice() argument
577 super(serial, false); in FastbootDevice()
620 String serial = String.format("%s%s", NullDevice.TEMP_NULL_DEVICE_PREFIX, rand); in allocateDevice() local
621 addAvailableDevice(new NullDevice(serial, true)); in allocateDevice()
622 options.setSerial(serial); in allocateDevice()
631 public ITestDevice forceAllocateDevice(String serial) { in forceAllocateDevice() argument
[all …]
DManagedDeviceList.java127 private boolean isValidDeviceSerial(String serial) {
128 return serial.length() > 1 && !serial.contains("?");
146 String serial = d.getSerialNumber();
147 if (serials.contains(serial)) {
152 CLog.d("Device %s was in %s and not found anymore", serial, state);
249 public IManagedTestDevice forceAllocate(String serial) {
250 if (!isValidDeviceSerial(serial)) {
256 return find(serial);
/tools/test/connectivity/acts/framework/acts/test_utils/bt/
Dbt_test_utils.py186 device_address, ad.serial))
189 device_address, ad.serial))
304 pri_ad.log.error("Not paired to {}".format(sec_ad.serial))
758 metrics_dict[metric][ad.serial] = bqr_metric
761 if metrics_dict["vsp_txpl"][ad.serial]:
762 metrics_dict["pwlv"][ad.serial] = metrics_dict["vsp_txpl"][
763 ad.serial]
766 metrics_dict["rssi"][ad.serial] = [
767 (-1) * int(x) for x in metrics_dict["rssi"][ad.serial]
769 metrics_dict["pwlv"][ad.serial] = [
[all …]
/tools/test/connectivity/acts/framework/acts/test_utils/tel/
Dtel_video_utils.py119 ad.serial, wfc_mode))
125 log.error("{} voice not in LTE mode.".format(ad.serial))
158 log.error("{} voice not in LTE mode.".format(ad.serial))
164 ad.serial, MAX_WAIT_TIME_VOLTE_ENABLED))
204 ad.serial, sub_id))
206 log.error("{} not in call.".format(ad.serial))
249 ad.serial, sub_id))
251 log.error("{} not in call.".format(ad.serial))
309 ad.serial, sub_id))
370 ad.serial, sub_id))
[all …]
Dtel_voice_utils.py212 log.info("---> Call test: %s to %s <---", param[0].serial,
213 param[1].serial)
271 log.info("--> Call test: %s to %s <--", phone_a.serial, phone_b.serial)
355 log.info("---> Call test: %s to %s <---", param[0].serial,
356 param[1].serial)
427 log.info("--> Call test: %s slot %s to %s slot %s <--", phone_a.serial,
428 phone_a_slot, phone_b.serial, phone_b_slot)
433 log.warning("Sub ID of MO (%s) slot %s is invalid.", phone_a.serial,
442 log.warning("Sub ID of MT (%s) slot %s is invalid.", phone_b.serial,
538 param[0].serial,
[all …]
/tools/tradefederation/core/remote/src/com/android/tradefed/command/remote/
DDeviceDescriptor.java52 public DeviceDescriptor(String serial, boolean isStubDevice, DeviceAllocationState state, in DeviceDescriptor() argument
55 this(serial, isStubDevice, state, product, productVariant, sdkVersion, buildId, in DeviceDescriptor()
59 public DeviceDescriptor(String serial, boolean isStubDevice, DeviceAllocationState state, in DeviceDescriptor() argument
64 serial, in DeviceDescriptor()
84 String serial, in DeviceDescriptor() argument
98 serial, in DeviceDescriptor()
118 String serial, in DeviceDescriptor() argument
133 serial, in DeviceDescriptor()
153 String serial, in DeviceDescriptor() argument
170 mSerial = serial; in DeviceDescriptor()
[all …]
DRemoteClient.java140 public void sendAllocateDevice(String serial) throws RemoteException { in sendAllocateDevice() argument
141 sendOperation(new AllocateDeviceOp(serial)); in sendAllocateDevice()
148 public void sendFreeDevice(String serial) throws RemoteException { in sendFreeDevice() argument
149 sendOperation(new FreeDeviceOp(serial)); in sendFreeDevice()
214 public void sendExecCommand(String serial, String[] commandArgs) throws RemoteException { in sendExecCommand() argument
215 sendOperation(new ExecCommandOp(serial, commandArgs)); in sendExecCommand()
222 public void sendGetLastCommandResult(String serial, ICommandResultHandler handler) in sendGetLastCommandResult() argument
224 CommandResult r = sendOperation(new GetLastCommandResultOp(serial)); in sendGetLastCommandResult()
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/
Dwifi_test_utils.py596 ad.serial)
646 ad.serial)
692 "Can not turn on airplane mode on: %s" % ad.serial)
697 "Can not turn on airplane mode on: %s" % ad.serial)
1075 (network, ad.serial))
1076 logging.debug("Connection result on %s: %s.", ad.serial,
1082 (ad.serial, expected_ssid, actual_ssid))
1084 ad.serial)
1340 (network, ad.serial))
1345 ad.serial)
[all …]
/tools/test/connectivity/acts_tests/tests/google/fuchsia/wlan/
DSoftApTest.py74 self.ip_client = iperf_client.IPerfClientOverAdb(device.serial)
192 '(%s).' % (w_device.device.serial, self.dut.device.ip))
214 w_device.device.serial)
294 (w_device.device.serial, interface_name, timeout))
301 (w_device.device.serial, interface_name,
309 (timeout, w_device.device.serial, interface_name))
322 (w_device.device.serial, dest_ip))
325 (w_device.device.serial, dest_ip))
948 % associated_client.w_device.device.serial)
959 (associated_client.w_device.device.serial,
[all …]
/tools/test/connectivity/acts_tests/tests/google/tel/live/
DTelLiveVideoTest.py237 self.log.info("Disable video on PhoneA:{}".format(ads[0].serial))
283 self.log.info("Disable video on PhoneB:{}".format(ads[1].serial))
331 self.log.info("Disable video on PhoneA:{}".format(ads[0].serial))
341 self.log.info("Disable video on PhoneB:{}".format(ads[1].serial))
389 self.log.info("Disable video on PhoneB:{}".format(ads[1].serial))
399 self.log.info("Disable video on PhoneA:{}".format(ads[0].serial))
424 .format(ads[0].serial, call_id_requester, ads[1]
425 .serial, call_id_responder))
534 .format(ads[0].serial, call_id_requester, ads[1]
535 .serial, call_id_responder))
[all …]
DTelWifiVoiceTest.py128 self.android_devices[0].serial,
163 self.android_devices[0].serial))
432 self.log.info("{} in call.".format(self.android_devices[0].serial))
434 self.log.info("{} not in call.".format(self.android_devices[0].serial))
458 self.android_devices[0].serial))
468 self.android_devices[0].serial))
500 self.android_devices[0].serial))
507 self.android_devices[0].serial))
566 self.android_devices[0].serial))
577 self.android_devices[0].serial))
[all …]
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DDeviceUnresponsiveException.java36 public DeviceUnresponsiveException(String msg, String serial) { in DeviceUnresponsiveException() argument
37 this(msg, null, serial, null); in DeviceUnresponsiveException()
48 public DeviceUnresponsiveException(String msg, String serial, ErrorIdentifier errorId) { in DeviceUnresponsiveException() argument
49 this(msg, null, serial, errorId); in DeviceUnresponsiveException()
60 public DeviceUnresponsiveException(String msg, Throwable cause, String serial) { in DeviceUnresponsiveException() argument
61 this(msg, cause, serial, null); in DeviceUnresponsiveException()
74 String msg, Throwable cause, String serial, ErrorIdentifier errorId) { in DeviceUnresponsiveException() argument
75 super(msg, cause, serial, errorId); in DeviceUnresponsiveException()
DDeviceDisconnectedException.java36 public DeviceDisconnectedException(String msg, String serial) { in DeviceDisconnectedException() argument
37 this(msg, null, serial, null); in DeviceDisconnectedException()
48 public DeviceDisconnectedException(String msg, String serial, ErrorIdentifier errorId) { in DeviceDisconnectedException() argument
49 this(msg, null, serial, errorId); in DeviceDisconnectedException()
60 public DeviceDisconnectedException(String msg, Throwable cause, String serial) { in DeviceDisconnectedException() argument
61 this(msg, cause, serial, null); in DeviceDisconnectedException()
74 String msg, Throwable cause, String serial, ErrorIdentifier errorId) { in DeviceDisconnectedException() argument
75 super(msg, cause, serial, errorId); in DeviceDisconnectedException()
DDeviceNotAvailableException.java63 public DeviceNotAvailableException(String msg, String serial) { in DeviceNotAvailableException() argument
64 this(msg, null, serial, null); in DeviceNotAvailableException()
75 public DeviceNotAvailableException(String msg, String serial, ErrorIdentifier errorId) { in DeviceNotAvailableException() argument
76 this(msg, null, serial, errorId); in DeviceNotAvailableException()
87 public DeviceNotAvailableException(String msg, Throwable cause, String serial) { in DeviceNotAvailableException() argument
88 this(msg, cause, serial, null); in DeviceNotAvailableException()
101 String msg, Throwable cause, String serial, ErrorIdentifier errorId) { in DeviceNotAvailableException() argument
103 mSerial = serial; in DeviceNotAvailableException()
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/
DRuntimeRestartCollector.java218 final Map<String, Metric> metrics, List<Integer> timestampsSecs, String serial) { in addStatsdStatsBasedMetrics() argument
224 String countMetricKey = createMetricKey(METRIC_SUFFIX_COUNT, serial); in addStatsdStatsBasedMetrics()
231 createMetricKey(METRIC_SUFFIX_SYSTEM_TIMESTAMP_SECS, serial); in addStatsdStatsBasedMetrics()
241 createMetricKey(METRIC_SUFFIX_SYSTEM_TIMESTAMP_FORMATTED, serial); in addStatsdStatsBasedMetrics()
254 final Map<String, Metric> metrics, List<Long> timestampsNanos, String serial) { in addAtomBasedMetrics() argument
259 String uptimeNanosMetricKey = createMetricKey(METRIC_SUFFIX_UPTIME_NANOS, serial); in addAtomBasedMetrics()
269 createMetricKey(METRIC_SUFFIX_UPTIME_FORMATTED, serial); in addAtomBasedMetrics()
280 private String createMetricKey(String suffix, String serial) { in createMetricKey() argument
282 ? String.join(METRIC_SEP, METRIC_PREFIX, serial, suffix) in createMetricKey()
/tools/test/connectivity/acts/framework/acts/controllers/android_lib/
Dservices.py40 def serial(self): member in AndroidService
41 return self.ad.serial
48 return self.serial == event.ad.serial
99 serial=self.serial)
103 "User window cannot come up", serial=self.serial)
/tools/test/connectivity/acts/framework/acts/controllers/monsoon_lib/api/hvpm/
Dmonsoon.py47 def __init__(self, serial): argument
49 self.serial = serial
51 self._mon.setup_usb(serial)
54 raise ValueError('HVPM Monsoon %s could not be found.' % serial)
127 HvpmTransformer(self.serial, duration + measure_after_seconds))
141 self._mon.setup_usb(self.serial)
164 self._mon.setup_usb(self.serial)
/tools/test/connectivity/acts/framework/tests/controllers/sl4a_lib/
Drpc_client_test.py38 client = rpc_client.RpcClient(session.uid, session.adb.serial,
55 client = rpc_client.RpcClient(session.uid, session.adb.serial,
82 client = rpc_client.RpcClient(session.uid, session.adb.serial,
115 client = rpc_client.RpcClient(session.uid, session.adb.serial,
143 client = rpc_client.RpcClient(session.uid, session.adb.serial,
173 client = rpc_client.RpcClient(session.uid, session.adb.serial,
190 client = rpc_client.RpcClient(session.uid, session.adb.serial,
202 client = rpc_client.RpcClient(session.uid, session.adb.serial,
/tools/asuite/atest/test_runners/
Datest_tf_test_runner_unittest.py400 serial='',
407 serial='',
417 serial='',
436 serial=env_serial_arg,
445 serial=arg_serial_arg,
452 serial='',
591 serial='',
602 serial=' --collect-tests-only',
626 serial='',
641 serial='',
/tools/tradefederation/core/atest/test_runners/
Datest_tf_test_runner_unittest.py393 serial='',
400 serial='',
410 serial='',
429 serial=env_serial_arg,
438 serial=arg_serial_arg,
445 serial='',
589 serial='',
604 serial='',
628 serial='',
639 serial=' --collect-tests-only',

12345678