/tools/test/connectivity/acts_tests/acts_contrib/test_utils/tel/ |
D | tel_data_utils.py | 107 def wifi_tethering_cleanup(log, provider, client_list): argument 123 set_wifi_to_default(log, client) 125 if provider.droid.wifiIsApEnabled() and not stop_wifi_tethering(log, provider): 126 provider.log.error("Provider stop WiFi tethering failed.") 129 provider.log.error("Provider WiFi tethering is still enabled.") 134 def wifi_tethering_setup_teardown(log, argument 175 log.info("--->Start wifi_tethering_setup_teardown<---") 176 log.info("Provider: {}".format(provider.serial)) 178 provider.log.error( 193 log.info("Client: {}".format(client.serial)) [all …]
|
D | tel_voice_utils.py | 115 log, argument 146 ensure_phones_idle(log, ads) 147 if caller_idle_func and not caller_idle_func(log, caller): 148 caller.log.error("Caller Failed to Reselect") 150 if callee_idle_func and not callee_idle_func(log, callee): 151 callee.log.error("Callee Failed to Reselect") 159 log, caller, callee, caller_in_call_check_func, wait_time_in_call): 160 log.error("make a call and leave a message failed.") 165 def two_phone_call_short_seq(log, argument 230 ensure_phones_idle(log, ads) [all …]
|
D | tel_voice_conf_utils.py | 42 def _three_phone_call_mo_add_mo(log, ads, phone_setups, verify_funcs): argument 69 tasks.append((setup_func, (log, ad))) 70 if tasks != [] and not multithread_func(log, tasks): 71 log.error("Phone Failed to Set Up Properly.") 75 if num_active_calls(log, ad) != 0: 76 ad.log.error("Phone Call List is not empty.") 79 log.info("Step1: Call From PhoneA to PhoneB.") 81 log, 90 ads[0].log.info("Calls in PhoneA %s", calls) 91 if num_active_calls(log, ads[0]) != 1: [all …]
|
D | tel_ims_utils.py | 46 def check_call(log, dut, dut_client): argument 48 if not call_setup_teardown(log, dut_client, dut, 50 if not call_setup_teardown(log, dut_client, 52 dut.log.error("MT call failed") 54 if not call_setup_teardown(log, dut, dut_client, 56 dut.log.error("MO call failed") 61 def check_call_in_wfc(log, dut, dut_client): argument 63 if not call_setup_teardown(log, dut_client, dut, 65 if not call_setup_teardown(log, dut_client, 68 dut.log.error("MT WFC call failed") [all …]
|
D | tel_5g_test_utils.py | 39 def provision_device_for_5g(log, ads, sa_5g=False, nsa_mmwave=False): argument 53 if not provision_device_for_5g_sa(log, ads): 56 if not provision_device_for_5g_nsa(log, ads, nsa_mmwave=nsa_mmwave): 61 def provision_device_for_5g_nsa(log, ads, nsa_mmwave=False): argument 76 if not multithread_func(log, tasks): 77 log.error("failed to set preferred network mode on 5g") 81 if not multithread_func(log, tasks): 82 log.error("phone not on 5g nsa") 91 ads.log.error("Phone not attached on nsa 5g") 96 def provision_both_devices_for_volte(log, ads): argument [all …]
|
D | tel_mms_utils.py | 27 def _mms_test_mo(log, ads, expected_result=True): argument 28 return _mms_test(log, 31 def _mms_test_mt(log, ads, expected_result=True): argument 32 return _mms_test(log, 35 def _mms_test(log, ads, expected_result=True): argument 45 log, 50 log.warning("MMS of body length %s test failed", length) 53 log.info("MMS of body length %s test succeeded", length) 54 log.info("MMS test of body lengths %s succeeded", 58 def _long_mms_test_mo(log, ads): argument [all …]
|
D | tel_video_utils.py | 82 log, argument 100 return phone_setup_video_for_subscription(log, ad, 108 def phone_setup_video_for_subscription(log, argument 142 log, ad, GEN_4G, voice_or_data=NETWORK_SERVICE_DATA): 143 log.error("{} voice not in LTE mode.".format(ad.serial)) 146 toggle_volte(log, ad, True) 150 log.error("{} WFC mode failed to be set to {}.".format( 155 if not phone_setup_iwlan_for_subscription(log, ad, sub_id, 157 log.error("Failed to set up phone on iwlan.") 160 return phone_idle_video_for_subscription(log, ad, sub_id) [all …]
|
D | tel_sms_utils.py | 28 def _sms_test(log, ads): argument 36 if not sms_send_receive_verify(log, ads[0], ads[1], 38 ads[0].log.error("SMS of length %s test failed", length) 41 ads[0].log.info("SMS of length %s test succeeded", length) 42 log.info("SMS test of length %s characters succeeded.", 46 def _long_sms_test(log, ads): argument 62 if not sms_send_receive_verify(log, ads[0], ads[1], 64 ads[0].log.warning("SMS of length %s test failed", length) 67 ads[0].log.info("SMS of length %s test succeeded", length) 69 log.info("SMS test of length %s characters succeeded.", [all …]
|
/tools/test/connectivity/acts_tests/tests/google/tel/live/ |
D | TelLiveSmsTest.py | 104 ensure_phones_idle(self.log, self.android_devices) 107 self.log.info("Begin In Call SMS Test.") 109 self.log, 117 if not _sms_test_mo(self.log, ads): 118 self.log.error("SMS test fail.") 124 self.log.info("Begin In Call SMS Test.") 126 self.log, 134 if not _sms_test_mt(self.log, ads): 135 self.log.error("SMS test fail.") 141 return test_mms_mo_in_call(self.log, ads, wifi=wifi, caller_func=is_phone_in_call_3g) [all …]
|
D | TelLiveSmokeTest.py | 78 self.log.info( 80 ensure_phones_default_state(self.log, ads) 81 tasks = [(phone_setup_volte, (self.log, ads[0])), 82 (phone_setup_volte, (self.log, ads[1]))] 83 if not multithread_func(self.log, tasks): 84 self.log.error("Phone Failed to Set Up VoLTE.") 91 self.log.info("1. SMS in LTE idle.") 92 sms_idle_result = sms_send_receive_verify(self.log, ads[0], ads[1], 95 self.log.info("2. Data in LTE idle.") 96 if (wait_for_cell_data_connection(self.log, ads[0], True) and [all …]
|
D | TelWifiDataTest.py | 64 set_rssi(self.log, self.attens[atten_name], 0, 69 set_rssi(self.log, self.attens[ATTEN_NAME_FOR_WIFI_2G], 0, 71 set_rssi(self.log, self.attens[ATTEN_NAME_FOR_WIFI_5G], 0, 73 set_rssi(self.log, self.attens[ATTEN_NAME_FOR_CELL_3G], 0, 75 set_rssi(self.log, self.attens[ATTEN_NAME_FOR_CELL_4G], 0, 86 toggle_airplane_mode(self.log, ad, False) 87 if not ensure_network_generation(self.log, ad, GEN_4G, 92 if not ensure_wifi_connected(self.log, ad, self.wifi_network_ssid, 94 ad.log.error("connect WiFi failed") 99 set_rssi(self.log, self.attens[ATTEN_NAME_FOR_WIFI_2G], 0, [all …]
|
D | TelLiveStressFdrTest.py | 77 self.dut.log.info("dut_capabilitiese: %s", self.dut_capabilities) 87 self.dut.log.error("%s failed with %s", method, e) 89 self.dut.log.info("%s is %s before tests start", method, 93 self.dut.log.info("To be tested: %s", self.default_testing_func_names) 105 self.log.error("%s failed", method) 112 self.log.error("%s check failed with %s", method, e) 115 self.log.error("%s failed", method) 118 self.log.info("%s succeeded", method) 120 self.log.error("%s failed", failed_tests) 124 if not ensure_phone_subscription(self.log, self.dut): [all …]
|
D | TelLiveNoQXDMLogTest.py | 87 self.dut_operator = get_operator_name(self.log, self.dut) 93 self.dut.log.info("DUT capabilities: %s", self.dut_capabilities) 123 toggle_airplane_mode(self.log, ad, False) 124 if not phone_setup_volte(self.log, ad): 125 ad.log.error("Failed to setup VoLTE.") 148 ad.log.info("Telephony Bootup Time Test %s Iteration: %d / %d", 151 ad.log.debug("Begin Time is %s", begin_time) 152 ad.log.info("reboot!") 163 ad.log.debug("Datetime for boot_complete is %s", 167 ad.log.info("Bootup Time is %d", bootup_time) [all …]
|
D | TelLiveGFTDSDSWfcSupplementaryServiceTest.py | 99 toggle_airplane_mode(self.log, self.android_devices[0], False) 100 self.erase_call_forwarding(self.log, self.android_devices[0]) 105 self.android_devices[0].log.error( 111 toggle_airplane_mode(self.log, self.android_devices[0], False) 112 ensure_phones_idle(self.log, self.android_devices) 113 self.erase_call_forwarding(self.log, self.android_devices[0]) 117 if not hangup_call(self.log, ad): 118 ad.log.error("Failed to hang up on %s", device_description) 122 def erase_call_forwarding(self, log, ad): argument 123 slot0_sub_id = get_subid_from_slot_index(log, ad, 0) [all …]
|
D | TelLiveGFTDSDSSupplementaryServiceTest.py | 74 self.erase_call_forwarding(self.log, self.android_devices[0]) 79 self.android_devices[0].log.error( 85 ensure_phones_idle(self.log, self.android_devices) 86 self.erase_call_forwarding(self.log, self.android_devices[0]) 87 set_call_waiting(self.log, self.android_devices[0], enable=1) 90 if not hangup_call(self.log, ad): 91 ad.log.error("Failed to hang up on %s", device_description) 95 def erase_call_forwarding(self, log, ad): argument 96 slot0_sub_id = get_subid_from_slot_index(log, ad, 0) 97 slot1_sub_id = get_subid_from_slot_index(log, ad, 1) [all …]
|
D | TelLiveStressCallTest.py | 81 ad.log, 86 ad.log.error("Phone Wifi connection fails.") 88 ad.log.info("Phone WIFI is connected successfully.") 89 if not set_wfc_mode(self.log, ad, WFC_MODE_WIFI_PREFERRED): 90 ad.log.error("Phone failed to enable Wifi-Calling.") 92 ad.log.info("Phone is set in Wifi-Calling successfully.") 93 if not phone_idle_iwlan(self.log, ad): 94 ad.log.error("Phone is not in WFC enabled state.") 96 ad.log.info("Phone is in WFC enabled state.") 101 toggle_airplane_mode(ad.log, ad, True) [all …]
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/bt/ |
D | bt_carkit_lib.py | 62 log = None variable in E2eBtCarkitLib 65 def __init__(self, log, target_mac_address=None): argument 66 self.log = log 79 self.log.debug("Failed to connect hsp trying again...") 83 self.log.info("Failed to connect to bonded device...") 87 self.log.error("Failed to reconnect to HSP service...") 89 self.log.info("Connected to HSP service...") 93 outgoing_num = get_phone_number(self.log, callee) 94 if not initiate_call(self.log, caller0, outgoing_num): 95 self.log.error("Failed to initiate call") [all …]
|
/tools/test/connectivity/acts_tests/tests/google/nr/nsa5g/ |
D | Nsa5gSmsTest.py | 60 ensure_phones_idle(self.log, self.android_devices) 80 if not provision_device_for_5g(self.log, ads): 83 if not _sms_test_mo(self.log, ads): 86 if not verify_5g_attach_for_both_devices(self.log, ads): 89 self.log.info("PASS - SMS test over 5G NSA validated") 108 tasks = [(provision_device_for_5g, (self.log, ads[0])), 109 (ensure_phone_default_state, (self.log, ads[1]))] 110 if not multithread_func(self.log, tasks): 113 if not _sms_test_mo(self.log, ads): 119 self.log.info("PASS - MO SMS test over 5G NSA validated") [all …]
|
D | Nsa5gVoiceTest.py | 95 ensure_phones_idle(self.log, self.android_devices) 114 if not provision_both_devices_for_volte(self.log, ads): 117 if not provision_device_for_5g(self.log, ads): 122 self.log, ads[0], None, is_phone_in_call_volte, ads[1], 126 self.log.error("Failure is volte call during 5g nsa") 129 if not verify_5g_attach_for_both_devices(self.log, ads): 132 self.log.info("PASS - volte test over 5g nsa validated") 152 tasks = [(phone_setup_volte, (self.log, ads[0])), 153 (phone_setup_voice_3g, (self.log, ads[1]))] 154 if not multithread_func(self.log, tasks): [all …]
|
D | Nsa5gDataTest.py | 95 wifi_toggle_state(ad.log, ad, False) 97 if not set_preferred_network_mode_pref(ad.log, ad, sub_id, 99 ad.log.error("Failed to set network mode to NSA") 101 ad.log.info("Set network mode to NSA successfully") 102 ad.log.info("Waiting for 5g NSA attach for 60 secs") 104 ad.log.info("Success! attached on 5g NSA") 106 ad.log.error("Failure - expected NR_NSA, current %s", 113 ad.log.info("Attempt %d", iteration + 1) 114 if not verify_internet_connection(self.log, ad): 115 ad.log.error("Failed to connect to internet!") [all …]
|
D | Nsa5gMmsTest.py | 72 ensure_phones_idle(self.log, self.android_devices) 92 if not provision_device_for_5g(self.log, ads): 95 if not _mms_test_mo(self.log, ads): 98 if not verify_5g_attach_for_both_devices(self.log, ads): 101 self.log.info("PASS - mms test over 5g nsa validated") 121 if not provision_both_devices_for_volte(self.log, ads): 124 if not provision_device_for_5g(self.log, ads): 127 if not _mms_test_mo(self.log, ads): 130 if not verify_5g_attach_for_both_devices(self.log, ads): 133 self.log.info("PASS - volte mms test over 5g nsa validated") [all …]
|
D | Nsa5gTetheringTest.py | 100 return test_wifi_tethering(self.log, 124 return test_wifi_tethering(self.log, 152 if not test_wifi_tethering(self.log, 162 self.log.error("WiFi Tethering failed.") 165 if not verify_toggle_apm_tethering_internet_connection(self.log, 172 wifi_reset(self.log, self.clients[0]) 191 if not verify_toggle_data_during_wifi_tethering(self.log, 209 if not provision_device_for_5g(self.log, self.provider): 211 return verify_tethering_entitlement_check(self.log, 228 return ensure_phones_default_state(self.log, self.android_devices) [all …]
|
/tools/test/connectivity/acts_tests/tests/google/ble/api/ |
D | BleAdvertiseApiTest.py | 79 self.log.debug("exp filtering mode: {}," 84 self.log.debug("exp tx power level: {}," 89 self.log.debug("exp is connectable: {}," 129 self.log.debug("Step 4: Verify all defaults match exp values.") 132 self.log.debug("exp filtering service uuids: {}," 137 self.log.debug( 143 self.log.debug( 148 self.log.debug("Some values didn't match the defaults.") 150 self.log.debug("All default values passed.") 177 self.log.debug("Step 1: Setup environment.") [all …]
|
/tools/test/connectivity/acts_tests/tests/google/bt/car_bt/ |
D | BtCarHfpConnectionTest.py | 84 if not initiate_call(self.log, self.ag, self.re_phone_number): 85 self.ag.log.error("Failed to initiate call from ag.") 87 if not wait_and_answer_call(self.log, self.re): 88 self.re.log.error("Failed to accept call on re.") 92 if not car_telecom_utils.wait_for_active(self.log, self.ag): 93 self.ag.log.error("AG not in Active state.") 95 if not car_telecom_utils.wait_for_active(self.log, self.re): 96 self.re.log.error("RE not in Active state.") 103 self.log.error("Could not connect HF and AG {} {}".format( 108 if not car_telecom_utils.wait_for_active(self.log, self.hf): [all …]
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/car/ |
D | car_telecom_utils.py | 35 def dial_number(log, ad, uri): argument 46 log.info("Dialing up droid {} call uri {}".format( 51 log.info("We're still in call {}".format(ad.serial)) 67 log.info( 75 log.info("Call ID: {} dev {}".format(call_id, ad.serial)) 78 log.info("CallId is empty!") 80 if not wait_for_dialing(log, ad): 85 def wait_for_call_state(log, ad, call_id, state): argument 105 log.info("Call ID {} already in {} dev {}!".format( 126 log.info("Droid {} in call {} state {}".format( [all …]
|