/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/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/src/com/android/tradefed/device/ |
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 | 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 | DeviceManager.java | 299 public DeviceDescriptor getDeviceDescriptor(String serial) { in startAdbBridgeAndDependentServices() 300 return DeviceManager.this.getDeviceDescriptor(serial); in startAdbBridgeAndDependentServices() 526 for (String serial : serials) { in addFastbootDevices() 527 FastbootDevice d = new FastbootDevice(serial); in addFastbootDevices() 535 public FastbootDevice(String serial) { in FastbootDevice() argument 536 super(serial, false); in FastbootDevice() 571 String serial = String.format("%s%s", NullDevice.TEMP_NULL_DEVICE_PREFIX, rand); in allocateDevice() local 572 addAvailableDevice(new NullDevice(serial, true)); in allocateDevice() 573 options.setSerial(serial); in allocateDevice() 582 public ITestDevice forceAllocateDevice(String serial) { in forceAllocateDevice() argument [all …]
|
D | NullDevice.java | 32 public NullDevice(String serial) { in NullDevice() argument 33 super(serial, false); in NullDevice() 36 public NullDevice(String serial, boolean isTemporary) { in NullDevice() argument 37 this(serial); in NullDevice()
|
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()
|
/tools/test/connectivity/acts/framework/acts/controllers/ |
D | android_device.py | 93 ads[0].log.info('The primary device under test is "%s".' % ads[0].serial) 99 " but is not attached.") % ad.serial, 100 serial=ad.serial) 129 info = {"serial": ad.serial, "model": ad.model} 233 serial = c.pop('serial') 243 ad = AndroidDevice(serial, ssh_connection=ssh_connection) 320 serials = [ad.serial for ad in filtered] 365 def __init__(self, serial='', ssh_connection=None): argument 366 self.serial = serial 369 self.log_dir = 'AndroidDevice%s' % serial [all …]
|
D | arduino_wifi_dongle.py | 25 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)
|
D | adb.py | 79 def __init__(self, serial="", ssh_connection=None): argument 87 self.serial = serial 91 if serial: 92 adb_cmd.append("-s %s" % serial) 101 remote_adb_cmd = "%s/adb %s root" % (temp_dir, "-s %s" % serial 102 if serial else "")
|
D | fastboot.py | 48 def __init__(self, serial="", ssh_connection=None): argument 49 self.serial = serial 50 if serial: 51 self.fastboot_str = "fastboot -s {}".format(serial)
|
/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 | 48 public DeviceDescriptor(String serial, boolean isStubDevice, DeviceAllocationState state, in DeviceDescriptor() argument 51 this(serial, isStubDevice, state, product, productVariant, sdkVersion, buildId, in DeviceDescriptor() 55 public DeviceDescriptor(String serial, boolean isStubDevice, DeviceAllocationState state, in DeviceDescriptor() argument 60 serial, in DeviceDescriptor() 78 String serial, in DeviceDescriptor() argument 92 serial, in DeviceDescriptor() 110 String serial, in DeviceDescriptor() argument 125 serial, in DeviceDescriptor() 143 String serial, in DeviceDescriptor() argument 158 mSerial = serial; in DeviceDescriptor()
|
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()
|
/tools/test/connectivity/acts/framework/acts/test_utils/tel/ |
D | tel_video_utils.py | 119 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 …]
|
/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/tradefederation/core/src/com/android/tradefed/device/metric/ |
D | RuntimeRestartCollector.java | 218 final Map<String, Metric> metrics, List<Integer> timestampsSecs, String serial) { in addStatsdStatsBasedMetrics() argument 224 createMetricKey(METRIC_SUFFIX_SYSTEM_TIMESTAMP_SECS, serial); in addStatsdStatsBasedMetrics() 234 createMetricKey(METRIC_SUFFIX_SYSTEM_TIMESTAMP_FORMATTED, serial); in addStatsdStatsBasedMetrics() 247 final Map<String, Metric> metrics, List<Long> timestampsNanos, String serial) { in addAtomBasedMetrics() argument 250 String countMetricKey = createMetricKey(METRIC_SUFFIX_COUNT, serial); in addAtomBasedMetrics() 256 String uptimeNanosMetricKey = createMetricKey(METRIC_SUFFIX_UPTIME_NANOS, serial); in addAtomBasedMetrics() 266 createMetricKey(METRIC_SUFFIX_UPTIME_FORMATTED, serial); in addAtomBasedMetrics() 277 private String createMetricKey(String suffix, String serial) { in createMetricKey() argument 279 ? String.join(METRIC_SEP, METRIC_PREFIX, serial, suffix) in createMetricKey()
|
/tools/tradefederation/core/python-lib/tradefed_py/ |
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,
|
/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/tradefederation/core/src/com/android/tradefed/device/recovery/ |
D | UsbResetMultiDeviceRecovery.java | 85 for (String serial : deviceSerials) { in recoverDevices() 86 try (UsbDevice device = usb.getDevice(serial)) { in recoverDevices() 88 CLog.w("Device '%s' not found during USB reset.", serial); in recoverDevices() 92 CLog.d("Resetting USB port for device '%s'", serial); in recoverDevices() 95 if (managedDeviceMap.containsKey(serial)) { in recoverDevices() 96 tryReboot(managedDeviceMap.get(serial)); in recoverDevices()
|
/tools/test/connectivity/acts/tests/google/bt/car_bt/ |
D | BtCarHfpConnectionTest.py | 104 self.hf.serial, self.ag.serial)) 149 self.hf.serial, self.ag.serial)) 231 self.hf.serial, self.ag.serial)) 278 self.hf.serial, self.ag.serial))
|
/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()
|