Home
last modified time | relevance | path

Searched refs:ad (Results 1 – 25 of 237) sorted by relevance

12345678910

/tools/test/connectivity/acts_tests/acts_contrib/test_utils/tel/
Dtel_test_utils.py158 def get_phone_number_by_adb(ad): argument
160 ad.adb.shell("service call iphonesubinfo 13"))
163 def get_iccid_by_adb(ad): argument
164 return ad.adb.shell("service call iphonesubinfo 11")
167 def get_operator_by_adb(ad): argument
168 operator = ad.adb.getprop("gsm.sim.operator.alpha")
174 def get_plmn_by_adb(ad): argument
175 plmn_id = ad.adb.getprop("gsm.sim.operator.numeric")
181 def get_sub_id_by_adb(ad): argument
182 return ad.adb.shell("service call iphonesubinfo 5")
[all …]
Dtel_phone_setup_utils.py97 ad, argument
124 return phone_setup_iwlan_for_subscription(log, ad,
125 get_outgoing_voice_sub_id(ad),
131 ad, argument
161 if not get_capability_for_subscription(ad, CAPABILITY_WFC, sub_id):
162 ad.log.error("WFC is not supported, abort test.")
167 log, ad, sub_id, nw_gen, voice_or_data=NETWORK_SERVICE_DATA,
169 ad.log.error("Failed to set to %s data.", nw_gen)
171 toggle_volte_for_subscription(log, ad, sub_id, True)
172 toggle_airplane_mode(log, ad, is_airplane_mode, strict_checking=False)
[all …]
Dtel_subscription_utils.py32 def initial_set_up_for_subid_information(log, ad): argument
55 if hasattr(ad, "default_voice_sim_slot_index"):
57 log, ad, ad.default_voice_sim_slot_index)
58 set_subid_for_outgoing_call(ad, outgoing_voice_sub_id)
60 outgoing_voice_sub_id = ad.droid.subscriptionGetDefaultVoiceSubId()
61 setattr(ad, "outgoing_voice_sub_id", outgoing_voice_sub_id)
68 if hasattr(ad, "default_message_sim_slot_index"):
70 log, ad, ad.default_message_sim_slot_index)
71 set_subid_for_message(ad, outgoing_message_sub_id)
73 outgoing_message_sub_id = ad.droid.subscriptionGetDefaultSmsSubId()
[all …]
Dtel_ims_utils.py49 def show_enhanced_4g_lte(ad, sub_id): argument
51 capabilities = ad.telephony["subscription"][sub_id].get("capabilities", [])
55 ad.log.info(
58 ad, "show_enhanced_4g_lte_mode", False)
60 current_voice_sub_id = get_outgoing_voice_sub_id(ad)
62 set_incoming_voice_sub_id(ad, sub_id)
64 ad.log.info(
67 ad.adb.shell(
72 ad.telephony["subscription"][sub_id]["capabilities"].remove(
76 set_incoming_voice_sub_id(ad, current_voice_sub_id)
[all …]
Dtel_logging_utils.py47 def check_if_tensor_platform(ad): argument
56 result = ad.adb.getprop("ro.boot.hardware.platform")
62 def start_pixellogger_always_on_logging(ad): argument
72 setattr(ad, 'enable_always_on_modem_logger', True)
73 if check_if_tensor_platform(ad):
78 if ad.adb.getprop(key) == "false":
79 ad.adb.shell("setprop persist.vendor.sys.modem.logging.enable true")
81 if ad.adb.getprop(key) == "true":
89 def start_dsp_logger(ad, p21 = False, retry = 3): argument
103 def _is_dsp_enabled(ad): argument
[all …]
Dgft_inout_utils.py38 def check_no_service_time(ad, timeout=120): argument
50 service_state = get_service_state_by_adb(ad.log,ad)
52 ad.log.info("device becomes no/limited service in %s sec and service_state=%s"
54 get_telephony_signal_strength(ad)
57 get_telephony_signal_strength(ad)
58 check_network_service(ad)
59 ad.log.info("device does not become no/limited service in %s sec and service_state=%s"
64 def check_back_to_service_time(ad, timeout=120): argument
75 service_state = get_service_state_by_adb(ad.log,ad)
78 check_network_service(ad)
[all …]
Dtel_voice_utils.py114 def check_call_status(ad, voice_type_init=None, voice_type_in_call=None): argument
124 dut = str(ad.serial)
160 def dial_phone_number(ad, callee_number): argument
163 ad.send_keycode("POUND")
165 ad.send_keycode("STAR")
167 ad.send_keycode("%s" % number)
170 def disconnect_call_by_id(log, ad, call_id): argument
173 ad.droid.telecomCallDisconnect(call_id)
177 def dumpsys_last_call_info(ad): argument
179 num = dumpsys_last_call_number(ad)
[all …]
Dtel_data_utils.py300 ad, argument
327 if not provision_device_for_5g(log, ad, nr_type):
331 log, ad, get_default_data_sub_id(ad), nw_gen,
333 ad.log.error("Device failed to register in %s", nw_gen)
336 ad.log.debug("Skipping network generation since it is None")
338 start_youtube_video(ad)
340 ad.log.info("Make sure phone can connect to live network by WIFI")
341 if not ensure_wifi_connected(log, ad, wifi_network_ssid,
343 ad.log.error("WiFi connect fail.")
348 toggle_airplane_mode(log, ad, False)
[all …]
DTelephonyBaseTest.py110 for ad in self.android_devices:
111 ad.log_path = self.log_path
136 new_crash = ad.check_crash_report(self.test_name,
140 ad.log.error(msg)
142 ad.serial, msg)
199 tasks = [(flash_radio, [ad, file_path, True, sideload_img])
200 for ad in self.android_devices]
203 tasks = [(install_apk, [ad, self.extra_apk, self.extra_package])
204 for ad in self.android_devices]
207 tasks = [(self._init_device, [ad]) for ad in self.android_devices]
[all …]
Dtel_bootloader_utils.py34 def fastboot_wipe(ad, skip_setup_wizard=True): argument
44 out = ad.adb.shell("pm path %s" % SL4A_APK_NAME)
47 ad.log.error("Couldn't find sl4a apk")
50 ad.log.info("Get sl4a apk from %s", sl4a_apk)
51 ad.pull_files([sl4a_apk], "/tmp/")
52 ad.stop_services()
56 if ad.serial in list_adb_devices():
57 ad.log.info("Reboot to bootloader")
58 ad.adb.reboot("bootloader", ignore_status=True)
60 if ad.serial in list_fastboot_devices():
[all …]
Damarisoft_sim_utils.py51 def get_sim_info(ad) -> List[SimInfo]: argument
61 sub_info_list = ad.droid.subscriptionGetActiveSubInfoList()
66 imsi = get_sim_imsi(ad, sub_id)
67 mcc_mnc = get_sim_mcc_mnc(ad, sub_id)
77 ad.log.info(sim_info)
87 def get_sim_mcc_mnc(ad, sub_id): argument
89 return ad.droid.telephonyGetSimOperatorForSubscription(sub_id)
92 def get_sim_imsi(ad, sub_id): argument
94 return ad.droid.telephonyGetSubscriberIdForSubscription(sub_id)
97 def unlock_sim_dsds(ad, argument
[all …]
Dtel_rcs_utils.py31 def go_to_message_app(ad): argument
40 ad.log.info("Launch message settings")
41 ad.adb.shell("am start -n com.google.android.apps.messaging/.ui."
43 log_screen_shot(ad, "launch_msg_settings")
44 if uutils.has_element(ad, resource_id=RESOURCE_ID_START_CHAT):
49 def go_to_rcs_settings(ad): argument
57 ad.log.info("Go to chat features settings")
58 ad.adb.shell("am start -n com.google.android.apps.messaging/.ui."
60 log_screen_shot(ad, "launch_rcs_settings")
61 if uutils.has_element(ad, text="Chat features"):
[all …]
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/gnss/
Dgnss_test_utils.py124 def remount_device(ad): argument
131 ad.root_adb()
132 if ad.adb.getprop("ro.boot.veritymode") == "enforcing":
133 ad.adb.disable_verity()
134 reboot(ad)
135 remount_result = ad.adb.remount()
136 ad.log.info("Attempt %d - %s" % (retries + 1, remount_result))
141 def reboot(ad): argument
147 ad.log.info("Reboot device to make changes take effect.")
149 ad.reboot(timeout=600)
[all …]
/tools/test/connectivity/acts_tests/tests/google/tel/live/
DTelLiveProjectFiTest.py101 def _install_account_util(self, ad): argument
105 ad.log.info("Install account_util %s", account_util)
106 ad.ensure_screen_on()
107 ad.adb.install("-r %s" % account_util, timeout=300, ignore_status=True)
109 if not ad.is_apk_installed("com.google.android.tradefed.account"):
110 ad.log.info("com.google.android.tradefed.account is not installed")
114 def _account_registration(self, ad): argument
115 toggle_airplane_mode_by_adb(self.log, ad, new_state=False)
117 ad.adb.shell(cmd)
118 if hasattr(ad, "user_account"):
[all …]
DTelLiveNoQXDMLogTest.py123 ad = self.dut
124 toggle_airplane_mode(self.log, ad, False)
125 if not phone_setup_volte(self.log, ad):
126 ad.log.error("Failed to setup VoLTE.")
149 ad.log.info("Telephony Bootup Time Test %s Iteration: %d / %d",
152 ad.log.debug("Begin Time is %s", begin_time)
153 ad.log.info("reboot!")
154 reboot_device(ad)
159 dict_match = ad.search_logcat(
164 ad.log.debug("Datetime for boot_complete is %s",
[all …]
DTelWifiDataTest.py85 ad = self.android_devices[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")
159 def _wifi_cell_irat_task(self, ad, irat_wait_time=60): argument
165 if (not wait_for_wifi_data_connection(self.log, ad, True,
167 or not verify_internet_connection(self.log, ad)):
168 ad.log.error("Data not on WiFi")
169 get_telephony_signal_strength(ad)
[all …]
DTelLiveRilImsKpiTest.py69 def wait_for_wifi_disconnected(ad, wifi_ssid): argument
81 if check_is_wifi_connected(ad.log, ad, wifi_ssid):
82 ad.droid.wifiToggleState(False)
86 ad.log.info('Wifi is disconnected.')
89 if check_is_wifi_connected(ad.log, ad, wifi_ssid):
90 ad.log.error('Wifi still is connected to %s.', wifi_ssid)
93 ad.log.info('Wifi is disconnected.')
124 for ad in self.android_devices:
125 toggle_airplane_mode(self.log, ad, False)
139 ad = self.android_devices[0]
[all …]
/tools/test/connectivity/acts_tests/tests/google/nr/nsa5g/
DNsa5gDataTest.py93 ad = self.android_devices[0]
94 wifi_toggle_state(ad.log, ad, False)
95 sub_id = ad.droid.subscriptionGetDefaultSubId()
96 if not set_preferred_network_mode_pref(ad.log, ad, sub_id,
98 ad.log.error("Failed to set network mode to NSA")
100 ad.log.info("Set network mode to NSA successfully")
101 ad.log.info("Waiting for 5g NSA attach for 60 secs")
102 if is_current_network_5g(ad, nr_type = 'nsa', timeout=60):
103 ad.log.info("Success! attached on 5g NSA")
105 ad.log.error("Failure - expected NR_NSA, current %s",
[all …]
/tools/test/connectivity/acts_tests/tests/google/tel/lab/
DTelLabProjectFiTest.py115 self.ad = self.android_devices[0]
116 self.ad.sim_card = getattr(self.ad, "sim_card", None)
121 self.ad.adb.shell("settings put secure cmas_additional_broadcast_pkg "
139 toggle_airplane_mode(self.log, self.ad, True)
145 toggle_airplane_mode(self.log, self.ad, True)
154 self.ad.sim_card)
155 set_usim_parameters(self.anritsu, self.ad.sim_card)
158 self.ad.sim_card)
169 self.ad, preferred_network_setting):
175 if self.ad.droid.connectivityCheckAirplaneMode():
[all …]
/tools/test/connectivity/acts_tests/tests/google/gnss/
DGnssFunctionTest.py67 self.ad = self.android_devices[0]
92 if self.collect_logs and gutils.check_chipset_vendor_by_qualcomm(self.ad):
98 gutils._init_device(self.ad)
99 gutils.enable_supl_mode(self.ad)
100 gutils.enable_vendor_orbit_assistance_data(self.ad)
101 gutils.disable_ramdump(self.ad)
104 log_current_epoch_time(self.ad, "test_start_time")
105 log_testtracker_uuid(self.ad, self.current_test_name)
106 get_baseband_and_gms_version(self.ad)
108 clear_logd_gnss_qxdm_log(self.ad)
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/android_lib/tel/
Dtel_utils.py91 def dumpsys_last_call_info(ad): argument
93 num = dumpsys_last_call_number(ad)
94 output = ad.adb.shell("dumpsys telecom")
109 ad.log.debug("call_info = %s", call_info)
113 def dumpsys_last_call_number(ad): argument
114 output = ad.adb.shell("dumpsys telecom")
122 def get_device_epoch_time(ad): argument
123 return int(1000 * float(ad.adb.shell("date +%s.%N")))
126 def get_outgoing_voice_sub_id(ad): argument
129 if hasattr(ad, "outgoing_voice_sub_id"):
[all …]
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/wifi/
Dwifi_test_utils.py626 def wait_for_wifi_state(ad, state, assert_on_fail=True): argument
641 ad,
645 def _wait_for_wifi_state(ad, state): argument
654 if state == ad.droid.wifiCheckState():
658 ad.droid.wifiStartTrackingStateChange()
660 state, ad.serial)
662 ad.ed.wait_for_event(wifi_constants.WIFI_STATE_CHANGED,
666 asserts.assert_equal(state, ad.droid.wifiCheckState(), fail_msg)
668 ad.droid.wifiStopTrackingStateChange()
671 def wifi_toggle_state(ad, new_state=None, assert_on_fail=True): argument
[all …]
/tools/test/connectivity/acts_tests/tests/google/nr/nsa5gmmw/
DNsa5gMmwDataTest.py63 for ad in self.android_devices:
64 set_phone_silent_mode(self.log, ad, True)
90 ad = self.android_devices[0]
91 wifi_toggle_state(ad.log, ad, False)
92 sub_id = ad.droid.subscriptionGetDefaultSubId()
93 if not set_preferred_mode_for_5g(ad, sub_id,
95 ad.log.error("Failed to set network mode to NSA")
97 ad.log.info("Set network mode to NSA successfully")
98 ad.log.info("Waiting for 5G NSA MMW attach for 60 secs")
99 if is_current_network_5g(ad, nr_type = 'mmwave', timeout=60):
[all …]
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/car/
Dcar_telecom_utils.py35 def dial_number(log, ad, uri): argument
47 ad.serial, uri))
50 if ad.droid.telecomIsInCall():
51 log.info("We're still in call {}".format(ad.serial))
55 ad.droid.telecomStartListeningForCallAdded()
59 ad.droid.telecomCallTelUri(uri)
63 event = ad.ed.pop_event(
72 ad.droid.telecomStopListeningForCallAdded()
75 log.info("Call ID: {} dev {}".format(call_id, ad.serial))
80 if not wait_for_dialing(log, ad):
[all …]
/tools/test/connectivity/acts/framework/tests/
Dacts_android_device_test.py54 ad = mock.MagicMock(name="AndroidDevice", serial=i, h_port=None)
55 ad.ensure_screen_on = mock.MagicMock(return_value=True)
56 ads.append(ad)
65 return [ad.serial for ad in get_mock_ads(5)]
199 ad = android_device.get_device(ads, serial=expected_serial)
200 self.assertEqual(ad.serial, expected_serial)
207 ad = android_device.get_device(
209 self.assertEqual(ad.serial, expected_serial)
210 self.assertEqual(ad.h_port, expected_h_port)
217 ad = android_device.get_device(ads, serial=len(ads))
[all …]

12345678910