Home
last modified time | relevance | path

Searched refs:dut (Results 1 – 25 of 202) sorted by relevance

123456789

/tools/test/connectivity/acts_tests/tests/google/tel/live/
DTelLiveImsSettingsTest.py80 self.dut = self.android_devices[0]
83 subid = get_outgoing_voice_sub_id(self.dut)
84 self.carrier_configs = dumpsys_carrier_config(self.dut)[subid]
85 self.dut_capabilities = self.dut.telephony["subscription"][
87 self.dut.log.info("DUT capabilities: %s", self.dut_capabilities)
102 self.dut_wfc_modes = self.dut.telephony[
107 if not call_setup_teardown(self.log, self.android_devices[1], self.dut,
108 self.dut, None, is_phone_in_call_iwlan):
110 self.dut, self.dut, None,
112 self.dut.log.error("MT WFC call failed")
[all …]
DTelLiveRebootStressTest.py91 self.dut = self.android_devices[0]
94 self.dut_model = get_model_name(self.dut)
98 self.dut_subID = get_outgoing_voice_sub_id(self.dut)
99 … self.dut_capabilities = self.dut.telephony["subscription"][self.dut_subID].get("capabilities", [])
100 self.dut_wfc_modes = self.dut.telephony["subscription"][self.dut_subID].get("wfc_modes", [])
107 self.dut.log.error("%s failed with %s", method, e)
109 self.dut.log.info("%s is %s before tests start", method,
113 self.dut.log.info("To be tested: %s", self.default_testing_func_names)
147 if not ensure_phone_subscription(self.log, self.dut):
148 self.dut.log.error("Subscription check failed")
[all …]
DTelLiveConnectivityMonitorBaseTest.py124 self.dut = self.android_devices[0]
126 self.dut_model = get_model_name(self.dut)
127 self.dut_operator = get_operator_name(self.log, self.dut)
128 self.dut_subID = get_outgoing_voice_sub_id(self.dut)
129 … self.dut_capabilities = self.dut.telephony["subscription"][self.dut_subID].get("capabilities", [])
130 self.dut_wfc_modes = self.dut.telephony["subscription"][self.dut_subID].get("wfc_modes", [])
134 self.dut.log.info("DUT capabilities: %s", self.dut_capabilities)
143 bring_up_connectivity_monitor(self.dut)
145 if "Permissive" not in self.dut.adb.shell("su root getenforce"):
146 self.dut.adb.shell("su root setenforce 0")
[all …]
DTelLiveEmergencyBase.py81 self.dut = ad
82 output = self.dut.adb.shell("dumpsys carrier_config")
91 self.dut.adb.shell(" ".join(
110 if not unlock_sim(self.dut):
111 abort_all_tests(self.dut.log, "unable to unlock SIM")
115 self.dut.ensure_screen_on()
116 self.dut.exit_setup_wizard()
117 reset_device_password(self.dut, None)
118 output = self.dut.adb.shell("dumpsys carrier_config")
122 self.dut.adb.shell(" ".join(
[all …]
DTelLiveEmergencyTest.py56 toggle_airplane_mode_by_adb(self.log, self.dut, False)
75 if not phone_setup_csfb(self.log, self.dut):
96 if not phone_setup_voice_3g(self.log, self.dut):
120 if not phone_setup_voice_2g(self.log, self.dut):
146 self.log, self.dut, True, WFC_MODE_WIFI_PREFERRED,
148 self.dut.log.error("Failed to setup WFC.")
176 self.log, self.dut, False, WFC_MODE_WIFI_PREFERRED,
178 self.dut.log.error("Failed to setup WFC.")
216 toggle_airplane_mode_by_adb(self.log, self.dut, True)
234 toggle_airplane_mode_by_adb(self.log, self.dut, False)
[all …]
DTelLiveStressFdrTest.py66 self.dut = self.android_devices[0]
75 sub_id = get_outgoing_voice_sub_id(self.dut)
76 self.dut_capabilities = self.dut.telephony["subscription"][sub_id].get("capabilities", [])
77 self.dut.log.info("dut_capabilitiese: %s", self.dut_capabilities)
79 self.dut_wfc_modes = self.dut.telephony.get("wfc_modes", [])
87 self.dut.log.error("%s failed with %s", method, e)
89 self.dut.log.info("%s is %s before tests start", method,
93 self.dut.log.info("To be tested: %s", self.default_testing_func_names)
124 if not ensure_phone_subscription(self.log, self.dut):
125 self.dut.log.error("Subscription check failed")
[all …]
DTelLiveStressTest.py112 self.dut = self.android_devices[0]
158 telephony_info = getattr(self.dut, "telephony", {})
259 rat = self.dut.adb.getprop("gsm.network.type")
274 ads = [self.dut, self.dut]
297 self.dut.log.info("Network in RAT %s", rat)
299 self.dut.log.info("In call data not supported, test SMS only")
303 begin_time = get_device_epoch_time(self.dut)
352 self.dut.log.info("Network in RAT %s", rat)
354 self.dut.log.info(
426 self.dut,
[all …]
DTelLiveSettingsTest.py50 self.dut = self.android_devices[0]
53 self.carrier_configs = dumpsys_carrier_config(self.dut)
54 self.dut_subID = get_outgoing_voice_sub_id(self.dut)
55 … self.dut_capabilities = self.dut.telephony["subscription"][self.dut_subID].get("capabilities", [])
70 revert_default_telephony_setting(self.dut)
71 self.dut.log.info("Call telephony factory reset")
72 self.dut.droid.telephonyFactoryReset()
74 return verify_default_telephony_setting(self.dut)
99 self.dut.log.info("Disable mobile_data_always_on")
100 set_mobile_data_always_on(self.dut, False)
[all …]
/tools/test/connectivity/acts_tests/tests/google/fuchsia/wlan/
DWlanSecurityComplianceABGTest.py156 self.dut = create_wlan_device(self.fuchsia_devices[0])
158 self.dut = create_wlan_device(self.android_devices[0])
164 self.dut = create_wlan_device(self.android_devices[0])
182 self.dut.wifi_toggle_state(True)
189 self.dut.turn_location_off_and_scan_toggle_off()
190 self.dut.disconnect()
191 self.dut.reset_wifi()
202 client=self.dut,
215 client=self.dut,
228 client=self.dut,
[all …]
DWlanPhyComplianceABGTest.py38 self.dut = create_wlan_device(self.fuchsia_devices[0])
40 self.dut = create_wlan_device(self.android_devices[0])
46 self.dut = create_wlan_device(self.android_devices[0])
114 self.dut.wifi_toggle_state(True)
121 self.dut.turn_location_off_and_scan_toggle_off()
122 self.dut.disconnect()
123 self.dut.reset_wifi()
133 client=self.dut,
142 client=self.dut,
151 client=self.dut,
[all …]
DVapeInteropTest.py38 self.dut = create_wlan_device(self.fuchsia_devices[0])
40 self.dut = create_wlan_device(self.android_devices[0])
46 self.dut = create_wlan_device(self.android_devices[0])
66 self.dut.wifi_toggle_state(True)
73 self.dut.turn_location_off_and_scan_toggle_off()
74 self.dut.disconnect()
75 self.dut.reset_wifi()
85 client=self.dut,
93 client=self.dut,
103 client=self.dut,
[all …]
/tools/test/connectivity/acts/tests/google/wifi/
DWifiEnterpriseTest.py42 self.dut = self.android_devices[0]
43 wutils.wifi_test_device_init(self.dut)
142 self.dut.droid.setDevicePassword(self.device_password)
146 wutils.reset_wifi(self.dut)
147 self.dut.droid.disableDevicePassword(self.device_password)
148 self.dut.ed.clear_all_events()
151 self.dut.droid.wifiStartTrackingStateChange()
152 self.dut.droid.wakeLockAcquireBright()
153 self.dut.droid.wakeUpNow()
154 wutils.reset_wifi(self.dut)
[all …]
DWifiManagerTest.py53 self.dut = self.android_devices[0]
54 wutils.wifi_test_device_init(self.dut)
55 wutils.wifi_toggle_state(self.dut, True)
86 wutils.wifi_toggle_state(self.dut, True)
93 wutils.reset_wifi(self.dut)
98 self.dut.take_bug_report(test_name, begin_time)
99 self.dut.cat_adb_log(test_name, begin_time)
122 def get_connection_data(self, dut, network): argument
133 params = (network, dut)
135 connect_data = dut.droid.wifiGetConnectionInfo()
[all …]
DWifiNetworkRequestTest.py52 self.dut = self.android_devices[0]
53 wutils.wifi_test_device_init(self.dut)
74 self.dut.droid.wakeLockAcquireBright()
75 self.dut.droid.wakeUpNow()
78 wutils.wifi_toggle_state(self.dut, True)
79 self.dut.ed.clear_all_events()
82 self.dut.droid.wakeLockRelease()
83 self.dut.droid.goToSleepNow()
84 self.dut.droid.wifiReleaseNetworkAll()
85 self.dut.droid.wifiDisconnect()
[all …]
DWifiSoftApTest.py45 self.dut = self.android_devices[0]
59 utils.require_sl4a((self.dut, self.dut_client))
60 utils.sync_device_time(self.dut)
63 wutils.set_wifi_country_code(self.dut, wutils.WifiEnums.CountryCode.US)
66 self.dut.droid.wifiEnableVerboseLogging(1)
67 asserts.assert_equal(self.dut.droid.wifiGetVerboseLoggingLevel(), 1,
72 wutils.wifi_toggle_state(self.dut, True)
75 if self.dut.model in self.dbs_supported_models:
85 wutils.stop_wifi_tethering(self.dut)
86 wutils.reset_wifi(self.dut)
[all …]
DWifiWakeTest.py45 self.dut = self.android_devices[0]
46 wutils.wifi_test_device_init(self.dut)
48 acts.utils.set_location_service(self.dut, True)
49 self.dut.droid.wifiScannerToggleAlwaysAvailable(True)
91 self.dut.droid.wakeLockAcquireBright()
92 self.dut.droid.wakeUpNow()
97 wutils.reset_wifi(self.dut)
98 wutils.wifi_toggle_state(self.dut, new_state=True)
100 self.dut.droid.wifiStartTrackingStateChange()
101 self.dut.droid.wifiStopTrackingStateChange()
[all …]
DWifiStressTest.py53 self.dut = self.android_devices[0]
60 wutils.wifi_test_device_init(self.dut)
82 self.dut.droid.wakeLockAcquireBright()
83 self.dut.droid.wakeUpNow()
86 if self.dut.droid.wifiIsApEnabled():
87 wutils.stop_wifi_tethering(self.dut)
88 self.dut.droid.wakeLockRelease()
89 self.dut.droid.goToSleepNow()
90 wutils.reset_wifi(self.dut)
93 self.dut.take_bug_report(test_name, begin_time)
[all …]
DWifiNetworkSuggestionTest.py57 self.dut = self.android_devices[0]
58 wutils.wifi_test_device_init(self.dut)
99 self.dut.droid.wifiRemoveNetworkSuggestions([])
102 self.dut.droid.wakeLockAcquireBright()
103 self.dut.droid.wakeUpNow()
105 wutils.wifi_toggle_state(self.dut, True)
106 self.dut.ed.clear_all_events()
109 self.dut.droid.wakeLockRelease()
110 self.dut.droid.goToSleepNow()
111 self.dut.droid.wifiRemoveNetworkSuggestions([])
[all …]
DWifiScannerScanTest.py74 self.dut = self.android_devices[0]
75 wutils.wifi_test_device_init(self.dut)
97 self.wifi_chs = wutils.WifiChannelUS(self.dut.model)
98 asserts.assert_true(self.dut.droid.wifiIsScannerSupported(),
100 self.dut.model)
108 self.dut.droid.wifiScannerShutdown()
112 self.dut.take_bug_report(test_name, begin_time)
114 self.dut.cat_adb_log(test_name, begin_time)
247 events = self.dut.ed.pop_all(event_name)
266 data = wutils.start_wifi_single_scan(self.dut, scan_setting)
[all …]
/tools/test/connectivity/acts/framework/acts/test_utils/bt/
Dgattc_lib.py40 def __init__(self, log, dut, target_mac_addr=None): argument
41 self.dut = dut
54 self.dut.droid.bleSetScanSettingsScanMode(
56 filter_list = self.dut.droid.bleGenFilterList()
57 scan_settings = self.dut.droid.bleBuildScanSetting()
58 scan_callback = self.dut.droid.bleGenScanCallback()
60 self.dut.droid.bleSetScanFilterDeviceName("BLE Rect")
61 self.dut.droid.bleBuildScanFilter(filter_list)
62 self.dut.droid.bleStartBleScan(filter_list, scan_settings,
66 event = self.dut.ed.pop_event(event_name, 10)
[all …]
/tools/test/connectivity/acts_tests/tests/google/usb/
DUsbTetheringFunctionsTest.py52 self.dut = self.android_devices[0]
60 self.dut.droid.setMobileDataEnabled()
62 self.dut.log, self.dut, retries=3):
63 tutils.abort_all_tests(self.dut.log, 'Internet connection Failed.')
66 self.dut.droid.wakeLockAcquireBright()
67 self.dut.droid.wakeUpNow()
68 self.dut.unlock_screen()
71 wutils.wifi_toggle_state(self.dut, False)
72 self.dut.droid.wakeLockRelease()
73 self.dut.droid.goToSleepNow()
[all …]
/tools/test/connectivity/acts/tests/google/wifi/aware/functional/
DAttachTest.py36 dut = self.android_devices[0]
37 dut.droid.wifiAwareAttach(False)
38 autils.wait_for_event(dut, aconsts.EVENT_CB_ON_ATTACHED)
39 autils.fail_on_event(dut, aconsts.EVENT_CB_ON_IDENTITY_CHANGED)
48 dut = self.android_devices[0]
49 dut.droid.wifiAwareAttach(True)
50 autils.wait_for_event(dut, aconsts.EVENT_CB_ON_ATTACHED)
51 autils.wait_for_event(dut, aconsts.EVENT_CB_ON_IDENTITY_CHANGED)
61 dut = self.android_devices[0]
64 id1 = dut.droid.wifiAwareAttach(False, None, True)
[all …]
/tools/test/connectivity/acts_tests/tests/google/bt/pts/
DGattPtsTest.py38 self.dut.initialize_bluetooth_controller()
39 self.dut.set_bluetooth_local_name(self.dut_bluetooth_local_name)
40 local_dut_mac_address = self.dut.get_local_bluetooth_address()
44 if isinstance(self.dut, FuchsiaBluetoothDevice):
54 elif isinstance(self.dut, AndroidBluetoothDevice):
72 type(self.dut)))
80 self.dut.unbond_all_known_devices()
81 self.dut.start_pairing_helper()
90 self.dut.stop_le_advertisement()
91 self.dut.close_gatt_server()
[all …]
/tools/test/connectivity/acts_tests/tests/google/net/
DDnsOverTlsTest.py53 self.dut = self.android_devices[0]
66 wutils.reset_wifi(self.dut)
69 self.dut.take_bug_report(test_name, begin_time)
135 cutils.set_private_dns(self.dut, dns_mode, hostname)
140 self.dut, net[SSID])
141 wutils.wifi_connect(self.dut, net)
144 self._start_tcp_dump(self.dut)
149 status = wutils.validate_connection(self.dut, host)
154 pcap_file = self._stop_tcp_dump(self.dut)
160 wutils.reset_wifi(self.dut)
[all …]
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/
Dwifi_performance_test_utils.py78 def __init__(self, dut, llstats_enabled=True): argument
79 self.dut = dut
87 llstats_output = self.dut.adb.shell(self.LLSTATS_CMD, timeout=0.1)
697 def get_connected_rssi(dut, argument
732 status_output = dut.adb.shell(WPA_CLI_STATUS)
743 signal_poll_output = dut.adb.shell(SIGNAL_POLL)
768 per_chain_rssi = dut.adb.shell(STATION_DUMP)
806 def get_connected_rssi_nb(dut, argument
812 return get_connected_rssi(dut, num_measurements, polling_frequency,
817 def get_scan_rssi(dut, tracked_bssids, num_measurements=1): argument
[all …]

123456789