/tools/test/connectivity/acts/framework/tests/ |
D | acts_android_device_test.py | 52 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/ |
D | ReconnectingRecovery.java | 38 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()
|
D | DeviceUtilStatsMonitor.java | 100 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 …]
|
D | DeviceDisconnectedException.java | 50 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()
|
D | DeviceUnresponsiveException.java | 49 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()
|
D | DeviceNotAvailableException.java | 54 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()
|
D | NullDevice.java | 26 public NullDevice(String serial) { in NullDevice() argument 27 super(serial, false); in NullDevice()
|
/tools/test/connectivity/acts/framework/acts/test_utils/car/ |
D | car_telecom_utils.py | 47 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 …]
|
D | tel_telecom_utils.py | 41 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/ |
D | base_test.py | 31 def setUpDevice(self, serial, stream, options): argument 39 self.serial = serial 42 self.android_device = android_device.AndroidTestDevice(serial, stream)
|
D | android_device.py | 25 def __init__(self, serial=None, stream=None): argument 27 self.serial = serial 29 self.adb = adb_handler.AdbHandler(serial)
|
D | tf_main.py | 32 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,
|
D | adb_handler.py | 22 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/ |
D | IRemoteClient.java | 40 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
|
D | RemoteClient.java | 140 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()
|
D | DeviceDescriptor.java | 43 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/ |
D | DeviceTracker.java | 68 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/ |
D | ota_runner_factory.py | 97 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/ |
D | sl4a_manager.py | 81 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/ |
D | arduino_wifi_dongle.py | 20 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)
|
D | adb.py | 75 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/ |
D | TestFailureListener.java | 126 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/ |
D | rpc_client_test.py | 38 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/ |
D | BtPreFlightTest.py | 34 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/ |
D | adb_sideload_ota_tool_test.py | 25 def get_mock_android_device(serial='', ssh_connection=None): argument 32 serial=serial, ssh_connection=ssh_connection))
|