/test/vts-testcase/kernel/api/proc/ |
D | VtsKernelProcFileApiTest.py | 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" [all …]
|
/test/vts-testcase/kernel/api/sysfs/ |
D | KernelApiSysfsTest.py | 132 filepath = '/sys/devices/system/cpu/online' 133 self.IsReadOnly(filepath) 134 content = target_file_utils.ReadFileContent(filepath, self.shell) 203 filepath = '/sys/kernel/wakeup_reasons/last_resume_reason' 204 self.IsReadOnly(filepath) 208 filepath = '/sys/devices/system/cpu/kernel_max' 209 self.IsReadOnly(filepath) 210 content = target_file_utils.ReadFileContent(filepath, self.shell) 267 filepath = '/sys/power/wakeup_count' 268 self.IsReadWrite(filepath) [all …]
|
/test/vts/utils/python/file/ |
D | target_file_utils.py | 41 def Exists(filepath, shell): argument 51 return _Test(shell, "-e", filepath) 98 def ReadFileContent(filepath, shell): argument 111 cmd = "cat %s" % filepath 113 logging.debug("%s: Shell command '%s' results: %s", filepath, cmd, results)
|
/test/vts/drivers/resource/hidl_handle_driver/ |
D | VtsHidlHandleDriver.cpp | 43 HandleId VtsHidlHandleDriver::CreateFileHandle(string filepath, int flag, in CreateFileHandle() argument 55 int curr_fd = open(filepath.c_str(), flag, mode); in CreateFileHandle() 58 << filepath; in CreateFileHandle()
|
/test/vts-testcase/kernel/ltp/ |
D | test_cases_parser.py | 161 def ReadCommentedTxt(self, filepath): argument 170 if not filepath: 174 with open(filepath, 'r') as f:
|
D | KernelLtpTest.py | 143 filepath = os.path.join(dirpath, filename) 145 with open(filepath, 'rb') as f: 152 with open(filepath, 'wb') as f:
|
/test/vts-testcase/fuzz/kernel/syzkaller/ |
D | syzkaller_test.py | 86 for filepath in files: 87 os.chmod(os.path.join(root, filepath), 0755)
|
/test/vts/drivers/resource/include/hidl_handle_driver/ |
D | VtsHidlHandleDriver.h | 72 HandleId CreateFileHandle(string filepath, int flag, int mode,
|
/test/vts/utils/python/mirror/ |
D | mirror_tracker.py | 241 filepath, argument 281 mirror._createHandleForSingleFile(filepath, mode, ints)
|
D | resource_mirror.py | 674 def _createHandleForSingleFile(self, filepath, mode, int_data): argument 700 fd_message.file_name = filepath
|
/test/framework/harnesses/host_controller/ |
D | console.py | 159 filepath, kwargs = vti_client.LeaseJob(socket.gethostname(), True) 161 if filepath is not None: 180 filepath), **kwargs)
|
/test/vts/drivers/resource/resource_manager/ |
D | VtsResourceManager.cpp | 67 string filepath = file_desc_info.file_name(); in ProcessHidlHandleCommand() local 99 if (stat(filepath.c_str(), &buffer) == 0) { in ProcessHidlHandleCommand() 122 hidl_handle_driver_.CreateFileHandle(filepath, flag, mode, int_data); in ProcessHidlHandleCommand()
|