/tools/test/connectivity/acts_tests/acts_contrib/test_utils/tel/ |
D | tel_subscription_utils.py | 224 def set_subid_for_data(ad, sub_id, time_to_sleep=WAIT_TIME_CHANGE_DATA_SUB_ID): argument 235 if ad.droid.subscriptionGetDefaultDataSubId() != sub_id: 236 ad.droid.subscriptionSetDefaultDataSubId(sub_id) 238 setattr(ad, "default_data_sub_id", sub_id) 241 def set_subid_for_message(ad, sub_id): argument 251 ad.droid.subscriptionSetDefaultSmsSubId(sub_id) 253 ad.outgoing_message_sub_id = sub_id 256 def set_message_subid(ad, sub_id): argument 266 ad.droid.subscriptionSetDefaultSmsSubId(sub_id) 268 ad.outgoing_message_sub_id = sub_id [all …]
|
D | tel_voice_utils.py | 820 sub_id, argument 846 if not get_capability_for_subscription(ad, CAPABILITY_WFC, sub_id): 852 log, ad, sub_id, nw_gen, voice_or_data=NETWORK_SERVICE_DATA): 857 if not toggle_volte_for_subscription(log, ad, sub_id, new_state=True): 874 if not set_wfc_mode_for_subscription(ad, wfc_mode, sub_id): 937 def phone_setup_data_for_subscription(log, ad, sub_id, network_generation): argument 957 sub_id, 979 def phone_setup_5g_for_subscription(log, ad, sub_id): argument 990 return phone_setup_data_for_subscription(log, ad, sub_id, GEN_5G) 1007 def phone_setup_4g_for_subscription(log, ad, sub_id): argument [all …]
|
D | tel_test_utils.py | 285 sub_id = get_sub_id_by_adb(ad) 303 device_props = {'subscription': {sub_id: sub_record}} 304 ad.log.info("subId %s SIM record: %s", sub_id, sub_record) 328 for sub_id, sub_info in ad.telephony["subscription"].items(): 329 ad.log.debug("Loop for Subid %s", sub_id) 330 sub_info["operator"] = get_operator_name(log, ad, sub_id) 333 ad.log.warning("Unable to find ICC-ID for subscriber %s", sub_id) 348 elif sub_id == active_sub_id: 355 if (not sub_info.get("phone_num")) and sub_id == active_sub_id: 356 ad.log.info("sub_id %s sub_info = %s", sub_id, sub_info) [all …]
|
D | tel_video_utils.py | 110 sub_id, argument 149 if not set_wfc_mode_for_subscription(ad, wfc_mode, sub_id): 155 if not phone_setup_iwlan_for_subscription(log, ad, sub_id, 160 return phone_idle_video_for_subscription(log, ad, sub_id) 177 def phone_idle_video_for_subscription(log, ad, sub_id): argument 219 def is_phone_in_call_video_for_subscription(log, ad, sub_id, video_state=None): argument 236 ad.serial, sub_id)) 263 def is_phone_in_call_viwifi_for_subscription(log, ad, sub_id, argument 281 ad.serial, sub_id)) 329 def is_phone_in_call_video_bidirectional_for_subscription(log, ad, sub_id): argument [all …]
|
D | tel_5g_utils.py | 54 def is_current_network_5g_nsa_for_subscription(ad, nsa_mmwave=False, timeout=30, sub_id=None): argument 65 if not sub_id: 70 if current_sub_id != sub_id: 71 ad.droid.subscriptionSetDefaultVoiceSubId(sub_id)
|
D | tel_5g_test_utils.py | 201 def set_preferred_mode_for_5g(ad, sub_id=None, mode=None): argument 208 if sub_id is None: 209 sub_id = ad.droid.subscriptionGetDefaultSubId() 212 return set_preferred_network_mode_pref(ad.log, ad, sub_id, mode)
|
D | tel_data_utils.py | 544 sub_id = get_subid_from_slot_index(log, ad, sim_slot) 545 ad.log.info("Change Data to subId: %s, SIM slot: %s", sub_id, sim_slot) 546 set_subid_for_data(ad, sub_id) 547 if not wait_for_data_attach_for_subscription(log, ad, sub_id, 549 ad.log.error("Failed to attach data on subId:%s", sub_id)
|
/tools/test/connectivity/acts/framework/acts/controllers/android_lib/tel/ |
D | tel_utils.py | 243 sub_id = get_outgoing_voice_sub_id(ad) 245 ad.droid.telephonyStartTrackingCallStateForSubscription(sub_id) 256 log, ad, sub_id, event_tracking_started=True): 257 ad.log.info("sub_id %s not in call offhook state", sub_id) 266 ad.droid.telephonyStopTrackingCallStateChangeForSubscription(sub_id) 438 for sub_id in sub_id_list: 440 sub_id) 458 for sub_id in sub_id_list: 460 sub_id) 521 sub_id, argument [all …]
|
/tools/test/connectivity/acts_tests/tests/google/net/ |
D | DataCostTest.py | 60 sub_id = str(ad.droid.telephonyGetSubscriberId()) 61 ad.droid.connectivityFactoryResetNetworkPolicies(sub_id) 62 ad.droid.connectivitySetDataWarningLimit(sub_id, -1) 111 def _get_total_data_usage_for_device(self, ad, conn_type, sub_id): argument 127 conn_type, sub_id, 0, end_time) 189 sub_id = str(ad.droid.telephonyGetSubscriberId()) 201 total_pre = self._get_total_data_usage_for_device(ad, 0, sub_id) 204 sub_id, int((total_pre + 5) * 1000.0 * 1000.0)) 207 sub_id, int((total_pre + 5) * 1000.0 * 1000.0))
|
D | DataUsageTest.py | 113 sub_id = str(ad.droid.telephonyGetSubscriberId()) 114 ad.droid.connectivityFactoryResetNetworkPolicies(sub_id) 165 sub_id = str(ad.droid.telephonyGetSubscriberId()) 168 conn_type, sub_id, 0, end_time) 381 sub_id = str(dut_a.droid.telephonyGetSubscriberId()) 404 sub_id, int((total_pre + INC_DATA) * BYTE_TO_MB_ANDROID))
|
/tools/test/connectivity/acts_tests/tests/google/tel/live/ |
D | TelLiveGFTDSDSWfcSupplementaryServiceTest.py | 126 for sub_id in (slot0_sub_id, slot1_sub_id): 127 set_voice_sub_id(ad, sub_id) 128 get_operator_name(log, ad, sub_id) 590 for sub_id, volte in zip([slot_0_subid, slot_1_subid], enable_volte): 595 sub_id=sub_id): 598 for sub_id, wfc, mode in \ 604 sub_id=sub_id): 606 if not set_wfc_mode_for_subscription(ad_callee, mode, sub_id=sub_id): 828 for sub_id, volte in zip([slot_0_subid, slot_1_subid], enable_volte): 833 sub_id=sub_id): [all …]
|
D | TelLiveDSDSVoiceTest.py | 181 sub_id = get_subid_from_slot_index(ads[0].log, ads[0], slot_id) 185 set_subid_for_outgoing_call(ads[0], sub_id) 195 ads[0], sub_id) 196 setattr(ads[0], "incoming_voice_sub_id", sub_id) 322 sub_id = get_subid_from_slot_index(ads[0].log, ads[0], slot_id) 323 set_always_allow_mms_data(ads[0], sub_id) 327 set_subid_for_message(ads[0], sub_id) 337 ads[0], sub_id) 338 setattr(ads[0], "incoming_message_sub_id", sub_id) 391 sub_id = get_subid_from_slot_index(self.log, self.android_devices[0], 0) [all …]
|
D | TelLiveStressTest.py | 322 sub_id = get_subid_from_slot_index(self.log, ads[0], slot_id) 324 set_subid_for_message(ads[0], sub_id) 422 sub_id = get_subid_from_slot_index(self.log, ads[0], slot_id) 424 set_subid_for_outgoing_call(ads[0], sub_id) 630 def _prefnetwork_mode_change(self, sub_id): argument 648 set_preferred_network_mode_pref(self.log, self.dut, sub_id, 842 sub_id = get_subid_from_slot_index(self.log, self.dut, slot_id) 844 set_subid_for_data(self.dut, sub_id) 929 def _data_call_test(self, sub_id, generation): argument 943 self.log, self.dut, sub_id, [all …]
|
D | TelLiveGFTDSDSDDSSwitchTest.py | 496 for sub_id, volte in zip([slot_0_subid, slot_1_subid], enable_volte): 500 sub_id, 504 for sub_id, wfc, mode in \ 506 if not toggle_wfc_for_subscription(self.log, ad, new_state=wfc, sub_id=sub_id): 508 if not set_wfc_mode_for_subscription(ad, mode, sub_id=sub_id): 544 sub_id = slot_0_subid 546 sub_id = slot_1_subid 555 self.log, ad, sub_id, False): 574 self.log, ad, sub_id, True): 719 sub_id = slot_0_subid [all …]
|
D | TelLiveSettingsTest.py | 260 sub_id = get_outgoing_voice_sub_id(self.dut) 261 slot_index = get_slot_index_from_subid(self.log, self.dut, sub_id)
|
D | TelLiveStressFdrTest.py | 75 sub_id = get_outgoing_voice_sub_id(self.dut) 76 self.dut_capabilities = self.dut.telephony["subscription"][sub_id].get("capabilities", [])
|
D | TelLiveGFTDSDSSupplementaryServiceTest.py | 99 for sub_id in (slot0_sub_id, slot1_sub_id): 100 set_voice_sub_id(ad, sub_id) 101 get_operator_name(log, ad, sub_id)
|
D | TelLiveRebootStressTest.py | 579 sub_id = get_outgoing_voice_sub_id(self.dut) 580 slot_index = get_slot_index_from_subid(self.log, self.dut, sub_id)
|
/tools/test/connectivity/acts_tests/tests/google/tel/etc/ |
D | manage_sim.py | 62 sub_id = sub_info['subscriptionId'] 65 plmn_id = droid.telephonyGetSimOperatorForSubscription(sub_id) 79 phone_num = droid.telephonyGetLine1NumberForSubscription(sub_id)
|
/tools/test/connectivity/acts_tests/tests/google/nr/nsa5g/ |
D | Nsa5gActivationTest.py | 144 sub_id = ad.droid.subscriptionGetDefaultSubId() 150 set_preferred_network_mode_pref(ad.log, ad, sub_id,
|
D | Nsa5gDataTest.py | 96 sub_id = ad.droid.subscriptionGetDefaultSubId() 97 if not set_preferred_network_mode_pref(ad.log, ad, sub_id,
|
/tools/test/connectivity/acts_tests/tests/google/nr/sa5g/ |
D | Sa5gDataTest.py | 79 sub_id = ad.droid.subscriptionGetDefaultSubId() 80 if not set_preferred_network_mode_pref(ad.log, ad, sub_id,
|