/tools/test/connectivity/acts/framework/acts/test_utils/tel/ |
D | tel_voice_utils.py | 104 log, argument 135 ensure_phones_idle(log, ads) 136 if caller_idle_func and not caller_idle_func(log, caller): 137 caller.log.error("Caller Failed to Reselect") 139 if callee_idle_func and not callee_idle_func(log, callee): 140 callee.log.error("Callee Failed to Reselect") 148 log, caller, callee, caller_in_call_check_func, wait_time_in_call): 149 log.error("make a call and leave a message failed.") 154 def two_phone_call_short_seq(log, argument 197 ensure_phones_idle(log, ads) [all …]
|
D | tel_video_utils.py | 80 def phone_setup_video(log, ad, wfc_mode=WFC_MODE_DISABLED): argument 93 return phone_setup_video_for_subscription(log, ad, 98 def phone_setup_video_for_subscription(log, argument 116 toggle_airplane_mode(log, ad, False) 117 if not set_wfc_mode(log, ad, wfc_mode): 118 log.error("{} WFC mode failed to be set to {}.".format( 121 toggle_volte(log, ad, True) 124 log, ad, GEN_4G, voice_or_data=NETWORK_SERVICE_DATA): 125 log.error("{} voice not in LTE mode.".format(ad.serial)) 128 return phone_idle_video_for_subscription(log, ad, sub_id) [all …]
|
D | tel_test_utils.py | 192 log = logging variable 224 def abort_all_tests(log, msg): argument 225 log.error("Aborting all ongoing tests due to: %s.", msg) 256 def setup_droid_properties_by_adb(log, ad, sim_filename=None): argument 263 log.warning("Failed to load %s!", sim_filename) 267 ad.log.info("iccid = %s", iccid) 275 ad.log.error("Failed to find valid phone number for %s", iccid) 276 abort_all_tests(ad.log, "Failed to find valid phone number for %s") 284 ad.log.info("subId %s SIM record: %s", sub_id, sub_record) 288 def setup_droid_properties(log, ad, sim_filename=None): argument [all …]
|
/tools/test/connectivity/acts/tests/google/tel/live/ |
D | TelLiveVideoTest.py | 93 ad.log.error("Video calling is not supported") 113 tasks = [(phone_setup_video, (self.log, ads[0])), (phone_setup_video, 114 (self.log, ads[1]))] 115 if not multithread_func(self.log, tasks): 116 self.log.error("Phone Failed to Set Up Properly.") 120 self.log, 127 self.log.error("Failed to setup+teardown a call") 149 tasks = [(phone_setup_video, (self.log, ads[0])), (phone_setup_video, 150 (self.log, ads[1]))] 151 if not multithread_func(self.log, tasks): [all …]
|
D | TelLiveSmsTest.py | 98 ensure_phones_idle(self.log, self.android_devices) 109 if not sms_send_receive_verify(self.log, ads[0], ads[1], 111 ads[0].log.warning("SMS of length %s test failed", length) 114 ads[0].log.info("SMS of length %s test succeeded", length) 115 self.log.info("SMS test of length %s characters succeeded.", 128 if not sms_send_receive_verify(self.log, ads[0], ads[1], 130 ads[0].log.warning("SMS of length %s test failed", length) 133 ads[0].log.info("SMS of length %s test succeeded", length) 135 self.log.info("SMS test of length %s characters succeeded.", 149 self.log, [all …]
|
D | TelLiveVoiceTest.py | 134 if not phone_setup_voice_general(ad.log, ad): 135 ad.log.error("Phone Failed to Set Up Properly for Voice.") 139 ad.log.info("Attempt %d", iteration + 1) 140 if not initiate_call(ad.log, ad, STORY_LINE): 141 ad.log.error("Call Failed to Initiate") 145 ad.log.error("Waiting for Call in Active Failed") 148 if not is_phone_in_call(ad.log, ad): 149 ad.log.error("Call Dropped") 151 if not hangup_call(ad.log, ad): 152 ad.log.error("Call Failed to Hangup") [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 | TelLiveDataTest.py | 161 wifi_toggle_state(ad.log, ad, False) 163 ad.log.info("Attempt %d", iteration + 1) 164 if test_data_browsing_success_using_sl4a(ad.log, ad): 165 ad.log.info("Call test PASS in iteration %d", iteration + 1) 168 ad.log.info("Data Browsing test FAIL for all 3 iterations") 184 wifi_toggle_state(ad.log, ad, True) 185 if not ensure_wifi_connected(ad.log, ad, self.wifi_network_ssid, 187 ad.log.error("WiFi connect fail.") 190 ad.log.info("Attempt %d", iteration + 1) 191 if test_data_browsing_success_using_sl4a(ad.log, ad): [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 | TelLiveRebootStressTest.py | 107 self.dut.log.error("%s failed with %s", method, e) 109 self.dut.log.info("%s is %s before tests start", method, 113 self.dut.log.info("To be tested: %s", self.default_testing_func_names) 124 self.log.error("%s failed", method) 131 self.log.error("%s check failed with %s", method, e) 134 self.log.error("%s failed", method) 137 self.log.info("%s succeeded", method) 139 self.log.error("%s failed", failed_tests) 143 if not ensure_phone_subscription(self.log, self.dut): 144 self.dut.log.error("Subscription check failed") [all …]
|
D | TelLiveNoQXDMLogTest.py | 81 self.dut_operator = get_operator_name(self.log, self.dut) 87 self.dut.log.info("DUT capabilities: %s", self.dut_capabilities) 114 toggle_airplane_mode(self.log, ad, False) 115 if not phone_setup_volte(self.log, ad): 116 ad.log.error("Failed to setup VoLTE.") 139 ad.log.info("Telephony Bootup Time Test %s Iteration: %d / %d", 142 ad.log.debug("Begin Time is %s", begin_time) 143 ad.log.info("reboot!") 154 ad.log.debug("Datetime for boot_complete is %s", 158 ad.log.info("Bootup Time is %d", bootup_time) [all …]
|
D | TelLiveStressCallTest.py | 80 ad.log, 85 ad.log.error("Phone Wifi connection fails.") 87 ad.log.info("Phone WIFI is connected successfully.") 88 if not set_wfc_mode(self.log, ad, WFC_MODE_WIFI_PREFERRED): 89 ad.log.error("Phone failed to enable Wifi-Calling.") 91 ad.log.info("Phone is set in Wifi-Calling successfully.") 92 if not phone_idle_iwlan(self.log, ad): 93 ad.log.error("Phone is not in WFC enabled state.") 95 ad.log.info("Phone is in WFC enabled state.") 100 toggle_airplane_mode(ad.log, ad, True) [all …]
|
D | TelWifiVoiceTest.py | 127 self.log.info("WFC phone: <{}> <{}>".format( 129 get_phone_number(self.log, self.android_devices[0]))) 136 ad.log.info("VoLTE not Provisioned, Turning it ON") 139 ad.log.info("VoLTE Provisioning is Enabled") 142 set_rssi(self.log, self.attens[ATTEN_NAME_FOR_WIFI_2G], 0, 144 set_rssi(self.log, self.attens[ATTEN_NAME_FOR_WIFI_5G], 0, 146 set_rssi(self.log, self.attens[ATTEN_NAME_FOR_CELL_3G], 0, 148 set_rssi(self.log, self.attens[ATTEN_NAME_FOR_CELL_4G], 0, 152 self.log, 157 self.log.error("Setup_class: phone failed to select to LTE.") [all …]
|
D | TelLiveConnectivityMonitorMobilityTest.py | 83 if not ensure_phone_subscription(self.log, self.dut): 84 self.dut.log.error("Failed to find valid subscription") 86 if not ensure_wifi_connected(self.log, self.dut, 89 self.dut.log.error("Fail to connect to WiFI") 91 if (not wait_for_wifi_data_connection(self.log, self.dut, True) 92 or not verify_internet_connection(self.log, self.dut)): 93 self.dut.log.error("No Data on Wifi") 107 self.dut.log.error( 110 self.dut.log.info("WiFi RSSI calibration info: atten=0, RSSI=%s", 112 ensure_phones_default_state(self.log, [self.dut]) [all …]
|
D | TelLiveImsSettingsTest.py | 87 self.dut.log.info("DUT capabilities: %s", self.dut_capabilities) 107 if not call_setup_teardown(self.log, self.android_devices[1], self.dut, 109 if not call_setup_teardown(self.log, self.android_devices[1], 112 self.dut.log.error("MT WFC call failed") 114 if not call_setup_teardown(self.log, self.dut, self.android_devices[1], 116 self.dut.log.error("MO WFC call failed") 122 if not call_setup_teardown(self.log, self.android_devices[1], self.dut, 124 if not call_setup_teardown(self.log, self.android_devices[1], 127 self.dut.log.error("MT VoLTE call failed") 129 if not call_setup_teardown(self.log, self.dut, self.android_devices[1], [all …]
|
D | TelLivePreflightTest.py | 57 if not wait_for_wifi_data_connection(self.log, ad, True): 58 ad.log.error("Failed to connect to WIFI") 60 if not wait_for_wfc_enabled(self.log, ad): 61 ad.log.error("WFC is not enabled") 64 self.log, ad, RAT_FAMILY_WLAN, 66 ad.log.info("Data rat can not go to iwlan mode successfully") 81 self.log, ad, self.wifi_network_ssid, self.wifi_network_pass): 82 ad.log.error("Failed to setup WFC to %s.", 87 self.log, ad, True, WFC_MODE_WIFI_PREFERRED, 89 ad.log.error("Failed to setup WFC to %s.", [all …]
|
D | TelLiveCBRSTest.py | 128 self.log.error("Invalid parameters.") 136 caller_number = get_phone_number(self.log, ad_caller) 137 callee_number = get_phone_number(self.log, ad_callee) 138 mo_operator = get_operator_name(ads[0].log, ads[0]) 139 mt_operator = get_operator_name(ads[1].log, ads[1]) 143 caller_number = get_phone_number(self.log, ad_caller) 144 callee_number = get_phone_number(self.log, ad_callee) 145 mt_operator = get_operator_name(ads[0].log, ads[0]) 146 mo_operator = get_operator_name(ads[1].log, ads[1]) 148 self.log.info("-->Begin cbrs_call_sequence: %s to %s<--", [all …]
|
/tools/test/connectivity/acts/framework/acts/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/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 …]
|
D | BtCarMediaPassthroughTest.py | 63 self.log.error( 68 self.log.info("Media ready to push as is.") 74 self.log.error("Unable to load user config " + self. 83 self.log.error("Failed to pair") 112 self.TG.log.info("Starting AvrcpMediaBrowserService") 124 self.TG.log.info("Stopping AvrcpMediaBrowserService") 136 self.SRC.log.error("Failed to connect on A2dp") 162 self.log, self.CT, self.TG, car_media_utils.CMD_MEDIA_PLAY, 166 self.log, self.CT, self.TG, car_media_utils.CMD_MEDIA_PAUSE, 193 self.log, self.CT, self.TG, [all …]
|
D | BtCarHfpConferenceTest.py | 55 self.log.info("Connected {}".format(connected)) 89 if not initiate_call(self.log, self.ag, self.re_phone_number): 90 self.log.error("Failed to initiate call from re.") 95 ret &= wait_for_ringing_call(self.log, self.re) 96 ret &= car_telecom_utils.wait_for_ringing(self.log, self.hf) 99 self.log.error("Failed to dial incoming number from") 106 self.log, self.hf, [tel_defines.CALL_STATE_DIALING]) 108 self.hf.log.error("Call State in ringing failed {}".format(call_1)) 112 self.log, self.re, [tel_defines.CALL_STATE_RINGING]) 115 if not car_telecom_utils.accept_call(self.log, self.re, re_ringing_call_id[0]): [all …]
|
/tools/test/connectivity/acts/framework/acts/test_utils/car/ |
D | car_media_utils.py | 42 def verifyEventReceived(log, device, event, timeout): argument 59 log.info(" {} Event Not received".format(event)) 61 log.info("Event Received : {}".format(event)) 65 def send_media_passthrough_cmd(log, argument 85 log.info("Sending passthru : {}".format(cmd)) 87 return verifyEventReceived(log, toDevice, expctEvent, timeout) 90 def log_metadata(log, metadata): argument 102 log.info("Playing Artist: {}, Album: {}, Title: {}".format(artist, album, 104 log.info("Duration: {}, NumTracks: {}".format(duration, numTracks)) 107 def compare_metadata(log, metadata1, metadata2): argument [all …]
|
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 …]
|
D | tel_telecom_utils.py | 27 def dial_number(log, ad, uri): argument 40 log.info("Dialing up droid {} call uri {}".format( 54 log.info( 62 log.info("Call ID: {} dev {}".format(call_id, ad.serial)) 65 log.info("CallId is empty!") 67 if not wait_for_dialing(log, ad): 72 def wait_for_call_state(log, ad, call_id, state): argument 91 log.info("Call ID {} already in {} dev {}!".format( 102 log.info("Did not get into state {} dev {}".format( 110 def hangup_call(log, ad, call_id): argument [all …]
|
/tools/test/connectivity/acts/tests/google/tel/live/msim/ |
D | TelLiveMSIMSmsTest.py | 48 ads[0], get_subid_from_slot_index(self.log,ads[0],slot)) 50 ads[1], get_subid_from_slot_index(self.log,ads[1],slot)) 53 ads[0].log.info("SMS Test - length %s from slot %s to slot %s", 55 if not sms_send_receive_verify(self.log, ads[0], ads[1], 57 ads[0].log.warning( 61 ads[0].log.info("SMS Test - length %s from slot %s to slot %s", 63 if not sms_send_receive_verify(self.log, ads[0], ads[1], 65 ads[0].log.warning( 70 ads[0].log.info("SMS of length %s test succeeded", length) 71 self.log.info("SMS test of length %s characters succeeded.", [all …]
|