/tools/test/connectivity/acts_tests/acts_contrib/test_utils/abstract_devices/ |
D | bluetooth_device.py | 61 def __init__(self, device): argument 62 self.device = device 379 return self.device.ed.pop_event(expected_event, self.gatt_timeout) 391 self.device.droid.gattClientDiscoverServices(bluetooth_gatt) 410 self.device.droid.bluetoothToggleState(state) 419 self.device.droid.bluetoothMakeDiscoverable() 421 self.device.droid.bluetoothMakeUndiscoverable() 432 self.device.droid.bluetoothStartPairingHelper(True) 453 self.device.droid.gattClientWriteCharacteristicByInstanceId( 483 self.device.droid.gattClientWriteCharacteristicByInstanceId( [all …]
|
D | wlan_device.py | 58 def __init__(self, device): argument 59 self.device = device 198 awutils.wifi_toggle_state(self.device, state) 201 awutils.reset_wifi(self.device) 204 self.device.take_bug_report(test_name, begin_time) 207 self.device.cat_adb_log(test_name, begin_time) 210 awutils.turn_location_off_and_scan_toggle_off(self.device) 238 self.device, 244 self.device.log.info('Failed to associated (%s)' % e) 248 awutils.turn_location_off_and_scan_toggle_off(self.device) [all …]
|
/tools/test/connectivity/acts/framework/tests/libs/ota/ota_runners/ |
D | ota_runner_test.py | 71 device = mock.MagicMock() 72 device.skip_sl4a = False 74 runner = OtaRunnerImpl(tool, device) 80 self.assertTrue(device.stop_services.called) 81 self.assertTrue(device.wait_for_boot_completion.called) 82 self.assertTrue(device.start_services.called) 83 self.assertTrue(device.adb.install.called) 87 device = mock.MagicMock() 89 runner = OtaRunnerImpl(tool, device) 99 device = mock.MagicMock() [all …]
|
D | ota_runner_factory_test.py | 32 self.device = mock.MagicMock() 33 self.device.serial = 'fake_serial' 39 acts_config, 'ota_tool', self.device) 45 acts_config, 'ota_tool', self.device) 56 acts_config, 'ota_tool', self.device) 65 ota_runner_factory.create_from_configs(acts_config, self.device) 80 ota_runner_factory.create_from_configs(acts_config, self.device) 81 mocked_function.assert_called_with('jkl;', 'qaz', self.device, 96 ota_runner_factory.create_from_configs(acts_config, self.device) 97 mocked_function.assert_called_with('jkl;', 'qaz', self.device, [all …]
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/bt/ |
D | bt_contacts_utils.py | 269 def get_contact_count(device): argument 272 contact_list = device.droid.contactsQueryContent( 277 def import_device_contacts_from_vcf(device, destination_path, vcf_file, timeout=10): argument 281 device.log.info("Trying to add {} phone numbers.".format(number_count)) 284 device.adb.push("{} {}".format(local_phonebook_path, phone_phonebook_path)) 285 device.droid.importVcf("file://{}{}".format(STORAGE_PATH, vcf_file)) 289 if "ImportVCardActivity" in device.get_my_current_focus_window(): 292 device.adb.shell("input keyevent KEYCODE_{}".format(key)) 295 if wait_for_phone_number_update_complete(device, number_count): 301 def export_device_contacts_to_vcf(device, destination_path, vcf_file): argument [all …]
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/wifi/aware/ |
D | aware_test_utils.py | 405 def get_mac_addr(device, interface): argument 413 out = device.adb.shell("ifconfig %s" % interface) 422 def get_ipv6_addr(device, interface): argument 431 out = device.adb.shell("ifconfig %s" % interface) 572 def configure_power_setting(device, mode, name, value): argument 581 device.adb.shell("cmd wifiaware native_api set-power %s %s %d" % 585 def configure_mac_random_interval(device, interval_sec): argument 594 device.adb.shell( 599 def configure_ndp_allow_any_override(device, override_api_check): argument 612 device.adb.shell("cmd wifiaware state_mgr allow_ndp_any %s" % [all …]
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/net/ |
D | ui_utils.py | 62 def get_screen_dump_xml(device): argument 74 os.makedirs(device.log_path, exist_ok=True) 75 device.adb.shell('uiautomator dump') 76 device.adb.pull('/sdcard/window_dump.xml %s' % device.log_path) 77 return minidom.parse('%s/window_dump.xml' % device.log_path) 144 def wait_and_get_xml_node(device, timeout, child=None, sibling=None, **kwargs): argument 167 device, 'Only use one extra set of conditions: child or sibling.') 172 screen_dump_xml = get_screen_dump_xml(device) 188 raise AndroidDeviceError(device, msg) 191 def has_element(device, **kwargs): argument [all …]
|
/tools/test/openhst/ |
D | stress_test.py | 728 for device in devices: 729 device.AsyncCommand(command) 730 for device in devices: 731 device.WaitForTasks() 810 for device in self.devices: 811 device.WaitForTasks() 819 for device in self.devices: 820 device_pb = stress_test_info.device.add() 821 device_pb.device_type = device.device_type 822 device_pb.serial_number = device.serial_number [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/fuchsia_lib/lib_controllers/ |
D | wlan_policy_controller.py | 43 self.device = fuchsia_device 45 'WlanPolicyController for FuchsiaDevice | %s' % self.device.ip) 61 response = self.device.basemgr_lib.killBasemgr() 74 response = self.device.wlan_policy_lib.wlanCreateClientController() 81 response = self.device.wlan_policy_lib.wlanGetSavedNetworks() 123 start_response = self.device.wlan_policy_lib.wlanStartClientConnections( 137 stop_response = self.device.wlan_policy_lib.wlanStopClientConnections() 163 self.device.wlan_policy_lib.wlanSetNewListener() 217 self.device.wlan_policy_lib.wlanSetNewListener() 233 self.device.wlan_policy_lib.wlanSetNewListener() [all …]
|
D | wlan_controller.py | 34 self.device = fuchsia_device 36 'WlanController for FuchsiaDevice | %s' % self.device.ip) 52 response = self.device.wlan_lib.wlanGetIfaceIdList() 60 query_response = self.device.wlan_lib.wlanQueryInterface(id) 81 query_response = self.device.wlan_lib.wlanQueryInterface(iface_id) 111 err = self.device.netstack_lib.init().get('error') 116 response = self.device.netstack_lib.netstackListInterfaces() 140 country_code_response = self.device.regulatory_region_lib.setRegion( 149 phy_ids_response = self.device.wlan_lib.wlanPhyIdList() 157 get_country_response = self.device.wlan_lib.wlanGetCountry(id)
|
/tools/acloud/public/actions/ |
D | common_operations.py | 138 for device in self._devices: 140 self._compute_client.WaitForBoot(device.instance_name, boot_timeout_secs) 142 failures[device.instance_name] = e 165 for device in self._devices: 167 device.instance_name, port, output_file) 169 instance=device.instance_name, port=port) 170 file_name = "%s_serial_%s.log" % (device.instance_name, port) 179 for device in self._devices: 180 device.build_info = self._device_factory.GetBuildInfoDict() 268 for device in device_pool.devices: [all …]
|
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/ |
D | SuperFloppyFormatter.java | 85 private final BlockDevice device; field in SuperFloppyFormatter 101 private SuperFloppyFormatter(BlockDevice device) throws IOException { in SuperFloppyFormatter() argument 102 this.device = device; in SuperFloppyFormatter() 189 final int sectorSize = device.getSectorSize(); in format() 190 final int totalSectors = (int)(device.getSize() / sectorSize); in format() 197 bs = new Fat32BootSector(device); in format() 213 bs = new Fat16BootSector(device); in format() 219 device.getSectorSize(), totalSectors); in format() 233 f32bs.writeCopy(device); in format() 259 FatFileSystem fs = FatFileSystem.read(device, false); in format() [all …]
|
D | Sector.java | 31 private final BlockDevice device; field in Sector 41 protected Sector(BlockDevice device, long offset, int size) { in Sector() argument 43 this.device = device; in Sector() 59 device.read(offset, buffer); in read() 77 return this.device; in getDevice() 85 device.write(offset, buffer); in write()
|
D | BootSector.java | 69 protected BootSector(BlockDevice device) { in BootSector() argument 70 super(device, 0, SIZE); in BootSector() 74 public static BootSector read(BlockDevice device) throws IOException { in read() argument 77 device.read(0, bb); in read() 91 (device.getSectorSize() - 1)) / device.getSectorSize(); in read() 115 new Fat32BootSector(device) : new Fat16BootSector(device); in read()
|
/tools/test/connectivity/acts/framework/tests/libs/ota/ |
D | ota_updater_test.py | 66 device = MockAndroidDevice('serial') 68 device: ota_runner.OtaRunner('tool', device) 71 ota_updater._check_initialization(device) 77 device = MockAndroidDevice('serial') 80 ota_updater._check_initialization(device) 83 device = MockAndroidDevice('serial') 86 ota_updater.ota_runners = {device: runner} 88 ota_updater.update(device) 91 device = MockAndroidDevice('serial') 94 ota_updater.ota_runners = {device: runner} [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/test_actions/ |
D | bt_utils.py | 165 def android_device_in_paired_state(self, device, mac_address): argument 167 bonded_devices = device.droid.bluetoothGetBondedDevices() 174 def android_device_in_connected_state(self, device, mac_address): argument 176 connected_devices = device.droid.bluetoothGetConnectedDevices() 223 def check_device_bt(self, device, **kwargs): argument 233 if device.dut_type in ['rio', 'apollo']: 235 return self.check_dut_status(device, profiles) 237 def check_dut_status(self, device, profiles=None): argument 251 expected[device.dut_type][key] = profiles[key] 253 wait_until(lambda: self._compare_profile(device, [all …]
|
/tools/carrier_settings/ |
D | main.sh | 37 DATA_DEVICE_DIR=$TMP_DIR/data/device 41 DEVICE_FILE=$DATA_DEVICE_DIR/device.textpb 98 for device in "$DATA_DEVICE_DIR"/*.textpb; do 99 [[ -e "$device" ]] || break 100 device=${device%.*} && device=${device##*/} \ 101 && device_dir="${INNER_TMP_DIR}/${device}" && mkdir -p "${INNER_TMP_DIR}" \ 102 && mkdir -p "${INNER_TMP_DIR}/textpb/${device}" > /dev/null \ 104 --device_overlay="$DATA_DEVICE_DIR/${device}.textpb" \ 108 --with_device_name="${device}" \ 111 && mv "${device_dir}"/*.textpb "${INNER_TMP_DIR}/textpb/${device}" > /dev/null \
|
/tools/test/connectivity/acts_tests/tests/google/wifi/ |
D | WifiDppTest.py | 245 def gen_uri(self, device, info="DPP_TESTER", chan="81/1", mac=None): argument 259 self.del_uri(device, "'*'") 270 result = device.adb.shell(cmd) 275 device.log.info("Generated URI, id = %s" % result) 279 def get_uri(self, device, uri_id): argument 292 result = device.adb.shell(cmd) 297 device.log.info("URI contents = %s" % result) 301 def del_uri(self, device, uri_id): argument 310 result = device.adb.shell(cmd) 314 device.log.info("Deleted URI, id = %s" % uri_id) [all …]
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/bt/loggers/ |
D | bluetooth_metric_logger.py | 68 def get_configuration_data(device): argument 81 data = {'device_class': device.__class__.__name__} 83 if device.__class__.__name__ == 'AndroidDevice': 86 'device_model': device.model, 87 'android_release_id': device.build_info['build_id'], 88 'android_build_type': device.build_info['build_type'], 89 'android_build_number': device.build_info[ 92 'software_version': device.build_info['build_id']} 94 if device.__class__.__name__ == 'ParentDevice': 96 'device_model': device.dut_type, [all …]
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/fuchsia/ |
D | bt_test_utils.py | 54 for device in scan_res: 55 name, did, connectable = device["name"], device["id"], device[ 60 found_device = device 92 for device in scan_res: 93 name, did = scan_res[device]["name"], scan_res[device]["id"] 116 for device in device_list: 117 d = device_list[device] 141 for device in device_list: 142 d = device_list[device]
|
/tools/test/connectivity/acts/framework/acts/controllers/ |
D | relay_device_controller.py | 70 for device in relay_rig.devices.values(): 71 devices.append(device) 82 for device in relay_devices: 83 device.clean_up() 97 for device in relay_devices: 99 for relay in device.relays: 101 info = {"name": device.name, "relays": relay_ids}
|
/tools/acloud/public/ |
D | report.py | 184 device = {constants.INSTANCE_NAME: instance_name} 186 device[constants.ADB_PORT] = adb_port 187 device[constants.IP] = "%s:%d" % (ip_address, adb_port) 189 device[constants.IP] = ip_address 192 device[constants.DEVICE_SERIAL] = device_serial 195 device[constants.VNC_PORT] = vnc_port 198 device[constants.WEBRTC_PORT] = webrtc_port 199 self.AddData(key=key, value=device)
|
D | device_driver.py | 248 instance_names = [device.instance_name for device in self._devices] 262 for device in self._devices: 264 self._compute_client.WaitForBoot(device.instance_name) 266 failures[device.instance_name] = e 393 for device in device_pool.devices: 394 ip = (device.ip.internal if report_internal_ip 395 else device.ip.external) 398 "instance_name": device.instance_name 413 if device.instance_name in failures: 415 r.AddError(str(failures[device.instance_name]))
|
/tools/test/connectivity/acts_tests/tests/google/fuchsia/wlan/functional/ |
D | SoftApTest.py | 138 def __init__(self, device): argument 139 self.w_device = create_wlan_device(device) 140 self.ip_client = iperf_client.IPerfClientOverAdb(device.serial) 167 self.dut.device.netstack_lib.init() 171 for device in self.android_devices: 172 self.clients.append(SoftApClient(device)) 176 'user': self.dut.device.ssh_username, 177 'host': self.dut.device.ip, 178 'ssh_config': self.dut.device.ssh_config 246 response = self.dut.device.wlan_ap_policy_lib.wlanStartAccessPoint( [all …]
|
/tools/test/graphicsbenchmark/functional_tests/hostside/src/com/android/game/qualification/test/ |
D | TestUtils.java | 19 import com.android.tradefed.device.DeviceNotAvailableException; 20 import com.android.tradefed.device.INativeDevice; 27 public static boolean isGameCoreCertified(INativeDevice device) in isGameCoreCertified() argument 29 CommandResult result = device.executeShellV2Command( in isGameCoreCertified() 34 public static void assumeGameCoreCertified(INativeDevice device) in assumeGameCoreCertified() argument 36 assumeTrue(isGameCoreCertified(device)); in assumeGameCoreCertified()
|