Home
last modified time | relevance | path

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

12345

/base/useriam/user_auth_framework/test/unittest/services/src/
Dwidget_client_test.cpp87 WidgetClient::Instance().SetWidgetSchedule(schedule);
94 WidgetClient::Instance().SetWidgetSchedule(nullSchedule);
101 WidgetClient::Instance().SetWidgetParam(widgetParam);
108 WidgetClient::Instance().SetWidgetCallback(testCallback);
115 WidgetClient::Instance().SetAuthTokenId(tokenId);
116 EXPECT_EQ(WidgetClient::Instance().GetAuthTokenId(), tokenId);
122 WidgetClient::Instance().Reset();
123 …EXPECT_EQ(WidgetClient::Instance().OnNotice((NoticeType)0, eventData), ResultCode::INVALID_PARAMET…
129 WidgetClient::Instance().Reset();
130 …EXPECT_EQ(WidgetClient::Instance().OnNotice(NoticeType::WIDGET_NOTICE, eventData), ResultCode::INV…
[all …]
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_utils_test.cpp90 EXPECT_TRUE(ResourceNodePool::Instance().Insert(resourceNode1));
91 EXPECT_TRUE(ResourceNodePool::Instance().Insert(resourceNode2));
95 ResourceNodePool::Instance().DeleteAll();
123 EXPECT_TRUE(ResourceNodePool::Instance().Insert(resourceNode1));
124 EXPECT_TRUE(ResourceNodePool::Instance().Insert(resourceNode2));
128 ResourceNodePool::Instance().DeleteAll();
135 EXPECT_TRUE(ResourceNodePool::Instance().Select(testIndex).lock() == nullptr);
145 EXPECT_TRUE(ResourceNodePool::Instance().Insert(resourceNode));
150 ResourceNodePool::Instance().DeleteAll();
159 EXPECT_TRUE(ResourceNodePool::Instance().Insert(resourceNode));
[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 …]
Duser_idm_database_test.cpp46 auto &database = UserIdmDatabase::Instance();
70 auto &database = UserIdmDatabase::Instance();
89 auto secUserInfo = UserIdmDatabase::Instance().GetSecUserInfo(USER_ID);
120 auto &database = UserIdmDatabase::Instance();
136 auto &database = UserIdmDatabase::Instance();
171 auto &database = UserIdmDatabase::Instance();
207 int32_t result = UserIdmDatabase::Instance().DeleteCredentialInfo(testUserId, testCredentialId,
234 int32_t result = UserIdmDatabase::Instance().DeleteCredentialInfo(testUserId, testCredentialId,
256 … int32_t result = UserIdmDatabase::Instance().DeleteUser(testUserId, testAuthToken, testCredInfos);
283 … int32_t result = UserIdmDatabase::Instance().DeleteUser(testUserId, testAuthToken, testCredInfos);
[all …]
Dschedule_node_helper_test.cpp92 EXPECT_TRUE(ResourceNodePool::Instance().Insert(resourceNode1));
93 EXPECT_TRUE(ResourceNodePool::Instance().Insert(resourceNode2));
100 ResourceNodePool::Instance().DeleteAll();
/base/telephony/sms_mms/test/gtest/
Dzero_branch_utils_test.cpp67 …EXPECT_GE(TextCoder::Instance().Utf8ToGsm7bit(pDestText, BUF_SIZE, const_cast<uint8_t *>(pMsgText)…
68 … EXPECT_GE(TextCoder::Instance().CdmaUtf8ToAuto(pDestText, 1, pMsgText, 1, DataCodingScheme), -1);
69 EXPECT_GE(TextCoder::Instance().GsmUtf8ToAuto(pDestText, 1, pMsgText, 1, DataCodingScheme), -1);
70 EXPECT_EQ(TextCoder::Instance().Utf8ToUcs2(pDestText, 1, pMsgText, -1), -1);
71 EXPECT_EQ(TextCoder::Instance().Utf8ToUcs2(pDestText, 0, pMsgText, -1), 0);
72 EXPECT_EQ(TextCoder::Instance().CdmaUtf8ToAuto(pDestText, 1, pMsgText, 0, DataCodingScheme), 0);
73 EXPECT_EQ(TextCoder::Instance().GsmUtf8ToAuto(pDestText, 1, pMsgText, 0, DataCodingScheme), 0);
74 EXPECT_EQ(TextCoder::Instance().Gsm7bitToUtf8(pDestText, 0, pMsgText, 0, msgLangInfo), 0);
75 EXPECT_GE(TextCoder::Instance().ShiftjisToUtf8(pDestText, 1, pMsgText, -1), 0);
76 EXPECT_GE(TextCoder::Instance().Ucs2ToUtf8(pDestText, 1, pMsgText, -1), 0);
[all …]
/base/web/webview/test/unittest/nweb_helper_test/
Dnweb_helper_test.cpp137 NWebHelper::Instance().SetBundlePath(MOCK_INSTALLATION_DIR);
138 bool result = NWebAdapterHelper::Instance().Init(false);
141 std::shared_ptr<NWeb> nweb = NWebHelper::Instance().CreateNWeb(create_info);
144 NWebHelper::Instance().SetHttpDns(config);
145 auto nwebHelper = NWebHelper::Instance().GetNWeb(nweb_id);
147 NWebHelper::Instance().PrepareForPageLoad("web_test", true, 0);
148 result = NWebHelper::Instance().InitAndRun(false);
160 auto web_storage = NWebHelper::Instance().GetWebStorage();
176 auto dataBase = NWebHelper::Instance().GetDataBase();
183 NWebHelper::Instance().libHandleWebEngine_ = nullptr;
[all …]
/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/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/useriam/user_auth_framework/services/ipc/src/
Duser_idm_service.cpp71 auto contextList = ContextPool::Instance().Select(CONTEXT_ENROLL); in OpenSession()
76 ContextPool::Instance().Delete(ctx->GetContextId()); in OpenSession()
80 if (!UserIdmSessionController::Instance().OpenSession(userId, challenge)) { in OpenSession()
96 if (!UserIdmSessionController::Instance().CloseSession(userId)) { in CloseSession()
109 auto credInfos = UserIdmDatabase::Instance().GetCredentialInfo(userId, authType); in GetCredentialInfoInner()
124 auto userInfo = UserIdmDatabase::Instance().GetSecUserInfo(userId); in GetCredentialInfoInner()
162 auto userInfos = UserIdmDatabase::Instance().GetSecUserInfo(userId); in GetSecInfoInner()
237 if (!ContextPool::Instance().Insert(context)) { in AddCredential()
260 auto credInfos = UserIdmDatabase::Instance().GetCredentialInfo(userId, credPara.authType); in UpdateCredential()
277 if (!UserIdmSessionController::Instance().IsSessionOpened(userId)) { in Cancel()
[all …]
Dco_auth_service.cpp93 if (!ResourceNodePool::Instance().Insert(resourceNode)) { in ExecutorRegister()
106 auto result = ResourceNodePool::Instance().Delete(executorIndex); in ExecutorRegister()
123 ResourceNodePool::Instance().DeleteAll(); in Init()
152 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()
/base/useriam/face_auth/frameworks/ipc/src/
Dface_auth_client_impl.cpp51 static FaceAuthClientImpl &Instance();
151 FaceAuthClientImpl::Instance().ResetProxy(remote); in OnRemoteDied()
154 FaceAuthClientImpl &FaceAuthClientImpl::Instance() in Instance() function in OHOS::UserIam::FaceAuth::FaceAuthClientImpl
162 return FaceAuthClientImpl::Instance(); in GetInstance()
/base/useriam/pin_auth/frameworks/client/src/
Dpinauth_register_impl.cpp104 PinAuthRegisterImpl &PinAuthRegisterImpl::Instance() in Instance() function in OHOS::UserIam::PinAuth::PinAuthRegisterImpl
112 return PinAuthRegisterImpl::Instance(); in GetInstance()
122 PinAuthRegisterImpl::Instance().ResetProxy(remote); in OnRemoteDied()
/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/nweb_surface_adapter_test/
Dnweb_surface_adapter_test.cpp102 auto surfaceAdapter = NWebSurfaceAdapter::Instance();
121 auto surfaceAdapter = NWebSurfaceAdapter::Instance();
145 auto surfaceAdapter = NWebSurfaceAdapter::Instance();
161 auto surfaceAdapter = NWebSurfaceAdapter::Instance();
197 auto surfaceAdapter = NWebSurfaceAdapter::Instance();
/base/useriam/user_auth_framework/frameworks/native/client/src/
Dco_auth_client_impl.cpp111 CoAuthClientImpl::Instance().ResetProxy(remote); in OnRemoteDied()
114 CoAuthClientImpl &CoAuthClientImpl::Instance() in Instance() function in OHOS::UserIam::UserAuth::CoAuthClientImpl
122 return CoAuthClientImpl::Instance(); in GetInstance()
/base/useriam/user_auth_framework/test/unittest/inner_api/src/
Duser_auth_client_test.cpp50 int32_t ret = UserAuthClientImpl::Instance().GetAvailableStatus(testAuthType, testAtl);
76 …int32_t ret = UserAuthClientImpl::Instance().GetAvailableStatus(testApiVersion, testAuthType, test…
191 …uint64_t contextId = UserAuthClientImpl::Instance().BeginNorthAuthentication(testApiVersion, testC…
199 … contextId = UserAuthClientImpl::Instance().BeginNorthAuthentication(testApiVersion, testChallenge,
239 …uint64_t contextId = UserAuthClientImpl::Instance().BeginNorthAuthentication(testApiVersion, testC…
435 int32_t ret = UserAuthClientImpl::Instance().GetVersion(version);
459 int32_t result = UserAuthClientImpl::Instance().GetVersion(version);
487 EXPECT_EQ(UserAuthClientImpl::Instance().GetVersion(version), GENERAL_ERROR);
488 EXPECT_EQ(UserAuthClientImpl::Instance().GetVersion(version), GENERAL_ERROR);
489 EXPECT_EQ(UserAuthClientImpl::Instance().GetVersion(version), GENERAL_ERROR);
[all …]
/base/useriam/user_auth_framework/services/core/src/
Dauth_widget_helper.cpp40 WidgetClient::Instance().SetPinSubType(static_cast<PinSubType>(profile.pinSubType)); in InitWidgetContextParam()
42 WidgetClient::Instance().SetSensorInfo(profile.sensorInfo); in InitWidgetContextParam()
59 auto credentialInfos = UserIdmDatabase::Instance().GetCredentialInfo(userId, authType); in GetUserAuthProfile()
65 auto resourceNode = ResourceNodePool::Instance().Select(executorIndex).lock(); in GetUserAuthProfile()
Dresource_node_utils.cpp39 auto resourceNode = ResourceNodePool::Instance().Select(executorIndex).lock(); in NotifyExecutorToDeleteTemplates()
59 auto resourceNode = ResourceNodePool::Instance().Select(executorIndex).lock(); in SendMsgToExecutor()
83 auto resourceNode = ResourceNodePool::Instance().Select(executorIndex).lock(); in SetCachedTemplates()
/base/web/webview/interfaces/kits/napi/webcookiemanager/
Dnapi_web_cookie_manager.cpp129 …OHOS::NWeb::NWebCookieManager* cookieManager = OHOS::NWeb::NWebHelper::Instance().GetCookieManager… in JsGetCookie()
169 …OHOS::NWeb::NWebCookieManager* cookieManager = OHOS::NWeb::NWebHelper::Instance().GetCookieManager… in JsSetCookie()
189 …OHOS::NWeb::NWebCookieManager* cookieManager = OHOS::NWeb::NWebHelper::Instance().GetCookieManager… in JsIsCookieAllowed()
217 …OHOS::NWeb::NWebCookieManager* cookieManager = OHOS::NWeb::NWebHelper::Instance().GetCookieManager… in JsPutAcceptCookieEnabled()
230 …OHOS::NWeb::NWebCookieManager* cookieManager = OHOS::NWeb::NWebHelper::Instance().GetCookieManager… in JsIsThirdPartyCookieAllowed()
258 …OHOS::NWeb::NWebCookieManager* cookieManager = OHOS::NWeb::NWebHelper::Instance().GetCookieManager… in JsPutAcceptThirdPartyCookieEnabled()
271 …OHOS::NWeb::NWebCookieManager* cookieManager = OHOS::NWeb::NWebHelper::Instance().GetCookieManager… in JsExistCookie()
283 …OHOS::NWeb::NWebCookieManager* cookieManager = OHOS::NWeb::NWebHelper::Instance().GetCookieManager… in JsDeleteEntireCookie()
295 …OHOS::NWeb::NWebCookieManager* cookieManager = OHOS::NWeb::NWebHelper::Instance().GetCookieManager… in JsDeleteSessionCookie()
305 …OHOS::NWeb::NWebCookieManager* cookieManager = OHOS::NWeb::NWebHelper::Instance().GetCookieManager… in SaveCookieAsyncCallback()
[all …]
/base/useriam/user_auth_framework/services/context/src/
Dwidget_context.cpp147 auto tokenId = WidgetClient::Instance().GetAuthTokenId(); in BuildTask()
165 if (!ContextPool::Instance().Insert(context)) { in BuildTask()
183 WidgetClient::Instance().SetWidgetContextId(GetContextId()); in OnStart()
184 WidgetClient::Instance().SetWidgetParam(para_.widgetParam); in OnStart()
185 WidgetClient::Instance().SetAuthTypeList(para_.authTypeList); in OnStart()
186 WidgetClient::Instance().SetWidgetSchedule(schedule_); in OnStart()
220 WidgetClient::Instance().ReportWidgetResult(resultCode, authType, freezingTime, remainTimes); in AuthResult()
369 WidgetClient::Instance().Reset(); in End()
/base/useriam/user_auth_framework/test/fuzztest/clients/userauthclient_fuzzer/
Duser_auth_client_fuzzer.cpp102 UserAuthClientImpl::Instance().GetAvailableStatus(authType, atl); in FuzzClientGetAvailableStatus()
152 …UserAuthClientImpl::Instance().BeginNorthAuthentication(apiVersion, challenge, authType, atl, call… in FuzzClientBeginAuthentication002()
188 UserAuthClientImpl::Instance().GetVersion(version); in FuzzClientGetVersion()
209 UserAuthClientImpl::Instance().BeginWidgetAuth(apiVersion, authParam, widgetParam, callback); in FuzzBeginWidgetAuth()
218 UserAuthClientImpl::Instance().SetWidgetCallback(version, callback); in FuzzSetWidgetCallback()
227 UserAuthClientImpl::Instance().Notice(noticeType, eventData); in FuzzNotice()

12345