Home
last modified time | relevance | path

Searched refs:permission_bits (Results 1 – 4 of 4) sorted by relevance

/test/vts/testcases/host/kernel_proc_file_api_test/
Dtarget_file_utils.py22 def _HasPermission(permission_bits, groupIndex, permission): argument
41 if len(permission_bits) != _PERMISSION_GROUPS:
42 raise ValueError("Invalid permission bits: %s" % str(permission_bits))
52 perm = int(permission_bits[i]) # throws ValueError if not an integer
62 def IsReadable(permission_bits): argument
75 _HasPermission(permission_bits, i, _READ_PERMISSION)
80 def IsWritable(permission_bits): argument
93 _HasPermission(permission_bits, i, _WRITE_PERMISSION)
98 def IsExecutable(permission_bits): argument
111 _HasPermission(permission_bits, i, _EXECUTE_PERMISSION)
[all …]
/test/vts/utils/python/file/
Dtarget_file_utils.py150 def _HasPermission(permission_bits, groupIndex, permission): argument
169 if len(permission_bits) != _PERMISSION_GROUPS:
170 raise ValueError("Invalid permission bits: %s" % str(permission_bits))
180 perm = int(permission_bits[i]) # throws ValueError if not an integer
190 def IsReadable(permission_bits): argument
203 _HasPermission(permission_bits, i, _READ_PERMISSION)
208 def IsWritable(permission_bits): argument
221 _HasPermission(permission_bits, i, _WRITE_PERMISSION)
226 def IsExecutable(permission_bits): argument
239 _HasPermission(permission_bits, i, _EXECUTE_PERMISSION)
[all …]
/test/vts-testcase/security/system_property/
Dvts_treble_sys_prop_test.py34 def HasPermission(permission_bits, groupIndex, permission): argument
53 if len(permission_bits) != PERMISSION_GROUPS:
54 raise ValueError("Invalid permission bits: %s" % str(permission_bits))
64 perm = int(permission_bits[i]) # throws ValueError if not an integer
74 def IsReadable(permission_bits): argument
87 HasPermission(permission_bits, i, READ_PERMISSION)
/test/vts/testcases/host/kernel_proc_file_api_test/proc_tests/
DProcSimpleFileTests.py445 def IsReadWriteOrWriteOnly(self, permission_bits): argument
446 return (target_file_utils.IsReadWrite(permission_bits) or
447 target_file_utils.IsWriteOnly(permission_bits))