Home
last modified time | relevance | path

Searched refs:permission (Results 1 – 18 of 18) 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-testcase/kernel/api/sysfs/
DKernelApiSysfsTest.py71 permission = ''
73 permission = target_file_utils.GetPermission(path, self.shell)
80 return permission
87 permission = self.GetPathPermission(path, assert_if_absent)
88 if permission is None and not assert_if_absent:
90 asserts.assertTrue(target_file_utils.IsReadOnly(permission),
98 permission = self.GetPathPermission(path, assert_if_absent)
99 if permission is None and not assert_if_absent:
101 asserts.assertTrue(target_file_utils.IsReadWrite(permission),
/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/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/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/suite_harness/common/host-side/manifest-generator/src/com/android/compatibility/common/generator/
DManifestGenerator.java117 for (String permission : permissions) { in generate()
119 serializer.attribute(ns, "android:name", permission); in generate()
/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/mlts/benchmark/results/
DLICENSE10 The above copyright notice and this permission notice shall be included in all copies or substantia…
/test/vti/test_serving/gae/frontend/
DNOTICE12 The above copyright notice and this permission notice shall be included in
/test/vts/tools/build/tasks/
Dvts_package.mk184 frameworks/base/core/xsd/permission.xsd:$(VTS10_TESTCASES_OUT)/DATA/etc/permission.xsd
/test/suite_harness/common/util/tests/assets/
Dlogcat.txt31 06-15 19:57:33.607 12736 12761 D PermissionCache: checking android.permission.MODIFY_AUDIO_SETTINGS…
65 06-15 19:57:35.130 26201 26228 D PermissionCache: checking android.permission.MODIFY_AUDIO_SETTINGS…
303 06-15 19:57:33.607 12736 12761 D PermissionCache: checking android.permission.MODIFY_AUDIO_SETTINGS…
/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