Home
last modified time | relevance | path

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

12345

/tools/test/connectivity/acts/framework/tests/
Dacts_android_device_test.py52 ad = mock.MagicMock(name="AndroidDevice", serial=i, h_port=None)
63 return [ad.serial for ad in get_mock_ads(5)]
70 serial, argument
74 self.serial = serial
111 return "\t".join([str(self.serial), "device"])
115 logging.log_path, "AndroidDevice%s" % self.serial,
117 (self.serial,
137 def __init__(self, serial): argument
138 self.serial = serial
179 self.assertEqual(actual.serial, expected.serial)
[all …]
/tools/tradefederation/core/src/com/android/tradefed/device/
DReconnectingRecovery.java38 String serial = monitor.getSerialNumber(); in recoverDevice() local
42 getRunUtil().runTimedCmd(ADB_TIMEOUT, "adb", "disconnect", serial); in recoverDevice()
47 CLog.i("Trying to reconnect with device " + serial + " / attempt " + attempt); in recoverDevice()
48 getRunUtil().runTimedCmd(ADB_TIMEOUT, "adb", "connect", serial); in recoverDevice()
51 String errMsg = "Could not recover device " + serial + " after " + --attempt + " attempts"; in recoverDevice()
56 throw new DeviceUnresponsiveException(errMsg, serial); in recoverDevice()
61 throw new DeviceUnresponsiveException(errMsg, serial); in recoverDevice()
65 CLog.v("Successfully reconnected with device " + serial); in recoverDevice()
DDeviceUtilStatsMonitor.java100 public Integer getUtilForDevice(String serial) { in getUtilForDevice() argument
101 Integer util = mDeviceUtil.get(serial); in getUtilForDevice()
143 public boolean addMissingSample(String serial) { in addMissingSample() argument
168 String serial = goneSerialEntry.getKey(); in run() local
169 if (!goneSerialEntry.getValue().addMissingSample(serial)) { in run()
170 CLog.d("Forgetting device %s", serial); in run()
171 mDeviceUtilMap.remove(serial); in run()
243 public synchronized void notifyDeviceStateChange(String serial, DeviceAllocationState oldState, in notifyDeviceStateChange() argument
251 if (dvcMgr.isNullDevice(serial)) { in notifyDeviceStateChange()
253 } else if (dvcMgr.isEmulator(serial)) { in notifyDeviceStateChange()
[all …]
DDeviceDisconnectedException.java50 public DeviceDisconnectedException(String msg, String serial) { in DeviceDisconnectedException() argument
51 super(msg, serial); in DeviceDisconnectedException()
74 public DeviceDisconnectedException(String msg, Throwable cause, String serial) { in DeviceDisconnectedException() argument
75 super(msg, cause, serial); in DeviceDisconnectedException()
DDeviceUnresponsiveException.java49 public DeviceUnresponsiveException(String msg, String serial) { in DeviceUnresponsiveException() argument
50 super(msg, serial); in DeviceUnresponsiveException()
73 public DeviceUnresponsiveException(String msg, Throwable cause, String serial) { in DeviceUnresponsiveException() argument
74 super(msg, cause, serial); in DeviceUnresponsiveException()
DDeviceNotAvailableException.java54 public DeviceNotAvailableException(String msg, String serial) { in DeviceNotAvailableException() argument
56 mSerial = serial; in DeviceNotAvailableException()
80 public DeviceNotAvailableException(String msg, Throwable cause, String serial) { in DeviceNotAvailableException() argument
82 mSerial = serial; in DeviceNotAvailableException()
DNullDevice.java26 public NullDevice(String serial) { in NullDevice() argument
27 super(serial, false); in NullDevice()
/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/python-lib/tradefed_py/
Dbase_test.py31 def setUpDevice(self, serial, stream, options): argument
39 self.serial = serial
42 self.android_device = android_device.AndroidTestDevice(serial, stream)
Dandroid_device.py25 def __init__(self, serial=None, stream=None): argument
27 self.serial = serial
29 self.adb = adb_handler.AdbHandler(serial)
Dtf_main.py32 verbosity=1, failfast=None, catchbreak=None, buffer=None, serial=None): argument
33 self.serial = None
66 if self.serial is None:
67 self.serial = value
90 serial=self.serial,
Dadb_handler.py22 def __init__(self, serial=None): argument
23 self.serial = serial
24 self.adb_cmd = 'adb -s {}'.format(serial)
/tools/tradefederation/core/remote/src/com/android/tradefed/command/remote/
DIRemoteClient.java40 public void sendAllocateDevice(String serial) throws RemoteException; in sendAllocateDevice() argument
48 public void sendFreeDevice(String serial) throws RemoteException; in sendFreeDevice() argument
89 public void sendExecCommand(String serial, String[] commandArgs) throws RemoteException; in sendExecCommand() argument
98 public void sendGetLastCommandResult(String serial, ICommandResultHandler handler) in sendGetLastCommandResult() argument
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()
DDeviceDescriptor.java43 public DeviceDescriptor(String serial, boolean isStubDevice, DeviceAllocationState state, in DeviceDescriptor() argument
46 this(serial, isStubDevice, state, product, productVariant, sdkVersion, buildId, in DeviceDescriptor()
50 public DeviceDescriptor(String serial, boolean isStubDevice, DeviceAllocationState state, in DeviceDescriptor() argument
55 serial, in DeviceDescriptor()
72 String serial, in DeviceDescriptor() argument
86 mSerial = serial; in DeviceDescriptor()
/tools/tradefederation/core/src/com/android/tradefed/command/remote/
DDeviceTracker.java68 public ITestDevice freeDevice(String serial) { in freeDevice() argument
69 mDeviceLastCommandMap.remove(serial); in freeDevice()
70 return mAllocatedDeviceMap.remove(serial); in freeDevice()
91 public ITestDevice getDeviceForSerial(String serial) { in getDeviceForSerial() argument
92 return mAllocatedDeviceMap.get(serial); in getDeviceForSerial()
/tools/test/connectivity/acts/framework/acts/libs/ota/ota_runners/
Dota_runner_factory.py97 android_device.serial)
156 'types.' % android_device.serial)
185 if android_device.serial in config['ota_map']:
186 suffix = '_%s' % config['ota_map'][android_device.serial]
195 'ACTS config.' % (android_device.serial, suffix[1:],
202 'config.' % (android_device.serial, ota_package_key))
/tools/test/connectivity/acts/framework/acts/controllers/sl4a_lib/
Dsl4a_manager.py81 if adb.serial in _all_sl4a_managers:
82 _all_sl4a_managers[adb.serial].log.warning(
85 return _all_sl4a_managers[adb.serial]
88 _all_sl4a_managers[adb.serial] = manager
113 lambda msg: '[SL4A Manager|%s] %s' % (adb.serial, msg))
117 'SL4A %s' % adb.serial)
220 'SL4A is not installed on device %s' % self.adb.serial)
/tools/test/connectivity/acts/framework/acts/controllers/
Darduino_wifi_dongle.py20 import serial
123 def __init__(self, serial=''): argument
125 self.serial = serial
128 "ArduinoWifiDongle|%s" % self.serial)
131 log_path_base, "ArduinoWifiDongle_%s_serial_log.txt" % self.serial)
163 if not self.serial:
175 if self.serial == result.group(1):
177 (self.serial, tty_port))
180 " but is not attached." % self.serial)
269 ser = serial.Serial(self.port, BAUD_RATE)
Dadb.py75 def __init__(self, serial="", ssh_connection=None): argument
83 self.serial = serial
86 if serial:
87 adb_cmd.append("-s %s" % serial)
96 remote_adb_cmd = "%s/adb %s root" % (temp_dir, "-s %s" % serial
97 if serial else "")
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DTestFailureListener.java126 String serial = device.getSerialNumber(); in captureFailure() local
131 String.format("%s-%s-screenshot", test.toString(), serial), in captureFailure()
137 CLog.e("Device %s became unavailable while capturing screenshot", serial); in captureFailure()
142 String.format("%s-%s-bugreport", test.toString(), serial), mLogger)) { in captureFailure()
143 CLog.e("Failed to capture bugreport for %s failure on %s.", test, serial); in captureFailure()
156 String.format("%s-%s-logcat", test.toString(), serial), in captureFailure()
167 String.format("%s-%s-logcat", test.toString(), serial), in captureFailure()
197 CLog.e("Device %s became unavailable while rebooting", serial); in captureFailure()
/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/test/connectivity/acts/tests/google/bt/setup/
DBtPreFlightTest.py34 serial = a.serial
35 self.log.info("****START: {} DEVICE INFO****".format(serial))
42 self.log.info("****END: {} DEVICE INFO****".format(serial))
/tools/test/connectivity/acts/framework/tests/libs/ota/ota_tools/
Dadb_sideload_ota_tool_test.py25 def get_mock_android_device(serial='', ssh_connection=None): argument
32 serial=serial, ssh_connection=ssh_connection))

12345