Lines Matching refs:uid
38 const String16& permission, uid_t uid) const { in check()
42 e.uid = uid; in check()
52 uid_t uid, bool granted) { in cache() argument
64 e.uid = uid; in cache()
85 uid_t uid = ipcState->getCallingUid(); in checkCallingPermission() local
87 if (outUid) *outUid = uid; in checkCallingPermission()
88 return PermissionCache::checkPermission(permission, pid, uid); in checkCallingPermission()
92 const String16& permission, pid_t pid, uid_t uid) { in checkPermission() argument
93 if ((uid == 0) || (pid == getpid())) { in checkPermission()
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()