/base/theme/screenlock_mgr/interfaces/inner_api/include/ |
H A D | screenlock_manager_interface.h | 42 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 D | screenlock_app_manager.cpp | 91 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 D | screenlock_manager_proxy.cpp | 280 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 D | screenlockmanager_fuzzer.cpp | 135 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 D | screenlock_app_manager.h | 46 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 D | screenlock_manager_proxy.h | 45 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 D | napi_screenlock_ability.h | 64 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 D | screenlock_manager_stub.cpp | 220 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 D | screenlock_system_ability.cpp | 563 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 D | screenlock_client_test.cpp | 255 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 D | screenlock_service_test.cpp | 611 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 D | screenlock_system_ability.h | 157 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 D | napi_screenlock_ability.cpp | 610 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()
|