コード例 #1
0
ファイル: RttBaseTest.py プロジェクト: beylsp/android-acts
 def on_fail(self, test_name, begin_time):
     for ad in self.android_devices:
         ad.take_bug_report(test_name, begin_time)
         ad.cat_adb_log(test_name, begin_time)
         wutils.get_ssrdumps(ad)
     if hasattr(self, "cnss_diag_file") and hasattr(self, "pixel_models"):
         wutils.stop_cnss_diags(self.android_devices, self.pixel_models)
         for ad in self.android_devices:
             wutils.get_cnss_diag_log(ad)
     for proc in self.tcpdump_proc:
         nutils.stop_tcpdump(proc[0], proc[1], self.test_name)
     self.tcpdump_proc = []
コード例 #2
0
ファイル: RttBaseTest.py プロジェクト: beylsp/android-acts
    def teardown_test(self):
        if hasattr(self, "cnss_diag_file") and hasattr(self, "pixel_models"):
            wutils.stop_cnss_diags(self.android_devices, self.pixel_models)
        for proc in self.tcpdump_proc:
            nutils.stop_tcpdump(
                    proc[0], proc[1], self.test_name, pull_dump=False)
        self.tcpdump_proc = []
        for ad in self.android_devices:
            if not ad.droid.doesDeviceSupportWifiRttFeature():
                return

            # clean-up queue from the System Service UID
            ad.droid.wifiRttCancelRanging([1000])
コード例 #3
0
 def teardown_test(self):
     if hasattr(self, "cnss_diag_file") and hasattr(self, "pixel_models"):
         wutils.stop_cnss_diags(self.android_devices, self.pixel_models)
     for proc in self.tcpdump_proc:
         nutils.stop_tcpdump(
                 proc[0], proc[1], self.test_name, pull_dump=False)
     self.tcpdump_proc = []
     for ad in self.android_devices:
         # Clear p2p group info
         ad.droid.wifiP2pRequestPersistentGroupInfo()
         event = ad.ed.pop_event("WifiP2pOnPersistentGroupInfoAvailable",
                                 p2pconsts.DEFAULT_TIMEOUT)
         for network in event['data']:
             ad.droid.wifiP2pDeletePersistentGroup(network['NetworkId'])
         # Clear p2p local service
         ad.droid.wifiP2pClearLocalServices()
コード例 #4
0
ファイル: AwareBaseTest.py プロジェクト: beylsp/android-acts
 def teardown_test(self):
     if hasattr(self, "cnss_diag_file") and hasattr(self, "pixel_models"):
         wutils.stop_cnss_diags(self.android_devices, self.pixel_models)
     for proc in self.tcpdump_proc:
         nutils.stop_tcpdump(proc[0],
                             proc[1],
                             self.test_name,
                             pull_dump=False)
     self.tcpdump_proc = []
     for ad in self.android_devices:
         if not ad.droid.doesDeviceSupportWifiAwareFeature():
             return
         ad.droid.wifiP2pClose()
         ad.droid.wifiAwareDestroyAll()
         self.reset_device_parameters(ad)
         autils.validate_forbidden_callbacks(ad)
コード例 #5
0
 def teardown_test(self):
     if (hasattr(self, "android_devices")
             and hasattr(self, "cnss_diag_file")
             and hasattr(self, "pixel_models")):
         wutils.stop_cnss_diags(self.android_devices, self.pixel_models)
         for proc in self.tcpdump_proc:
             nutils.stop_tcpdump(proc[0],
                                 proc[1],
                                 self.test_name,
                                 pull_dump=False)
         self.tcpdump_proc = []
     if hasattr(self, "packet_logger") and self.packet_log_pid:
         wutils.stop_pcap(self.packet_logger,
                          self.packet_log_pid,
                          test_status=True)
         self.packet_log_pid = {}