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