Home
last modified time | relevance | path

Searched refs:permission (Results 1 – 15 of 15) sorted by relevance

/test/vts-testcase/kernel/ltp/shell_environment/definitions/
Dpath_permission.py70 (path, permission, result)
71 for path, permission, result in zip(self._paths, self._permissions,
73 if str(permission) != result
84 commands = ["chmod {} {}".format(permission, path)
85 for (path, permission, result) in self._failed_paths]
91 for (path, permission, original) in self._failed_paths]
/test/vts/tools/vts-core-tradefed/tests/src/com/android/compatibility/tradefed/util/
DTargetFileUtilsTest.java45 String permission = "" + x + y + z; in testHasPermission() local
50 assertTrue(TargetFileUtils.hasPermission(FilePermission.READ, permission)); in testHasPermission()
56 assertTrue(TargetFileUtils.hasPermission(FilePermission.WRITE, permission)); in testHasPermission()
63 TargetFileUtils.hasPermission(FilePermission.EXECUTE, permission)); in testHasPermission()
70 private boolean hasPermission(int bit, FilePermission permission) { in hasPermission() argument
71 return (bit & permission.getPermissionNum()) != 0; in hasPermission()
/test/vts/utils/python/file/
Dtarget_file_utils.py150 def _HasPermission(permission_bits, groupIndex, permission): argument
183 if perm & permission == 0:
309 permission = GetPermission(path, shell)
311 check_permission(permission),
312 "%s: File has invalid permissions (%s)" % (path, permission))
/test/vts/testcases/host/kernel_proc_file_api_test/
Dvts_kernel_proc_file_api_test.py224 permission = self.dut.GetPermission(filepath)
225 self.assertTrue(target_file_utils.IsReadOnly(permission))
243 permission = self.dut.GetPermission(filepath)
244 self.assertTrue(target_file_utils.IsReadWrite(permission))
286 permission = self.dut.GetPermission(filepath)
288 self.assertTrue(test_object.get_permission_checker()(permission),
290 permission))
Dtarget_file_utils.py22 def _HasPermission(permission_bits, groupIndex, permission): argument
55 if perm & permission == 0:
/test/vts/tools/vts-core-tradefed/src/com/android/tradefed/util/
DTargetFileUtils.java55 public static boolean hasPermission(FilePermission permission, String permissionBits) { in hasPermission() argument
57 if (hasPermission(permissionBits, i, permission)) { in hasPermission()
93 String permissionBits, int groupIndex, FilePermission permission) { in hasPermission() argument
116 if ((perm & permission.getPermissionNum()) == 0) { in hasPermission()
/test/vts-testcase/security/system_property/
Dvts_treble_sys_prop_test.py34 def HasPermission(permission_bits, groupIndex, permission): argument
67 if perm & permission == 0:
437 permission = self.GetPermission(path)
438 self.assertTrue(check_permission(permission),
439 "%s: File has invalid permissions (%s)" % (path, permission))
/test/mlts/benchmark/src/com/android/nn/benchmark/util/
DTestExternalStorageActivity.java42 if (activity.checkSelfPermission(android.Manifest.permission.WRITE_EXTERNAL_STORAGE) in testWriteExternalStorage()
48 new String[]{android.Manifest.permission.WRITE_EXTERNAL_STORAGE}, 1); in testWriteExternalStorage()
/test/mts/tools/build/
Dconfig.mk34 permission \
/test/mlts/models/assets/asr_float/
DLICENSE26 permission to use material in ways otherwise restricted by
39 licenses, a licensor grants the public permission to use the
41 the licensor's permission is not necessary for any reason--for
75 permission under the Copyright and Similar Rights held by the
116 process that requires permission under the Licensed Rights, such
183 may be construed as permission to assert or imply that You
357 be made without permission under this Public License.
/test/vti/test_serving/gae/frontend/
DNOTICE12 The above copyright notice and this permission notice shall be included in
/test/mlts/benchmark/results/
DLICENSE10 The above copyright notice and this permission notice shall be included in all copies or substantia…
/test/vts/hals/light/bullhead/
DNOTICE151 6. Trademarks. This License does not grant permission to use the trade
/test/mlts/benchmark/
DLICENSE138 6. Trademarks. This License does not grant permission to use the trade
/test/mlts/models/
DLICENSE138 6. Trademarks. This License does not grant permission to use the trade