Home
last modified time | relevance | path

Searched refs:self (Results 1 – 25 of 1152) sorted by relevance

12345678910>>...47

/tools/test/connectivity/acts_tests/tests/google/tel/live/
DTelWifiVoiceTest.py114 def setup_class(self): argument
116 self.stress_test_number = self.get_stress_test_number()
118 self.attens = {}
119 for atten in self.attenuators:
120 self.attens[atten.path] = atten
123 self.log.info("WFC phone: <{}> <{}>".format(
124 self.android_devices[0].serial,
125 get_phone_number(self.log, self.android_devices[0])))
126 self.android_devices[
129 for ad in self.android_devices:
[all …]
DTelLiveSmsTest.py43 def setup_class(self): argument
44 TelephonyBaseTest.setup_class(self)
45 self.message_lengths = (50, 160, 180)
47 self.message_util = self.user_params.get("message_apk", None)
48 if isinstance(self.message_util, list):
49 self.message_util = self.message_util[0]
51 if self.message_util:
52 ads = self.android_devices
54 install_message_apk(ad, self.message_util)
56 def teardown_test(self): argument
[all …]
DTelLiveDataTest.py119 def setup_class(self): argument
122 self.stress_test_number = self.get_stress_test_number()
123 self.provider = self.android_devices[0]
124 self.clients = self.android_devices[1:]
126 def setup_test(self): argument
127 TelephonyBaseTest.setup_test(self)
128 self.number_of_devices = 2
130 def teardown_class(self): argument
131 TelephonyBaseTest.teardown_class(self)
139 def test_data_browsing_for_single_phone(self): argument
[all …]
DTelLiveVoiceTest.py95 def setup_class(self): argument
98 self.stress_test_number = self.get_stress_test_number()
99 self.long_call_duration = self.user_params.get(
102 self.number_of_devices = 2
103 self.call_server_number = self.user_params.get(
105 self.tel_logger = TelephonyMetricLogger.for_test_case()
106 self.dialer_util = self.user_params.get("dialer_apk", None)
107 if isinstance(self.dialer_util, list):
108 self.dialer_util = self.dialer_util[0]
110 if self.dialer_util:
[all …]
DTelLiveGFTDSDSVoiceTest.py25 def setup_class(self): argument
26 TelephonyBaseTest.setup_class(self)
27 self.tel_logger = TelephonyMetricLogger.for_test_case()
29 def teardown_test(self): argument
30 ensure_phones_idle(self.log, self.android_devices)
34 def test_msim_voice_call_mo_volte_psim_dds_slot_0(self): argument
36 self.log, self.tel_logger, self.android_devices,
41 def test_msim_voice_call_mo_volte_psim_dds_slot_1(self): argument
43 self.log, self.tel_logger, self.android_devices,
48 def test_msim_voice_call_mt_volte_psim_dds_slot_0(self): argument
[all …]
DTelLiveRebootStressTest.py82 def setup_class(self): argument
83 TelephonyBaseTest.setup_class(self)
85 self.stress_test_number = int(
86 self.user_params.get("stress_test_number", 10))
87 self.skip_reset_between_cases = False
89 self.dut = self.android_devices[0]
90 self.ad_reference = self.android_devices[1] if len(
91 self.android_devices) > 1 else None
92 self.dut_model = get_model_name(self.dut)
93 self.user_params["check_crash"] = False
[all …]
DTelLiveStressTest.py126 def setup_class(self): argument
127 super(TelLiveStressTest, self).setup_class()
128 self.dut = self.android_devices[0]
129 self.single_phone_test = self.user_params.get("single_phone_test",
132 self.file_download_method = self.user_params.get(
134 self.get_binder_logs = self.user_params.get("get_binder_logs", False)
135 if len(self.android_devices) == 1:
136 self.single_phone_test = True
137 if self.single_phone_test:
138 self.android_devices = self.android_devices[:1]
[all …]
/tools/test/connectivity/acts_tests/tests/google/tel/lab/
DTelLabNeighborCellTest.py153 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 …]
DTelLabGFTVoWifiTest.py63 def __init__(self, controllers): argument
64 GFTInOutBaseTest.__init__(self, controllers)
65 self.wifi_ssid = self.user_params.get('wifi_network_ssid')
66 self.wifi_pw = self.user_params.get('wifi_network_pw')
67 self.my_error_msg = ""
68 self.rssi = ""
69 logging.info("wifi_ssid = %s" %self.wifi_ssid)
70 logging.info("wifi_pw = %s" %self.wifi_pw )
72 def setup_test(self): argument
73 self.adjust_cellular_signal(IN_SERVICE_POWER_LEVEL)
[all …]
/tools/test/connectivity/acts_tests/tests/google/fuchsia/wlan/compliance/
DWlanSecurityComplianceABGTest.py44 def security_profile_generator(self, *args, **kwargs): argument
147 self.security_profile = Security(security_mode=security_mode,
151 self.client_password = password
152 self.target_security = target_security
153 self.ssid = utils.rand_ascii_str(SSID_LENGTH_DEFAULT)
154 return test_func(self, *args, *kwargs)
167 def setup_class(self): argument
169 if 'dut' in self.user_params:
170 if self.user_params['dut'] == 'fuchsia_devices':
171 self.dut = create_wlan_device(self.fuchsia_devices[0])
[all …]
DVapeInteropTest.py36 def setup_class(self): argument
38 if 'dut' in self.user_params:
39 if self.user_params['dut'] == 'fuchsia_devices':
40 self.dut = create_wlan_device(self.fuchsia_devices[0])
41 elif self.user_params['dut'] == 'android_devices':
42 self.dut = create_wlan_device(self.android_devices[0])
45 self.user_params['dut'])
48 self.dut = create_wlan_device(self.android_devices[0])
50 self.access_point = self.access_points[0]
53 self.ssid = utils.rand_ascii_str(hostapd_constants.AP_SSID_LENGTH_2G)
[all …]
DWlanPhyComplianceABGTest.py36 def setup_class(self): argument
38 if 'dut' in self.user_params:
39 if self.user_params['dut'] == 'fuchsia_devices':
40 self.dut = create_wlan_device(self.fuchsia_devices[0])
41 elif self.user_params['dut'] == 'android_devices':
42 self.dut = create_wlan_device(self.android_devices[0])
45 self.user_params['dut'])
48 self.dut = create_wlan_device(self.android_devices[0])
50 self.access_point = self.access_points[0]
51 open_network = self.get_open_network(False, [])
[all …]
/tools/test/connectivity/acts_tests/tests/google/wifi/
DWifiRoamingTest.py34 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 …]
DWifiIOTTest.py39 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 …]
DWifiManagerTest.py53 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 …]
DWifiDppTest.py82 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 …]
DWifiEnterpriseTest.py37 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 …]
/tools/test/connectivity/acts_tests/tests/google/ble/filtering/
DFilteringTest.py67 def setup_class(self): argument
69 self.scn_ad = self.android_devices[0]
70 self.adv_ad = self.android_devices[1]
71 self.log.info("Scanner device model: {}".format(
72 self.scn_ad.droid.getBuildModel()))
73 self.log.info("Advertiser device model: {}".format(
74 self.adv_ad.droid.getBuildModel()))
78 def test_filter_combo_0(self): argument
102 'manufacturer_specific_data_id': self.manu_specific_data_id_1,
103 'service_data_uuid': self.service_uuid_1,
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/openwrt_lib/
Dnetwork_settings.py67 def __init__(self, ssh, ssh_settings, logger): argument
75 self.ssh = ssh
76 self.service_manager = ServiceManager(ssh)
77 self.ssh_settings = ssh_settings
78 self.user = self.ssh_settings.username
79 self.ip = self.ssh_settings.hostname
80 self.log = logger
81 self.config = set()
82 self.firewall_rules_list = []
83 self.cleanup_map = {
[all …]
/tools/acloud/create/
Davd_spec_test.py38 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/framework/tests/
Dacts_relay_controller_test.py38 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/nr/nsa5g/
DNsa5gDSDSVoiceTest.py30 def setup_class(self): argument
31 TelephonyBaseTest.setup_class(self)
32 self.tel_logger = TelephonyMetricLogger.for_test_case()
34 def teardown_test(self): argument
35 ensure_phones_idle(self.log, self.android_devices)
40 def test_msim_voice_psim_mo_5g_nsa_volte_esim_5g_nsa_volte_dds_0(self): argument
47 self.log,
48 self.tel_logger,
49 self.android_devices,
58 def test_msim_voice_psim_mt_5g_nsa_volte_esim_5g_nsa_volte_dds_0(self): argument
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/anritsu_lib/
Dmd8475a.py462 def __init__(self, ip_address, wlan=False, md8475_version="A"): argument
463 self._error_reporting = True
464 self._ipaddr = ip_address
465 self.log = tracelogger.TraceLogger(logging.getLogger())
466 self._wlan = wlan
468 self._md8475_version = md8475_version
475 self.log.info("Opening Socket Connection with "
476 "Signaling Tester ({}) ".format(self._ipaddr))
478 self._sock = socket.create_connection((self._ipaddr, port_number),
480 self.send_query("*IDN?", 60)
[all …]
/tools/acloud/public/actions/
Dcreate_goldfish_action_test.py55 def setUp(self): argument
58 self.build_client = mock.MagicMock()
59 self.Patch(
62 return_value=self.build_client)
63 self.compute_client = mock.MagicMock()
64 self.compute_client.openwrt = False
65 self.Patch(
68 return_value=self.compute_client)
69 self.Patch(
72 return_value=self.compute_client)
[all …]
/tools/test/connectivity/acts_tests/tests/google/gnss/
DGnssFunctionTest.py80 def setup_class(self): argument
82 self.ad = self.android_devices[0]
102 self.unpack_userparams(req_param_names=req_params)
104 self.ssid_map = {}
105 for network in self.pixel_lab_network:
107 self.ssid_map[SSID] = network
108 self.ttff_mode = {"cs": "Cold Start",
112 if self.collect_logs and \
113 gutils.check_chipset_vendor_by_qualcomm(self.ad):
114 self.flash_new_radio_or_mbn()
[all …]

12345678910>>...47