Home
last modified time | relevance | path

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

12345678910>>...43

/tools/test/connectivity/acts_tests/tests/google/tel/live/
DTelWifiVoiceTest.py118 def setup_class(self): argument
120 self.stress_test_number = self.get_stress_test_number()
122 self.attens = {}
123 for atten in self.attenuators:
124 self.attens[atten.path] = atten
127 self.log.info("WFC phone: <{}> <{}>".format(
128 self.android_devices[0].serial,
129 get_phone_number(self.log, self.android_devices[0])))
130 self.android_devices[
133 for ad in self.android_devices:
[all …]
DTelLiveSmsTest.py79 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 …]
DTelLiveVoiceTest.py101 def setup_class(self): argument
104 self.stress_test_number = self.get_stress_test_number()
105 self.long_call_duration = self.user_params.get(
108 self.number_of_devices = 2
109 self.call_server_number = self.user_params.get(
111 self.tel_logger = TelephonyMetricLogger.for_test_case()
118 def test_call_to_answering_machine(self): argument
129 ad = self.android_devices[0]
137 if not initiate_call(ad.log, ad, self.call_server_number):
161 def test_call_mo_voice_general(self): argument
[all …]
DTelLiveDataTest.py134 def setup_class(self): argument
137 self.stress_test_number = self.get_stress_test_number()
138 self.provider = self.android_devices[0]
139 self.clients = self.android_devices[1:]
141 def setup_test(self): argument
142 TelephonyBaseTest.setup_test(self)
143 self.number_of_devices = 1
145 def teardown_class(self): argument
146 TelephonyBaseTest.teardown_class(self)
154 def test_data_browsing_for_single_phone(self): argument
[all …]
DTelLiveRebootStressTest.py84 def setup_class(self): argument
85 TelephonyBaseTest.setup_class(self)
87 self.stress_test_number = int(
88 self.user_params.get("stress_test_number", 10))
89 self.skip_reset_between_cases = False
91 self.dut = self.android_devices[0]
92 self.ad_reference = self.android_devices[1] if len(
93 self.android_devices) > 1 else None
94 self.dut_model = get_model_name(self.dut)
95 self.user_params["check_crash"] = False
[all …]
DTelLiveStressTest.py129 def setup_class(self): argument
130 super(TelLiveStressTest, self).setup_class()
131 self.dut = self.android_devices[0]
132 self.single_phone_test = self.user_params.get("single_phone_test",
135 self.file_download_method = self.user_params.get(
137 self.get_binder_logs = self.user_params.get("get_binder_logs", False)
138 if len(self.android_devices) == 1:
139 self.single_phone_test = True
140 if self.single_phone_test:
141 self.android_devices = self.android_devices[:1]
[all …]
DTelLiveImsSettingsTest.py65 def setup_class(self): argument
66 TelephonyBaseTest.setup_class(self)
67 self.dut = self.android_devices[0]
68 self.dut_client = self.android_devices[1]
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"][
72 self.subid].get("capabilities", [])
73 self.dut.log.info("DUT capabilities: %s", self.dut_capabilities)
74 if CAPABILITY_VOLTE not in self.dut_capabilities:
[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 …]
/tools/test/connectivity/acts_tests/tests/google/fuchsia/wlan/compliance/
DWlanSecurityComplianceABGTest.py43 def security_profile_generator(self, *args, **kwargs): argument
146 self.security_profile = Security(security_mode=security_mode,
150 self.client_password = password
151 self.target_security = target_security
152 self.ssid = utils.rand_ascii_str(SSID_LENGTH_DEFAULT)
153 return test_func(self, *args, *kwargs)
165 def setup_class(self): argument
167 if 'dut' in self.user_params:
168 if self.user_params['dut'] == 'fuchsia_devices':
169 self.dut = create_wlan_device(self.fuchsia_devices[0])
[all …]
DVapeInteropTest.py35 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 …]
DWlanPhyComplianceABGTest.py35 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]
50 open_network = self.get_open_network(False, [])
[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/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/framework/acts/controllers/anritsu_lib/
Dmd8475a.py455 def __init__(self, ip_address, wlan=False, md8475_version="A"): argument
456 self._error_reporting = True
457 self._ipaddr = ip_address
458 self.log = tracelogger.TraceLogger(logging.getLogger())
459 self._wlan = wlan
461 self._md8475_version = md8475_version
468 self.log.info("Opening Socket Connection with "
469 "Signaling Tester ({}) ".format(self._ipaddr))
471 self._sock = socket.create_connection((self._ipaddr, port_number),
473 self.send_query("*IDN?", 60)
[all …]
/tools/test/connectivity/acts_tests/tests/google/wifi/
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/acloud/public/actions/
Dcreate_goldfish_action_test.py54 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/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/acts/controllers/openwrt_lib/
Dnetwork_settings.py52 def __init__(self, ssh, ip, logger): argument
60 self.ssh = ssh
61 self.service_manager = ServiceManager(ssh)
62 self.ip = ip
63 self.log = logger
64 self.config = set()
65 self.firewall_rules_list = []
66 self.cleanup_map = {
67 "setup_dns_server": self.remove_dns_server,
68 "setup_vpn_pptp_server": self.remove_vpn_pptp_server,
[all …]
/tools/test/connectivity/acts_tests/tests/google/gnss/
DGnssFunctionTest.py83 def setup_class(self): argument
85 self.ad = self.android_devices[0]
104 self.unpack_userparams(req_param_names=req_params)
106 self.ssid_map = {}
107 for network in self.pixel_lab_network:
109 self.ssid_map[SSID] = network
110 self.ttff_mode = {"cs": "Cold Start",
113 if self.ad.model in self.legacy_projects:
114 self.wifi_xtra_cs_criteria = self.legacy_wifi_xtra_cs_criteria
116 self.wifi_xtra_cs_criteria = self.xtra_cs_criteria
[all …]
/tools/test/connectivity/acts_tests/tests/google/power/wifi/
DPowerWiFimulticastTest.py30 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/pts/
Dcmd_input.py36 def connect_hsp_helper(self, ad): argument
42 ad.droid.bluetoothHspConnect(self.mac_addr)
47 self.log.debug("Failed to connect hsp trying again...")
49 ad.droid.bluetoothConnectBonded(self.mac_addr)
51 self.log.info("Failed to connect to bonded device...")
55 self.log.error("Failed to reconnect to HSP service...")
57 self.log.info("Connected to HSP service...")
60 def setup_vars(self, android_devices, mac_addr, log): argument
61 self.pri_dut = android_devices[0]
63 self.sec_dut = android_devices[1]
[all …]
/tools/test/connectivity/acts_tests/tests/google/nr/nsa5g/
DNsa5gTetheringTest.py70 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 …]

12345678910>>...43