Home
last modified time | relevance | path

Searched refs:NWebConfigHelper (Results 1 - 7 of 7) sorted by relevance

/base/web/webview/test/unittest/nweb_config_helper_test/
H A Dnweb_config_helper_test.cpp37 NWebConfigHelper nWebConfigHelper;
53 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 in HWTEST_F()
[all...]
/base/web/webview/ohos_nweb/src/
H A Dnweb_config_helper.cpp132 NWebConfigHelper &NWebConfigHelper::Instance() in Instance()
134 static NWebConfigHelper helper; in Instance()
138 void NWebConfigHelper::ReadConfigIfNeeded() in ReadConfigIfNeeded()
142 NWebConfigHelper::Instance().ParseConfig(initArgs); in ReadConfigIfNeeded()
146 std::string NWebConfigHelper::GetConfigPath(const std::string &configFileName) in GetConfigPath()
158 void NWebConfigHelper::ReadConfig(const xmlNodePtr &rootPtr, std::shared_ptr<NWebEngineInitArgsImpl> initArgs) in ReadConfig()
193 xmlNodePtr NWebConfigHelper::GetChildrenNode(xmlNodePtr NodePtr, const std::string &childrenNodeName) in GetChildrenNode()
208 void NWebConfigHelper::ParseConfig(std::shared_ptr<NWebEngineInitArgsImpl> initArgs) in ParseConfig()
235 void NWebConfigHelper
[all...]
H A Dnweb_helper.cpp741 NWebConfigHelper::Instance().ReadConfigIfNeeded(); in ReadConfigIfNeeded()
1059 NWebConfigHelper::Instance().ParseConfig(initArgs); in CreateNWeb()
1105 NWebConfigHelper::Instance().ParseConfig(initArgs); in ParseConfig()
1110 auto perfConfig = NWebConfigHelper::Instance().GetPerfConfig(settingName); in GetPerfConfig()
1116 std::string config = NWebConfigHelper::Instance().ParsePerfConfig(configNodeName, argsNodeName); in ParsePerfConfig()
1122 return NWebConfigHelper::Instance().IsLTPODynamicApp(bundleName); in IsLTPODynamicApp()
1127 return NWebConfigHelper::Instance().GetLTPOStrategy(); in GetLTPOStrategy()
/base/web/webview/ohos_nweb/include/
H A Dnweb_config_helper.h25 class OHOS_NWEB_EXPORT NWebConfigHelper { class
27 static NWebConfigHelper &Instance();
28 ~NWebConfigHelper() = default;
38 NWebConfigHelper() = default;
/base/web/webview/ohos_adapter/system_properties_adapter/src/
H A Dsystem_properties_adapter_impl.cpp136 std::string factoryLevel = NWebConfigHelper::Instance() in AnalysisFromConfig()
139 NWebConfigHelper::Instance().ReadConfigIfNeeded(); in AnalysisFromConfig()
140 factoryLevel = NWebConfigHelper::Instance(). in AnalysisFromConfig()
336 return NWebConfigHelper::Instance().GetPerfConfig(settingName); in GetLTPOConfig()
341 return NWebConfigHelper::Instance().IsLTPODynamicApp(bundleName); in IsLTPODynamicApp()
346 return NWebConfigHelper::Instance().GetLTPOStrategy(); in GetLTPOStrategy()
/base/web/webview/test/unittest/nweb_helper_test/
H A Dnweb_helper_test.cpp245 NWebConfigHelper::Instance().perfConfig_.emplace("web/test", "web_test"); in HWTEST_F()
327 std::string figPath = NWebConfigHelper::Instance().GetConfigPath(configFileName); in HWTEST_F()
532 NWebConfigHelper::Instance().ltpoConfig_["test"] = {OHOS::NWeb::FrameRateSetting{0, 0, 0}}; in HWTEST_F()
534 NWebConfigHelper::Instance().ltpoConfig_.clear(); in HWTEST_F()
545 EXPECT_TRUE(NWebConfigHelper::Instance().ltpoConfig_.empty()); in HWTEST_F()
548 EXPECT_TRUE(NWebConfigHelper::Instance().ltpoConfig_.empty()); in HWTEST_F()
671 EXPECT_TRUE(NWebConfigHelper::Instance().ltpoAllowedApps_.empty()); in HWTEST_F()
672 EXPECT_FALSE(NWebConfigHelper::Instance().IsLTPODynamicApp("")); in HWTEST_F()
675 EXPECT_TRUE(NWebConfigHelper::Instance().ltpoAllowedApps_.empty()); in HWTEST_F()
676 EXPECT_FALSE(NWebConfigHelper in HWTEST_F()
[all...]
/base/web/webview/test/fuzztest/ohos_nweb/nwebhelper_fuzzer/
H A Dnwebhelper_fuzzer.cpp218 NWebConfigHelper::Instance().perfConfig_.emplace("web/test", "web_test"); in NWebHelperFuzzTest_002()

Completed in 7 milliseconds