/dalvik/libcore/security/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;
|
/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));
|
/dalvik/libcore/security/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...] |
IAclTest.java | 147 Permission perm = new PermissionImpl("Permission_1"); local 149 ae.addPermission(perm); 152 assertTrue(res.contains(perm.toString())); 209 Permission perm = new PermissionImpl("Permission_1"); local 211 ae.addPermission(perm); 215 assertTrue("Incorrect permission", acl.checkPermission(pr, perm)); 225 assertEquals(v.elementAt(0).toString(), perm.toString());
|
/dalvik/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") //$NON-NLS-1$ 74 && implies(new PropertyPermission(perm.getName(), "read")) //$NON-NLS-1 [all...] |
/dalvik/libcore/security/src/test/java/org/apache/harmony/security/tests/java/security/ |
AccessControlExceptionTest.java | 75 Permission perm = new AllPermission(); local 76 AccessControlException controlException = new AccessControlException("001", perm); 78 assertEquals("permission", perm, controlException.getPermission()); 92 Permission perm = new UnresolvedPermission("unresolvedType", local 94 AccessControlException ex = new AccessControlException("001", perm); 95 assertSame(ex.getPermission(), perm); local
|
PermissionCollectionTest.java | 103 Set<Permission> perm = new HashSet<Permission>(); local 105 perm.add(p); 106 PermissionCollection pc = new RealPermissionCollection(perm);
|
AccessController2Test.java | 193 * @tests java.security.AccessController#checkPermission(Permission perm) 212 * @tests java.security.AccessController#checkPermission(Permission perm) 223 Permission perm; local 236 perm = new RealPermission(perm_invalid[i]); 237 AccessController.checkPermission(perm);
|
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...] |
PolicyTest.java | 322 FilePermission perm[] = new FilePermission[7]; local 323 perm[0] = new FilePermission("test1.file", "write"); 324 perm[1] = new FilePermission("test1.file", 326 perm[2] = new FilePermission(s + "tmp" + s + "test" + s + "*", 328 perm[3] = new FilePermission(s + "tmp" + s + "test" + s 330 perm[4] = new FilePermission(s + "windows" + "*", "delete"); 331 perm[5] = new FilePermission("aFile.file", "read"); 332 perm[6] = new FilePermission("hello.file", "write"); 334 for (int i = 0; i < perm.length; i++) { 335 perms.add(perm[i]) 453 SecurityPermission perm = new SecurityPermission( local [all...] |
/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...] |
/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...] |
/frameworks/base/core/java/android/accounts/ |
AbstractAccountAuthenticator.java | 336 final String perm = Manifest.permission.ACCOUNT_MANAGER; local 337 if (mContext.checkCallingOrSelfPermission(perm) != PackageManager.PERMISSION_GRANTED) { 338 throw new SecurityException("caller uid " + uid + " lacks " + perm);
|
/ndk/build/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...] |
/ndk/build/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...] |
/ndk/build/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...] |
/ndk/build/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...] |
/ndk/build/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...] |
/ndk/build/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...] |
/dalvik/libcore/logging/src/main/java/java/util/logging/ |
LogManager.java | 132 private static final LoggingPermission perm = new LoggingPermission( field in class:LogManager 273 System.getSecurityManager().checkPermission(perm);
|
/dalvik/libcore/luni/src/main/java/java/lang/ |
SecurityManager.java | 556 Object perm = constructor local 558 checkPermission((Permission) perm); 583 Object perm = constructor.newInstance("accessClipboard"); //$NON-NLS-1$ local 584 checkPermission((Permission) perm); 608 Object perm = constructor.newInstance("accessEventQueue"); //$NON-NLS-1$ local 609 checkPermission((Permission) perm);
|
/dalvik/libcore/luni/src/test/java/tests/api/java/io/ |
FilePermissionTest.java | 204 FilePermission perm[] = new FilePermission[4]; local 205 perm[0] = readAllFiles; 206 perm[1] = allInCurrent; 207 perm[2] = new FilePermission(s + "tmp" + s + "test" + s + "*", 209 perm[3] = new FilePermission(s + "tmp" + s + "test" + s 212 PermissionCollection collect = perm[0].newPermissionCollection(); 213 for (int i = 0; i < perm.length; i++) { 214 collect.add(perm[i]);
|
/system/core/init/ |
init.h | 24 int create_socket(const char *name, int type, mode_t perm, 101 int perm; member in struct:socketinfo
|
/dalvik/libcore/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/ |
FilePreferencesImplTest.java | 307 public void checkPermission(Permission perm) { 308 if (perm instanceof FilePermission) { 311 dflt.checkPermission(perm); 316 public void checkPermission(Permission perm, Object ctx) { 317 if (perm instanceof FilePermission) { 318 System.out.println(perm.getActions()); 321 dflt.checkPermission(perm, ctx);
|
/dalvik/libcore/security/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); 180 FilePermission perm[] = new FilePermission[7]; local 181 perm[0] = new FilePermission("test1.file", "write"); 182 perm[1] = new FilePermission("test1.file", "read, execute, delete"); 183 perm[2] = new FilePermission(s + "tmp" + s + "test" + s + "*", 185 perm[3] = new FilePermission(s + "tmp" + s + "test" + [all...] |