• Home
  • Raw
  • Download

Lines Matching refs:gutils

24 from acts.test_utils.gnss import gnss_test_utils as gutils  unknown
53 gutils.set_attenuator_gnss_signal(self.ad, self.attenuators,
55 gutils._init_device(self.ad)
62 if not gutils.check_location_service(self.ad):
66 gutils.clear_logd_gnss_qxdm_log(self.ad)
78 gutils.set_mobile_data(self.ad, True)
81 gutils.set_wifi_and_bt_scanning(self.ad, True)
83 gutils.set_attenuator_gnss_signal(self.ad, self.attenuators,
87 gutils.get_gnss_qxdm_log(self.ad, test_name)
152 gutils.set_wifi_and_bt_scanning(self.ad, False)
154 test_result = gutils.check_network_location(
158 gutils.set_wifi_and_bt_scanning(self.ad, True)
179 gutils.set_wifi_and_bt_scanning(self.ad, True)
181 test_result = gutils.check_network_location(
207 gutils.launch_google_map(self.ad)
208 test_result = gutils.check_location_api(self.ad, retries=3)
239 gutils.launch_google_map(self.ad)
240 test_result = gutils.check_location_api(self.ad, retries=3)
271 gutils.set_battery_saver_mode(self.ad, True)
273 gutils.launch_google_map(self.ad)
274 test_result = gutils.check_location_api(self.ad, retries=3)
278 gutils.set_battery_saver_mode(self.ad, False)
300 gutils.kill_xtra_daemon(self.ad)
307 if not gutils.process_gnss_by_gtw_gpstool(self.ad, self.supl_cs_criteria):
309 gutils.start_ttff_by_gtw_gpstool(self.ad, ttff_mode="cs", iteration=10)
310 ttff_result = gutils.process_ttff_by_gtw_gpstool(self.ad, begin_time)
311 return gutils.check_ttff_result(self.ad, ttff_result,
333 gutils.kill_xtra_daemon(self.ad)
339 if not gutils.process_gnss_by_gtw_gpstool(self.ad, self.supl_cs_criteria):
343 gutils.start_ttff_by_gtw_gpstool(self.ad, ttff_mode="cs", iteration=10)
344 ttff_result = gutils.process_ttff_by_gtw_gpstool(self.ad, begin_time)
347 return gutils.check_ttff_result(self.ad, ttff_result,
369 gutils.kill_xtra_daemon(self.ad)
370 if not gutils.process_gnss_by_gtw_gpstool(self.ad, self.supl_cs_criteria):
372 gutils.start_ttff_by_gtw_gpstool(self.ad, ttff_mode="cs", iteration=10)
373 if not gutils.start_youtube_video(
376 ttff_result = gutils.process_ttff_by_gtw_gpstool(self.ad, begin_time)
377 return gutils.check_ttff_result(self.ad, ttff_result,
399 gutils.kill_xtra_daemon(self.ad)
402 before_modem_ssr = gutils.get_modem_ssr_crash_count(self.ad)
404 after_modem_ssr = gutils.get_modem_ssr_crash_count(self.ad)
408 if not gutils.process_gnss_by_gtw_gpstool(self.ad, self.supl_cs_criteria):
410 gutils.start_ttff_by_gtw_gpstool(self.ad, ttff_mode="cs", iteration=3)
411 ttff_result = gutils.process_ttff_by_gtw_gpstool(self.ad, begin_time)
412 supl_ssr_test_result = gutils.check_ttff_result(
439 if not gutils.process_gnss_by_gtw_gpstool(self.ad, self.standalone_cs_criteria):
441 gutils.start_ttff_by_gtw_gpstool(self.ad, ttff_mode="cs", iteration=10)
442 ttff_result = gutils.process_ttff_by_gtw_gpstool(self.ad, begin_time)
443 return gutils.check_ttff_result(self.ad, ttff_result,
465 gutils.kill_xtra_daemon(self.ad)
466 gutils.set_mobile_data(self.ad, False)
467 if not gutils.process_gnss_by_gtw_gpstool(self.ad, self.standalone_cs_criteria):
469 gutils.start_ttff_by_gtw_gpstool(self.ad, ttff_mode="cs", iteration=10)
470 ttff_result = gutils.process_ttff_by_gtw_gpstool(self.ad, begin_time)
471 return gutils.check_ttff_result(self.ad, ttff_result,
498 if not gutils.process_gnss_by_gtw_gpstool(self.ad, self.supl_cs_criteria):
502 gutils.set_attenuator_gnss_signal(self.ad, self.attenuators,
506 gutils.set_attenuator_gnss_signal(self.ad, self.attenuators,
508 supl_no_gnss_signal = gutils.check_location_api(self.ad, retries=3)
509 gutils.start_gnss_by_gtw_gpstool(self.ad, False)
532 gutils.set_attenuator_gnss_signal(self.ad, self.attenuators,
536 gutils.kill_xtra_daemon(self.ad)
537 if not gutils.process_gnss_by_gtw_gpstool(self.ad, self.weak_signal_supl_cs_criteria):
539 gutils.start_ttff_by_gtw_gpstool(self.ad, ttff_mode="cs", iteration=10)
540 ttff_result = gutils.process_ttff_by_gtw_gpstool(self.ad, begin_time)
541 return gutils.check_ttff_result(self.ad, ttff_result, "Cold Start",
561 gutils.fastboot_factory_reset(self.ad)
563 gutils._init_device(self.ad)
564 if not gutils.check_location_service(self.ad):
568 gutils.kill_xtra_daemon(self.ad)
569 if not gutils.process_gnss_by_gtw_gpstool(self.ad, self.supl_cs_criteria):
571 gutils.start_ttff_by_gtw_gpstool(self.ad, ttff_mode="cs", iteration=10)
572 ttff_result = gutils.process_ttff_by_gtw_gpstool(self.ad, begin_time)
573 if not gutils.check_ttff_result(self.ad, ttff_result,
599 gutils.disable_supl_mode(self.ad)
602 if not gutils.process_gnss_by_gtw_gpstool(self.ad, self.xtra_cs_criteria):
604 gutils.start_ttff_by_gtw_gpstool(self.ad, ttff_mode="ws", iteration=10)
605 ws_ttff_result = gutils.process_ttff_by_gtw_gpstool(self.ad, begin_time)
606 if not gutils.check_ttff_result(self.ad, ws_ttff_result, "Warm Start",
610 if not gutils.process_gnss_by_gtw_gpstool(self.ad, self.xtra_cs_criteria):
612 gutils.start_ttff_by_gtw_gpstool(self.ad, ttff_mode="cs", iteration=10)
613 cs_ttff_result = gutils.process_ttff_by_gtw_gpstool(self.ad, begin_time)
614 return gutils.check_ttff_result(self.ad, cs_ttff_result, "Cold Start",
636 gutils.disable_supl_mode(self.ad)
637 gutils.set_attenuator_gnss_signal(self.ad, self.attenuators,
641 if not gutils.process_gnss_by_gtw_gpstool(self.ad, self.weak_signal_xtra_cs_criteria):
643 gutils.start_ttff_by_gtw_gpstool(self.ad, ttff_mode="ws", iteration=10)
644 ws_ttff_result = gutils.process_ttff_by_gtw_gpstool(self.ad, begin_time)
645 if not gutils.check_ttff_result(self.ad, ws_ttff_result, "Warm Start",
649 if not gutils.process_gnss_by_gtw_gpstool(self.ad, self.weak_signal_xtra_cs_criteria):
651 gutils.start_ttff_by_gtw_gpstool(self.ad, ttff_mode="cs", iteration=10)
652 cs_ttff_result = gutils.process_ttff_by_gtw_gpstool(self.ad, begin_time)
653 return gutils.check_ttff_result(self.ad, cs_ttff_result, "Cold Start",
673 gutils.disable_supl_mode(self.ad)
679 gutils.connect_to_wifi_network(
681 if not gutils.process_gnss_by_gtw_gpstool(self.ad, self.xtra_cs_criteria):
683 gutils.start_ttff_by_gtw_gpstool(self.ad, ttff_mode="ws", iteration=10)
684 ws_ttff_result = gutils.process_ttff_by_gtw_gpstool(self.ad, begin_time)
685 if not gutils.check_ttff_result(self.ad, ws_ttff_result, "Warm Start",
689 if not gutils.process_gnss_by_gtw_gpstool(self.ad, self.xtra_cs_criteria):
691 gutils.start_ttff_by_gtw_gpstool(self.ad, ttff_mode="cs", iteration=10)
692 cs_ttff_result = gutils.process_ttff_by_gtw_gpstool(self.ad, begin_time)
693 return gutils.check_ttff_result(self.ad, cs_ttff_result, "Cold Start",
712 gutils.disable_supl_mode(self.ad)
717 before_modem_ssr = gutils.get_modem_ssr_crash_count(self.ad)
719 after_modem_ssr = gutils.get_modem_ssr_crash_count(self.ad)
723 if not gutils.process_gnss_by_gtw_gpstool(self.ad, self.xtra_cs_criteria):
725 gutils.start_ttff_by_gtw_gpstool(self.ad, ttff_mode="cs", iteration=3)
726 ttff_result = gutils.process_ttff_by_gtw_gpstool(self.ad, begin_time)
727 xtra_ssr_test_result = gutils.check_ttff_result(self.ad,
753 gutils.disable_supl_mode(self.ad)
757 if not gutils.process_gnss_by_gtw_gpstool(self.ad, self.xtra_cs_criteria):
760 gutils.start_gnss_by_gtw_gpstool(self.ad, False)
761 mobile_xtra_result = gutils.check_xtra_download(self.ad, begin_time)
784 gutils.disable_supl_mode(self.ad)
789 gutils.connect_to_wifi_network(
793 if not gutils.process_gnss_by_gtw_gpstool(self.ad, self.xtra_cs_criteria):
796 gutils.start_gnss_by_gtw_gpstool(self.ad, False)
797 wifi_xtra_result = gutils.check_xtra_download(self.ad, begin_time)