Home
last modified time | relevance | path

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

12345678

/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 …]
DNonConcurrencyTest.py57 dut = self.android_devices[0]
60 id = dut.droid.wifiAwareAttach()
61 autils.wait_for_event(dut, aconsts.EVENT_CB_ON_ATTACHED)
67 dut.droid.wifiP2pInitialize()
69 wutils.start_wifi_tethering(dut, self.TETHER_SSID, password=None)
72 autils.wait_for_event(dut, aconsts.BROADCAST_WIFI_AWARE_NOT_AVAILABLE)
76 autils.wait_for_event(dut, aconsts.BROADCAST_WIFI_AWARE_AVAILABLE)
79 autils.fail_on_event(dut, aconsts.BROADCAST_WIFI_AWARE_AVAILABLE)
81 wutils.stop_wifi_tethering(dut)
91 dut = self.android_devices[0]
[all …]
DMacRandomTest.py38 def request_network(self, dut, ns): argument
47 return dut.droid.connectivityRequestWifiAwareNetwork(network_req)
55 dut = self.android_devices[0]
59 autils.configure_mac_random_interval(dut, 1800)
64 id = dut.droid.wifiAwareAttach(True)
65 autils.wait_for_event(dut, aconsts.EVENT_CB_ON_ATTACHED)
67 dut, aconsts.EVENT_CB_ON_IDENTITY_CHANGED)
71 dut.log.info("NMI=%s", mac)
80 dut.aware_capabilities[aconsts.CAP_MAX_NDI_INTERFACES]):
82 ndi_mac = autils.get_mac_addr(dut, ndi_interface)
[all …]
/tools/test/connectivity/acts/tests/google/wifi/
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.py47 self.dut = self.android_devices[0]
61 utils.require_sl4a((self.dut, self.dut_client))
62 utils.sync_device_time(self.dut)
65 wutils.set_wifi_country_code(self.dut, wutils.WifiEnums.CountryCode.US)
68 self.dut.droid.wifiEnableVerboseLogging(1)
69 asserts.assert_equal(self.dut.droid.wifiGetVerboseLoggingLevel(), 1,
74 wutils.wifi_toggle_state(self.dut, True)
77 if self.dut.model in self.dbs_supported_models:
88 if self.dut.droid.wifiIsApEnabled():
89 wutils.stop_wifi_tethering(self.dut)
[all …]
DWifiNetworkSuggestionTest.py66 self.dut = self.android_devices[0]
67 wutils.wifi_test_device_init(self.dut)
93 "carrierId": str(self.dut.droid.telephonyGetSimCarrierId()),
107 self.dut.droid.wifiRemoveNetworkSuggestions([])
108 self.dut.adb.shell(
112 self.dut.droid.wakeLockAcquireBright()
113 self.dut.droid.wakeUpNow()
114 self.dut.unlock_screen()
116 wutils.wifi_toggle_state(self.dut, True)
117 self.dut.ed.clear_all_events()
[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 if self.dut.droid.wifiIsApEnabled():
94 wutils.stop_wifi_tethering(self.dut)
95 wutils.reset_wifi(self.dut)
100 self.dut.take_bug_report(test_name, begin_time)
101 self.dut.cat_adb_log(test_name, begin_time)
126 def get_connection_data(self, dut, network): argument
[all …]
DWifiWakeTest.py49 self.dut = self.android_devices[0]
50 wutils.wifi_test_device_init(self.dut)
52 acts.utils.set_location_service(self.dut, True)
53 self.dut.droid.wifiScannerToggleAlwaysAvailable(True)
95 self.dut.droid.wakeLockAcquireBright()
96 self.dut.droid.wakeUpNow()
101 wutils.reset_wifi(self.dut)
102 wutils.wifi_toggle_state(self.dut, new_state=True)
104 self.dut.droid.wifiStartTrackingStateChange()
105 self.dut.droid.wifiStopTrackingStateChange()
[all …]
DWifiCrashTest.py49 self.dut = self.android_devices[0]
50 wutils.wifi_test_device_init(self.dut)
65 self.dut.droid.wakeLockAcquireBright()
66 self.dut.droid.wakeUpNow()
67 wutils.wifi_toggle_state(self.dut, True)
70 self.dut.droid.wakeLockRelease()
71 self.dut.droid.goToSleepNow()
72 wutils.reset_wifi(self.dut)
75 self.dut.take_bug_report(test_name, begin_time)
76 self.dut.cat_adb_log(test_name, begin_time)
[all …]
DWifiPasspointTest.py62 self.dut = self.android_devices[0]
63 wutils.wifi_test_device_init(self.dut)
72 wutils.wifi_toggle_state(self.dut, True)
76 self.passpoint_workflow = "passpoint-login_%s" % self.dut.model
80 self.dut.droid.wakeLockAcquireBright()
81 self.dut.droid.wakeUpNow()
82 self.dut.unlock_screen()
86 self.dut.droid.wakeLockRelease()
87 self.dut.droid.goToSleepNow()
88 passpoint_configs = self.dut.droid.getPasspointConfigs()
[all …]
DWifiAutoUpdateTest.py65 self.dut = self.android_devices[0]
67 wutils.wifi_test_device_init(self.dut)
68 wutils.wifi_toggle_state(self.dut, True)
95 ota_updater.update(self.dut)
101 self.dut.droid.wakeLockAcquireBright()
102 self.dut.droid.wakeUpNow()
105 self.dut.droid.wakeLockRelease()
106 self.dut.droid.goToSleepNow()
109 self.dut.take_bug_report(test_name, begin_time)
110 self.dut.cat_adb_log(test_name, begin_time)
[all …]
DWifiEnterpriseTest.py42 self.dut = self.android_devices[0]
43 wutils.wifi_test_device_init(self.dut)
146 self.dut.droid.setDevicePassword(self.device_password)
150 wutils.reset_wifi(self.dut)
151 self.dut.droid.disableDevicePassword(self.device_password)
152 self.dut.ed.clear_all_events()
155 self.dut.droid.wifiStartTrackingStateChange()
156 self.dut.droid.wakeLockAcquireBright()
157 self.dut.droid.wakeUpNow()
158 wutils.reset_wifi(self.dut)
[all …]
/tools/test/connectivity/acts/tests/google/tel/live/
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 …]
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 …]
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 …]
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)
143 if not ensure_phone_subscription(self.log, self.dut):
144 self.dut.log.error("Subscription check failed")
[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 …]
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 …]
DTelLiveLockedSimTest.py76 unlock_sim(self.dut)
83 self.log, self.dut, False, WFC_MODE_WIFI_PREFERRED,
85 self.dut.log.error("Failed to setup WFC in non-APM.")
89 self.log, self.dut, True, WFC_MODE_WIFI_PREFERRED,
91 self.dut.log.error("Failed to setup WFC in APM.")
93 if not is_sim_locked(self.dut):
94 self.dut.reboot(stop_at_lock_screen=True)
96 droid, ed = self.dut.get_droid()
99 self.dut.log.warning("Failed to start sl4a!")
100 self.dut.log.info("SIM at state %s", get_sim_state(self.dut))
[all …]
/tools/test/connectivity/acts/tests/google/nfc/
DNfcBasicFunctionalityTest.py29 self.dut = self.android_devices[0]
30 self._ensure_nfc_enabled(self.dut)
31 self.dut.droid.nfcStartTrackingStateChange()
32 self.dut.adb.shell("setprop nfc.app_log_level 255")
33 self.dut.adb.shell("setprop nfc.enable_protocol_log 255")
34 self.dut.adb.shell("setprop nfc.nxp_log_level_global 5")
35 self.dut.adb.shell("setprop nfc.nxp_log_level_extns 5")
36 self.dut.adb.shell("setprop nfc.nxp_log_level_hal 5")
37 self.dut.adb.shell("setprop nfc.nxp_log_level_nci 5")
38 self.dut.adb.shell("setprop nfc.nxp_log_level_tml 5")
[all …]
/tools/test/connectivity/acts/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/framework/acts/test_utils/bt/
Dbta_lib.py27 def __init__(self, log, dut, target_mac_address=None): argument
29 self.dut = dut
38 set_bt_scan_mode(self.dut, bt_scan_mode_types[scan_mode])
42 self.dut.droid.bluetoothSetLocalName(line)
46 self.dut.droid.bluetoothToggleState(True)
50 self.dut.droid.bluetoothToggleState(False)
54 self.dut.droid.bluetoothDiscoverAndBond(self.target_mac_addr)
58 self.dut.droid.bluetoothStartDiscovery()
62 self.dut.droid.bluetoothCancelDiscovery()
66 if self.dut.droid.bluetoothIsDiscovering():
[all …]
/tools/test/connectivity/acts/tests/google/wifi/rtt/functional/
DRttRequestManagementTest.py51 dut = self.android_devices[0]
52 max_peers = dut.droid.wifiRttMaxPeersInRequest()
59 rutils.scan_with_rtt_support_constraint(dut, True, repeat=10),
61 dut.log.info("RTT Supporting APs=%s", aps)
75 dut.droid.wifiRttStartRangingToAccessPoints(aps, all_uids))
80 dut.droid.wifiRttStartRangingToAccessPoints(aps, some_uids))
85 dut.droid.wifiRttStartRangingToAccessPoints(aps, all_uids))
88 dut.droid.wifiRttCancelRanging(some_uids)
93 dut,
100 dut,
[all …]
DRttDisableTest.py46 dut = self.android_devices[0]
49 asserts.assert_true(dut.droid.wifiIsRttAvailable(),
54 rutils.scan_networks(dut), select_count=1)
62 utils.force_airplane_mode(dut, True),
63 "Can not turn on airplane mode on: %s" % dut.serial)
65 asserts.assert_true(utils.enable_doze(dut), "Can't enable doze")
67 utils.set_location_service(dut, False)
69 rutils.wait_for_event(dut, rconsts.BROADCAST_WIFI_RTT_NOT_AVAILABLE)
70 asserts.assert_false(dut.droid.wifiIsRttAvailable(),
74 id = dut.droid.wifiRttStartRangingToAccessPoints(all_aps[0:1])
[all …]

12345678