/tools/test/connectivity/acts/framework/tests/ |
D | acts_android_device_test.py | 54 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_tests/acts_contrib/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/src/com/android/tradefed/device/ |
D | ManagedDeviceList.java | 167 private boolean isValidDeviceSerial(String serial) { 168 return serial.length() > 1 && !serial.contains("?"); 172 String[] serial = serialString.split(":"); 173 if (serial.length == 2) { 174 if (RESERVED_IP.contains(serial[0])) { 178 Matcher match = IP_PATTERN.matcher(serial[0]); 184 Integer.parseInt(serial[1]); 208 String serial = d.getSerialNumber(); 209 if (serials.contains(serial)) { 214 CLog.d("Device %s was in %s and not found anymore", serial, state); [all …]
|
D | DeviceManager.java | 317 public DeviceDescriptor getDeviceDescriptor(String serial) { in startAdbBridgeAndDependentServices() 318 return DeviceManager.this.getDeviceDescriptor(serial); in startAdbBridgeAndDependentServices() 552 String serial = in addNetworkDevices() local 555 serial += "-" + user; in addNetworkDevices() 557 addAvailableDevice(new RemoteAvdIDevice(serial, hostUsers.getKey(), user, i)); in addNetworkDevices() 599 public FastbootDevice(String serial) { in FastbootDevice() argument 600 super(serial, false); in FastbootDevice() 622 public EmulatorDevice(String serial) { in EmulatorDevice() argument 623 super(serial, true); in EmulatorDevice() 624 mPort = Integer.valueOf(serial.substring("emulator-".length())); in EmulatorDevice() [all …]
|
D | RemoteAvdIDevice.java | 31 public RemoteAvdIDevice(String serial) { in RemoteAvdIDevice() argument 32 super(serial); in RemoteAvdIDevice() 35 public RemoteAvdIDevice(String serial, String knownDeviceIp) { in RemoteAvdIDevice() argument 36 super(serial, false); in RemoteAvdIDevice() 40 public RemoteAvdIDevice(String serial, String knownDeviceIp, String user, Integer offset) { in RemoteAvdIDevice() argument 41 super(serial, false); in RemoteAvdIDevice()
|
D | IDeviceManager.java | 89 public ITestDevice forceAllocateDevice(String serial); in forceAllocateDevice() argument 112 String serial, String command, long timeout, TimeUnit timeUnit); in executeCmdOnAvailableDevice() argument 237 public DeviceDescriptor getDeviceDescriptor(String serial); in getDeviceDescriptor() argument 269 public boolean isNullDevice(String serial); in isNullDevice() argument 274 public boolean isEmulator(String serial); in isEmulator() argument 310 public void addMonitoringTcpFastbootDevice(String serial, String fastboot_serial); in addMonitoringTcpFastbootDevice() argument
|
/tools/tradefederation/core/src/com/android/tradefed/device/connection/ |
D | AdbTcpConnection.java | 81 public void reconnect(String serial) throws DeviceNotAvailableException { in reconnect() argument 82 super.reconnect(serial); in reconnect() 83 adbTcpConnect(getHostName(serial), getPortNum(serial)); in reconnect() 84 waitForAdbConnect(serial, WAIT_FOR_ADB_CONNECT); in reconnect() 159 protected void waitForAdbConnect(String serial, final long waitTime) in waitForAdbConnect() argument 164 if (confirmAdbTcpConnect(getHostName(serial), getPortNum(serial))) { in waitForAdbConnect() 172 serial, in waitForAdbConnect() 236 public String getHostName(String serial) { in getHostName() argument 237 if (!RemoteAndroidDevice.checkSerialFormatValid(serial)) { in getHostName() 242 serial)); in getHostName() [all …]
|
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/ |
D | DeviceDisconnectedException.java | 36 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()
|
D | DeviceUnresponsiveException.java | 36 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()
|
D | DeviceNotAvailableException.java | 63 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()
|
D | StubLocalAndroidVirtualDevice.java | 29 public StubLocalAndroidVirtualDevice(String serial) { in StubLocalAndroidVirtualDevice() argument 30 super(serial, false); in StubLocalAndroidVirtualDevice() 33 public StubLocalAndroidVirtualDevice(String serial, String knownDeviceIp) { in StubLocalAndroidVirtualDevice() argument 34 super(serial, false); in StubLocalAndroidVirtualDevice() 38 public StubLocalAndroidVirtualDevice(String serial, int offset) { in StubLocalAndroidVirtualDevice() argument 39 super(serial); in StubLocalAndroidVirtualDevice()
|
/tools/test/connectivity/acts/framework/acts/controllers/ |
D | android_device.py | 105 ads[0].log.info('The primary device under test is "%s".' % ads[0].serial) 111 " but is not attached.") % ad.serial, 112 serial=ad.serial) 145 info = {"serial": ad.serial, "model": ad.model} 237 serial = c.pop('serial') 272 ad = AndroidDevice(serial, 353 serials = [ad.serial for ad in filtered] 404 serial='', argument 409 self.serial = serial 412 self.log_dir = 'AndroidDevice%s' % serial [all …]
|
D | arduino_wifi_dongle.py | 25 from serial import Serial 121 def __init__(self, serial): argument 127 if not serial: 130 self.serial = serial 133 'ArduinoWifiDongle|%s' % self.serial) 136 log_path_base, 'ArduinoWifiDongle_%s_serial_log.txt' % self.serial) 172 if self.serial == result.group(1): 174 (self.serial, tty_port)) 177 ' but is not attached.' % self.serial)
|
/tools/tradefederation/core/src/com/android/tradefed/util/image/ |
D | DeviceImageTracker.java | 127 String serial, in trackUpdatedDeviceImage() argument 142 File copyInCacheDeviceImage = new File(mCacheDir, serial + "_device_image"); in trackUpdatedDeviceImage() 144 File copyInCacheBootloader = new File(mCacheDir, serial + "_bootloader"); in trackUpdatedDeviceImage() 148 copyInCacheBaseband = new File(mCacheDir, serial + "_baseband"); in trackUpdatedDeviceImage() 163 serial, in trackUpdatedDeviceImage() 172 invalidateTracking(serial); in trackUpdatedDeviceImage() 177 public void invalidateTracking(String serial) { in invalidateTracking() argument 178 mImageCache.invalidate(serial); in invalidateTracking() 188 public FileCacheTracker getBaselineDeviceImage(String serial) { in getBaselineDeviceImage() argument 189 return mImageCache.getIfPresent(serial); in getBaselineDeviceImage()
|
/tools/test/connectivity/acts/framework/acts/controllers/android_lib/ |
D | services.py | 40 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)
|
D | logcat.py | 71 def _on_retry(serial, extra_params, timestamp_tracker): argument 77 serial, begin_at, additional_params) 82 def create_logcat_keepalive_process(serial, logcat_dir, extra_params=''): argument 94 'adblog_%s' % serial, log_name=serial, subcontext=logcat_dir, 97 (serial, extra_params)) 101 _on_retry(serial, extra_params, timestamp_tracker))
|
/tools/tradefederation/core/remote/src/com/android/tradefed/command/remote/ |
D | DeviceDescriptor.java | 55 public DeviceDescriptor(String serial, boolean isStubDevice, DeviceAllocationState state, in DeviceDescriptor() argument 58 this(serial, isStubDevice, state, product, productVariant, sdkVersion, buildId, in DeviceDescriptor() 62 public DeviceDescriptor(String serial, boolean isStubDevice, DeviceAllocationState state, in DeviceDescriptor() argument 67 serial, in DeviceDescriptor() 90 String serial, in DeviceDescriptor() argument 104 serial, in DeviceDescriptor() 127 String serial, in DeviceDescriptor() argument 142 serial, in DeviceDescriptor() 165 String serial, in DeviceDescriptor() argument 185 mSerial = serial; in DeviceDescriptor() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/service/management/ |
D | DeviceManagementGrpcServer.java | 108 for (String serial : request.getDeviceIdList()) { in getDevicesStatus() 109 DeviceDescriptor descriptor = mDeviceManager.getDeviceDescriptor(serial); in getDevicesStatus() 152 String serial = request.getDeviceId(); in reserveDevice() local 153 if (Strings.isNullOrEmpty(serial)) { in reserveDevice() 172 DeviceDescriptor descriptor = mDeviceManager.getDeviceDescriptor(serial); in reserveDevice() 176 .setMessage("No descriptor found for serial " + serial); in reserveDevice() 183 if (mSerialToReservation.containsKey(serial)) { in reserveDevice() 196 if (serial.startsWith("gce-device")) { in reserveDevice() 199 if (serial.startsWith("null-device")) { in reserveDevice() 202 selection.addSerial(serial); in reserveDevice() [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/monsoon_lib/api/hvpm/ |
D | monsoon.py | 47 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_tests/acts_contrib/test_utils/tel/ |
D | tel_video_utils.py | 120 log.error("{} voice not in LTE mode.".format(ad.serial)) 128 ad.serial, wfc_mode)) 167 log.error("{} voice not in LTE mode.".format(ad.serial)) 173 ad.serial, MAX_WAIT_TIME_VOLTE_ENABLED)) 213 ad.serial, sub_id)) 215 log.error("{} not in call.".format(ad.serial)) 258 ad.serial, sub_id)) 260 log.error("{} not in call.".format(ad.serial)) 318 ad.serial, sub_id)) 379 ad.serial, sub_id)) [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/cluster/ |
D | ClusterHostUtil.java | 99 String serial = device.getSerial(); in getUniqueDeviceSerial() local 100 if (Strings.isNullOrEmpty(serial)) { in getUniqueDeviceSerial() 105 || serial.startsWith(EMULATOR_SERIAL_PREFIX)) { in getUniqueDeviceSerial() 106 return String.format("%s:%s", getHostName(), serial); in getUniqueDeviceSerial() 108 return serial; in getUniqueDeviceSerial() 120 public static String getLocalDeviceSerial(String serial) { in getLocalDeviceSerial() argument 122 if (serial.startsWith(prefix)) { in getLocalDeviceSerial() 123 return serial.substring(prefix.length()); in getLocalDeviceSerial() 125 return serial; in getLocalDeviceSerial()
|
/tools/tradefederation/core/src/com/android/tradefed/device/recovery/ |
D | UsbResetMultiDeviceRecovery.java | 90 for (String serial : deviceSerials) { in recoverDevices() 91 try (UsbDevice device = usb.getDevice(serial)) { in recoverDevices() 92 if (mOnlyResetUnmanaged && managedDeviceMap.containsKey(serial)) { in recoverDevices() 96 CLog.w("Device '%s' not found during USB reset.", serial); in recoverDevices() 100 CLog.d("Resetting USB port for device '%s'", serial); in recoverDevices() 103 if (managedDeviceMap.containsKey(serial)) { in recoverDevices() 104 tryReboot(managedDeviceMap.get(serial)); in recoverDevices()
|
/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/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,
|