Home
last modified time | relevance | path

Searched refs:filepath (Results 1 – 16 of 16) sorted by relevance

/test/vts/testcases/host/kernel_proc_file_api_test/
Dvts_kernel_proc_file_api_test.py147 filepath = "/proc/pagetypeinfo"
150 "cat %s | incident_helper -s 2001" % filepath)
153 "Failed to parse %s." % filepath)
156 filepath = "/proc/sysrq-trigger"
160 self.dut.shell.Execute("echo u > %s" % filepath)
163 self.dut.shell.Execute("echo b > %s" % filepath)
192 filepath = "/proc/uid_procstat/set"
198 self.dut.shell.Execute("echo %d %s > %s" % (root_uid, state, filepath))
221 for filepath in filepaths:
222 self.assertTrue(self.dut.Exists(filepath),
[all …]
Dproc_utils.py80 def GetPermission(self, filepath): argument
82 out, err, r_code = self.shell.Execute('stat -c %%a %s' % filepath)
85 (filepath, out, err))
138 def ReadFileContent(self, filepath): argument
147 cmd = "cat %s" % filepath
153 % (filepath, err))
/test/vts-testcase/kernel/api/proc/
DVtsKernelProcFileApiTest.py145 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"
[all …]
/test/vts-testcase/kernel/api/sysfs/
DKernelApiSysfsTest.py132 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/tools/vts-core-tradefed/src/com/android/tradefed/util/
DTargetFileUtils.java71 public static String getPermission(String filepath, ITestDevice device) in getPermission() argument
73 CommandResult commandResult = device.executeShellV2Command("stat -c %a " + filepath); in getPermission()
169 public static boolean isReadOnly(String filepath, ITestDevice device) in isReadOnly() argument
171 String permissionBits = getPermission(filepath, device); in isReadOnly()
184 public static boolean isReadWriteOnly(String filepath, ITestDevice device) in isReadWriteOnly() argument
186 String permissionBits = getPermission(filepath, device); in isReadWriteOnly()
/test/vts/utils/python/file/
Dtarget_file_utils.py41 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/
DVtsHidlHandleDriver.cpp43 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/
Dtest_cases_parser.py162 def ReadCommentedTxt(self, filepath): argument
171 if not filepath:
175 with open(filepath, 'r') as f:
DKernelLtpTest.py143 filepath = os.path.join(dirpath, filename)
145 with open(filepath, 'rb') as f:
152 with open(filepath, 'wb') as f:
/test/vts-testcase/kernel/ltp/testcase/tools/
Dltp_test_cases.py258 def ReadCommentedTxt(self, filepath): argument
267 if not filepath:
271 with open(filepath, 'r') as f:
/test/vts-testcase/fuzz/kernel/syzkaller/
Dsyzkaller_test.py86 for filepath in files:
87 os.chmod(os.path.join(root, filepath), 0755)
/test/vts/drivers/resource/include/hidl_handle_driver/
DVtsHidlHandleDriver.h72 HandleId CreateFileHandle(string filepath, int flag, int mode,
/test/vts/utils/python/mirror/
Dmirror_tracker.py241 filepath, argument
281 mirror._createHandleForSingleFile(filepath, mode, ints)
Dresource_mirror.py674 def _createHandleForSingleFile(self, filepath, mode, int_data): argument
700 fd_message.file_name = filepath
/test/vts/drivers/resource/resource_manager/
DVtsResourceManager.cpp67 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()
/test/framework/harnesses/host_controller/
Dconsole.py159 filepath, kwargs = vti_client.LeaseJob(socket.gethostname(), True)
161 if filepath is not None:
180 filepath), **kwargs)