Lines Matching refs:filepath
145 filepath = test_object.get_path()
146 asserts.skipIf(not target_file_utils.Exists(filepath, self.shell) and
148 "%s does not exist and is optional." % filepath)
150 self.shell, filepath, test_object.get_permission_checker())
152 logging.info("Testing format of %s", filepath)
160 file_content = self.ReadFileContent(filepath)
175 def ReadFileContent(self, filepath): argument
184 cmd = "cat %s" % filepath
190 "%s: Error happened while reading the file." % filepath)
201 filepath = "/proc/pagetypeinfo"
203 result = self.shell.Execute("cat %s | incident_helper -s 2001" % filepath)
206 "Failed to parse %s." % filepath)
209 filepath = "/proc/sysrq-trigger"
213 self.dut.adb.shell("echo u > %s" % filepath)
216 self.dut.adb.shell("echo b > %s" % filepath)
245 filepath = "/proc/uid_procstat/set"
251 self.dut.adb.shell("echo %d %s > %s" % (root_uid, state, filepath))
273 for filepath in filepaths:
275 self.shell, filepath, target_file_utils.IsReadOnly
277 file_content = self.ReadFileContent(filepath)