/libcore/luni/src/main/java/java/security/ |
AccessControlException.java | 28 private Permission perm; // Named as demanded by Serialized Form. field in class:AccessControlException 47 * @param perm 50 public AccessControlException(String message, Permission perm) { 52 this.perm = perm; 62 return perm;
|
AccessControlContext.java | 178 * @param perm 186 public void checkPermission(Permission perm) throws AccessControlException { 187 if (perm == null) { 191 if (!context[i].implies(perm)) { 193 + perm, perm); 197 inherited.checkPermission(perm);
|
/frameworks/base/services/java/com/android/server/am/ |
UriPermissionOwner.java | 69 for (UriPermission perm : readUriPermissions) { 70 perm.readOwners.remove(this); 71 if (perm.readOwners.size() == 0 && (perm.globalModeFlags 73 perm.modeFlags &= ~Intent.FLAG_GRANT_READ_URI_PERMISSION; 74 service.removeUriPermissionIfNeededLocked(perm); 81 for (UriPermission perm : writeUriPermissions) { 82 perm.writeOwners.remove(this); 83 if (perm.writeOwners.size() == 0 && (perm.globalModeFlag 98 UriPermission perm = it.next(); local 117 UriPermission perm = it.next(); local [all...] |
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
Permissions2Test.java | 73 FilePermission perm[] = new FilePermission[7]; local 74 perm[0] = readAllFiles; 75 perm[1] = allInCurrent; 76 perm[2] = new FilePermission(s + "tmp" + s + "test" + s + "*", 78 perm[3] = new FilePermission(s + "tmp" + s + "test" + s 80 perm[4] = alsoReadAllFiles; 81 perm[5] = readInFile; 82 perm[6] = new FilePermission("hello.file", "write"); 84 for (int i = 0; i < perm.length; i++) { 85 perms.add(perm[i]) 122 FilePermission perm[] = new FilePermission[7]; local 161 FilePermission perm[] = new FilePermission[7]; local [all...] |
AccessControlExceptionTest.java | 67 Permission perm = new AllPermission(); local 68 AccessControlException controlException = new AccessControlException("001", perm); 70 assertEquals("permission", perm, controlException.getPermission()); 84 Permission perm = new UnresolvedPermission("unresolvedType", local 86 AccessControlException ex = new AccessControlException("001", perm); 87 assertSame(ex.getPermission(), perm); local
|
PolicyTest.java | 233 FilePermission perm[] = new FilePermission[7]; local 234 perm[0] = new FilePermission("test1.file", "write"); 235 perm[1] = new FilePermission("test1.file", 237 perm[2] = new FilePermission(s + "tmp" + s + "test" + s + "*", 239 perm[3] = new FilePermission(s + "tmp" + s + "test" + s 241 perm[4] = new FilePermission(s + "windows" + "*", "delete"); 242 perm[5] = new FilePermission("aFile.file", "read"); 243 perm[6] = new FilePermission("hello.file", "write"); 245 for (int i = 0; i < perm.length; i++) { 246 perms.add(perm[i]) 364 SecurityPermission perm = new SecurityPermission( local [all...] |
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/ |
MockSecurityManager.java | 29 public void checkPermission(Permission perm) { 30 if (perm.equals(new RuntimePermission("createSecurityManager")) || 31 // perm.equals(new AWTPermission("accessEventQueue")) || 32 perm.equals(new RuntimePermission("createClassLoader")) || 33 perm.equals(new FilePermission(deletedFile,"delete")) || 34 perm.equals(new FilePermission(readedFile,"read")) || 35 perm.equals(new PropertyPermission("*", "read,write")) || 36 perm.equals(new PropertyPermission("key", "read")) || 37 perm.equals(new SecurityPermission("getPolicy")) || 38 // perm.equals(new AWTPermission("accessClipboard")) | [all...] |
/libcore/luni/src/main/java/java/util/ |
PropertyPermissionCollection.java | 38 public void add(Permission perm) { 40 Permission prev = permissions.put(perm.getName(), perm); 45 if (prev != null && !prev.getActions().equals(perm.getActions())) { 46 Permission np = new PropertyPermission(perm.getName(), 48 permissions.put(perm.getName(), np); 61 public boolean implies(Permission perm) { 64 if ((elemEnum.nextElement()).implies(perm)) { 73 return perm.getActions().equals("read,write") 74 && implies(new PropertyPermission(perm.getName(), "read") [all...] |
/system/core/init/ |
devices.h | 25 mode_t perm, unsigned int uid,
|
/bionic/libc/kernel/common/linux/ |
moduleparam.h | 42 unsigned int perm; member in struct:kernel_param 63 #define __module_param_call(prefix, name, set, get, arg, perm) static char __param_str_##name[] = prefix #name; static struct kernel_param const __param_##name __attribute_used__ __attribute__ ((unused,__section__ ("__param"),aligned(sizeof(void *)))) = { __param_str_##name, perm, set, get, arg } 65 #define module_param_call(name, set, get, arg, perm) __module_param_call(MODULE_PARAM_PREFIX, name, set, get, arg, perm) 67 #define module_param_named(name, value, type, perm) param_check_##type(name, &(value)); module_param_call(name, param_set_##type, param_get_##type, &value, perm); __MODULE_PARM_TYPE(name, #type) 69 #define module_param(name, type, perm) module_param_named(name, name, type, perm) 71 #define module_param_string(name, string, len, perm) static struct kparam_string __param_string_##name = { len, string }; module_param_call(name (…) [all...] |
/development/ndk/platforms/android-3/include/linux/ |
moduleparam.h | 42 unsigned int perm; member in struct:kernel_param 63 #define __module_param_call(prefix, name, set, get, arg, perm) static char __param_str_##name[] = prefix #name; static struct kernel_param const __param_##name __attribute_used__ __attribute__ ((unused,__section__ ("__param"),aligned(sizeof(void *)))) = { __param_str_##name, perm, set, get, arg } 65 #define module_param_call(name, set, get, arg, perm) __module_param_call(MODULE_PARAM_PREFIX, name, set, get, arg, perm) 67 #define module_param_named(name, value, type, perm) param_check_##type(name, &(value)); module_param_call(name, param_set_##type, param_get_##type, &value, perm); __MODULE_PARM_TYPE(name, #type) 69 #define module_param(name, type, perm) module_param_named(name, name, type, perm) 71 #define module_param_string(name, string, len, perm) static struct kparam_string __param_string_##name = { len, string }; module_param_call(name (…) [all...] |
/prebuilt/ndk/android-ndk-r4/platforms/android-3/arch-arm/usr/include/linux/ |
moduleparam.h | 42 unsigned int perm; member in struct:kernel_param 63 #define __module_param_call(prefix, name, set, get, arg, perm) static char __param_str_##name[] = prefix #name; static struct kernel_param const __param_##name __attribute_used__ __attribute__ ((unused,__section__ ("__param"),aligned(sizeof(void *)))) = { __param_str_##name, perm, set, get, arg } 65 #define module_param_call(name, set, get, arg, perm) __module_param_call(MODULE_PARAM_PREFIX, name, set, get, arg, perm) 67 #define module_param_named(name, value, type, perm) param_check_##type(name, &(value)); module_param_call(name, param_set_##type, param_get_##type, &value, perm); __MODULE_PARM_TYPE(name, #type) 69 #define module_param(name, type, perm) module_param_named(name, name, type, perm) 71 #define module_param_string(name, string, len, perm) static struct kparam_string __param_string_##name = { len, string }; module_param_call(name (…) [all...] |
/prebuilt/ndk/android-ndk-r4/platforms/android-4/arch-arm/usr/include/linux/ |
moduleparam.h | 42 unsigned int perm; member in struct:kernel_param 63 #define __module_param_call(prefix, name, set, get, arg, perm) static char __param_str_##name[] = prefix #name; static struct kernel_param const __param_##name __attribute_used__ __attribute__ ((unused,__section__ ("__param"),aligned(sizeof(void *)))) = { __param_str_##name, perm, set, get, arg } 65 #define module_param_call(name, set, get, arg, perm) __module_param_call(MODULE_PARAM_PREFIX, name, set, get, arg, perm) 67 #define module_param_named(name, value, type, perm) param_check_##type(name, &(value)); module_param_call(name, param_set_##type, param_get_##type, &value, perm); __MODULE_PARM_TYPE(name, #type) 69 #define module_param(name, type, perm) module_param_named(name, name, type, perm) 71 #define module_param_string(name, string, len, perm) static struct kparam_string __param_string_##name = { len, string }; module_param_call(name (…) [all...] |
/prebuilt/ndk/android-ndk-r4/platforms/android-5/arch-arm/usr/include/linux/ |
moduleparam.h | 42 unsigned int perm; member in struct:kernel_param 63 #define __module_param_call(prefix, name, set, get, arg, perm) static char __param_str_##name[] = prefix #name; static struct kernel_param const __param_##name __attribute_used__ __attribute__ ((unused,__section__ ("__param"),aligned(sizeof(void *)))) = { __param_str_##name, perm, set, get, arg } 65 #define module_param_call(name, set, get, arg, perm) __module_param_call(MODULE_PARAM_PREFIX, name, set, get, arg, perm) 67 #define module_param_named(name, value, type, perm) param_check_##type(name, &(value)); module_param_call(name, param_set_##type, param_get_##type, &value, perm); __MODULE_PARM_TYPE(name, #type) 69 #define module_param(name, type, perm) module_param_named(name, name, type, perm) 71 #define module_param_string(name, string, len, perm) static struct kparam_string __param_string_##name = { len, string }; module_param_call(name (…) [all...] |
/prebuilt/ndk/android-ndk-r4/platforms/android-5/arch-x86/usr/include/linux/ |
moduleparam.h | 42 unsigned int perm; member in struct:kernel_param 63 #define __module_param_call(prefix, name, set, get, arg, perm) static char __param_str_##name[] = prefix #name; static struct kernel_param const __param_##name __attribute_used__ __attribute__ ((unused,__section__ ("__param"),aligned(sizeof(void *)))) = { __param_str_##name, perm, set, get, arg } 65 #define module_param_call(name, set, get, arg, perm) __module_param_call(MODULE_PARAM_PREFIX, name, set, get, arg, perm) 67 #define module_param_named(name, value, type, perm) param_check_##type(name, &(value)); module_param_call(name, param_set_##type, param_get_##type, &value, perm); __MODULE_PARM_TYPE(name, #type) 69 #define module_param(name, type, perm) module_param_named(name, name, type, perm) 71 #define module_param_string(name, string, len, perm) static struct kparam_string __param_string_##name = { len, string }; module_param_call(name (…) [all...] |
/prebuilt/ndk/android-ndk-r4/platforms/android-8/arch-arm/usr/include/linux/ |
moduleparam.h | 42 unsigned int perm; member in struct:kernel_param 63 #define __module_param_call(prefix, name, set, get, arg, perm) static char __param_str_##name[] = prefix #name; static struct kernel_param const __param_##name __attribute_used__ __attribute__ ((unused,__section__ ("__param"),aligned(sizeof(void *)))) = { __param_str_##name, perm, set, get, arg } 65 #define module_param_call(name, set, get, arg, perm) __module_param_call(MODULE_PARAM_PREFIX, name, set, get, arg, perm) 67 #define module_param_named(name, value, type, perm) param_check_##type(name, &(value)); module_param_call(name, param_set_##type, param_get_##type, &value, perm); __MODULE_PARM_TYPE(name, #type) 69 #define module_param(name, type, perm) module_param_named(name, name, type, perm) 71 #define module_param_string(name, string, len, perm) static struct kparam_string __param_string_##name = { len, string }; module_param_call(name (…) [all...] |
/prebuilt/ndk/android-ndk-r4/platforms/android-8/arch-x86/usr/include/linux/ |
moduleparam.h | 42 unsigned int perm; member in struct:kernel_param 63 #define __module_param_call(prefix, name, set, get, arg, perm) static char __param_str_##name[] = prefix #name; static struct kernel_param const __param_##name __attribute_used__ __attribute__ ((unused,__section__ ("__param"),aligned(sizeof(void *)))) = { __param_str_##name, perm, set, get, arg } 65 #define module_param_call(name, set, get, arg, perm) __module_param_call(MODULE_PARAM_PREFIX, name, set, get, arg, perm) 67 #define module_param_named(name, value, type, perm) param_check_##type(name, &(value)); module_param_call(name, param_set_##type, param_get_##type, &value, perm); __MODULE_PARM_TYPE(name, #type) 69 #define module_param(name, type, perm) module_param_named(name, name, type, perm) 71 #define module_param_string(name, string, len, perm) static struct kparam_string __param_string_##name = { len, string }; module_param_call(name (…) [all...] |
/external/webkit/SunSpider/tests/sunspider-0.9/ |
access-fannkuch.js | 7 var perm = Array(n); 27 for (var i = 0; i < n; i++) perm[i] = perm1[i]; 32 while (!((k = perm[0]) == 0)) { 35 var temp = perm[i]; perm[i] = perm[k - i]; perm[k - i] = temp;
|
/external/webkit/SunSpider/tests/sunspider-0.9.1/ |
access-fannkuch.js | 7 var perm = Array(n); 27 for (var i = 0; i < n; i++) perm[i] = perm1[i]; 32 while (!((k = perm[0]) == 0)) { 35 var temp = perm[i]; perm[i] = perm[k - i]; perm[k - i] = temp;
|
/libcore/luni/src/test/java/tests/security/acl/ |
IAclEntryTest.java | 74 Permission perm = new PermissionImpl("Permission_1"); local 77 assertTrue(ae.addPermission(perm)); 78 assertFalse(ae.addPermission(perm)); 79 assertTrue(ae.checkPermission(perm)); 80 assertTrue(ae.removePermission(perm)); 81 assertFalse(ae.removePermission(perm)); 82 assertFalse(ae.checkPermission(perm)); 159 Permission perm = new PermissionImpl("Permission_1"); local 163 ae.addPermission(perm); 171 assertEquals(v.elementAt(0).toString(), perm.toString()) [all...] |
/external/kernel-headers/original/linux/ |
moduleparam.h | 38 unsigned int perm; member in struct:kernel_param 62 parameters. perm sets the visibility in driverfs: 000 means it's 65 #define __module_param_call(prefix, name, set, get, arg, perm) \ 70 = { __param_str_##name, perm, set, get, arg } 72 #define module_param_call(name, set, get, arg, perm) \ 73 __module_param_call(MODULE_PARAM_PREFIX, name, set, get, arg, perm) 78 #define module_param_named(name, value, type, perm) \ 80 module_param_call(name, param_set_##type, param_get_##type, &value, perm); \ 83 #define module_param(name, type, perm) \ 84 module_param_named(name, name, type, perm) [all...] |
/libcore/luni/src/test/java/tests/api/java/security/ |
AccessControlContextTest.java | 78 final Permission perm = new PropertyPermission("java.class.path", local 80 PermissionCollection col = perm.newPermissionCollection(); 81 col.add(perm); 86 acc.checkPermission(perm); 97 acc.checkPermission(perm); 156 FilePermission perm[] = new FilePermission[7]; local 157 perm[0] = new FilePermission("test1.file", "write"); 158 perm[1] = new FilePermission("test1.file", "read, execute, delete"); 159 perm[2] = new FilePermission(s + "tmp" + s + "test" + s + "*", 161 perm[3] = new FilePermission(s + "tmp" + s + "test" + [all...] |
/libcore/luni/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/ |
MockSecurityManager.java | 29 public void checkPermission(Permission perm) { 33 public void checkPermission(Permission perm, Object context) {
|
/external/skia/src/ports/ |
SkOSFile_stdio.cpp | 25 char perm[4]; local 26 char* p = perm; 35 SkFILE* f = (SkFILE*)::fopen(path, perm); 38 SkDebugf("sk_fopen failed for %s (%s), errno=%s\n", path, perm, strerror(errno));
|
/libcore/luni/src/test/java/libcore/java/lang/ |
ReflectionSecurityTest.java | 74 @Override public void checkPermission(Permission perm) { 75 actions.add("checkPermission: " + perm); 77 super.checkPermission(perm); 80 @Override public void checkPermission(Permission perm, Object context) { 81 actions.add("checkPermission: " + perm + ", " + context); 83 super.checkPermission(perm, context);
|