Home
last modified time | relevance | path

Searched refs:NWeb (Results 1 – 25 of 381) sorted by relevance

12345678910>>...16

/base/web/webview/ohos_wrapper/src/
Dnweb_location_wrapper.cpp23 namespace OHOS::NWeb { namespace
29 if (!NWeb::g_locatorProxy) { in IsLocationEnable()
33 LocationErrCode ret = NWeb::g_locatorProxy->IsLocationEnabledV9(isEnabled); in IsLocationEnable()
45 if (!NWeb::g_locatorProxy || !requestConfig || !callback) { in StartLocating()
49 LocationErrCode ret = NWeb::g_locatorProxy->StartLocatingV9( in StartLocating()
60 if (!NWeb::g_locatorProxy || !callback) { in StopLocating()
64 LocationErrCode ret = NWeb::g_locatorProxy->StopLocatingV9(callback); in StopLocating()
74 if (!NWeb::g_locatorProxy) { in EnableAbility()
78 LocationErrCode ret = NWeb::g_locatorProxy->EnableAbilityV9(enable); in EnableAbility()
/base/web/webview/ohos_adapter/display_manager_adapter/src/
Ddisplay_manager_adapter_impl.cpp22 using namespace OHOS::NWeb;
24 namespace OHOS::NWeb { namespace
50 OHOS::NWeb::RotationType DisplayAdapterImpl::ConvertRotationType(OHOS::Rosen::Rotation type) in ConvertRotationType()
54 return OHOS::NWeb::RotationType::ROTATION_0; in ConvertRotationType()
56 return OHOS::NWeb::RotationType::ROTATION_90; in ConvertRotationType()
58 return OHOS::NWeb::RotationType::ROTATION_180; in ConvertRotationType()
60 return OHOS::NWeb::RotationType::ROTATION_270; in ConvertRotationType()
62 return OHOS::NWeb::RotationType::ROTATION_BUTT; in ConvertRotationType()
66 OHOS::NWeb::OrientationType DisplayAdapterImpl::ConvertOrientationType(OHOS::Rosen::Orientation typ… in ConvertOrientationType()
70 return OHOS::NWeb::OrientationType::UNSPECIFIED; in ConvertOrientationType()
[all …]
/base/web/webview/ohos_adapter/media_adapter/src/
Dplayer_framework_adapter_impl.cpp22 namespace OHOS::NWeb { namespace
65 NWeb::PlayerOnInfoType ConvertInfoType(Media::PlayerOnInfoType infoType) in ConvertInfoType()
67 NWeb::PlayerOnInfoType ret = NWeb::PlayerOnInfoType::INFO_TYPE_UNSET; in ConvertInfoType()
70 ret = NWeb::PlayerOnInfoType::INFO_TYPE_SEEKDONE; in ConvertInfoType()
73 ret = NWeb::PlayerOnInfoType::INFO_TYPE_EOS; in ConvertInfoType()
76 ret = NWeb::PlayerOnInfoType::INFO_TYPE_STATE_CHANGE; in ConvertInfoType()
79 ret = NWeb::PlayerOnInfoType::INFO_TYPE_POSITION_UPDATE; in ConvertInfoType()
82 ret = NWeb::PlayerOnInfoType::INFO_TYPE_MESSAGE; in ConvertInfoType()
85 ret = NWeb::PlayerOnInfoType::INFO_TYPE_INTERRUPT_EVENT; in ConvertInfoType()
93 Media::PlayerSeekMode ConvertSeekMode(NWeb::PlayerSeekMode mode) in ConvertSeekMode()
[all …]
/base/web/webview/test/unittest/display_manager_adapter_impl_test/
Ddisplay_manager_adapter_impl_test.cpp29 using namespace OHOS::NWeb;
52 namespace NWeb { namespace
136 OHOS::NWeb::RotationType retType;
138 EXPECT_EQ(retType, OHOS::NWeb::RotationType::ROTATION_0);
142 EXPECT_EQ(retType, OHOS::NWeb::RotationType::ROTATION_90);
146 EXPECT_EQ(retType, OHOS::NWeb::RotationType::ROTATION_180);
150 EXPECT_EQ(retType, OHOS::NWeb::RotationType::ROTATION_270);
155 EXPECT_EQ(retType, OHOS::NWeb::RotationType::ROTATION_BUTT);
170 OHOS::NWeb::OrientationType retType;
172 EXPECT_EQ(retType, OHOS::NWeb::OrientationType::UNSPECIFIED);
[all …]
/base/web/webview/ohos_adapter/location_adapter/src/
Dlocation_proxy_adapter_impl.cpp35 int32_t ret = OHOS::NWeb::LocationRequestConfig::Scenario::UNSET; in ConvertScenario()
37 case OHOS::NWeb::LocationRequestConfig::Scenario::UNSET: in ConvertScenario()
40 case OHOS::NWeb::LocationRequestConfig::Scenario::NAVIGATION: in ConvertScenario()
43 case OHOS::NWeb::LocationRequestConfig::Scenario::TRAJECTORY_TRACKING: in ConvertScenario()
46 case OHOS::NWeb::LocationRequestConfig::Scenario::CAR_HAILING: in ConvertScenario()
49 case OHOS::NWeb::LocationRequestConfig::Scenario::DAILY_LIFE_SERVICE: in ConvertScenario()
52 case OHOS::NWeb::LocationRequestConfig::Scenario::NO_POWER: in ConvertScenario()
63 int32_t ret = OHOS::NWeb::LocationRequestConfig::Priority::PRIORITY_UNSET; in ConvertPriority()
65 case OHOS::NWeb::LocationRequestConfig::Priority::PRIORITY_UNSET: in ConvertPriority()
68 case OHOS::NWeb::LocationRequestConfig::Priority::PRIORITY_ACCURACY: in ConvertPriority()
[all …]
/base/web/webview/test/fuzztest/executejavascriptcode_fuzzer/
Dexecutejavascriptcode_fuzzer.cpp37 std::shared_ptr<OHOS::NWeb::NWeb> g_nweb = nullptr;
87 OHOS::NWeb::NWebInitArgs GetInitArgs() in GetInitArgs()
89 OHOS::NWeb::NWebInitArgs initArgs = { in GetInitArgs()
116 g_nweb = NWeb::NWebAdapterHelper::Instance().CreateNWeb(g_surface, GetInitArgs()); in DoSomethingInterestingWithMyAPI()
121 std::shared_ptr<NWeb::NWebValueCallback<std::shared_ptr<NWeb::NWebMessage>>> callback; in DoSomethingInterestingWithMyAPI()
/base/web/webview/interfaces/kits/napi/webcookiemanager/
Dnapi_web_cookie_manager.cpp32 namespace NWeb { namespace
129 …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()
[all …]
/base/web/webview/ohos_nweb/include/
Dnweb_adapter_helper.h28 namespace OHOS::NWeb {
34 std::shared_ptr<NWeb> CreateNWeb(sptr<Surface> surface,
38 std::shared_ptr<NWeb> CreateNWeb(void *enhanceSurfaceInfo,
Dnweb_helper.h28 namespace OHOS::NWeb {
37 std::shared_ptr<NWeb> CreateNWeb(const NWebCreateInfo &create_info);
41 std::weak_ptr<NWeb> GetNWeb(int32_t nweb_id);
Dnweb_adapter_common.h23 namespace OHOS::NWeb {
31 std::weak_ptr<NWeb> nwebWeak;
/base/web/webview/test/unittest/ohos_adapter/location_proxy_adapter_test/
Dlocation_proxy_adapter_test.cpp26 namespace OHOS::NWeb { namespace
94 scenario = OHOS::NWeb::LocationRequestConfig::Scenario::UNSET;
96 scenario = OHOS::NWeb::LocationRequestConfig::Scenario::NAVIGATION;
98 scenario = OHOS::NWeb::LocationRequestConfig::Scenario::TRAJECTORY_TRACKING;
100 scenario = OHOS::NWeb::LocationRequestConfig::Scenario::CAR_HAILING;
102 scenario = OHOS::NWeb::LocationRequestConfig::Scenario::DAILY_LIFE_SERVICE;
104 scenario = OHOS::NWeb::LocationRequestConfig::Scenario::NO_POWER;
113 priority = OHOS::NWeb::LocationRequestConfig::Priority::PRIORITY_UNSET;
115 priority = OHOS::NWeb::LocationRequestConfig::Priority::PRIORITY_ACCURACY;
117 priority = OHOS::NWeb::LocationRequestConfig::Priority::PRIORITY_LOW_POWER;
[all …]
/base/web/webview/test/unittest/net_connect_adapter_test/
Dnet_connect_adapter_test.cpp24 namespace OHOS::NWeb { namespace
73 NetConnectType actualType = OHOS::NWeb::NetConnectUtils::ConvertToConnectTypeInner(type);
77 OHOS::NWeb::NetConnectUtils::ConvertToConnectTypeInner(static_cast<RadioTech>(-1)));
105 NetConnectSubtype actualType = OHOS::NWeb::NetConnectUtils::ConvertToConnectsubtype(type);
108 …EXPECT_EQ(NetConnectSubtype::SUBTYPE_UNKNOWN, OHOS::NWeb::NetConnectUtils::ConvertToConnectsubtype(
120 std::unordered_map<NetBearType, OHOS::NWeb::NetConnectType> typeMap;
131 NetConnectType actualType = OHOS::NWeb::NetConnectUtils::ConvertToConnectType(
136 EXPECT_EQ(NetConnectType::CONNECTION_UNKNOWN, OHOS::NWeb::NetConnectUtils::ConvertToConnectType(
148 std::unordered_map<OHOS::NWeb::NetConnectType, std::string> typeMap;
159 OHOS::NWeb::NetConnectType connectType = iter.first;
[all …]
/base/web/webview/ohos_adapter/pre_dns_adapter/src/
Dnweb_pre_dns_adapter.cpp24 namespace OHOS::NWeb { namespace
36 OHOS::NWeb::OhosWebDnsDataBaseAdapter &dnsDatabaseAdapter = in PreDnsInThread()
37 OHOS::NWeb::OhosAdapterHelper::GetInstance().GetWebDnsDataBaseInstance(); in PreDnsInThread()
/base/web/webview/test/fuzztest/zoom_fuzzer/
Dzoom_fuzzer.cpp28 std::shared_ptr<OHOS::NWeb::NWeb> g_nweb = nullptr;
78 OHOS::NWeb::NWebInitArgs GetInitArgs() in GetInitArgs()
80 OHOS::NWeb::NWebInitArgs initArgs = { in GetInitArgs()
107 g_nweb = NWeb::NWebAdapterHelper::Instance().CreateNWeb(g_surface, GetInitArgs()); in DoSomethingInterestingWithMyAPI()
/base/web/webview/test/fuzztest/cannavigatebackorforward_fuzzer/
Dcannavigatebackorforward_fuzzer.cpp28 std::shared_ptr<OHOS::NWeb::NWeb> g_nweb = nullptr;
78 OHOS::NWeb::NWebInitArgs GetInitArgs() in GetInitArgs()
80 OHOS::NWeb::NWebInitArgs initArgs = { in GetInitArgs()
108 g_nweb = NWeb::NWebAdapterHelper::Instance().CreateNWeb(g_surface, GetInitArgs()); in DoSomethingInterestingWithMyAPI()
/base/web/webview/test/fuzztest/putbackgroundcolor_fuzzer/
Dputbackgroundcolor_fuzzer.cpp28 std::shared_ptr<OHOS::NWeb::NWeb> g_nweb = nullptr;
78 OHOS::NWeb::NWebInitArgs GetInitArgs() in GetInitArgs()
80 OHOS::NWeb::NWebInitArgs initArgs = { in GetInitArgs()
107 g_nweb = NWeb::NWebAdapterHelper::Instance().CreateNWeb(g_surface, GetInitArgs()); in DoSomethingInterestingWithMyAPI()
/base/web/webview/
D.gitattributes1 ohos_nweb/prebuilts/arm/NWeb.hap filter=lfs diff=lfs merge=lfs -text
2 ohos_nweb/prebuilts/arm64/NWeb.hap filter=lfs diff=lfs merge=lfs -text
/base/web/webview/test/fuzztest/load_fuzzer/
Dload_fuzzer.cpp28 std::shared_ptr<OHOS::NWeb::NWeb> g_nweb = nullptr;
78 OHOS::NWeb::NWebInitArgs GetInitArgs() in GetInitArgs()
80 OHOS::NWeb::NWebInitArgs initArgs = { in GetInitArgs()
107 g_nweb = NWeb::NWebAdapterHelper::Instance().CreateNWeb(g_surface, GetInitArgs()); in DoSomethingInterestingWithMyAPI()
/base/web/webview/test/fuzztest/executejavascript_fuzzer/
Dexecutejavascript_fuzzer.cpp35 std::shared_ptr<OHOS::NWeb::NWeb> g_nweb = nullptr;
85 OHOS::NWeb::NWebInitArgs GetInitArgs() in GetInitArgs()
87 OHOS::NWeb::NWebInitArgs initArgs = { in GetInitArgs()
114 g_nweb = NWeb::NWebAdapterHelper::Instance().CreateNWeb(g_surface, GetInitArgs()); in DoSomethingInterestingWithMyAPI()
/base/web/webview/test/fuzztest/loadurl_fuzzer/
Dloadurl_fuzzer.cpp28 std::shared_ptr<OHOS::NWeb::NWeb> g_nweb = nullptr;
78 OHOS::NWeb::NWebInitArgs GetInitArgs() in GetInitArgs()
80 OHOS::NWeb::NWebInitArgs initArgs = { in GetInitArgs()
107 g_nweb = NWeb::NWebAdapterHelper::Instance().CreateNWeb(g_surface, GetInitArgs()); in DoSomethingInterestingWithMyAPI()
/base/web/webview/test/fuzztest/ontouchrelease_fuzzer/
Dontouchrelease_fuzzer.cpp28 std::shared_ptr<OHOS::NWeb::NWeb> g_nweb = nullptr;
78 OHOS::NWeb::NWebInitArgs GetInitArgs() in GetInitArgs()
80 OHOS::NWeb::NWebInitArgs initArgs = { in GetInitArgs()
107 g_nweb = NWeb::NWebAdapterHelper::Instance().CreateNWeb(g_surface, GetInitArgs()); in DoSomethingInterestingWithMyAPI()
/base/web/webview/test/fuzztest/unregisterarkjsfunction_fuzzer/
Dunregisterarkjsfunction_fuzzer.cpp28 std::shared_ptr<OHOS::NWeb::NWeb> g_nweb = nullptr;
78 OHOS::NWeb::NWebInitArgs GetInitArgs() in GetInitArgs()
80 OHOS::NWeb::NWebInitArgs initArgs = { in GetInitArgs()
107 g_nweb = NWeb::NWebAdapterHelper::Instance().CreateNWeb(g_surface, GetInitArgs()); in DoSomethingInterestingWithMyAPI()
/base/web/webview/test/fuzztest/loadwithdata_fuzzer/
Dloadwithdata_fuzzer.cpp28 std::shared_ptr<OHOS::NWeb::NWeb> g_nweb = nullptr;
79 OHOS::NWeb::NWebInitArgs GetInitArgs() in GetInitArgs()
81 OHOS::NWeb::NWebInitArgs initArgs = { in GetInitArgs()
108 g_nweb = NWeb::NWebAdapterHelper::Instance().CreateNWeb(g_surface, GetInitArgs()); in DoSomethingInterestingWithMyAPI()
/base/web/webview/test/fuzztest/registerarkjsfunction_fuzzer/
Dregisterarkjsfunction_fuzzer.cpp28 std::shared_ptr<OHOS::NWeb::NWeb> g_nweb = nullptr;
78 OHOS::NWeb::NWebInitArgs GetInitArgs() in GetInitArgs()
80 OHOS::NWeb::NWebInitArgs initArgs = { in GetInitArgs()
107 g_nweb = NWeb::NWebAdapterHelper::Instance().CreateNWeb(g_surface, GetInitArgs()); in DoSomethingInterestingWithMyAPI()
/base/web/webview/test/fuzztest/sendkeyevent_fuzzer/
Dsendkeyevent_fuzzer.cpp28 std::shared_ptr<OHOS::NWeb::NWeb> g_nweb = nullptr;
78 OHOS::NWeb::NWebInitArgs GetInitArgs() in GetInitArgs()
80 OHOS::NWeb::NWebInitArgs initArgs = { in GetInitArgs()
107 g_nweb = NWeb::NWebAdapterHelper::Instance().CreateNWeb(g_surface, GetInitArgs()); in DoSomethingInterestingWithMyAPI()

12345678910>>...16