Lines Matching refs:permission
38 const String16& permission, uid_t uid) const { in check() argument
41 e.name = permission; in check()
51 void PermissionCache::cache(const String16& permission, in cache() argument
55 ssize_t index = mPermissionNamesPool.indexOf(permission); in cache()
59 mPermissionNamesPool.add(permission); in cache()
60 e.name = permission; in cache()
77 bool PermissionCache::checkCallingPermission(const String16& permission) { in checkCallingPermission() argument
78 return PermissionCache::checkCallingPermission(permission, NULL, NULL); in checkCallingPermission()
82 const String16& permission, int32_t* outPid, int32_t* outUid) { in checkCallingPermission() argument
88 return PermissionCache::checkPermission(permission, pid, uid); in checkCallingPermission()
92 const String16& permission, pid_t pid, uid_t uid) { in checkPermission() argument
100 if (pc.check(&granted, permission, uid) != NO_ERROR) { in checkPermission()
102 granted = android::checkPermission(permission, pid, uid); in checkPermission()
105 String8(permission).string(), uid, in checkPermission()
107 pc.cache(permission, uid, granted); in checkPermission()