Home
last modified time | relevance | path

Searched refs:devices (Results 1 – 25 of 82) sorted by relevance

1234

/tools/test/openhst/
Dstress_test.py717 def RunAsyncCommand(devices, command): argument
719 for device in devices:
721 for device in devices:
730 self.devices = []
793 self.devices.append(
795 if not self.devices:
798 self.devices.sort(key=lambda x: x.name)
801 for device in self.devices:
810 for device in self.devices:
824 if FLAGS.devices and serial_number not in FLAGS.devices:
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/device/recovery/
DRunConfigDeviceRecoveryTest.java75 List<IManagedTestDevice> devices = new ArrayList<>(); in testRecoverDevice_allocated() local
76 devices.add(mMockTestDevice); in testRecoverDevice_allocated()
80 mRecoverer.recoverDevices(devices); in testRecoverDevice_allocated()
86 List<IManagedTestDevice> devices = new ArrayList<>(); in testRecoverDevice_offline() local
87 devices.add(mMockTestDevice); in testRecoverDevice_offline()
96 mRecoverer.recoverDevices(devices); in testRecoverDevice_offline()
106 List<IManagedTestDevice> devices = new ArrayList<>(); in testRecoverDevice_fastboot() local
107 devices.add(mMockTestDevice); in testRecoverDevice_fastboot()
116 mRecoverer.recoverDevices(devices); in testRecoverDevice_fastboot()
122 List<IManagedTestDevice> devices = new ArrayList<>(); in testRecoverDevice_run() local
[all …]
/tools/test/connectivity/acts/framework/acts/test_utils/bt/
Dbt_test_utils.py1007 devices = sink.droid.bluetoothA2dpSinkGetConnectedDevices()
1008 for device in devices:
1024 devices = ad.droid.bluetoothA2dpSinkGetConnectedDevices()
1025 ad.log.info("Connected A2DP Sink devices: {}".format(devices))
1026 if addr in {d['address'] for d in devices}:
1040 devices = ad.droid.bluetoothA2dpGetConnectedDevices()
1041 ad.log.info("Connected A2DP Source devices: {}".format(devices))
1042 if addr in {d['address'] for d in devices}:
1056 devices = ad.droid.bluetoothHfpClientGetConnectedDevices()
1057 ad.log.info("Connected HFP Client devices: {}".format(devices))
[all …]
/tools/tradefederation/core/src/com/android/tradefed/cluster/
DClusterCommandScheduler.java450 MultiMap<String, DeviceDescriptor> devices = getAvailableDevices(manager); in processReadyCommands() local
451 if (devices.isEmpty()) { in processReadyCommands()
458 devices = getDevices(manager, false); in processReadyCommands()
459 commands = fetchHostCommands(devices); in processReadyCommands()
486 final MultiMap<String, DeviceDescriptor> devices = new MultiMap<>(); in getDevices() local
501 devices.put(runTarget, device); in getDevices()
503 return devices; in getDevices()
530 List<ClusterCommand> fetchHostCommands(final MultiMap<String, DeviceDescriptor> devices) { in fetchHostCommands() argument
549 for (String runTarget : devices.keySet()) { in fetchHostCommands()
550 for (DeviceDescriptor d : devices.get(runTarget)) { in fetchHostCommands()
/tools/tradefederation/core/src/com/android/tradefed/command/
DCommandScheduler.java1078 Map<String, ITestDevice> devices = allocateDevices(config, manager); in processReadyCommands() local
1079 if (!devices.isEmpty()) { in processReadyCommands()
1082 context.addAllocatedDevice(devices); in processReadyCommands()
1537 Map<String, ITestDevice> devices = allocateDevices(config, manager); in execCommand() local
1538 if (!devices.isEmpty()) { in execCommand()
1539 context.addAllocatedDevice(devices); in execCommand()
1543 CLog.d("Executing '%s' on '%s'", cmdTracker.getArgs()[0], devices); in execCommand()
1593 Map<String, ITestDevice> devices = new LinkedHashMap<String, ITestDevice>(); in allocateDevices() local
1606 devices.put(deviceConfig.getDeviceName(), device); in allocateDevices()
1610 for (ITestDevice allocatedDevice : devices.values()) { in allocateDevices()
[all …]
/tools/test/graphicsbenchmark/functional_tests/hostside/src/com/android/game/qualification/test/
DVkJsonTests.java44 List<VkJsonDevice> devices; field in VkJsonTests.VkJson
98 assertThat(mVkJson.devices).isNotNull(); in setUp()
99 assertThat(mVkJson.devices).isNotEmpty(); in setUp()
107 final long apiVersion = mVkJson.devices.get(0).properties.apiVersion; in checkRequiredVersion()
126 List<String> extensions = mVkJson.devices.get(0).extensions.stream() in checkRequiredExtensions()
147 .that(mVkJson.devices.get(0).VK_KHR_driver_properties) in checkKHRDriverProperties()
152 mVkJson.devices.get(0).VK_KHR_driver_properties.driverPropertiesKHR; in checkKHRDriverProperties()
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/
DGceAvdInfo.java177 JSONArray devices = null; in parseGceInfoFromString() local
182 devices = res.getJSONObject("data").getJSONArray("devices_failing_boot"); in parseGceInfoFromString()
185 devices = res.getJSONObject("data").getJSONArray("devices"); in parseGceInfoFromString()
187 if (devices != null) { in parseGceInfoFromString()
188 if (devices.length() == 1) { in parseGceInfoFromString()
189 JSONObject d = (JSONObject) devices.get(0); in parseGceInfoFromString()
206 CLog.w("Expected only one device to return but found %d", devices.length()); in parseGceInfoFromString()
/tools/acloud/public/
Ddevice_driver.py58 def __init__(self, cfg, devices=None): argument
59 self._devices = devices or []
233 self.devices.append(avd.AndroidVirtualDevice(
270 def devices(self): member in AndroidVirtualDevicePool
393 for device in device_pool.devices:
427 instance_names=[d.instance_name for d in device_pool.devices],
/tools/test/connectivity/acts/
DREADME.md4 devices. It provides a simple execution interface; a set of pluggable libraries
5 for accessing commercially avilable devices, Android devices, and a collection
11 be run with as little as one or two Android devices with wifi, cellular, or
68 2. Run `$adb devices`
113 "_description": "Sample testbed with no devices",
/tools/tradefederation/core/tests/src/com/android/tradefed/command/
DCommandSchedulerTest.java1097 Map<String, ITestDevice> devices = mScheduler.allocateDevices( in testAllocateDevices() local
1099 assertEquals(1, devices.size()); in testAllocateDevices()
1123 Map<String, ITestDevice> devices = in testAllocateDevices_replicated() local
1126 assertEquals(3, devices.size()); in testAllocateDevices_replicated()
1150 Map<String, ITestDevice> devices = mScheduler.allocateDevices( in testAllocateDevices_multipleDevices() local
1152 assertEquals(2, devices.size()); in testAllocateDevices_multipleDevices()
1169 Map<String, ITestDevice> devices = mScheduler.allocateDevices( in testAllocateDevices_multipleDevices_failed() local
1171 assertEquals(0, devices.size()); in testAllocateDevices_multipleDevices_failed()
/tools/test/connectivity/acts/framework/tests/
Dacts_relay_controller_test.py389 self.assertEqual(len(rig.devices['device'].relays), 1)
392 self.assertEqual(len(rig.devices['device'].relays), 2)
396 self.assertEqual(len(rig.devices), 1)
397 self.assertIsInstance(rig.devices['device'], GenericRelayDevice)
403 self.assertEqual(len(rig.devices), 1)
404 self.assertIsInstance(rig.devices['device'], GenericRelayDevice)
405 self.assertDictEqual(rig.devices['device'].relays, rig.relays)
/tools/acloud/public/actions/
Dcommon_operations.py76 def __init__(self, device_factory, devices=None): argument
86 self._devices = devices or []
103 self.devices.append(
167 def devices(self): member in DevicePool
233 for device in device_pool.devices:
/tools/test/connectivity/acts/framework/acts/controllers/
Drelay_device_controller.py67 devices = list()
70 for device in relay_rig.devices.values():
71 devices.append(device)
73 return devices
Dandroid_device.py183 out = adb.AdbProxy().devices()
194 out = fastboot.FastbootProxy().devices()
430 out = self.adb.devices()
431 devices = _parse_device_list(out, "device")
432 return self.serial in devices
/tools/tradefederation/core/src/com/android/tradefed/device/
DFastbootHelper.java111 HashMap<String, Boolean> devices = new LinkedHashMap<>(); in getBootloaderAndFastbootdDevices() local
113 devices.put(f, false); in getBootloaderAndFastbootdDevices()
116 devices.put(f, true); in getBootloaderAndFastbootdDevices()
118 return devices; in getBootloaderAndFastbootdDevices()
/tools/test/connectivity/acts/framework/acts/controllers/relay_lib/
Drelay_rig.py91 self.devices = collections.OrderedDict()
107 if relay_device.name in self.devices:
111 self.devices[relay_device.name] = relay_device
118 self.devices['device'] = self.create_relay_device(device_config)
/tools/tradefederation/core/src/com/android/tradefed/util/
DSl4aBluetoothUtil.java741 JSONArray devices = (JSONArray) primaryClient.rpcCall(sl4aCommand); in checkConnectedDevice() local
742 if (devices == null) { in checkConnectedDevice()
746 for (int i = 0; i < devices.length(); i++) { in checkConnectedDevice()
747 JSONObject device = devices.getJSONObject(i); in checkConnectedDevice()
/tools/tradefederation/core/
DREADME.md4 and monitors the connected devices, handling test scheduling & execution and device
26 https://source.android.com/devices/tech/test_infra/tradefed/
29 https://source.android.com/devices/tech/test_infra/tradefed/architecture
/tools/tradefederation/core/src/com/android/tradefed/device/recovery/
DUsbResetMultiDeviceRecovery.java62 public void recoverDevices(List<IManagedTestDevice> devices) { in recoverDevices() argument
68 Maps.uniqueIndex(devices, INativeDevice::getSerialNumber); in recoverDevices()
83 for (IManagedTestDevice device : devices) { in recoverDevices()
/tools/test/graphicsbenchmark/functional_tests/native/
Dmprotect_test.cpp64 std::vector<VkPhysicalDevice> devices(deviceCount); in TEST() local
65 vkEnumeratePhysicalDevices(instance, &deviceCount, devices.data()); in TEST()
66 physicalDevice = devices[0]; in TEST()
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/
Db29_lib.py66 devices = []
78 devices.append(device)
79 return devices
Dapollo_lib.py105 devices = []
128 devices.append(device)
129 return devices
/tools/test/connectivity/acts/tests/google/wifi/rtt/
DREADME.md42 devices without listing specific serial numbers. Note that some tests use a
43 single device while others use 2 devices.
53 AP or between the two test devices (for Aware ranging tests).
/tools/acloud/
DREADME.md154 remote instance created by you. It will then look for any devices missing in
155 `adb devices` and reconnect them to adb. Lastly it will restart vnc for all
156 devices that don't already have vnc started for them.
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/
DAtraceCollectorTest.java348 List<ITestDevice> devices = new ArrayList<ITestDevice>(); in testMultipleDeviceBehavior() local
355 devices.add(device); in testMultipleDeviceBehavior()
360 .andStubReturn(devices); in testMultipleDeviceBehavior()

1234