Home
last modified time | relevance | path

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

1234567

/tools/tradefederation/core/javatests/com/android/tradefed/device/recovery/
DRunConfigDeviceRecoveryTest.java78 List<IManagedTestDevice> devices = new ArrayList<>(); in testRecoverDevice_allocated() local
79 devices.add(mMockTestDevice); in testRecoverDevice_allocated()
81 mRecoverer.recoverDevices(devices); in testRecoverDevice_allocated()
86 List<IManagedTestDevice> devices = new ArrayList<>(); in testRecoverDevice_offline() local
87 devices.add(mMockTestDevice); in testRecoverDevice_offline()
92 mRecoverer.recoverDevices(devices); in testRecoverDevice_offline()
103 List<IManagedTestDevice> devices = new ArrayList<>(); in testRecoverDevice_fastboot() local
104 devices.add(mMockTestDevice); in testRecoverDevice_fastboot()
109 mRecoverer.recoverDevices(devices); in testRecoverDevice_fastboot()
116 List<IManagedTestDevice> devices = new ArrayList<>(); in testRecoverDevice_run() local
[all …]
/tools/netsim/rust/daemon/src/devices/
Ddevices_handler.rs28 use crate::devices::device::AddChipResult;
29 use crate::devices::device::Device;
94 devices: RwLock<BTreeMap<DeviceIdentifier, Device>>, field
102 devices: RwLock::new(BTreeMap::new()), in new()
130 self.devices.read().unwrap().values().find(|d| d.guid == *guid) in get_or_create_device()
143 self.devices.write().unwrap().insert( in get_or_create_device()
182 .devices in add_chip()
316 fn remove_device(devices: Arc<DeviceManager>, id: &DeviceIdentifier) -> Result<(), String> { in remove_device()
317 match devices.devices.write().unwrap().remove(id) { in remove_device()
326 devices.update_timestamp(); in remove_device()
[all …]
/tools/netsim/ui/ts/
Ddevice-observer.ts122 devices: Device[]; property
138 devices: [],
157 this.fetchDevice(data.devices);
180 fetchDevice(devices?: ProtoDevice[]) {
181 this.simulationInfo.devices = [];
182 if (devices) {
183 this.simulationInfo.devices = devices.map(device => new Device(device));
202 for (const device of this.simulationInfo.devices) {
263 return this.simulationInfo.devices;
295 simulationState.fetchDevice(data.devices);
/tools/test/openhst/
Dstress_test.py729 def RunAsyncCommand(devices, command): argument
731 for device in devices:
733 for device in devices:
742 self.devices = []
805 self.devices.append(
807 if not self.devices:
810 self.devices.sort(key=lambda x: x.name)
813 for device in self.devices:
822 for device in self.devices:
836 if FLAGS.devices and serial_number not in FLAGS.devices:
[all …]
/tools/tradefederation/core/src/com/android/tradefed/device/
DFastbootHelper.java112 HashMap<String, Boolean> devices = new LinkedHashMap<>(); in getBootloaderAndFastbootdDevices() local
114 devices.put(f, false); in getBootloaderAndFastbootdDevices()
117 devices.put(f, true); in getBootloaderAndFastbootdDevices()
119 return devices; in getBootloaderAndFastbootdDevices()
135 HashMap<String, Boolean> devices = new LinkedHashMap<>(); in getBootloaderAndFastbootdTcpDevices() local
150 devices.put(entry.getKey(), true); in getBootloaderAndFastbootdTcpDevices()
152 devices.put(entry.getKey(), false); in getBootloaderAndFastbootdTcpDevices()
157 return devices; in getBootloaderAndFastbootdTcpDevices()
/tools/netsim/proto/netsim/
Dfrontend.proto27 * android and accessory devices to allows control of the topology, device
41 // Delete a builtin chip. Implicitly deletes devices which contain no chips.
47 // Reset all devices.
50 // Get a list of devices
53 // Get a list of devices when a device event is published.
79 // CreateDevice is only used for built-in devices.
105 // For built-in devices, you may patch the specific configurations.
114 // Returns the emulators and accessory devices that are connected to
118 repeated netsim.model.Device devices = 1; field
120 // The timestamp will be updated if devices state has changed (except for
[all …]
/tools/test/graphicsbenchmark/functional_tests/hostside/src/com/android/game/qualification/test/
DVkJsonTests.java43 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()
125 List<String> extensions = mVkJson.devices.get(0).extensions.stream() in checkRequiredExtensions()
145 .that(mVkJson.devices.get(0).VK_KHR_driver_properties) in checkKHRDriverProperties()
149 mVkJson.devices.get(0).VK_KHR_driver_properties.driverPropertiesKHR; in checkKHRDriverProperties()
/tools/netsim/ui/dist/js/
Ddevice-observer.js1devices:[],captures:[],selectedId:"",dimension:{x:10,y:10,z:0},lastModified:""},this.invokeGetDevi… property
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/multi/
DPairingMultiTargetPreparer.java156 List<ITestDevice> devices = new ArrayList<>(deviceInfos.keySet()); in setDeviceInfos() local
157 if (devices.size() != 2) { in setDeviceInfos()
160 devices.get(0).getDeviceDescriptor(), in setDeviceInfos()
163 int primaryIdx = mPrimaryDeviceName.equals(devices.get(0).getProductType()) ? 0 : 1; in setDeviceInfos()
164 mPrimaryDevice = devices.get(primaryIdx); in setDeviceInfos()
165 mCompanionDevice = devices.get(1 - primaryIdx); in setDeviceInfos()
/tools/netsim/rust/cli/src/
Dlib.rs103 let devices = client.send_grpc(&GrpcMethod::ListDevice, req); in perform_command() localVariable
104 let id = find_id_for_remove(devices.byte_vec().as_slice(), cmd)?; in perform_command()
126 let devices = ListDeviceResponse::parse_from_bytes(response).unwrap().devices; in find_id_for_remove() localVariable
127 let id = devices in find_id_for_remove()
228 devices: vec![DeviceProto { in test_remove_device()
255 devices: vec![DeviceProto { in test_remove_chip()
286 devices: vec![DeviceProto { in test_remove_multiple_chips_fails()
313 devices: vec![DeviceProto { in test_remove_nonexistent_chip_fails()
/tools/netsim/rust/daemon/src/transport/
Dfd.rs21 use crate::devices::chip;
22 use crate::devices::chip::ChipIdentifier;
23 use crate::devices::device::DeviceIdentifier;
24 use crate::devices::devices_handler::{add_chip, remove_chip};
47 devices: Vec<Device>, field
185 let chip_count = startup_info.devices.iter().map(|d| d.chips.len()).sum(); in run_fd_transport()
186 for (device_guid, device) in startup_info.devices.iter().enumerate() { in run_fd_transport()
410 let chip_count = startup_info.devices.iter().map(|d| d.chips.len()).sum(); in run_fd_connector()
413 for device in startup_info.devices { in run_fd_connector()
480 for device in startup_info.devices { in test_serde()
/tools/test/connectivity/acts/framework/tests/
Dacts_utils_test.py558 devices = []
559 self.assertRaises(ValueError, utils.get_device, devices, 'DUT')
562 devices = [self.TestDevice(0)]
563 self.assertEqual(utils.get_device(devices, 'DUT').id, 0)
566 devices = [self.TestDevice(0), self.TestDevice(1)]
567 self.assertEqual(utils.get_device(devices, 'DUT').id, 0)
570 devices = [self.TestDevice(0), self.TestDevice(1, 'DUT')]
571 self.assertEqual(utils.get_device(devices, 'DUT').id, 1)
574 devices = [self.TestDevice(0, 'DUT'), self.TestDevice(1, 'DUT')]
575 self.assertRaises(ValueError, utils.get_device, devices, 'DUT')
/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
/tools/tradefederation/core/src/com/android/tradefed/service/management/
DTestInvocationManagementServer.java162 List<ITestDevice> devices = null; in submitTestCommand() local
164 devices = getReservedDevices(request.getReservationIdList()); in submitTestCommand()
167 if (devices == null) { in submitTestCommand()
170 invocationId = mCommandScheduler.execCommand(forwarder, devices, command); in submitTestCommand()
312 List<ITestDevice> devices = new ArrayList<>(); in getReservedDevices() local
319 devices.add(device); in getReservedDevices()
321 return devices; in getReservedDevices()
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/bt/
Dbt_test_utils.py1089 devices = sink.droid.bluetoothA2dpSinkGetConnectedDevices()
1090 for device in devices:
1106 devices = ad.droid.bluetoothA2dpSinkGetConnectedDevices()
1107 ad.log.info("Connected A2DP Sink devices: {}".format(devices))
1108 if addr in {d['address'] for d in devices}:
1122 devices = ad.droid.bluetoothA2dpGetConnectedDevices()
1123 ad.log.info("Connected A2DP Source devices: {}".format(devices))
1124 if addr in {d['address'] for d in devices}:
1138 devices = ad.droid.bluetoothHfpClientGetConnectedDevices()
1139 ad.log.info("Connected HFP Client devices: {}".format(devices))
[all …]
/tools/tradefederation/core/src/com/android/tradefed/retry/
DBaseRetryDecision.java667 List<ITestDevice> devices, int lastAttempt, ModuleDefinition module) in recoverStateOfDevices() argument
672 for (ITestDevice device : devices) { in recoverStateOfDevices()
683 resetIsolation(module, devices); in recoverStateOfDevices()
687 for (ITestDevice device : devices) { in recoverStateOfDevices()
696 private void resetIsolation(ModuleDefinition module, List<ITestDevice> devices) in resetIsolation() argument
700 isolateRetry(devices); in resetIsolation()
721 protected void isolateRetry(List<ITestDevice> devices) throws DeviceNotAvailableException { in isolateRetry() argument
724 for (ITestDevice device : devices) { in isolateRetry()
734 for (ITestDevice device : devices) { in isolateRetry()
/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/device/cloud/
DGceAvdInfo.java374 JSONArray devices = null; in parseGceInfoFromString() local
378 devices = res.getJSONObject("data").getJSONArray("devices_failing_boot"); in parseGceInfoFromString()
381 devices = res.getJSONObject("data").getJSONArray("devices"); in parseGceInfoFromString()
383 if (devices != null) { in parseGceInfoFromString()
384 if (devices.length() == 1) { in parseGceInfoFromString()
385 JSONObject d = (JSONObject) devices.get(0); in parseGceInfoFromString()
404 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 []
234 self.devices.append(avd.AndroidVirtualDevice(
271 def devices(self): member in AndroidVirtualDevicePool
394 for device in device_pool.devices:
431 instance_names=[d.instance_name for d in device_pool.devices]
/tools/acloud/public/actions/
Dcommon_operations.py82 def __init__(self, device_factory, devices=None): argument
92 self._devices = devices or []
116 self.devices.append(
181 def devices(self): member in DevicePool
272 for device in device_pool.devices:
/tools/tradefederation/core/aoa_helper/
DREADME.md2 …) using [Android Open Accessory Protocol 2.0](https://source.android.com/devices/accessories/aoa2)…
19 …key combinations using [USB HID usages](https://source.android.com/devices/input/keyboard-devices).
/tools/tradefederation/core/src/com/android/tradefed/cluster/
DClusterCommandScheduler.java534 MultiMap<String, DeviceDescriptor> devices = getAvailableDevices(manager); in processReadyCommands() local
535 if (devices.isEmpty()) { in processReadyCommands()
542 devices = getDevices(manager, false); in processReadyCommands()
543 commands = fetchHostCommands(devices); in processReadyCommands()
575 final MultiMap<String, DeviceDescriptor> devices = new MultiMap<>(); in getDevices() local
594 devices.put(runTarget, device); in getDevices()
596 return devices; in getDevices()
645 List<ClusterCommand> fetchHostCommands(final MultiMap<String, DeviceDescriptor> devices) { in fetchHostCommands() argument
665 for (String runTarget : devices.keySet()) { in fetchHostCommands()
666 for (DeviceDescriptor d : devices.get(runTarget)) { in fetchHostCommands()
/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/netsim/testing/netsim-grpc/
DREADME.md21 devices = netsim_client.get_devices()
26 - `get_devices()`: Get detailed information for all devices connected to netsim daemon.
29 - `reset()`: Reset all devices.
/tools/tradefederation/core/proto/device/
Ddevice_manager.proto32 // Get the devices status
103 // The request to get status of devices
105 // Request devices status. if left empty, all devices status are returned.

1234567