Home
last modified time | relevance | path

Searched refs:Instance (Results 1 – 25 of 114) sorted by relevance

12345

/base/useriam/user_auth_framework/test/unittest/services/src/
Duser_idm_session_controller_test.cpp43 UserIdmSessionController::Instance().ForceReset(); in TearDown()
54 EXPECT_EQ(true, UserIdmSessionController::Instance().OpenSession(userId, challenge));
67 EXPECT_EQ(true, UserIdmSessionController::Instance().OpenSession(userId1, challenge));
68 EXPECT_EQ(true, UserIdmSessionController::Instance().OpenSession(userId2, challenge));
69 EXPECT_EQ(true, UserIdmSessionController::Instance().OpenSession(userId3, challenge));
80 EXPECT_EQ(false, UserIdmSessionController::Instance().OpenSession(userId, challenge));
95 EXPECT_EQ(false, UserIdmSessionController::Instance().IsSessionOpened(userId));
97 EXPECT_EQ(true, UserIdmSessionController::Instance().OpenSession(userId, challenge));
100 EXPECT_EQ(true, UserIdmSessionController::Instance().IsSessionOpened(userId));
118 EXPECT_EQ(true, UserIdmSessionController::Instance().OpenSession(userId, challenge));
[all …]
Dresource_node_pool_test.cpp44 ResourceNodePool::Instance().DeleteAll(); in TearDown()
49 auto &pool = ResourceNodePool::Instance();
55 auto &pool1 = ResourceNodePool::Instance();
56 auto &pool2 = ResourceNodePool::Instance();
62 EXPECT_EQ(ResourceNodePool::Instance().Insert(nullptr), false);
71 auto &pool = ResourceNodePool::Instance();
84 auto &pool = ResourceNodePool::Instance();
94 auto &pool = ResourceNodePool::Instance();
118 auto &pool = ResourceNodePool::Instance();
172 auto &pool = ResourceNodePool::Instance();
[all …]
Dcontext_pool_test.cpp47 auto &pool = ContextPool::Instance();
53 auto &pool1 = ContextPool::Instance();
54 auto &pool2 = ContextPool::Instance();
62 auto &pool = ContextPool::Instance();
73 auto &pool = ContextPool::Instance();
86 auto &pool = ContextPool::Instance();
96 auto &pool = ContextPool::Instance();
126 auto &pool = ContextPool::Instance();
146 auto &pool = ContextPool::Instance();
199 auto &pool = ContextPool::Instance();
[all …]
Dresource_node_utils_test.cpp90 EXPECT_TRUE(ResourceNodePool::Instance().Insert(resourceNode1));
91 EXPECT_TRUE(ResourceNodePool::Instance().Insert(resourceNode2));
95 ResourceNodePool::Instance().DeleteAll();
121 EXPECT_TRUE(ResourceNodePool::Instance().Insert(resourceNode1));
122 EXPECT_TRUE(ResourceNodePool::Instance().Insert(resourceNode2));
126 ResourceNodePool::Instance().DeleteAll();
Duser_idm_database_test.cpp51 auto &database = UserIdmDatabase::Instance();
75 auto &database = UserIdmDatabase::Instance();
94 auto secUserInfo = UserIdmDatabase::Instance().GetSecUserInfo(USER_ID);
126 auto &database = UserIdmDatabase::Instance();
142 auto &database = UserIdmDatabase::Instance();
177 auto &database = UserIdmDatabase::Instance();
213 int32_t result = UserIdmDatabase::Instance().DeleteCredentialInfo(testUserId, testCredentialId,
240 int32_t result = UserIdmDatabase::Instance().DeleteCredentialInfo(testUserId, testCredentialId,
262 … int32_t result = UserIdmDatabase::Instance().DeleteUser(testUserId, testAuthToken, testCredInfos);
289 … int32_t result = UserIdmDatabase::Instance().DeleteUser(testUserId, testAuthToken, testCredInfos);
[all …]
Dschedule_node_helper_test.cpp104 EXPECT_TRUE(ResourceNodePool::Instance().Insert(resourceNode1));
105 EXPECT_TRUE(ResourceNodePool::Instance().Insert(resourceNode2));
112 ResourceNodePool::Instance().DeleteAll();
Dco_auth_service_test.cpp88 EXPECT_EQ(ResourceNodePool::Instance().Delete(executorIndex), true);
114 EXPECT_TRUE(ResourceNodePool::Instance().Insert(node));
127 EXPECT_TRUE(ResourceNodePool::Instance().Delete(20));
/base/useriam/user_auth_framework/test/fuzztest/services/servicecore_fuzzer/src/
Dresource_node_pool_fuzzer.cpp36 ResourceNodePool::Instance().Insert(node); in FuzzResourcePoolInsert()
44 ResourceNodePool::Instance().Delete(executorIndex); in FuzzResourcePoolDelete()
52 ResourceNodePool::Instance().DeleteAll(); in FuzzResourcePoolDeleteAll()
60 ResourceNodePool::Instance().Select(executorIndex); in FuzzResourcePoolSelect()
68 ResourceNodePool::Instance().GetPoolSize(); in FuzzResourcePoolGetPoolSize()
76 ResourceNodePool::Instance().RegisterResourceNodePoolListener(listener); in FuzzRegisterResourceNodePoolListener()
84 ResourceNodePool::Instance().DeregisterResourceNodePoolListener(listener); in FuzzDeregisterResourceNodePoolListener()
/base/web/webview/test/unittest/nweb_helper_test/
Dnweb_helper_test.cpp147 NWebHelper::Instance().SetBundlePath(MOCK_INSTALLATION_DIR);
148 bool result = NWebAdapterHelper::Instance().Init(false);
160 auto web_storage = NWebHelper::Instance().GetWebStorage();
176 auto dataBase = NWebHelper::Instance().GetDataBase();
184 NWebHelper::Instance().libHandleWebEngine_ = nullptr;
186 NWebAdapterHelper::Instance().CreateNWeb(window.GetRefPtr(), GetInitArgs());
191 nweb = NWebAdapterHelper::Instance().CreateNWeb(enhanceSurfaceInfo, GetInitArgs(),
195 nweb = NWebAdapterHelper::Instance().CreateNWeb(enhanceSurfaceInfo, GetInitArgs(),
198 nweb = NWebAdapterHelper::Instance().CreateNWeb(enhanceSurfaceInfo, GetInitArgs(),
201 nweb = NWebAdapterHelper::Instance().CreateNWeb(enhanceSurfaceInfo, GetInitArgs(),
[all …]
/base/useriam/user_auth_framework/services/ipc/src/
Duser_idm_service.cpp68 auto contextList = ContextPool::Instance().Select(CONTEXT_ENROLL); in OpenSession()
73 ContextPool::Instance().Delete(ctx->GetContextId()); in OpenSession()
77 if (!UserIdmSessionController::Instance().OpenSession(userId, challenge)) { in OpenSession()
93 if (!UserIdmSessionController::Instance().CloseSession(userId)) { in CloseSession()
113 credInfos = UserIdmDatabase::Instance().GetCredentialInfo(userId, authType); in GetCredentialInfo()
120 auto userInfo = UserIdmDatabase::Instance().GetSecUserInfo(userId); in GetCredentialInfo()
147 userInfos = UserIdmDatabase::Instance().GetSecUserInfo(userId); in GetSecInfo()
195 if (!ContextPool::Instance().Insert(context)) { in AddCredential()
225 auto credInfos = UserIdmDatabase::Instance().GetCredentialInfo(userId, credPara.authType); in UpdateCredential()
241 if (!UserIdmSessionController::Instance().IsSessionOpened(userId)) { in Cancel()
[all …]
Dco_auth_service.cpp88 if (!ResourceNodePool::Instance().Insert(resourceNode)) { in ExecutorRegister()
101 auto result = ResourceNodePool::Instance().Delete(executorIndex); in ExecutorRegister()
116 ResourceNodePool::Instance().DeleteAll(); in Init()
145 ResourceNodePool::Instance().Enumerate([fd](const std::weak_ptr<ResourceNode> &node) { in Dump()
Dexecutor_messenger_service.cpp45 auto scheduleNode = ContextPool::Instance().SelectScheduleNodeByScheduleId(scheduleId); in SendData()
61 auto scheduleNode = ContextPool::Instance().SelectScheduleNodeByScheduleId(scheduleId); in Finish()
Duser_auth_service.cpp112 auto credentialInfos = UserIdmDatabase::Instance().GetCredentialInfo(userId, authType); in GetProperty()
121 auto resourceNode = ResourceNodePool::Instance().Select(executorIndex).lock(); in GetProperty()
154 auto credentialInfos = UserIdmDatabase::Instance().GetCredentialInfo(userId, authType); in SetProperty()
161 auto resourceNode = ResourceNodePool::Instance().Select(executorIndex).lock(); in SetProperty()
262 if (!ContextPool::Instance().Insert(context)) { in Auth()
307 if (!ContextPool::Instance().Insert(context)) { in AuthUser()
355 if (!ContextPool::Instance().Insert(context)) { in Identify()
380 auto context = ContextPool::Instance().Select(contextId).lock(); in CancelAuthOrIdentify()
/base/web/webview/test/unittest/napi_web_cookie_manager_test/
Dnapi_web_cookie_manager_test.cpp60 NWebHelper::Instance().SetBundlePath(MOCK_INSTALLATION_DIR);
61 NWebAdapterHelper::Instance().Init(false);
62 NWebCookieManager* cookieManager = NWebHelper::Instance().GetCookieManager();
/base/web/webview/ohos_nweb/src/
Dnweb_helper.cpp55 NWebHelper &NWebHelper::Instance() in Instance() function in OHOS::NWeb::NWebHelper
299 NWebAdapterHelper &NWebAdapterHelper::Instance() in Instance() function in OHOS::NWeb::NWebAdapterHelper
307 return NWebHelper::Instance().Init(from_ark); in Init()
316 auto createInfo = NWebWindowAdapter::Instance().GetCreateInfo(window, initArgs); in CreateNWeb()
317 auto nweb = NWebHelper::Instance().CreateNWeb(createInfo); in CreateNWeb()
322 NWebWindowAdapter::Instance().RegistEventCb(window, nweb); in CreateNWeb()
323 NWebWindowAdapter::Instance().RequestVsync(window, nweb); in CreateNWeb()
338 … auto createInfo = NWebSurfaceAdapter::Instance().GetCreateInfo(surface, initArgs, width, height); in CreateNWeb()
339 auto nweb = NWebHelper::Instance().CreateNWeb(createInfo); in CreateNWeb()
359 …auto createInfo = NWebEnhanceSurfaceAdapter::Instance().GetCreateInfo(enhanceSurfaceInfo, initArgs… in CreateNWeb()
[all …]
/base/web/webview/test/unittest/nweb_surface_adapter_test/
Dnweb_surface_adapter_test.cpp95 auto surfaceAdapter = NWebSurfaceAdapter::Instance();
96 NWebHelper::Instance().SetBundlePath(MOCK_INSTALLATION_DIR);
97 bool result = NWebAdapterHelper::Instance().Init(false);
120 auto surfaceAdapter = NWebSurfaceAdapter::Instance();
142 auto surfaceAdapter = NWebSurfaceAdapter::Instance();
159 auto surfaceAdapter = NWebSurfaceAdapter::Instance();
197 auto surfaceAdapter = NWebSurfaceAdapter::Instance();
/base/web/webview/test/unittest/nweb_window_adapter_test/
Dnweb_window_adapter_test.cpp116 NWebWindowAdapter &windowAdapter = NWebWindowAdapter::Instance();
117 NWebHelper::Instance().SetBundlePath(MOCK_INSTALLATION_DIR);
118 bool result = NWebAdapterHelper::Instance().Init(false);
137 auto windowAdapter = NWebWindowAdapter::Instance();
189 auto windowAdapter = NWebWindowAdapter::Instance();
206 auto windowAdapter = NWebWindowAdapter::Instance();
228 auto windowAdapter = NWebWindowAdapter::Instance();
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/
Dhiappevent_read.cpp56 LogAssistant& LogAssistant::Instance() in Instance() function in OHOS::HiviewDFX::LogAssistant
289 OHOS::HiviewDFX::LogAssistant::Instance().RegRealTimeAppLogListener(listener); in RegRealTimeAppLogListener()
294 OHOS::HiviewDFX::LogAssistant::Instance().RegHistoryAppLogListener(listener); in RegHistoryAppLogListener()
299 OHOS::HiviewDFX::LogAssistant::Instance().RemoveAllListeners(); in RemoveAllListeners()
304 OHOS::HiviewDFX::LogAssistant::Instance().RealTimeAppLogUpdate(realTimeLog); in RealTimeAppLogUpdate()
309 OHOS::HiviewDFX::LogAssistant::Instance().UpdateHiAppEventLogDir(path); in UpdateHiAppEventLogDir()
315 OHOS::HiviewDFX::LogAssistant::Instance().PullEventHistoryLog(beginTimeStamp, in PullEventHistoryLog()
/base/web/webview/test/unittest/ohos_nweb/
Dnweb_input_event_test.cpp57 NWebHelper::Instance().SetBundlePath(MOCK_INSTALLATION_DIR); in SetUpTestCase()
58 bool result = NWebAdapterHelper::Instance().Init(false); in SetUpTestCase()
149 NWebHelper::Instance().libHandleWebEngine_ = nullptr;
150 g_nweb = NWebAdapterHelper::Instance().CreateNWeb(window.GetRefPtr(), GetInitArgs());
/base/web/webview/test/unittest/ohos_adapter_helper/
Dohos_adapter_helper_test.cpp67 NWebHelper &helper = NWebHelper::Instance();
111 auto nweb = NWebAdapterHelper::Instance().CreateNWeb(surface, initArgs, width, height);
124 NWebAdapterHelper &helper = NWebAdapterHelper::Instance();
137 NWebHelper &helper = NWebHelper::Instance();
/base/web/webview/interfaces/kits/napi/webcookiemanager/
Dnapi_web_cookie_manager.cpp129 …OHOS::NWeb::NWebCookieManager* cookieManager = OHOS::NWeb::NWebHelper::Instance().GetCookieManager… in JsGetCookie()
168 …OHOS::NWeb::NWebCookieManager* cookieManager = OHOS::NWeb::NWebHelper::Instance().GetCookieManager… in JsSetCookie()
188 …OHOS::NWeb::NWebCookieManager* cookieManager = OHOS::NWeb::NWebHelper::Instance().GetCookieManager… in JsIsCookieAllowed()
216 …OHOS::NWeb::NWebCookieManager* cookieManager = OHOS::NWeb::NWebHelper::Instance().GetCookieManager… in JsPutAcceptCookieEnabled()
229 …OHOS::NWeb::NWebCookieManager* cookieManager = OHOS::NWeb::NWebHelper::Instance().GetCookieManager… in JsIsThirdPartyCookieAllowed()
257 …OHOS::NWeb::NWebCookieManager* cookieManager = OHOS::NWeb::NWebHelper::Instance().GetCookieManager… in JsPutAcceptThirdPartyCookieEnabled()
270 …OHOS::NWeb::NWebCookieManager* cookieManager = OHOS::NWeb::NWebHelper::Instance().GetCookieManager… in JsExistCookie()
282 …OHOS::NWeb::NWebCookieManager* cookieManager = OHOS::NWeb::NWebHelper::Instance().GetCookieManager… in JsDeleteEntireCookie()
294 …OHOS::NWeb::NWebCookieManager* cookieManager = OHOS::NWeb::NWebHelper::Instance().GetCookieManager… in JsDeleteSessionCookie()
304 …OHOS::NWeb::NWebCookieManager* cookieManager = OHOS::NWeb::NWebHelper::Instance().GetCookieManager… in SaveCookieAsyncCallback()
[all …]
/base/useriam/user_auth_framework/services/core/src/
Dresource_node_utils.cpp38 auto resourceNode = ResourceNodePool::Instance().Select(executorIndex).lock(); in NotifyExecutorToDeleteTemplates()
58 auto resourceNode = ResourceNodePool::Instance().Select(executorIndex).lock(); in SendMsgToExecutor()
/base/web/webview/test/fuzztest/ohos_nweb/getcookiemanager_fuzzer/
Dgetcookiemanager_fuzzer.cpp31 NWebHelper::Instance().GetCookieManager(); in DoSomethingInterestingWithMyAPI()
/base/web/webview/test/fuzztest/ohos_nweb/loadlib_fuzzer/
Dloadlib_fuzzer.cpp32 NWebAdapterHelper::Instance().Init(true); in DoSomethingInterestingWithMyAPI()
/base/web/webview/test/fuzztest/ohos_nweb/getwebstorage_fuzzer/
Dgetwebstorage_fuzzer.cpp31 NWebHelper::Instance().GetWebStorage(); in DoSomethingInterestingWithMyAPI()

12345