Home | History | Annotate | Download | only in tel

Lines Matching refs:ad

77         for ad in self.android_devices:
79 ad.adb.shell("killall -9 tcpdump")
81 ad.log.warn("Killing existing tcpdump processes failed")
82 if not hasattr(ad, "init_log_path"):
83 ad.init_log_path = ad.log_path
84 ad.log_path = self.log_path
85 print_radio_info(ad)
86 if not unlock_sim(ad):
87 abort_all_tests(ad.log, "unable to unlock SIM")
88 ad.wakeup_screen()
89 ad.adb.shell("input keyevent 82")
90 ad.qxdm_log = getattr(ad, "qxdm_log", self.qxdm_log)
91 if ad.qxdm_log:
92 qxdm_log_mask = getattr(ad, "qxdm_log_mask", None)
95 ad.adb.shell("mkdir %s" % qxdm_mask_path)
96 ad.log.info("Push %s to %s", qxdm_log_mask_cfg,
98 ad.adb.push("%s %s" % (qxdm_log_mask_cfg, qxdm_mask_path))
102 set_qxdm_logger_command(ad, mask=qxdm_log_mask)
103 ad.adb.pull(
104 "/firmware/image/qdsp6m.qdb %s" % ad.init_log_path,
130 for ad in self.android_devices:
131 ad.log_path = self.log_path
133 ad.droid.logI("Started %s" % log_string)
135 ad.log.warning(e)
136 refresh_sl4a_session(ad)
146 for ad in self.android_devices:
148 ad.droid.logI("Finished %s" % log_string)
150 ad.log.warning(e)
151 refresh_sl4a_session(ad)
154 new_crash = ad.check_crash_report(self.test_name,
158 ad.log.error(msg)
160 ad.serial, msg)
193 for ad in self.android_devices:
194 setup_droid_properties(self.log, ad, sim_conf_file)
197 build_id = ad.build_info["build_id"]
199 sub["operator"] for sub in ad.cfg["subscription"].values()
200 ] and ad.is_apk_installed("com.google.android.wfcactivation"):
201 ad.log.info("setup VoWiFi MDN per b/33187374")
202 ad.adb.shell("setprop dbg.vzw.force_wfc_nv_enabled true")
203 ad.adb.shell("am start --ei EXTRA_LAUNCH_CARRIER_APP 0 -n "
207 initial_set_up_for_subid_infomation(self.log, ad)
209 ad.droid.wifiEnableVerboseLogging(WIFI_VERBOSE_LOGGING_ENABLED)
211 if getattr(ad, "telephony_test_setup", None):
226 ad.adb.shell(cmd)
230 if int(ad.adb.getprop("ro.product.first_api_level")) >= 25:
231 out = ad.adb.shell("/data/curl --version")
242 ad.log.info("Pushing Curl to /data dir")
243 ad.adb.push("%s /data" % (curl_file_path))
244 ad.adb.shell(
247 ad.log.info("Failed to push curl on this device")
253 if not set_phone_screen_on(self.log, ad):
256 if not set_phone_silent_mode(self.log, ad):
259 ad.droid.telephonyAdjustPreciseCallStateListenLevel(
261 ad.droid.telephonyAdjustPreciseCallStateListenLevel(
263 ad.droid.telephonyAdjustPreciseCallStateListenLevel(
267 setattr(ad, "telephony_test_setup", True)
275 for ad in self.android_devices:
276 ad.droid.disableDevicePassword()
278 ad.droid.wifiEnableVerboseLogging(
280 if hasattr(ad, "init_log_path"):
281 ad.log_path = ad.init_log_path
287 for ad in self.android_devices:
288 ad.ed.clear_all_events()
289 output = ad.adb.logcat("-t 1")
292 ad.test_log_begin_time = match.group(0)
317 def _ad_take_extra_logs(self, ad, test_name, begin_time):
321 if getattr(ad, "qxdm_log", True):
328 ad.get_qxdm_logs(test_name, qxdm_begin_time)
330 ad.log.error("Failed to get QXDM log for %s with error %s",
335 ad.check_crash_report(test_name, begin_time, log_crash_report=True)
337 ad.log.error("Failed to check crash report for %s with error %s",
342 ad, "test_log_begin_time", None
345 "%s_%s.logcat" % (ad.serial, begin_time))
347 ad.adb.logcat(
351 ad
360 tasks = [(self._ad_take_bugreport, (ad, test_name, begin_time))
361 for ad in self.android_devices[:dev_num]]
362 tasks.extend([(self._ad_take_extra_logs, (ad, test_name, begin_time))
363 for ad in self.android_devices[:dev_num]])
365 for ad in self.android_devices[:dev_num]:
366 if getattr(ad, "reboot_to_recover", False):
367 reboot_device(ad)
368 ad.reboot_to_recover = False