Lines Matching refs:uid

77     void store_sid(uint32_t uid, uint64_t sid) {  in store_sid()  argument
79 sprintf(filename, "%u", uid); in store_sid()
103 void maybe_store_sid(uint32_t uid, uint64_t sid) { in maybe_store_sid() argument
105 sprintf(filename, "%u", uid); in maybe_store_sid()
107 store_sid(uid, sid); in maybe_store_sid()
111 uint64_t read_sid(uint32_t uid) { in read_sid() argument
114 sprintf(filename, "%u", uid); in read_sid()
122 void clear_sid(uint32_t uid) { in clear_sid() argument
124 sprintf(filename, "%u", uid); in clear_sid()
127 store_sid(uid, 0); in clear_sid()
131 virtual int enroll(uint32_t uid, in enroll() argument
160 … ret = device->enroll(device, uid, current_password_handle, current_password_handle_length, in enroll()
165 ret = soft_device->enroll(uid, in enroll()
175 store_sid(uid, handle->user_id); in enroll()
180 verify(uid, *enrolled_password_handle, sizeof(password_handle_t), desired_password, in enroll()
187 virtual int verify(uint32_t uid, in verify() argument
192 return verifyChallenge(uid, 0, enrolled_password_handle, enrolled_password_handle_length, in verify()
197 virtual int verifyChallenge(uint32_t uid, uint64_t challenge, in verifyChallenge() argument
219 ret = device->verify(device, uid, challenge, in verifyChallenge()
226 ret = soft_dev.verify(uid, challenge, in verifyChallenge()
237 ret = soft_device->verify(uid, challenge, in verifyChallenge()
259 maybe_store_sid(uid, reinterpret_cast<const gatekeeper::password_handle_t *>( in verifyChallenge()
266 virtual uint64_t getSecureUserId(uint32_t uid) { in getSecureUserId() argument
267 uint64_t sid = read_sid(uid); in getSecureUserId()
273 int32_t parent = um->getCredentialOwnerProfile(uid); in getSecureUserId()
276 } else if (parent != (int32_t) uid) { in getSecureUserId()
284 virtual void clearSecureUserId(uint32_t uid) { in clearSecureUserId() argument
292 clear_sid(uid); in clearSecureUserId()
295 device->delete_user(device, uid); in clearSecureUserId()
302 const int uid = ipc->getCallingUid(); in dump() local
303 if (!PermissionCache::checkPermission(DUMP_PERMISSION, pid, uid)) { in dump()