/tools/test/connectivity/acts_tests/tests/google/tel/live/ |
D | TelWifiVoiceTest.py | 114 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 …]
|
D | TelLiveSmsTest.py | 45 def setup_class(self): argument 46 TelephonyBaseTest.setup_class(self) 47 self.message_lengths = (50, 160, 180) 49 self.message_util = self.user_params.get("message_apk", None) 50 if isinstance(self.message_util, list): 51 self.message_util = self.message_util[0] 53 if self.message_util: 54 ads = self.android_devices 56 install_message_apk(ad, self.message_util) 58 def teardown_test(self): argument [all …]
|
D | TelLiveGFTDSDSVoiceTest.py | 33 def setup_class(self): argument 34 TelephonyBaseTest.setup_class(self) 35 self.tel_logger = TelephonyMetricLogger.for_test_case() 36 if getattr(self.android_devices[0], 'mep', False): 40 mep_logs = self.android_devices[0].search_logcat( 48 self.log.warning("Couldn't found MEP enabled logs.") 50 def teardown_test(self): argument 51 ensure_phones_idle(self.log, self.android_devices) 55 def test_msim_voice_call_mo_volte_psim_dds_slot_0(self): argument 57 self.log, self.tel_logger, self.android_devices, [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 …]
|
/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/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 | 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: 53 self.unpack_userparams(required_userparam_names, 59 if "AccessPoint" in self.user_params: 60 self.legacy_configure_ap_and_start( 62 radius_conf_2g=self.radius_conf_2g, 63 radius_conf_5g=self.radius_conf_5g, [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.local_vendor_boot_image = None 47 self.args.config_file = "" 48 self.args.build_target = "fake_build_target" 49 self.args.adb_port = None [all …]
|
/tools/test/connectivity/acts_tests/tests/google/gnss/ |
D | GnssBlankingThTest.py | 23 def gnss_wwan_blanking_sweep_base(self): argument 28 first_wait = self.user_params.get('first_wait', 300) 31 ret, pwr_lvl = self.gnss_init_power_setting(first_wait) 33 self.log.info(f'Successfully set the GNSS power level to {pwr_lvl}') 34 self.log.info('Start searching for cellular power level threshold') 36 self.result_cell_pwr = self.cell_power_sweep() 40 def test_gnss_gsm850_sweep(self): argument 44 self.eecoex_func = 'CELLR,2,850,190,1,1,{}' 45 self.start_pwr = self.gsm_sweep_params[0] 46 self.stop_pwr = self.gsm_sweep_params[1] [all …]
|
D | GnssBroadcomConfigurationTest.py | 27 def __init__(self, ad, name) -> None: argument 28 self.ad = ad 29 self.name = name 30 self.folder = "/vendor/etc/gnss" 31 self.full_path = os.path.join(self.folder, self.name) 32 self.logenabled = "LogEnabled" 33 self._log_enable = "true" 34 self._log_disable = "false" 36 def _change_file_content(self, pattern, target): argument 44 self.ad.adb.remount() [all …]
|
/tools/acloud/public/actions/ |
D | create_goldfish_action_test.py | 55 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.compute_client.gce_hostname = None 66 self.Patch( 69 return_value=self.compute_client) 70 self.Patch( [all …]
|
/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/fuchsia/wlan/compliance/ |
D | WlanSecurityComplianceABGTest.py | 44 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 …]
|
D | VapeInteropTest.py | 34 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/openwrt_lib/ |
D | network_settings.py | 67 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/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/wifi/ |
D | PowerWiFimulticastTest.py | 31 def setup_class(self): argument 33 self.unpack_userparams(sub_mask="255.255.255.0", 47 def set_connection(self): argument 56 self.decode_test_configs(attrs, indices) 64 self.dut.adb.shell('ls /vendor/firmware/wlan/*/*.ini') 71 self.dut, 75 self.dut_rockbottom() 76 self.dut.log.info('DTIM value of the phone is now DTIMx1') 78 self.setup_ap_connection( 79 self.main_network[self.test_configs.wifi_band]) [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/cellular/ |
D | keysight_chamber.py | 18 def __init__(self, config): argument 19 self.config = config 20 self.log = logger.create_tagged_trace_logger("{}{}".format( 21 self.config['brand'], self.config['model'])) 22 self.chamber_resource = pyvisa.ResourceManager(self.VISA_LOCATION) 23 self.chamber_inst = self.chamber_resource.open_resource( 24 'TCPIP0::{}::{}::INSTR'.format(self.config['ip_address'], 25 self.config['hislip_interface'])) 26 self.chamber_inst.timeout = 200000 27 self.chamber_inst.write_termination = '\n' [all …]
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/power/ |
D | PowerBaseTest.py | 53 def __init__(self, **kwargs): argument 54 self.__dict__.update(kwargs) 56 def __contains__(self, item): argument 64 return hasattr(self, item) 71 def __init__(self, controllers): argument 74 self.power_result = BlackboxMetricLogger.for_test_case( 76 self.start_meas_time = 0 77 self.rockbottom_script = None 78 self.img_name = '' 79 self.dut = None [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/framework/acts/controllers/cellular_lib/ |
D | LteCellConfig.py | 86 def __init__(self, log): argument 93 self.band = None 94 self.dlul_config = None 95 self.ssf_config = None 96 self.bandwidth = None 97 self.mimo_mode = None 98 self.transmission_mode = None 99 self.scheduling_mode = None 100 self.dl_rbs = None 101 self.ul_rbs = 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/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 …]
|