Lines Matching refs:userId
97 void StrongAuthManger::authTimer::SetUserId(int32_t userId)
99 userId_ = userId;
102 static void StrongAuthTimerCallback(int32_t userId)
105 uint64_t timerId = StrongAuthManger::GetInstance()->GetTimerId(userId);
107 StrongAuthManger::GetInstance()->ResetStrongAuthTimer(userId);
108 StrongAuthManger::GetInstance()->SetStrongAuthStat(userId, reasonFlag);
109 ScreenLockSystemAbility::GetInstance()->StrongAuthChanged(userId, reasonFlag);
137 uint64_t StrongAuthManger::GetTimerId(int32_t userId)
140 auto iter = strongAuthTimerInfo.find(userId);
170 void StrongAuthManger::AuthEventListenerService::OnNotifyAuthSuccessEvent(int32_t userId,
173 SCLOCK_HILOGI("OnNotifyAuthSuccessEvent: %{public}d, %{public}d, %{public}s, callerType: %{public}d", userId,
176 StrongAuthManger::GetInstance()->SetStrongAuthStat(userId, static_cast<int32_t>(StrongAuthReasonFlags::NONE));
177 StrongAuthManger::GetInstance()->ResetStrongAuthTimer(userId);
191 void StrongAuthManger::StartStrongAuthTimer(int32_t userId)
194 uint64_t timerId = GetTimerId(userId);
196 SCLOCK_HILOGI("StrongAuthTimer exist. userId:%{public}d", userId);
202 timer->SetUserId(userId);
206 strongAuthTimerInfo.insert(std::make_pair(userId, timerId));
210 void StrongAuthManger::ResetStrongAuthTimer(int32_t userId)
212 uint64_t timerId = GetTimerId(userId);
214 StartStrongAuthTimer(userId);
231 void StrongAuthManger::DestroyStrongAuthTimer(int32_t userId)
234 uint64_t timerId = GetTimerId(userId);
240 strongAuthTimerInfo.erase(userId);
244 void StrongAuthManger::SetStrongAuthStat(int32_t userId, int32_t reasonFlag)
247 auto iter = strongAuthStateInfo.find(userId);
253 strongAuthStateInfo.insert(std::make_pair(userId, reasonFlag));
257 int32_t StrongAuthManger::GetStrongAuthStat(int32_t userId)
261 auto iter = strongAuthStateInfo.find(userId);
262 if (IsOsAccountUnlocked(userId) && iter != strongAuthStateInfo.end()) {