Lines Matching refs:filepath
144 filepath = test_object.get_path()
145 asserts.skipIf(not target_file_utils.Exists(filepath, self.shell) and
147 "%s does not exist and is optional." % filepath)
149 self.shell, filepath, test_object.get_permission_checker())
151 logging.info("Testing format of %s", filepath)
159 file_content = self.ReadFileContent(filepath)
174 def ReadFileContent(self, filepath): argument
183 cmd = "cat %s" % filepath
189 "%s: Error happened while reading the file." % filepath)
200 filepath = "/proc/pagetypeinfo"
202 result = self.shell.Execute("cat %s | incident_helper -s 2001" % filepath)
205 "Failed to parse %s." % filepath)
208 filepath = "/proc/sysrq-trigger"
212 self.dut.adb.shell("echo u > %s" % filepath)
215 self.dut.adb.shell("echo b > %s" % filepath)
244 filepath = "/proc/uid_procstat/set"
250 self.dut.adb.shell("echo %d %s > %s" % (root_uid, state, filepath))
272 for filepath in filepaths:
274 self.shell, filepath, target_file_utils.IsReadOnly
276 file_content = self.ReadFileContent(filepath)