Home
last modified time | relevance | path

Searched refs:Instance (Results 1 - 25 of 141) sorted by relevance

123456

/base/web/webview/test/unittest/nweb_helper_test/
H A Dnweb_helper_test.cpp185 bool result = NWebHelper::Instance().LoadNWebSDK(); in HWTEST_F()
187 NWebHelper::Instance().SetBundlePath(MOCK_NWEB_INSTALLATION_DIR); in HWTEST_F()
188 result = NWebAdapterHelper::Instance().Init(false); in HWTEST_F()
191 std::shared_ptr<NWeb> nweb = NWebHelper::Instance().CreateNWeb(create_info); in HWTEST_F()
194 NWebHelper::Instance().SetHttpDns(config); in HWTEST_F()
195 auto nwebHelper = NWebHelper::Instance().GetNWeb(nweb_id); in HWTEST_F()
197 NWebHelper::Instance().PrepareForPageLoad("web_test", true, 0); in HWTEST_F()
198 NWebHelper::Instance().WarmupServiceWorker("web_test"); in HWTEST_F()
199 NWebHelper::Instance().PrefetchResource(nullptr, {}, "web_test", 0); in HWTEST_F()
200 NWebHelper::Instance() in HWTEST_F()
[all...]
/base/useriam/user_auth_framework/test/unittest/services/src/
H A Dwidget_client_test.cpp88 WidgetClient::Instance().SetWidgetSchedule(schedule); in HWTEST_F()
95 WidgetClient::Instance().SetWidgetSchedule(nullSchedule); in HWTEST_F()
102 WidgetClient::Instance().SetWidgetParam(widgetParam); in HWTEST_F()
109 WidgetClient::Instance().SetWidgetCallback(testCallback); in HWTEST_F()
116 WidgetClient::Instance().SetAuthTokenId(tokenId); in HWTEST_F()
117 EXPECT_EQ(WidgetClient::Instance().GetAuthTokenId(), tokenId); in HWTEST_F()
123 WidgetClient::Instance().Reset(); in HWTEST_F()
124 EXPECT_EQ(WidgetClient::Instance().OnNotice((NoticeType)0, eventData), ResultCode::INVALID_PARAMETERS); in HWTEST_F()
130 WidgetClient::Instance().Reset(); in HWTEST_F()
131 EXPECT_EQ(WidgetClient::Instance() in HWTEST_F()
[all...]
H A Duser_idm_session_controller_test.cpp43 UserIdmSessionController::Instance().ForceReset(); in TearDown()
54 EXPECT_EQ(true, UserIdmSessionController::Instance().OpenSession(userId, challenge)); in HWTEST_F()
67 EXPECT_EQ(true, UserIdmSessionController::Instance().OpenSession(userId1, challenge)); in HWTEST_F()
68 EXPECT_EQ(true, UserIdmSessionController::Instance().OpenSession(userId2, challenge)); in HWTEST_F()
69 EXPECT_EQ(true, UserIdmSessionController::Instance().OpenSession(userId3, challenge)); in HWTEST_F()
80 EXPECT_EQ(false, UserIdmSessionController::Instance().OpenSession(userId, challenge)); in HWTEST_F()
95 EXPECT_EQ(false, UserIdmSessionController::Instance().IsSessionOpened(userId)); in HWTEST_F()
97 EXPECT_EQ(true, UserIdmSessionController::Instance().OpenSession(userId, challenge)); in HWTEST_F()
100 EXPECT_EQ(true, UserIdmSessionController::Instance().IsSessionOpened(userId)); in HWTEST_F()
118 EXPECT_EQ(true, UserIdmSessionController::Instance() in HWTEST_F()
[all...]
H A Dresource_node_pool_test.cpp44 ResourceNodePool::Instance().DeleteAll(); in TearDown()
49 auto &pool = ResourceNodePool::Instance(); in HWTEST_F()
55 auto &pool1 = ResourceNodePool::Instance(); in HWTEST_F()
56 auto &pool2 = ResourceNodePool::Instance(); in HWTEST_F()
62 EXPECT_EQ(ResourceNodePool::Instance().Insert(nullptr), false); in HWTEST_F()
71 auto &pool = ResourceNodePool::Instance(); in HWTEST_F()
85 auto &pool = ResourceNodePool::Instance(); in HWTEST_F()
95 auto &pool = ResourceNodePool::Instance(); in HWTEST_F()
119 auto &pool = ResourceNodePool::Instance(); in HWTEST_F()
173 auto &pool = ResourceNodePool::Instance(); in HWTEST_F()
[all...]
H A Dresource_node_utils_test.cpp92 EXPECT_TRUE(ResourceNodePool::Instance().Insert(resourceNode1)); in HWTEST_F()
93 EXPECT_TRUE(ResourceNodePool::Instance().Insert(resourceNode2)); in HWTEST_F()
98 ResourceNodePool::Instance().DeleteAll(); in HWTEST_F()
126 EXPECT_TRUE(ResourceNodePool::Instance().Insert(resourceNode1)); in HWTEST_F()
127 EXPECT_TRUE(ResourceNodePool::Instance().Insert(resourceNode2)); in HWTEST_F()
131 ResourceNodePool::Instance().DeleteAll(); in HWTEST_F()
138 EXPECT_TRUE(ResourceNodePool::Instance().Select(testIndex).lock() == nullptr); in HWTEST_F()
148 EXPECT_TRUE(ResourceNodePool::Instance().Insert(resourceNode)); in HWTEST_F()
153 ResourceNodePool::Instance().DeleteAll(); in HWTEST_F()
162 EXPECT_TRUE(ResourceNodePool::Instance() in HWTEST_F()
[all...]
H A Dcontext_pool_test.cpp47 auto &pool = ContextPool::Instance(); in HWTEST_F()
53 auto &pool1 = ContextPool::Instance(); in HWTEST_F()
54 auto &pool2 = ContextPool::Instance(); in HWTEST_F()
62 auto &pool = ContextPool::Instance(); in HWTEST_F()
73 auto &pool = ContextPool::Instance(); in HWTEST_F()
86 auto &pool = ContextPool::Instance(); in HWTEST_F()
96 auto &pool = ContextPool::Instance(); in HWTEST_F()
126 auto &pool = ContextPool::Instance(); in HWTEST_F()
146 auto &pool = ContextPool::Instance(); in HWTEST_F()
199 auto &pool = ContextPool::Instance(); in HWTEST_F()
[all...]
/base/useriam/user_auth_framework/test/fuzztest/services/context/contextpoolimpl_fuzzer/
H A Dcontext_pool_impl_fuzzer.cpp51 ContextPool::Instance().GetNewContextId(); in FillTest()
58 ContextPool::Instance().Insert(context); in FillTest()
60 ContextPool::Instance().Delete(parcel.ReadUint64()); in FillTest()
62 ContextPool::Instance().CancelAll(); in FillTest()
64 ContextPool::Instance().Select(parcel.ReadUint64()); in FillTest()
66 ContextPool::Instance().Select(static_cast<ContextType>(parcel.ReadUint32())); in FillTest()
68 ContextPool::Instance().SelectScheduleNodeByScheduleId(parcel.ReadUint64()); in FillTest()
71 ContextPool::Instance().RegisterContextPoolListener(listener); in FillTest()
73 ContextPool::Instance().DeregisterContextPoolListener(listener); in FillTest()
/base/telephony/sms_mms/test/gtest/
H A Dzero_branch_utils_test.cpp76 EXPECT_GE(TextCoder::Instance().Utf8ToGsm7bit(pDestText, BUF_SIZE, const_cast<uint8_t *>(pMsgText), 0, langId), 0); in HWTEST_F()
77 EXPECT_GE(TextCoder::Instance().CdmaUtf8ToAuto(pDestText, 1, pMsgText, 1, DataCodingScheme), -1); in HWTEST_F()
78 EXPECT_GE(TextCoder::Instance().GsmUtf8ToAuto(pDestText, 1, pMsgText, 1, in HWTEST_F()
80 EXPECT_EQ(TextCoder::Instance().Utf8ToUcs2(pDestText, 1, pMsgText, -1), -1); in HWTEST_F()
81 EXPECT_EQ(TextCoder::Instance().Utf8ToUcs2(pDestText, 0, pMsgText, -1), 0); in HWTEST_F()
82 EXPECT_EQ(TextCoder::Instance().CdmaUtf8ToAuto(pDestText, 1, pMsgText, 0, DataCodingScheme), 0); in HWTEST_F()
83 EXPECT_EQ(TextCoder::Instance().GsmUtf8ToAuto(pDestText, 1, pMsgText, 0, in HWTEST_F()
85 EXPECT_EQ(TextCoder::Instance().Gsm7bitToUtf8(pDestText, 0, pMsgText, 0, msgLangInfo), 0); in HWTEST_F()
86 EXPECT_GE(TextCoder::Instance().ShiftjisToUtf8(pDestText, 1, pMsgText, -1), 0); in HWTEST_F()
87 EXPECT_GE(TextCoder::Instance() in HWTEST_F()
[all...]
/base/web/webview/test/fuzztest/ohos_nweb/nwebhelper_fuzzer/
H A Dnwebhelper_fuzzer.cpp172 bool result = NWebHelper::Instance().LoadNWebSDK(); in NWebHelperFuzzTest()
174 NWebHelper::Instance().SetBundlePath(MOCK_INSTALLATION_DIR); in NWebHelperFuzzTest()
175 result = NWebAdapterHelper::Instance().Init(false); in NWebHelperFuzzTest()
178 std::shared_ptr<NWeb> nweb = NWebHelper::Instance().CreateNWeb(create_info); in NWebHelperFuzzTest()
181 NWebHelper::Instance().SetHttpDns(config); in NWebHelperFuzzTest()
182 auto nwebHelper = NWebHelper::Instance().GetNWeb(nweb_id); in NWebHelperFuzzTest()
184 NWebHelper::Instance().PrepareForPageLoad("web_test", true, 0); in NWebHelperFuzzTest()
185 NWebHelper::Instance().WarmupServiceWorker("web_test"); in NWebHelperFuzzTest()
186 NWebHelper::Instance().PrefetchResource(nullptr, {}, "web_test", 0); in NWebHelperFuzzTest()
187 NWebHelper::Instance() in NWebHelperFuzzTest()
[all...]
/base/web/webview/test/unittest/nweb_config_helper_test/
H A Dnweb_config_helper_test.cpp53 EXPECT_NO_THROW(NWebConfigHelper::Instance().ParseWebConfigXml(configFilePath, initArgs)); in HWTEST_F()
65 EXPECT_NO_THROW(NWebConfigHelper::Instance().ParseWebConfigXml(configFilePath, initArgs)); in HWTEST_F()
77 EXPECT_NO_THROW(NWebConfigHelper::Instance().ParseWebConfigXml(configFilePath, initArgs)); in HWTEST_F()
89 EXPECT_NO_THROW(NWebConfigHelper::Instance().ParseWebConfigXml(configFilePath, initArgs)); in HWTEST_F()
101 EXPECT_NO_THROW(NWebConfigHelper::Instance().ParseWebConfigXml(configFilePath, initArgs)); in HWTEST_F()
113 EXPECT_NO_THROW(NWebConfigHelper::Instance().ParseWebConfigXml(configFilePath, initArgs)); in HWTEST_F()
125 std::vector<FrameRateSetting> result = NWebConfigHelper::Instance().GetPerfConfig(settingName); in HWTEST_F()
138 NWebConfigHelper::Instance().ltpoConfig_[settingName] = {FrameRateSetting(30)}; in HWTEST_F()
139 std::vector<FrameRateSetting> result = NWebConfigHelper::Instance().GetPerfConfig(settingName); in HWTEST_F()
154 std::string result = NWebConfigHelper::Instance() in HWTEST_F()
[all...]
/base/notification/eventhandler/frameworks/eventhandler/include/
H A Devent_hitrace_meter_adapter.h50 static TraceAdapter* Instance() in Instance() function in OHOS::AppExecFwk::TraceAdapter
98 if (TraceAdapter::Instance()->IsTagEnabled && TraceAdapter::Instance()->StartTrace) { in StartTraceAdapter()
99 if (TraceAdapter::Instance()->IsTagEnabled(HITRACE_TAG_NOTIFICATION)) { in StartTraceAdapter()
100 TraceAdapter::Instance()->StartTrace(HITRACE_TAG_NOTIFICATION, event->TraceInfo(), -1); in StartTraceAdapter()
106 if (TraceAdapter::Instance()->IsTagEnabled && TraceAdapter::Instance()->StartTrace) { in StartTraceObserver()
107 if (TraceAdapter::Instance()->IsTagEnabled(HITRACE_TAG_NOTIFICATION)) { in StartTraceObserver()
108 TraceAdapter::Instance()->StartTrace(HITRACE_TAG_NOTIFICATION, observer.getTraceInfo(), -1); in StartTraceObserver()
114 if (TraceAdapter::Instance() in FinishTraceAdapter()
[all...]
/base/web/webview/interfaces/kits/cj/src/
H A Dweb_cookie_manager.cpp29 std::shared_ptr<NWebCookieManager> cookieManager = NWebHelper::Instance().GetCookieManager(); in CjGetCookie()
45 std::shared_ptr<NWebCookieManager> cookieManager = NWebHelper::Instance().GetCookieManager(); in CjSetCookie()
54 std::shared_ptr<NWebCookieManager> cookieManager = NWebHelper::Instance().GetCookieManager(); in CjPutAcceptCookieEnabled()
63 std::shared_ptr<NWebCookieManager> cookieManager = NWebHelper::Instance().GetCookieManager(); in CjIsCookieAllowed()
72 std::shared_ptr<NWebCookieManager> cookieManager = NWebHelper::Instance().GetCookieManager(); in CjPutAcceptThirdPartyCookieEnabled()
81 std::shared_ptr<NWebCookieManager> cookieManager = NWebHelper::Instance().GetCookieManager(); in CjIsThirdPartyCookieAllowed()
91 std::shared_ptr<NWebCookieManager> cookieManager = NWebHelper::Instance().GetCookieManager(); in CjExistCookie()
100 std::shared_ptr<NWebCookieManager> cookieManager = NWebHelper::Instance().GetCookieManager(); in CjDeleteEntireCookie()
108 std::shared_ptr<NWebCookieManager> cookieManager = NWebHelper::Instance().GetCookieManager(); in CjDeleteSessionCookie()
117 OHOS::NWeb::NWebHelper::Instance() in CjSaveCookie()
[all...]
H A Dwebview_controller_impl.cpp48 auto nweb_ptr = NWeb::NWebHelper::Instance().GetNWeb(nwebId_); in ClosePort()
60 auto nweb_ptr = NWeb::NWebHelper::Instance().GetNWeb(nwebId_); in PostPortMessage()
76 auto nweb_ptr = NWeb::NWebHelper::Instance().GetNWeb(nwebId_); in SetPortMessageCallback()
140 return NWeb::NWebHelper::Instance().GetNWeb(nwebId_) ? true : false; in IsInit()
154 auto nweb_ptr = OHOS::NWeb::NWebHelper::Instance().GetNWeb(nwebId); in SetWebId()
157 NWeb::NWebHelper::Instance().SetWebTag(nwebId_, webTag_.c_str()); in SetWebId()
169 auto nweb_ptr = NWeb::NWebHelper::Instance().GetNWeb(nwebId_); in GetWebId()
178 auto nweb_ptr = NWeb::NWebHelper::Instance().GetNWeb(nwebId_); in LoadUrl()
187 auto nweb_ptr = NWeb::NWebHelper::Instance().GetNWeb(nwebId_); in LoadUrl()
197 auto nweb_ptr = NWeb::NWebHelper::Instance() in LoadData()
[all...]
H A Dweb_data_base.cpp35 std::shared_ptr<NWebDataBase> database = NWebHelper::Instance().GetDataBase(); in CJGetHttpAuthCredentials()
76 std::shared_ptr<NWebDataBase> database = NWebHelper::Instance().GetDataBase(); in CJSaveHttpAuthCredentials()
86 std::shared_ptr<NWebDataBase> database = NWebHelper::Instance().GetDataBase(); in CJExistHttpAuthCredentials()
96 std::shared_ptr<NWebDataBase> database = NWebHelper::Instance().GetDataBase(); in CJDeleteHttpAuthCredentials()
/base/useriam/user_auth_framework/test/fuzztest/services/servicecore_fuzzer/src/
H A 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/interfaces/kits/napi/webviewcontroller/
H A Dwebview_controller.cpp108 NWebHelper::Instance().SetWebTag(-1, webTag_.c_str()); in WebviewController()
128 auto nweb_ptr = NWebHelper::Instance().GetNWeb(nwebId_); in SetWebId()
131 NWebHelper::Instance().SetWebTag(nwebId_, webTag_.c_str()); in SetWebId()
204 return NWebHelper::Instance().GetNWeb(nwebId_) ? true : false; in IsInit()
210 auto nweb_ptr = NWebHelper::Instance().GetNWeb(nwebId_); in AccessForward()
222 auto nweb_ptr = NWebHelper::Instance().GetNWeb(nwebId_); in AccessBackward()
232 auto nweb_ptr = NWebHelper::Instance().GetNWeb(nwebId_); in AccessStep()
241 auto nweb_ptr = NWebHelper::Instance().GetNWeb(nwebId_); in ClearHistory()
249 auto nweb_ptr = NWebHelper::Instance().GetNWeb(nwebId_); in Forward()
257 auto nweb_ptr = NWebHelper::Instance() in Backward()
[all...]
/base/web/webview/test/fuzztest/ohos_nweb/getnweb_fuzzer/
H A Dgetnweb_fuzzer.cpp30 NWebHelper::Instance().GetNWeb(nweb_id); in GetNwebFuzzTest()
32 NWebHelper::Instance().SetWebTag(nweb_id, "NWeb"); in GetNwebFuzzTest()
34 NWebHelper::Instance().PrepareForPageLoad("", true, size); in GetNwebFuzzTest()
/base/web/webview/test/fuzztest/ohos_nweb/loadlib_fuzzer/
H A Dloadlib_fuzzer.cpp34 NWebHelper::Instance().SetBundlePath(path); in LoadLibFuzzTest()
36 NWebAdapterHelper::Instance().Init(true); in LoadLibFuzzTest()
38 NWebAdapterHelper::Instance().Init(false); in LoadLibFuzzTest()
/base/web/webview/test/fuzztest/ohos_nweb/initandrun_fuzzer/
H A Dinitandrun_fuzzer.cpp29 NWebHelper::Instance().SetBundlePath(path); in InitAndRunFuzzTest()
31 NWebHelper::Instance().InitAndRun(false); in InitAndRunFuzzTest()
37 NWebHelper::Instance().SetBundlePath(pathTmp); in InitAndRunFuzzTest()
/base/web/webview/test/unittest/napi_web_cookie_manager_test/
H A Dnapi_web_cookie_manager_test.cpp65 NWebHelper::Instance().SetBundlePath(hapPath); in HWTEST_F()
66 NWebAdapterHelper::Instance().Init(false); in HWTEST_F()
67 std::shared_ptr<NWebCookieManager> cookieManager = NWebHelper::Instance().GetCookieManager(); in HWTEST_F()
/base/useriam/pin_auth/test/unittest/src/
H A Dframework_client_pinauth_register_impl_test.cpp86 PinAuthRegisterImpl::Instance().proxy_ = iface_cast<PinAuthInterface>(mock); in HWTEST_F()
87 EXPECT_NE(PinAuthRegisterImpl::Instance().proxy_->AsObject(), nullptr); in HWTEST_F()
88 PinAuthRegisterImpl::Instance().ResetProxy(mock); in HWTEST_F()
106 PinAuthRegisterImpl::Instance().proxy_ = iface_cast<PinAuthInterface>(mock); in HWTEST_F()
/base/useriam/user_auth_framework/frameworks/cj/user_auth/src/
H A Duser_auth_ffi.cpp26 return UserAuthClientImpl::Instance().GetNorthAvailableStatus(API_VERSION_9, AuthType(authType), in FfiUserAuthGetAvailableStatus()
33 return UserAuthClientImpl::Instance().GetEnrolledState(API_VERSION_12, AuthType(authType), *enrolledState); in FfiUserAuthGetEnrolledState()
72 return UserAuthClientImpl::Instance().BeginWidgetAuth(API_VERSION_10, authParamInner, widgetInner, in FfiUserAuthStart()
79 return UserAuthClientImpl::Instance().BeginWidgetAuth(API_VERSION_10, authParamInner, widgetInner, callback); in FfiUserAuthStart()
/base/useriam/user_auth_framework/test/fuzztest/clients/userauthclient_fuzzer/
H A Duser_auth_client_fuzzer.cpp112 UserAuthClientImpl::Instance().GetEnrolledState(apiVersion, authType, enrolledState); in FuzzClientGetEnrolledState()
123 UserAuthClientImpl::Instance().GetAvailableStatus(userId, authType, atl); in FuzzClientGetAvailableStatus()
124 UserAuthClientImpl::Instance().GetNorthAvailableStatus(apiVersion, authType, atl); in FuzzClientGetAvailableStatus()
125 UserAuthClientImpl::Instance().GetAvailableStatus(authType, atl); in FuzzClientGetAvailableStatus()
178 UserAuthClientImpl::Instance().BeginNorthAuthentication(apiVersion, challenge, authType, atl, callback); in FuzzClientBeginAuthentication002()
179 UserAuthClientImpl::Instance().BeginNorthAuthentication(apiVersion, challenge, authType, atl, nullptr); in FuzzClientBeginAuthentication002()
216 UserAuthClientImpl::Instance().GetVersion(version); in FuzzClientGetVersion()
228 UserAuthClientImpl::Instance().RegistUserAuthSuccessEventListener(authTypeList, listener); in FuzzClientRegistUserAuthSuccessEventListener()
236 UserAuthClientImpl::Instance().UnRegistUserAuthSuccessEventListener(listener); in FuzzClientUnRegistUserAuthSuccessEventListener()
244 UserAuthClientImpl::Instance() in FuzzClientSetGlobalConfigParam()
[all...]
/base/useriam/user_auth_framework/services/ipc/src/
H A Duser_idm_service.cpp75 auto contextList = ContextPool::Instance().Select(CONTEXT_ENROLL); in OpenSession()
80 ContextPool::Instance().Delete(ctx->GetContextId()); in OpenSession()
84 if (!UserIdmSessionController::Instance().OpenSession(userId, challenge)) { in OpenSession()
101 if (!UserIdmSessionController::Instance().CloseSession(userId)) { in CloseSession()
114 auto credInfos = UserIdmDatabase::Instance().GetCredentialInfo(userId, authType); in GetCredentialInfoInner()
129 auto userInfo = UserIdmDatabase::Instance().GetSecUserInfo(userId); in GetCredentialInfoInner()
168 auto userInfos = UserIdmDatabase::Instance().GetSecUserInfo(userId); in GetSecInfoInner()
210 if (context == nullptr || !ContextPool::Instance().Insert(context)) { in StartEnroll()
276 auto credInfos = UserIdmDatabase::Instance().GetCredentialInfo(userId, credPara.authType); in UpdateCredential()
294 if (!UserIdmSessionController::Instance() in Cancel()
[all...]
/base/web/webview/interfaces/native/
H A Darkweb_interface.cpp71 void* fn = OHOS::NWeb::NWebHelper::Instance().LoadFuncSymbol(functionName); in LoadFunction()
92 if (!OHOS::NWeb::NWebHelper::Instance().LoadWebEngine(true, false)) { in LoadComponentAPI()
116 if (!OHOS::NWeb::NWebHelper::Instance().LoadWebEngine(true, false)) { in LoadControllerAPI()
140 if (!OHOS::NWeb::NWebHelper::Instance().LoadWebEngine(true, false)) { in LoadWebMessagePortAPI()
164 if (!OHOS::NWeb::NWebHelper::Instance().LoadWebEngine(true, false)) { in LoadWebMessageAPI()
189 if (!OHOS::NWeb::NWebHelper::Instance().LoadWebEngine(true, true)) { in LoadCookieManagerAPI()

Completed in 13 milliseconds

123456