Home
last modified time | relevance | path

Searched refs:reasonFlag (Results 1 - 17 of 17) sorted by relevance

/base/theme/screenlock_mgr/services/src/
H A Dstrongauthmanager.cpp106 int32_t reasonFlag = static_cast<int32_t>(StrongAuthReasonFlags::AFTER_TIMEOUT); in StrongAuthTimerCallback() local
108 StrongAuthManger::GetInstance()->SetStrongAuthStat(userId, reasonFlag); in StrongAuthTimerCallback()
109 ScreenLockSystemAbility::GetInstance()->StrongAuthChanged(userId, reasonFlag); in StrongAuthTimerCallback()
244 void StrongAuthManger::SetStrongAuthStat(int32_t userId, int32_t reasonFlag) in SetStrongAuthStat() argument
249 iter->second = reasonFlag; in SetStrongAuthStat()
250 SCLOCK_HILOGI("SetStrongAuthStat, reasonFlag:%{public}u", reasonFlag); in SetStrongAuthStat()
253 strongAuthStateInfo.insert(std::make_pair(userId, reasonFlag)); in SetStrongAuthStat()
260 int32_t reasonFlag = static_cast<int32_t>(StrongAuthReasonFlags::AFTER_BOOT); in GetStrongAuthStat() local
263 reasonFlag in GetStrongAuthStat()
[all...]
H A Dscreenlock_manager_stub.cpp243 int32_t reasonFlag = data.ReadInt32(); in OnRequestStrongAuth() local
245 SCLOCK_HILOGD("OnRequestStrongAuth. reasonFlag=%{public}d", reasonFlag); in OnRequestStrongAuth()
246 int32_t retCode = RequestStrongAuth(reasonFlag, userId); in OnRequestStrongAuth()
253 int32_t reasonFlag = -1; in OnGetStrongAuth() local
255 int32_t retCode = GetStrongAuth(userId, reasonFlag); in OnGetStrongAuth()
256 SCLOCK_HILOGI("userId=%{public}d, reasonFlag=%{public}d", userId, reasonFlag); in OnGetStrongAuth()
259 reply.WriteInt32(reasonFlag); in OnGetStrongAuth()
H A Dscreenlock_system_ability.cpp353 void ScreenLockSystemAbility::StrongAuthChanged(int32_t userId, int32_t reasonFlag) in StrongAuthChanged() argument
357 systemEvent.params_ = std::to_string(reasonFlag); in StrongAuthChanged()
359 SCLOCK_HILOGI("StrongAuthChanged: userId: %{public}d, reasonFlag:%{public}d", userId, reasonFlag); in StrongAuthChanged()
598 int32_t ScreenLockSystemAbility::RequestStrongAuth(int reasonFlag, int32_t userId) in RequestStrongAuth() argument
600 SCLOCK_HILOGI("RequestStrongAuth reasonFlag=%{public}d ,userId=%{public}d", reasonFlag, userId); in RequestStrongAuth()
605 StrongAuthManger::GetInstance()->SetStrongAuthStat(userId, reasonFlag); in RequestStrongAuth()
606 StrongAuthChanged(userId, reasonFlag); in RequestStrongAuth()
610 int32_t ScreenLockSystemAbility::GetStrongAuth(int userId, int32_t &reasonFlag) in GetStrongAuth() argument
[all...]
/base/theme/screenlock_mgr/interfaces/inner_api/include/
H A Dscreenlock_manager_interface.h44 virtual int32_t RequestStrongAuth(int reasonFlag, int32_t userId) = 0;
45 virtual int32_t GetStrongAuth(int32_t userId, int32_t &reasonFlag) = 0;
H A Dscreenlock_manager.h53 SCREENLOCK_API int32_t RequestStrongAuth(int reasonFlag, int32_t userId);
/base/theme/screenlock_mgr/frameworks/native/src/
H A Dscreenlock_app_manager.cpp117 int32_t ScreenLockAppManager::RequestStrongAuth(int reasonFlag, int32_t userId) in RequestStrongAuth() argument
125 int32_t status = proxy->RequestStrongAuth(reasonFlag, userId); in RequestStrongAuth()
131 int32_t ScreenLockAppManager::GetStrongAuth(int userId, int32_t &reasonFlag) in GetStrongAuth() argument
139 int32_t status = proxy->GetStrongAuth(userId, reasonFlag); in GetStrongAuth()
H A Dscreenlock_manager.cpp129 int32_t ScreenLockManager::RequestStrongAuth(int reasonFlag, int32_t userId) in RequestStrongAuth() argument
136 return proxy->RequestStrongAuth(reasonFlag, userId); in RequestStrongAuth()
H A Dscreenlock_manager_proxy.cpp321 int32_t ScreenLockManagerProxy::RequestStrongAuth(int reasonFlag, int32_t userId) in RequestStrongAuth() argument
327 data.WriteInt32(reasonFlag); in RequestStrongAuth()
342 int32_t ScreenLockManagerProxy::GetStrongAuth(int userId, int32_t &reasonFlag) in GetStrongAuth() argument
357 reasonFlag = reply.ReadInt32(); in GetStrongAuth()
358 SCLOCK_HILOGD("GetStrongAuth end retCode is %{public}d, %{public}d.", retCode, reasonFlag); in GetStrongAuth()
/base/theme/screenlock_mgr/test/fuzztest/screenlockmanager_fuzzer/
H A Dscreenlockmanager_fuzzer.cpp158 int reasonFlag = 1; in FuzzScreenlockRequestStrongAuth() local
159 int32_t ret = ScreenLockAppManager::GetInstance()->RequestStrongAuth(reasonFlag, userId); in FuzzScreenlockRequestStrongAuth()
169 int reasonFlag = 1; in FuzzScreenlockGetStrongAuth() local
170 int32_t ret = ScreenLockAppManager::GetInstance()->GetStrongAuth(userId, reasonFlag); in FuzzScreenlockGetStrongAuth()
/base/theme/screenlock_mgr/frameworks/native/include/
H A Dscreenlock_app_manager.h48 SCREENLOCK_API int32_t RequestStrongAuth(int reasonFlag, int32_t userId);
49 SCREENLOCK_API int32_t GetStrongAuth(int userId, int32_t &reasonFlag);
H A Dscreenlock_manager_proxy.h47 int32_t RequestStrongAuth(int reasonFlag, int32_t userId) override;
48 int32_t GetStrongAuth(int userId, int32_t &reasonFlag) override;
/base/theme/screenlock_mgr/frameworks/js/napi/include/
H A Dnapi_screenlock_ability.h78 int32_t reasonFlag; member
83 : Context(nullptr, nullptr), reasonFlag(-1), userId(-1), status(napi_generic_failure), in ScreenLockStrongAuthInfo()
86 : Context(std::move(input), std::move(output)), reasonFlag(-1), userId(-1), in ScreenLockStrongAuthInfo()
/base/theme/screenlock_mgr/services/include/
H A Dscreenlock_system_ability.h159 int32_t RequestStrongAuth(int reasonFlag, int32_t userId) override;
160 int32_t GetStrongAuth(int userId, int32_t &reasonFlag) override;
165 void StrongAuthChanged(int32_t userId, int32_t reasonFlag);
H A Dstrongauthmanager.h44 void SetStrongAuthStat(int32_t userId, int32_t reasonFlag);
/base/theme/screenlock_mgr/test/unittest/
H A Dscreenlock_client_test.cpp274 int32_t reasonFlag = 0; in HWTEST_F() local
275 result = ScreenLockAppManager::GetInstance()->GetStrongAuth(userId, reasonFlag); in HWTEST_F()
331 int32_t reasonFlag = 0; in HWTEST_F() local
332 result = proxy->GetStrongAuth(userId, reasonFlag); in HWTEST_F()
H A Dscreenlock_service_test.cpp627 int reasonFlag = 1; in HWTEST_F() local
628 int32_t ret = ScreenLockSystemAbility::GetInstance()->RequestStrongAuth(reasonFlag, userId); in HWTEST_F()
630 ret = ScreenLockSystemAbility::GetInstance()->GetStrongAuth(userId, reasonFlag); in HWTEST_F()
633 EXPECT_EQ(reasonFlag, 1); in HWTEST_F()
/base/theme/screenlock_mgr/frameworks/js/napi/src/
H A Dnapi_screenlock_ability.cpp698 napi_get_value_int32(env, argv[ARGV_ZERO], &context->reasonFlag); in NAPI_RequestStrongAuth()
713 int32_t retCode = ScreenLockAppManager::GetInstance()->RequestStrongAuth(context->reasonFlag, in NAPI_RequestStrongAuth()
750 int32_t reasonFlag = -1; in NAPI_GetStrongAuth() local
751 int32_t status = ScreenLockAppManager::GetInstance()->GetStrongAuth(userId, reasonFlag); in NAPI_GetStrongAuth()
759 SCLOCK_HILOGI("NAPI_GetStrongAuth [reasonFlag]=%{public}d", reasonFlag); in NAPI_GetStrongAuth()
760 napi_create_int32(env, reasonFlag, &result); in NAPI_GetStrongAuth()

Completed in 11 milliseconds