Lines Matching refs:UserState
40 class UserState; variable
42 template <typename UserState> using LockedUserState = ProxyLock<UnlockProxyLockHelper<UserState>>;
44 class UserState {
46 explicit UserState(uid_t userId);
63 ResponseCode copyMasterKey(LockedUserState<UserState>* src);
64 ResponseCode copyMasterKeyFile(LockedUserState<UserState>* src);
72 bool operator<(const UserState& rhs) const;
99 bool operator<(uid_t userId, const UserState& rhs);
103 LockedUserState<UserState> getUserState(uid_t userId);
104 LockedUserState<UserState> getUserStateByUid(uid_t uid);
105 LockedUserState<const UserState> getUserState(uid_t userId) const;
106 LockedUserState<const UserState> getUserStateByUid(uid_t uid) const;
109 mutable std::set<const UserState*> locked_state_;
113 template <typename UserState>
114 LockedUserState<UserState> get(std::unique_lock<std::mutex> lock, UserState* entry) const { in get()
118 return {entry, [&](UserState* entry) { in get()
126 std::map<uid_t, UserState> mMasterKeys;