Home
last modified time | relevance | path

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

12345678910>>...38

/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 …]
DTelLiveVoiceConfTest.py70 def setup_class(self): argument
71 TelephonyBaseTest.setup_class(self)
73 self.android_devices[0],
75 get_outgoing_voice_sub_id(self.android_devices[0])):
76 self.android_devices[0].log.error(
81 def teardown_test(self): argument
82 ensure_phones_idle(self.log, self.android_devices)
90 def _get_expected_call_state(self, ad): argument
98 def _hangup_call(self, ad, device_description='Device'): argument
99 if not hangup_call(self.log, ad):
[all …]
DTelLiveSmsTest.py80 def setup_class(self): argument
81 TelephonyBaseTest.setup_class(self)
87 self.caller = self.android_devices[0]
88 self.callee = self.android_devices[1]
89 self.number_of_devices = 2
90 self.message_lengths = (50, 160, 180)
91 self.long_message_lengths = (800, 1600)
92 self.long_message_lengths_of_jp_carriers = (800, 1530)
95 for ad in self.android_devices:
105 self.message_lengths = (50, 160)
[all …]
DTelLiveDataTest.py142 def setup_class(self): argument
145 self.stress_test_number = self.get_stress_test_number()
146 self.provider = self.android_devices[0]
147 self.clients = self.android_devices[1:]
149 def setup_test(self): argument
150 TelephonyBaseTest.setup_test(self)
151 self.number_of_devices = 1
153 def teardown_class(self): argument
154 TelephonyBaseTest.teardown_class(self)
162 def test_data_browsing_for_single_phone(self): argument
[all …]
DTelLiveVoiceTest.py108 def setup_class(self): argument
111 self.stress_test_number = self.get_stress_test_number()
112 self.long_duration_call_total_duration = self.user_params.get(
115 self.number_of_devices = 2
116 self.tel_logger = TelephonyMetricLogger.for_test_case()
123 def test_call_to_answering_machine(self): argument
134 ad = self.android_devices[0]
166 def test_call_mo_voice_general(self): argument
177 ads = self.android_devices
179 tasks = [(phone_setup_voice_general, (self.log, ads[0])),
[all …]
DTelLiveVideoTest.py81 def setup_class(self): argument
82 TelephonyBaseTest.setup_class(self)
84 self.stress_test_number = self.get_stress_test_number()
86 self.long_duration_call_total_duration = self.user_params.get(
90 for ad in self.android_devices:
100 def test_call_video_to_video(self): argument
111 ads = self.android_devices
112 self.number_of_devices = 2
113 tasks = [(phone_setup_video, (self.log, ads[0])), (phone_setup_video,
114 (self.log, ads[1]))]
[all …]
DTelLiveStressTest.py110 def setup_class(self): argument
111 super(TelLiveStressTest, self).setup_class()
112 self.dut = self.android_devices[0]
113 self.single_phone_test = self.user_params.get("single_phone_test",
116 self.file_download_method = self.user_params.get(
118 self.get_binder_logs = self.user_params.get("get_binder_logs", False)
119 if len(self.android_devices) == 1:
120 self.single_phone_test = True
121 if self.single_phone_test:
122 self.android_devices = self.android_devices[:1]
[all …]
DTelLiveDSDSVoiceTest.py132 def setup_class(self): argument
134 self.number_of_devices = 2
135 self.stress_test_number = self.get_stress_test_number()
136 self.dds_operator = self.user_params.get("dds_operator", None)
137 self.message_lengths = (50, 160, 180)
138 self.long_message_lengths = (800, 1600)
141 def on_fail(self, test_name, begin_time): argument
147 def _msim_call_sequence(self, ads, mo_mt, slot_id, argument
178 self.log.error("Invalid parameters.")
186 caller_number = get_phone_number(self.log, ad_caller)
[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 …]
/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/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_tests/tests/google/fuchsia/wlan/
DWlanSecurityComplianceABGTest.py42 def security_profile_generator(self, *args, **kwargs): argument
135 self.security_profile = Security(security_mode=security_mode,
139 self.client_password = password
140 return test_func(self, *args, *kwargs)
152 def setup_class(self): argument
154 if 'dut' in self.user_params:
155 if self.user_params['dut'] == 'fuchsia_devices':
156 self.dut = create_wlan_device(self.fuchsia_devices[0])
157 elif self.user_params['dut'] == 'android_devices':
158 self.dut = create_wlan_device(self.android_devices[0])
[all …]
DWlanPhyComplianceABGTest.py34 def setup_class(self): argument
36 if 'dut' in self.user_params:
37 if self.user_params['dut'] == 'fuchsia_devices':
38 self.dut = create_wlan_device(self.fuchsia_devices[0])
39 elif self.user_params['dut'] == 'android_devices':
40 self.dut = create_wlan_device(self.android_devices[0])
43 self.user_params['dut'])
46 self.dut = create_wlan_device(self.android_devices[0])
48 self.access_point = self.access_points[0]
49 open_network = self.get_open_network(False, [])
[all …]
DVapeInteropTest.py34 def setup_class(self): argument
36 if 'dut' in self.user_params:
37 if self.user_params['dut'] == 'fuchsia_devices':
38 self.dut = create_wlan_device(self.fuchsia_devices[0])
39 elif self.user_params['dut'] == 'android_devices':
40 self.dut = create_wlan_device(self.android_devices[0])
43 self.user_params['dut'])
46 self.dut = create_wlan_device(self.android_devices[0])
48 self.access_point = self.access_points[0]
51 self.ssid = utils.rand_ascii_str(hostapd_constants.AP_SSID_LENGTH_2G)
[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/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 …]
Dacts_base_class_test.py47 def setUp(self): argument
48 self.tmp_dir = tempfile.mkdtemp()
49 self.tb_key = 'testbed_configs'
50 self.test_run_config = mobly_config_parser.TestRunConfig()
51 self.test_run_config.testbed_name = 'SampleTestBed'
52 self.test_run_config.controller_configs = {
53 self.tb_key: {
54 'name': self.test_run_config.testbed_name,
57 self.test_run_config.log_path = self.tmp_dir
58 self.test_run_config.user_params = {'some_param': 'hahaha'}
[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/acloud/internal/lib/
Dgcompute_client_test.py73 def setUp(self): argument
75 super(ComputeClientTest, self).setUp()
76 self.Patch(gcompute_client.ComputeClient, "InitResourceHandle")
79 fake_cfg.extra_scopes = self.EXTRA_SCOPES
80 self.compute_client = gcompute_client.ComputeClient(
82 self.compute_client._service = mock.MagicMock()
84 self._disk_args = copy.deepcopy(gcompute_client.BASE_DISK_ARGS)
85 self._disk_args["initializeParams"] = {"diskName": self.INSTANCE,
86 "sourceImage": self.IMAGE_URL}
89 def _SetupMocksForGetOperationStatus(self, mock_result, operation_scope): argument
[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/net/
DDhcpServerTest.py35 def setup_class(self): argument
36 self.dut = self.android_devices[0]
37 self.USB_TETHERED = False
38 self.next_hwaddr_index = 0
39 self.stop_arp = Event()
47 self._start_usb_tethering(self.dut)
48 self.iface = self._wait_for_new_iface(iflist_before)
49 self.real_hwaddr = get_if_raw_hwaddr(self.iface)
52 thread = Thread(target=self._sniff_arp, args=(self.stop_arp,))
56 hwaddr = self._next_hwaddr()
[all …]
/tools/test/connectivity/acts_tests/tests/google/fuchsia/bt/
Dcommand_input.py84 def setup_vars(self, dut, target_device_name, log): argument
85 self.pri_dut = dut
89 self.test_dut = create_bluetooth_device(self.pri_dut)
90 self.test_dut.initialize_bluetooth_controller()
91 self.target_device_name = target_device_name
92 self.log = log
94 def emptyline(self): argument
97 def do_EOF(self, line): argument
103 def str_to_bool(self, s): argument
109 def _find_unique_id_over_le(self): argument
[all …]
/tools/test/connectivity/acts/tests/google/wifi/
DWifiEnterpriseTest.py39 def setup_class(self): argument
42 self.dut = self.android_devices[0]
43 wutils.wifi_test_device_init(self.dut)
46 if getattr(self, "attenuators", []):
47 for a in self.attenuators:
56 self.unpack_userparams(required_userparam_names,
60 if "AccessPoint" in self.user_params:
61 self.legacy_configure_ap_and_start(
63 radius_conf_2g=self.radius_conf_2g,
64 radius_conf_5g=self.radius_conf_5g,
[all …]
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/
Dwifi_retail_ap.py76 def __init__(self, headless, timeout): argument
83 self.log = logger.create_tagged_trace_logger("ChromeDriver")
84 self.chrome_options = splinter.driver.webdriver.chrome.Options()
85 self.chrome_options.add_argument("--no-proxy-server")
86 self.chrome_options.add_argument("--no-sandbox")
87 self.chrome_options.add_argument("--allow-running-insecure-content")
88 self.chrome_options.add_argument("--ignore-certificate-errors")
89self.chrome_capabilities = selenium.webdriver.common.desired_capabilities.DesiredCapabilities.CHRO…
91 self.chrome_capabilities["acceptSslCerts"] = True
92 self.chrome_capabilities["acceptInsecureCerts"] = True
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/
Dandroid_device.py360 def __init__(self, serial='', ssh_connection=None): argument
361 self.serial = serial
364 self.log_dir = 'AndroidDevice%s' % serial
365 self.log_path = os.path.join(log_path_base, self.log_dir)
366 self.log = tracelogger.TraceLogger(
369 self._event_dispatchers = {}
370 self._services = []
371 self.register_service(services.AdbLogcatService(self))
372 self.register_service(services.Sl4aService(self))
373 self.adb_logcat_process = None
[all …]

12345678910>>...38