/tools/test/connectivity/acts_tests/acts_contrib/test_utils/abstract_devices/ |
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/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/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_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/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()
|
/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/asuite/atest/unittest_data/tradefed_prebuilt/prebuilts/filegroups/tradefed/ |
D | tradefed-contrib.jar | ... String[] cmdTokens
com.android.tradefed.device.ITestDevice device
com.android.tradefed.build ... |
/tools/tradefederation/prebuilts/filegroups/tradefed/ |
D | tradefed-contrib.jar | ... String[] cmdTokens
com.android.tradefed.device.ITestDevice device
com.android.tradefed.build ... |
/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/platform-compat/java/android/compat/testing/ |
D | Classpaths.java | 26 import com.android.tradefed.device.DeviceNotAvailableException; 27 import com.android.tradefed.device.INativeDevice; 28 import com.android.tradefed.device.ITestDevice; 69 public static ImmutableList<String> getJarsOnClasspath(INativeDevice device, in getJarsOnClasspath() argument 71 CommandResult shellResult = device.executeShellV2Command("echo $" + classpath); in getJarsOnClasspath() 81 public static ImmutableList<SharedLibraryInfo> getSharedLibraryInfos(ITestDevice device, in getSharedLibraryInfos() argument 83 runDeviceTests(device, buildInfo, SharedLibraryInfo.HELPER_APP_APK, in getSharedLibraryInfos() 88 content = device.pullFileContents(remoteFile); in getSharedLibraryInfos() 90 device.deleteFile(remoteFile); in getSharedLibraryInfos() 96 public static ImmutableSet<ClassDef> getClassDefsFromJar(INativeDevice device, in getClassDefsFromJar() argument [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/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/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/tradefederation/prebuilts/filegroups/suite/ |
D | compatibility-tradefed.jar | ... IBuildInfo info
String buildAlias
com.android.tradefed.device.ITestDevice device
public void cleanUp (com.android ... |
D | compatibility-host-util.jar | ... .device.DeviceNotAvailableException
com.android.tradefed.device.ITestDevice device
int version
public static boolean isBefore ( ... |
/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/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/asuite/atest/unittest_data/tradefed_prebuilt/prebuilts/filegroups/suite/ |
D | compatibility-tradefed.jar | ... IBuildInfo info
String buildAlias
com.android.tradefed.device.ITestDevice device
public void cleanUp (com.android ... |
/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()
|
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/ |
D | UnknownFileSystemException.java | 32 private final BlockDevice device; field in UnknownFileSystemException 40 public UnknownFileSystemException(BlockDevice device) { in UnknownFileSystemException() argument 42 this.device = device; in UnknownFileSystemException() 52 return this.device; in getDevice()
|