/tools/test/connectivity/acts_tests/tests/google/tel/lab/ |
D | TelLabNeighborCellTest.py | 153 def setup_class(self): argument 155 self.ad = self.android_devices[0] 156 self.ad.sim_card = getattr(self.ad, "sim_card", None) 157 self.md8475a_ip_address = self.user_params[ 159 self.mg3710a_ip_address = self.user_params[ 161 self.wlan_option = self.user_params.get("anritsu_wlan_option", False) 162 self.md8475_version = self.user_params.get("md8475", "A") 164 if "lte_rssi_offset" in self.user_params: 165 self._LTE_RSSI_OFFSET = int(self.user_params["lte_rssi_offset"]) 166 if "wcdma_rssi_offset" in self.user_params: [all …]
|
/tools/test/connectivity/acts_tests/tests/google/wifi/ |
D | WifiIOTTest.py | 39 def setup_class(self): argument 42 self.dut = self.android_devices[0] 43 wutils.wifi_test_device_init(self.dut) 47 self.unpack_userparams(req_param_names=req_params, 51 len(self.iot_networks) > 0, 54 if getattr(self, 'open_network', False): 55 self.iot_networks.append(self.open_network) 57 wutils.wifi_toggle_state(self.dut, True) 58 if "iperf_server_address" in self.user_params: 59 self.iperf_server = self.iperf_servers[0] [all …]
|
D | WifiRoamingTest.py | 34 def setup_class(self): argument 38 self.dut = self.android_devices[0] 39 self.dut_client = self.android_devices[1] 41 self.unpack_userparams(req_param_names=req_params,) 42 self.country_code = wutils.WifiEnums.CountryCode.US 43 if hasattr(self, "country_code_file"): 44 if isinstance(self.country_code_file, list): 45 self.country_code_file = self.country_code_file[0] 46 if not os.path.isfile(self.country_code_file): 47 self.country_code_file = os.path.join( [all …]
|
D | WifiManagerTest.py | 53 def __init__(self, configs): argument 55 self.enable_packet_log = True 57 def setup_class(self): argument 60 self.dut = self.android_devices[0] 61 wutils.wifi_test_device_init(self.dut) 62 wutils.wifi_toggle_state(self.dut, True) 64 self.dut_client = None 65 if len(self.android_devices) > 1: 66 self.dut_client = self.android_devices[1] 67 wutils.wifi_test_device_init(self.dut_client) [all …]
|
D | WifiDppTest.py | 82 def setup_class(self): argument 91 self.dut = self.android_devices[0] 92 self.helper_dev = self.android_devices[1] 98 utils.require_sl4a((self.dut,)) 99 utils.sync_device_time(self.dut) 103 self.unpack_userparams( 105 if "OpenWrtAP" in self.user_params: 106 self.configure_openwrt_ap_and_start(wpa_network=True, 108 self.wifi_psk_network = self.wpa_networks[0]["5g"].copy() 109 self.wifi_sae_network = self.sae_networks[0]["2g"].copy() [all …]
|
D | WifiEnterpriseTest.py | 37 def setup_class(self): argument 39 self.enable_packet_log = True 41 self.dut = self.android_devices[0] 44 if getattr(self, "attenuators", []): 45 for a in self.attenuators: 52 self.unpack_userparams(required_userparam_names, 57 if "AccessPoint" in self.user_params: 58 self.legacy_configure_ap_and_start( 60 radius_conf_2g=self.radius_conf_2g, 61 radius_conf_5g=self.radius_conf_5g, [all …]
|
D | WifiTeleCoexTest.py | 38 def setup_class(self): argument 39 TelephonyBaseTest.setup_class(self) 41 self.dut = self.android_devices[0] 42 wifi_utils.wifi_test_device_init(self.dut) 44 if getattr(self, ATTENUATORS, []): 45 for a in self.attenuators: 47 self.ads = self.android_devices 48 self.dut = self.android_devices[0] 49 self.wifi_network_ssid = self.user_params.get(WIFI_SSID) 50 self.wifi_network_pass = self.user_params.get(WIFI_PWD) [all …]
|
/tools/acloud/public/actions/ |
D | create_goldfish_action_test.py | 54 def setUp(self): argument 56 super(CreateGoldfishActionTest, self).setUp() 57 self.build_client = mock.MagicMock() 58 self.Patch( 61 return_value=self.build_client) 62 self.compute_client = mock.MagicMock() 63 self.Patch( 66 return_value=self.compute_client) 67 self.Patch( 70 return_value=self.compute_client) [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/openwrt_lib/ |
D | network_settings.py | 65 def __init__(self, ssh, ssh_settings, logger): argument 73 self.ssh = ssh 74 self.service_manager = ServiceManager(ssh) 75 self.ssh_settings = ssh_settings 76 self.user = self.ssh_settings.username 77 self.ip = self.ssh_settings.hostname 78 self.log = logger 79 self.config = set() 80 self.firewall_rules_list = [] 81 self.cleanup_map = { [all …]
|
/tools/test/connectivity/acts_tests/tests/google/fuchsia/wlan/compliance/ |
D | VapeInteropTest.py | 35 def setup_class(self): argument 37 if 'dut' in self.user_params: 38 if self.user_params['dut'] == 'fuchsia_devices': 39 self.dut = create_wlan_device(self.fuchsia_devices[0]) 40 elif self.user_params['dut'] == 'android_devices': 41 self.dut = create_wlan_device(self.android_devices[0]) 44 self.user_params['dut']) 47 self.dut = create_wlan_device(self.android_devices[0]) 49 self.access_point = self.access_points[0] 52 self.ssid = utils.rand_ascii_str(hostapd_constants.AP_SSID_LENGTH_2G) [all …]
|
/tools/test/connectivity/acts/framework/tests/ |
D | acts_relay_controller_test.py | 38 def __init__(self, config): argument 39 self.relay_states = dict() 40 self.relay_previous_states = dict() 41 RelayBoard.__init__(self, config) 43 def get_relay_position_list(self): argument 46 def get_relay_status(self, relay_position): argument 47 if relay_position not in self.relay_states: 48 self.relay_states[relay_position] = RelayState.NO 49 self.relay_previous_states[relay_position] = RelayState.NO 50 return self.relay_states[relay_position] [all …]
|
/tools/test/connectivity/acts_tests/tests/google/power/tel/ |
D | PowerTelTraffic_LTE_Test.py | 23 def display_name_test_suite(self): argument 26 def test_lte_traffic_band_12_pul_low_bw_10_tm_4_mimo_2x2_pattern_75_25_1(self): argument 27 …self.display_name_test_case = 'LTE traffic - Band 12, low UL power, 10 MHz BW, TM3 2x2, 75/25 patt… 28 self.power_tel_traffic_test() 30 def test_lte_traffic_band_12_pul_max_bw_5_tm_1_mimo_1x1_pattern_0_100_2(self): argument 31 …self.display_name_test_case = 'LTE traffic - Band 12, max UL power, 5 MHz BW, TM3 1x1, 0/100 patte… 32 self.power_tel_traffic_test() 34 def test_lte_traffic_band_12_pul_low_bw_14_tm_1_mimo_1x1_pattern_0_100_3(self): argument 35 …self.display_name_test_case = 'LTE traffic - Band 12, low UL power, 14 MHz BW, TM3 1x1, 0/100 patt… 36 self.power_tel_traffic_test() [all …]
|
/tools/acloud/create/ |
D | avd_spec_test.py | 38 def setUp(self): argument 41 self.args = mock.MagicMock() 42 self.args.flavor = "" 43 self.args.local_image = None 44 self.args.local_kernel_image = None 45 self.args.local_system_image = None 46 self.args.config_file = "" 47 self.args.build_target = "fake_build_target" 48 self.args.adb_port = None 49 self.args.launch_args = None [all …]
|
/tools/test/connectivity/acts_tests/tests/google/power/wifi/ |
D | PowerWiFimulticastTest.py | 30 def setup_class(self): argument 32 self.unpack_userparams(sub_mask="255.255.255.0", 46 def set_connection(self): argument 55 self.decode_test_configs(attrs, indices) 57 rebooted = wputils.change_dtim(self.dut, 60 self.dut.log.info('DTIM value of the phone is now DTIMx1') 62 self.dut_rockbottom() 64 self.setup_ap_connection( 65 self.main_network[self.test_configs.wifi_band]) 67 wputils.wait_for_dhcp(self.pkt_sender.interface) [all …]
|
/tools/test/connectivity/acts_tests/tests/google/bt/performance/ |
D | BtA2dpOtaRangeTest.py | 24 def __init__(self, VisaConnectString): argument 30 self.instrument = rm.open_resource(VisaConnectString) 31 …self.instrument.read_termination = "\n" # make sure we look for newline at the end of strings we … 33 def __getattr__(self, attr): argument 34 return getattr(self.instrument, attr) # Delegate all other attrs 42 def __init__(self, axis_object): argument 44 self.axis = axis_object # store pyvisa instrument connection 46 def __getattr__(self, attr): argument 47 return getattr(self.axis, attr) # Delegate all other attrs 49 def moveTo(self, where): argument [all …]
|
/tools/test/connectivity/acts_tests/tests/google/tel/live/ |
D | TelLiveSmsTest.py | 79 def setup_class(self): argument 80 TelephonyBaseTest.setup_class(self) 86 self.caller = self.android_devices[0] 87 self.callee = self.android_devices[1] 88 self.message_lengths = (50, 160, 180) 91 for ad in self.android_devices: 101 self.message_lengths = (50, 160) 103 def teardown_test(self): argument 104 ensure_phones_idle(self.log, self.android_devices) 106 def _mo_sms_in_3g_call(self, ads): argument [all …]
|
D | TelLiveEmergencyTest.py | 43 def test_fake_emergency_call_by_emergency_dialer(self): argument 56 toggle_airplane_mode_by_adb(self.log, self.dut, False) 57 return self.fake_emergency_call_test() and self.check_normal_call() 61 def test_fake_emergency_call_by_emergency_dialer_csfb(self): argument 75 if not phone_setup_csfb(self.log, self.dut): 77 self.set_ims_first("false") 78 return self.fake_emergency_call_test() and self.check_normal_call() 82 def test_fake_emergency_call_by_emergency_dialer_3g(self): argument 96 if not phone_setup_voice_3g(self.log, self.dut): 98 self.set_ims_first("false") [all …]
|
D | TelLiveConnectivityMonitorMobilityTest.py | 71 def setup_class(self): argument 72 TelLiveConnectivityMonitorBaseTest.setup_class(self) 74 self.attens = {} 75 for atten in self.attenuators: 76 self.attens[atten.path] = atten 81 self.set_wifi_strong_cell_strong() 83 if not ensure_phone_subscription(self.log, self.dut): 84 self.dut.log.error("Failed to find valid subscription") 86 if not ensure_wifi_connected(self.log, self.dut, 87 self.wifi_network_ssid, [all …]
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/coex/ |
D | CoexBaseTest.py | 51 def __init__(self, current_test_name): argument 52 self.iperf_started = False 53 self.bidirectional_client_path = None 54 self.bidirectional_server_path = None 55 self.iperf_server_path = None 56 self.iperf_client_path = None 57 self.throughput = [] 58 self.protocol = current_test_name.split("_")[-2] 59 self.stream = current_test_name.split("_")[-1] 60 self.is_bidirectional = False [all …]
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/power/ |
D | PowerBaseTest.py | 50 def __init__(self, **kwargs): argument 51 self.__dict__.update(kwargs) 53 def __contains__(self, item): argument 61 return hasattr(self, item) 68 def __init__(self, controllers): argument 71 self.power_result = BlackboxMetricLogger.for_test_case( 73 self.start_meas_time = 0 74 self.rockbottom_script = None 75 self.img_name = '' 76 self.dut = None [all …]
|
/tools/test/connectivity/acts_tests/tests/google/ble/gatt/ |
D | GattWriteTest.py | 36 def test_write_char(self): argument 58 self.cen_ad.droid.gattClientCharacteristicSetValue( 59 self.bluetooth_gatt, self.discovered_services_index, 60 self.test_service_index, self.WRITABLE_CHAR_UUID, char_value) 62 self.cen_ad.droid.gattClientCharacteristicSetWriteType( 63 self.bluetooth_gatt, self.discovered_services_index, 64 self.test_service_index, self.WRITABLE_CHAR_UUID, 67 self.cen_ad.droid.gattClientWriteCharacteristic( 68 self.bluetooth_gatt, self.discovered_services_index, 69 self.test_service_index, self.WRITABLE_CHAR_UUID) [all …]
|
/tools/test/connectivity/acts_tests/tests/google/nr/nsa5g/ |
D | Nsa5gTetheringTest.py | 70 def setup_class(self): argument 72 self.stress_test_number = self.get_stress_test_number() 73 self.provider = self.android_devices[0] 74 self.clients = self.android_devices[1:] 76 def setup_test(self): argument 77 TelephonyBaseTest.setup_test(self) 78 self.number_of_devices = 1 80 def teardown_class(self): argument 81 TelephonyBaseTest.teardown_class(self) 88 def test_5g_nsa_wifi_tethering_to_5gwifi(self): argument [all …]
|
/tools/test/connectivity/acts_tests/tests/google/coex/functionality_tests/ |
D | WlanWithHfpFunctionalityTest.py | 38 def setup_class(self): argument 42 self.unpack_userparams(req_params) 43 self.ag_phone_number, self.re_phone_number = setup_tel_config( 44 self.pri_ad, self.sec_ad, self.sim_conf_file) 46 def setup_test(self): argument 48 self.audio_receiver.enter_pairing_mode() 50 self.pri_ad, self.audio_receiver.mac_address, 52 self.log.error("Failed to pair and connect to headset.") 55 def teardown_test(self): argument 56 clear_bonded_devices(self.pri_ad) [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 42 self.log = log 43 self.gatt_callback = None 44 self.bluetooth_gatt = None 45 self.discovered_services_index = None 46 self.target_mac_addr = target_mac_addr 47 self.generic_uuid = "0000{}-0000-1000-8000-00805f9b34fb" 49 def set_target_mac_addr(self, mac_addr): argument 50 self.target_mac_addr = mac_addr [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/fuchsia_lib/bt/ |
D | hfp_lib.py | 21 def __init__(self, addr, tc, client_id): argument 22 self.address = addr 23 self.test_counter = tc 24 self.client_id = client_id 26 def init(self): argument 35 test_id = self.build_id(self.test_counter) 36 self.test_counter += 1 38 return self.send_command(test_id, test_cmd, test_args) 40 def removeService(self): argument 48 test_id = self.build_id(self.test_counter) [all …]
|