Lines Matching refs:dut
237 def _ClearTargetGcov(self, dut, serial, path_suffix=None): argument
248 self._ExecuteOneAdbShellCommand(dut, serial, _CLEAN_TRACE_COMMAND)
250 def _GetHalPids(self, dut, hal_names): argument
264 dut.rootAdb()
265 entries = dut.adb.shell(
276 def InitializeDeviceCoverage(self, dut=None, serial=None): argument
285 self._ExecuteOneAdbShellCommand(dut, serial, "setenforce 0")
286 self._ExecuteOneAdbShellCommand(dut, serial, _FLUSH_COMMAND)
288 self._ClearTargetGcov(dut, serial)
292 pids = self._GetHalPids(dut, self._hal_names)
295 self._ExecuteOneAdbShellCommand(dut, serial, cmd)
297 def _GetGcdaDict(self, dut, serial): argument
315 self._ExecuteOneAdbShellCommand(dut, serial, _FLUSH_COMMAND)
319 pids = self._GetHalPids(dut, self._hal_names)
324 files = dut.adb.shell("find %s -name \"*.gcda\"" % path)
330 result = self._ExecuteOneAdbShellCommand(dut, serial, cmd)
338 if dut is None:
346 dut.adb.pull("%s %s" % (gcda, file_name))
349 self._ClearTargetGcov(dut, serial)
606 def SetCoverageData(self, dut=None, serial=None, isGlobal=False): argument
623 serial = "default" if dut is None else dut.adb.shell(
635 gcda_dict = self._GetGcdaDict(dut, serial)
681 def _ExecuteOneAdbShellCommand(self, dut, serial, cmd): argument
690 if dut is None:
701 return dut.adb.shell(cmd)