Home
last modified time | relevance | path

Searched refs:perm (Results 1 – 25 of 27) sorted by relevance

12

/libcore/ojluni/src/test/java/lang/invoke/
DPermuteArgsTest.java215 static MethodHandle findTestMH(String name, int[] perm) in findTestMH() argument
217 int arity = perm.length; in findTestMH()
238 int[] perm = nullPerm(mt.parameterCount()); in testPermutations() local
239 final int MARGIN = (perm.length <= 10 ? 2 : 0); in testPermutations()
242 int maxStart = perm.length-1; in testPermutations()
249 int end = perm.length - omit; in testPermutations()
252 testPermutations(mh, perm, start, end, done); in testPermutations()
259 reverse(perm, 0, perm.length); in testPermutations()
261 switch (perm.length) { in testPermutations()
270 static void testPermutations(MethodHandle mh, int[] perm, int start, int end, in testPermutations() argument
[all …]
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
DJarFileFactory.java126 Permission perm = getPermission(result); in getCachedJarFile() local
127 if (perm != null) { in getCachedJarFile()
131 sm.checkPermission(perm); in getCachedJarFile()
135 if ((perm instanceof java.io.FilePermission) && in getCachedJarFile()
136 perm.getActions().indexOf("read") != -1) { in getCachedJarFile()
137 sm.checkRead(perm.getName()); in getCachedJarFile()
138 } else if ((perm instanceof in getCachedJarFile()
140 perm.getActions().indexOf("connect") != -1) { in getCachedJarFile()
/libcore/ojluni/src/main/java/java/security/
DAccessControlException.java49 private Permission perm; field in AccessControlException
71 perm = p; in AccessControlException()
81 return perm; in getPermission()
DAccessControlContext.java110 public void checkPermission(Permission perm) in checkPermission() argument
DAccessController.java148 public static void checkPermission(Permission perm) in checkPermission() argument
/libcore/luni/src/test/java/libcore/java/nio/file/
DFilesTest.java150 Set<PosixFilePermission> perm = PosixFilePermissions.fromString("rwx------"); in test_createFile$String$Attr() local
151 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_createFile$String$Attr()
156 perm = PosixFilePermissions.fromString("rw-------"); in test_createFile$String$Attr()
157 FileAttribute<Set<PosixFilePermission>> attr1 = PosixFilePermissions.asFileAttribute(perm); in test_createFile$String$Attr()
172 Set<PosixFilePermission> perm = PosixFilePermissions.fromString("rwx------"); in test_createDirectory_delegation() local
173 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_createDirectory_delegation()
201 Set<PosixFilePermission> perm = PosixFilePermissions.fromString("rwx------"); in test_createDirectories$Path$Attr() local
202 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_createDirectories$Path$Attr()
208 perm = PosixFilePermissions.fromString("rw-------"); in test_createDirectories$Path$Attr()
209 FileAttribute<Set<PosixFilePermission>> attr1 = PosixFilePermissions.asFileAttribute(perm); in test_createDirectories$Path$Attr()
[all …]
DFiles2Test.java223 Set<PosixFilePermission> perm = PosixFilePermissions.fromString("rwx------"); in test_getPosixFilePermissions() local
224 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_getPosixFilePermissions()
239 Set<PosixFilePermission> perm = PosixFilePermissions.fromString("rwx------"); in test_setPosixFilePermissions() local
240 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_setPosixFilePermissions()
241 Files.setPosixFilePermissions(filesSetup.getDataFilePath(), perm); in test_setPosixFilePermissions() local
247 Set<PosixFilePermission> perm = PosixFilePermissions.fromString("rwx------"); in test_setPosixFilePermissions_NPE() local
248 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_setPosixFilePermissions_NPE()
250 Files.setPosixFilePermissions(null, perm); in test_setPosixFilePermissions_NPE()
525 Set<PosixFilePermission> perm = PosixFilePermissions.fromString("-wxrwxrwx"); in test_isReadable() local
526 Files.setPosixFilePermissions(filesSetup.getDataFilePath(), perm); in test_isReadable() local
[all …]
DDefaultFileSystemProviderTest.java426 Set<PosixFilePermission> perm = PosixFilePermissions.fromString("rwx------"); in test_createDirectory$String$FileAttr() local
427 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_createDirectory$String$FileAttr()
432 perm = PosixFilePermissions.fromString("rw-------"); in test_createDirectory$String$FileAttr()
433 FileAttribute<Set<PosixFilePermission>> attr1 = PosixFilePermissions.asFileAttribute(perm); in test_createDirectory$String$FileAttr()
442 Set<PosixFilePermission> perm = PosixFilePermissions.fromString("rwx------"); in test_createDirectory$String$FileAttr_NPE() local
443 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_createDirectory$String$FileAttr_NPE()
503 Set<PosixFilePermission> perm = PosixFilePermissions.fromString("rwx------"); in test_createSymbolicLink$Path$Attr() local
505 .asFileAttribute(perm); in test_createSymbolicLink$Path$Attr()
514 Set<PosixFilePermission> perm = PosixFilePermissions.fromString("rwx------"); in test_createSymbolicLink$Path$Attr_NPE() local
516 .asFileAttribute(perm); in test_createSymbolicLink$Path$Attr_NPE()
DDefaultFileSystemProvider2Test.java534 Set<PosixFilePermission> perm = PosixFilePermissions.fromString("rwx------"); in test_newFileChannel_withFileAttributes() local
536 PosixFilePermissions.asFileAttribute(perm); in test_newFileChannel_withFileAttributes()
/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixFileModeAttribute.java50 for (PosixFilePermission perm: perms) { in toUnixMode()
51 if (perm == null) in toUnixMode()
53 switch (perm) { in toUnixMode()
DUnixFileSystemProvider.java506 FilePermission perm = new FilePermission(link.getPathForPermissionCheck(), in readSymbolicLink() local
508 sm.checkPermission(perm); in readSymbolicLink()
/libcore/luni/src/test/java/libcore/java/lang/
DOldRuntimeTest.java78 public void checkPermission(Permission perm) { in test_addShutdownHook()
79 if (perm.getName().equals("shutdownHooks")) { in test_addShutdownHook()
117 public void checkPermission(Permission perm) { in test_execLjava_lang_StringLjava_lang_StringArray()
118 if (perm.getName().equals("checkExec")) { in test_execLjava_lang_StringLjava_lang_StringArray()
164 public void checkPermission(Permission perm) { in test_execLjava_lang_StringArrayLjava_lang_StringArray()
165 if (perm.getName().equals("checkExec")) { in test_execLjava_lang_StringArrayLjava_lang_StringArray()
210 public void checkPermission(Permission perm) { in test_execLjava_lang_StringLjava_lang_StringArrayLjava_io_File()
211 if (perm.getName().equals("checkExec")) { in test_execLjava_lang_StringLjava_lang_StringArrayLjava_io_File()
259 public void checkPermission(Permission perm) { in test_execLjava_lang_StringArrayLjava_lang_StringArrayLjava_io_File()
260 if (perm.getName().equals("checkExec")) { in test_execLjava_lang_StringArrayLjava_lang_StringArrayLjava_io_File()
/libcore/ojluni/src/main/java/java/lang/
DSecurityManager.java125 public void checkPermission(Permission perm) { in checkPermission() argument
129 public void checkPermission(Permission perm, Object context) { in checkPermission() argument
/libcore/ojluni/src/main/java/sun/misc/
DURLClassPath.java658 Permission perm = urlConnection.getPermission();
659 if (perm != null) {
661 security.checkPermission(perm);
665 if ((perm instanceof java.io.FilePermission) &&
666 perm.getActions().indexOf("read") != -1) {
667 security.checkRead(perm.getName());
668 } else if ((perm instanceof
670 perm.getActions().indexOf("connect") != -1) {
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DLambdaTestHelpers.java431 List<List<Function<S, S>>> opFunctionPermutations = perm(opFunctions);
453 public static <T> List<List<T>> perm(List<T> l) {
456 for (List<T> perm : perm(sub(l, i))) {
457 perm.add(0, l.get(i));
458 result.add(perm);
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DLambdaTestHelpers.java418 List<List<Function<S, S>>> opFunctionPermutations = perm(opFunctions);
440 public static <T> List<List<T>> perm(List<T> l) {
443 for (List<T> perm : perm(sub(l, i))) {
444 perm.add(0, l.get(i));
445 result.add(perm);
/libcore/ojluni/src/main/java/java/nio/file/attribute/
DAclEntry.java396 for (AclEntryPermission perm: perms) { in toString()
397 sb.append(perm.name()); in toString()
/libcore/ojluni/src/test/java/util/EnumMap/
DEnumMapBash.java69 Enum[] perm = (Enum[]) universe.clone(); in bash() local
70 Collections.shuffle(Arrays.asList(perm)); in bash()
71 T head = (T) perm[0]; in bash()
73 m.put((T)perm[j], (T)perm[j + 1]); in bash()
74 T nil = (T)perm[mapSize]; in bash()
/libcore/ojluni/src/test/java/nio/file/attribute/
DPosixFileAttributeViewTest.java84 for (PosixFilePermission perm: actual) { in checkSecure()
85 if (!requested.contains(perm)) { in checkSecure()
/libcore/luni/src/test/java/tests/java/nio/file/attribute/
DPosixFilePermissionsTest.java89 public String perm; field in PosixFilePermissionsTest
/libcore/ojluni/src/main/java/java/util/prefs/
DFileSystemPreferences.java891 int perm = (usernode? USER_READ_WRITE: USER_RW_ALL_READ);
892 result = lockFile0(lockFile.getCanonicalPath(), perm, shared);
/libcore/ojluni/src/main/java/java/util/
DCalendar.java3606 … RuntimePermission perm = new RuntimePermission("accessClassInPackage.sun.util.calendar");
3607 PermissionCollection perms = perm.newPermissionCollection();
3608 perms.add(perm);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/
DJarFileTest.java144 public void checkPermission(Permission perm) {
145 if (perm.getName().equals(forbidenPermissionName)) {
/libcore/jsr166-tests/src/test/java/jsr166/
DJSR166TestCase.java1154 void addPermission(Permission perm) { perms.add(perm); }
/libcore/ojluni/src/test/java/util/concurrent/tck/
DJSR166TestCase.java1424 void addPermission(Permission perm) { perms.add(perm); }

12