/tools/test/connectivity/acts_tests/tests/google/wifi/ |
D | WifiManagerTest.py | 60 self.dut = self.android_devices[0] 61 wutils.wifi_test_device_init(self.dut) 62 wutils.wifi_toggle_state(self.dut, True) 99 wutils.wifi_toggle_state(self.dut, True) 107 if self.dut.droid.wifiIsApEnabled(): 108 wutils.stop_wifi_tethering(self.dut) 113 acts.utils.force_airplane_mode(self.dut, False), 114 "Can not turn airplane mode off: %s" % self.dut.serial) 137 def get_connection_data(self, dut, network): argument 148 params = (network, dut) [all …]
|
D | WifiSoftApTest.py | 48 self.dut = self.android_devices[0] 65 utils.require_sl4a((self.dut, self.dut_client)) 66 utils.sync_device_time(self.dut) 69 self.dut.droid.wifiEnableVerboseLogging(1) 70 asserts.assert_equal(self.dut.droid.wifiGetVerboseLoggingLevel(), 1, 75 wutils.wifi_toggle_state(self.dut, True) 78 if self.dut.model in self.dbs_supported_models: 80 if self.dut.model in self.sta_concurrency_supported_models: 100 if self.dut.droid.wifiIsApEnabled(): 101 wutils.stop_wifi_tethering(self.dut) [all …]
|
D | WifiNetworkSuggestionTest.py | 70 self.dut = self.android_devices[0] 99 self.dut.droid.wifiRemoveNetworkSuggestions([]) 100 self.dut.adb.shell( 105 self.dut.droid.wakeLockAcquireBright() 106 self.dut.droid.wakeUpNow() 107 self.dut.unlock_screen() 109 wutils.wifi_toggle_state(self.dut, True) 110 self.dut.ed.clear_all_events() 111 self.clear_carrier_approved(str(self.dut.droid.telephonyGetSimCarrierId())) 124 self.dut.droid.wakeLockRelease() [all …]
|
D | WifiBridgedApTest.py | 53 self.dut = self.android_devices[0] 59 if not self.dut.droid.wifiIsBridgedApConcurrencySupported(): 75 wutils.wifi_toggle_state(self.dut, False) 81 if self.dut.droid.wifiIsApEnabled(): 82 wutils.stop_wifi_tethering(self.dut) 114 for dut in duts: 115 asserts.skip_if(not dut.droid.wifiIsWpa3SaeSupported(), 188 callbackId = self.dut.droid.registerSoftApCallback() 189 wutils.wait_for_expected_number_of_softap_clients(self.dut, 192 self.dut.droid.unregisterSoftApCallback(callbackId) [all …]
|
D | WifiNetworkRequestTest.py | 51 self.dut = self.android_devices[0] 52 wutils.wifi_test_device_init(self.dut) 77 self.dut.model in self.sta_concurrency_supported_models 83 self.dut.droid.wakeLockAcquireBright() 84 self.dut.droid.wakeUpNow() 87 wutils.wifi_toggle_state(self.dut, True) 88 self.dut.ed.clear_all_events() 92 self.dut.droid.wakeLockRelease() 93 self.dut.droid.goToSleepNow() 94 self.dut.droid.wifiDisconnect() [all …]
|
D | WifiEnterpriseTest.py | 41 self.dut = self.android_devices[0] 136 self.dut.droid.setDevicePassword(self.device_password) 139 wutils.reset_wifi(self.dut) 140 self.dut.droid.disableDevicePassword(self.device_password) 141 self.dut.ed.clear_all_events() 145 self.dut.droid.wifiStartTrackingStateChange() 146 self.dut.droid.wakeLockAcquireBright() 147 self.dut.droid.wakeUpNow() 148 wutils.reset_wifi(self.dut) 149 self.dut.ed.clear_all_events() [all …]
|
D | WifiWpaPersonalTest.py | 41 self.dut = self.android_devices[0] 65 wutils.reset_wifi(self.dut) 66 utils.force_airplane_mode(self.dut, False) 73 self.dut.cat_adb_log(test_name, begin_time) 74 self.dut.take_bug_report(test_name, begin_time) 77 result = wutils.get_wlan0_link(self.dut) 107 self.dut, self.wpa_psk_2g[WifiEnums.SSID_KEY]) 108 wutils.connect_to_wifi_network(self.dut, self.wpa_psk_2g) 122 self.dut, self.wpa_psk_5g[WifiEnums.SSID_KEY]) 123 wutils.connect_to_wifi_network(self.dut, self.wpa_psk_5g) [all …]
|
D | WifiWakeTest.py | 53 self.dut = self.android_devices[0] 54 wutils.wifi_test_device_init(self.dut) 56 acts.utils.set_location_service(self.dut, True) 57 self.dut.droid.wifiScannerToggleAlwaysAvailable(True) 121 self.dut.droid.wakeLockAcquireBright() 122 self.dut.droid.wakeUpNow() 127 wutils.reset_wifi(self.dut) 128 wutils.wifi_toggle_state(self.dut, new_state=True) 130 self.dut.droid.wifiStartTrackingStateChange() 131 self.dut.droid.wifiStopTrackingStateChange() [all …]
|
D | WifiPasspointTest.py | 67 self.dut = self.android_devices[0] 68 wutils.wifi_test_device_init(self.dut) 76 wutils.wifi_toggle_state(self.dut, True) 82 self.dut.droid.wakeLockAcquireBright() 83 self.dut.droid.wakeUpNow() 84 self.dut.unlock_screen() 85 self.dut.adb.shell("input keyevent KEYCODE_HOME") 90 self.dut.droid.wakeLockRelease() 91 self.dut.droid.goToSleepNow() 92 passpoint_configs = self.dut.droid.getPasspointConfigs() [all …]
|
D | WifiAutoUpdateTest.py | 65 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) 102 self.dut.droid.wakeLockAcquireBright() 103 self.dut.droid.wakeUpNow() 107 self.dut.droid.wakeLockRelease() 108 self.dut.droid.goToSleepNow() 127 if self.dut.build_info["build_id"].startswith("R"): 131 self.dut.droid.wifiSetWifiApConfiguration(self.wifi_hotspot), [all …]
|
D | WifiStressTest.py | 56 self.dut = self.android_devices[0] 63 wutils.wifi_test_device_init(self.dut) 89 self.dut.droid.wakeLockAcquireBright() 90 self.dut.droid.wakeUpNow() 94 if self.dut.droid.wifiIsApEnabled(): 95 wutils.stop_wifi_tethering(self.dut) 96 self.dut.droid.wakeLockRelease() 97 self.dut.droid.goToSleepNow() 98 wutils.reset_wifi(self.dut) 101 wutils.reset_wifi(self.dut) [all …]
|
/tools/test/connectivity/acts_tests/tests/google/tel/live/ |
D | TelLiveEmergencyBase.py | 81 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 …]
|
D | TelLiveRebootStressTest.py | 91 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 …]
|
D | TelLiveConnectivityMonitorBaseTest.py | 124 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 …]
|
D | TelLiveEmergencyTest.py | 56 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 …]
|
D | TelLiveStressFdrTest.py | 66 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 …]
|
D | TelLiveImsSettingsTest.py | 67 self.dut = self.android_devices[0] 69 self.subid = get_outgoing_voice_sub_id(self.dut) 70 self.carrier_configs = dumpsys_carrier_config(self.dut)[self.subid] 71 self.dut_capabilities = self.dut.telephony["subscription"][ 73 self.dut.log.info("DUT capabilities: %s", self.dut_capabilities) 88 self.dut_wfc_modes = self.dut.telephony[ 110 if not phone_setup_volte(self.log, self.dut): 114 ad=self.dut, 128 ad=self.dut, 142 ad=self.dut, [all …]
|
D | TelLiveSettingsTest.py | 50 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/wifi/aware/functional/ |
D | AttachTest.py | 36 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 …]
|
D | NonConcurrencyTest.py | 59 dut = self.android_devices[0] 64 id = dut.droid.wifiAwareAttach() 65 autils.wait_for_event(dut, aconsts.EVENT_CB_ON_ATTACHED) 71 dut.droid.wifiP2pInitialize() 72 wp2putils.p2p_create_group(dut) 73 dut.ed.pop_event(p2pconsts.CONNECTED_EVENT, 77 wutils.start_wifi_tethering(dut, self.TETHER_SSID, password=None) 80 autils.fail_on_event(dut, aconsts.BROADCAST_WIFI_AWARE_NOT_AVAILABLE) 82 dut.droid.wifiAwarePublish(id, p_config) 83 autils.wait_for_event(dut, aconsts.SESSION_CB_ON_SESSION_CONFIG_FAILED) [all …]
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/bt/ |
D | gattc_lib.py | 40 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/ |
D | UsbTetheringFunctionsTest.py | 52 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/acts_contrib/test_utils/wifi/ |
D | wifi_performance_test_utils.py | 93 def validate_network(dut, ssid): argument 100 current_network = dut.droid.wifiGetConnectionInfo() 102 connected = wutils.validate_connection(dut) is not None 686 def get_atten_for_target_rssi(target_rssi, attenuators, dut, ping_server): argument 706 dut_ip = dut.droid.connectivityGetIPv4Addresses('wlan0')[0] 713 current_rssi = get_connected_rssi(dut, 739 current_rssi = get_connected_rssi(dut, 764 dut, 788 dut_ip = dut.droid.connectivityGetIPv4Addresses('wlan0')[0] 790 ping_future = get_ping_stats_nb(dut, ping_server._settings.hostname, [all …]
|
/tools/test/connectivity/acts_tests/tests/google/bt/pts/ |
D | GattPtsTest.py | 38 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/ |
D | DnsOverTlsTest.py | 46 self.dut = self.android_devices[0] 70 wutils.reset_wifi(self.dut) 80 self.dut.take_bug_report(test_name, begin_time) 155 cutils.set_private_dns(self.dut, dns_mode, hostname) 160 self.dut, net[SSID]) 161 wutils.wifi_connect(self.dut, net) 164 self._start_tcp_dump(self.dut) 169 status = wutils.validate_connection(self.dut, host) 174 pcap_file = self._stop_tcp_dump(self.dut) 180 wutils.reset_wifi(self.dut) [all …]
|