Home
last modified time | relevance | path

Searched refs:authState (Results 1 - 13 of 13) sorted by relevance

/base/theme/screenlock_mgr/interfaces/inner_api/include/
H A Dscreenlock_manager_interface.h42 virtual int32_t SetScreenLockAuthState(int authState, int32_t userId, std::string &authToken) = 0;
43 virtual int32_t GetScreenLockAuthState(int userId, int32_t &authState) = 0;
/base/theme/screenlock_mgr/frameworks/native/src/
H A Dscreenlock_app_manager.cpp91 int32_t ScreenLockAppManager::SetScreenLockAuthState(int authState, int32_t userId, std::string &authToken) in SetScreenLockAuthState() argument
99 int32_t status = proxy->SetScreenLockAuthState(authState, userId, authToken); in SetScreenLockAuthState()
104 int32_t ScreenLockAppManager::GetScreenLockAuthState(int userId, int32_t &authState) in GetScreenLockAuthState() argument
112 int32_t status = proxy->GetScreenLockAuthState(userId, authState); in GetScreenLockAuthState()
H A Dscreenlock_manager_proxy.cpp280 int32_t ScreenLockManagerProxy::SetScreenLockAuthState(int authState, int32_t userId, std::string &authToken) in SetScreenLockAuthState() argument
286 data.WriteInt32(authState); in SetScreenLockAuthState()
301 int32_t ScreenLockManagerProxy::GetScreenLockAuthState(int userId, int32_t &authState) in GetScreenLockAuthState() argument
316 authState = reply.ReadInt32(); in GetScreenLockAuthState()
317 SCLOCK_HILOGD("GetScreenLockAuthState end retCode is %{public}d, %{public}d.", retCode, authState); in GetScreenLockAuthState()
/base/theme/screenlock_mgr/test/fuzztest/screenlockmanager_fuzzer/
H A Dscreenlockmanager_fuzzer.cpp135 int32_t authState = 2; in FuzzScreenlockSetAuthState() local
137 int32_t ret = ScreenLockAppManager::GetInstance()->SetScreenLockAuthState(authState, userId, authToken); in FuzzScreenlockSetAuthState()
147 int32_t authState = 2; in FuzzScreenlockGetAuthState() local
148 int32_t ret = ScreenLockAppManager::GetInstance()->GetScreenLockAuthState(userId, authState); in FuzzScreenlockGetAuthState()
/base/theme/screenlock_mgr/frameworks/native/include/
H A Dscreenlock_app_manager.h46 SCREENLOCK_API int32_t SetScreenLockAuthState(int authState, int32_t userId, std::string &authToken);
47 SCREENLOCK_API int32_t GetScreenLockAuthState(int userId, int32_t &authState);
H A Dscreenlock_manager_proxy.h45 int32_t SetScreenLockAuthState(int authState, int32_t userId, std::string &authToken) override;
46 int32_t GetScreenLockAuthState(int userId, int32_t &authState) override;
/base/theme/screenlock_mgr/frameworks/js/napi/include/
H A Dnapi_screenlock_ability.h64 int32_t authState; member
69 : Context(nullptr, nullptr), userId(-1), authState(-1), authToken(""), status(napi_generic_failure), in ScreenLockAuthStatInfo()
72 : Context(std::move(input), std::move(output)), userId(-1), authState(-1), authToken(""), in ScreenLockAuthStatInfo()
/base/theme/screenlock_mgr/services/src/
H A Dscreenlock_manager_stub.cpp220 int32_t authState = data.ReadInt32(); in OnSetScreenLockAuthState() local
223 int32_t retCode = SetScreenLockAuthState(authState, userId, authToken); in OnSetScreenLockAuthState()
230 int32_t authState = -1; in OnGetScreenLockAuthState() local
233 int32_t retCode = GetScreenLockAuthState(userId, authState); in OnGetScreenLockAuthState()
236 reply.WriteInt32(authState); in OnGetScreenLockAuthState()
H A Dscreenlock_system_ability.cpp563 int32_t ScreenLockSystemAbility::SetScreenLockAuthState(int authState, int32_t userId, std::string &authToken) in SetScreenLockAuthState() argument
565 SCLOCK_HILOGI("SetScreenLockAuthState authState=%{public}d ,userId=%{public}d", authState, userId); in SetScreenLockAuthState()
573 iter->second = authState; in SetScreenLockAuthState()
576 authStateInfo.insert(std::make_pair(userId, authState)); in SetScreenLockAuthState()
580 int32_t ScreenLockSystemAbility::GetScreenLockAuthState(int userId, int32_t &authState) in GetScreenLockAuthState() argument
586 authState = iter->second; in GetScreenLockAuthState()
593 authState = static_cast<int32_t>(AuthState::UNAUTH); in GetScreenLockAuthState()
/base/theme/screenlock_mgr/test/unittest/
H A Dscreenlock_client_test.cpp255 int32_t authState = 0; in HWTEST_F() local
256 result = proxy->GetScreenLockAuthState(userId, authState); in HWTEST_F()
312 int32_t authState = 0; in HWTEST_F() local
313 result = ScreenLockAppManager::GetInstance()->GetScreenLockAuthState(userId, authState); in HWTEST_F()
H A Dscreenlock_service_test.cpp611 int32_t authState = 0; in HWTEST_F() local
612 ScreenLockSystemAbility::GetInstance()->GetScreenLockAuthState(userId, authState); in HWTEST_F()
/base/theme/screenlock_mgr/services/include/
H A Dscreenlock_system_ability.h157 int32_t SetScreenLockAuthState(int authState, int32_t userId, std::string &authToken) override;
158 int32_t GetScreenLockAuthState(int userId, int32_t &authState) override;
/base/theme/screenlock_mgr/frameworks/js/napi/src/
H A Dnapi_screenlock_ability.cpp610 napi_get_value_int32(env, argv[ARGV_ZERO], &context->authState); in NAPI_SetScreenLockAuthState()
635 int32_t retCode = ScreenLockAppManager::GetInstance()->SetScreenLockAuthState(context->authState, in NAPI_SetScreenLockAuthState()
672 int32_t authState = -1; in NAPI_GetScreenLockAuthState() local
673 int32_t status = ScreenLockAppManager::GetInstance()->GetScreenLockAuthState(userId, authState); in NAPI_GetScreenLockAuthState()
681 SCLOCK_HILOGI("NAPI_GetScreenLockAuthState [authState]=%{public}d", authState); in NAPI_GetScreenLockAuthState()
682 napi_create_int32(env, authState, &result); in NAPI_GetScreenLockAuthState()

Completed in 8 milliseconds