Beispiel #1
0
 def stopAdbLogcat(self):
     """Stops the adb logcat collection subprocess.
     """
     if not self.isAdbLogcatOn:
         raise AndroidDeviceError(
             "Android device %s does not have an ongoing adb logcat collection."
             % self.serial)
     utils.stop_standing_subprocess(self.adb_logcat_process)
     self.adb_logcat_process = None
Beispiel #2
0
 def stopVtsAgent(self):
     """Stop the HAL agent running on the AndroidDevice.
     """
     if not self.vts_agent_process:
         return
     try:
         utils.stop_standing_subprocess(self.vts_agent_process)
     except utils.VTSUtilsError as e:
         logging.error("Cannot stop VTS agent. %s", e)
     self.vts_agent_process = None
 def stopAdbLogcat(self):
     """Stops the adb logcat collection subprocess.
     """
     if not self.isAdbLogcatOn:
         raise AndroidDeviceError(
             "Android device %s does not have an ongoing adb logcat collection."
             % self.serial)
     try:
         utils.stop_standing_subprocess(self.adb_logcat_process)
     except utils.VTSUtilsError as e:
         logging.error("Cannot stop adb logcat. %s", e)
     self.adb_logcat_process = None
Beispiel #4
0
    def stopAdbLogcat(self):
        """Stops the adb logcat collection subprocess.
        """
        if not self.isAdbLogcatOn:
            raise AndroidDeviceError(
                "Android device %s does not have an ongoing adb logcat collection."
                % self.serial)

        event = tfi.Begin("stop adb logcat from android_device",
                          tfi.categories.FRAMEWORK_TEARDOWN)
        try:
            utils.stop_standing_subprocess(self.adb_logcat_process)
        except utils.VTSUtilsError as e:
            event.Remove("Cannot stop adb logcat. %s" % e)
            logging.error("Cannot stop adb logcat. %s", e)
        self.adb_logcat_process = None
        event.End()
Beispiel #5
0
 def stopVtsAgent(self):
     """Stop the HAL agent running on the AndroidDevice.
     """
     if self.vts_agent_process:
         utils.stop_standing_subprocess(self.vts_agent_process)
         self.vts_agent_process = None