Home
last modified time | relevance | path

Searched refs:nwebId (Results 1 - 25 of 39) sorted by relevance

12

/base/web/webview/ohos_adapter/res_sched_adapter/src/
H A Dres_sched_client_adapter_impl.cpp199 bool IsSameSourceWebSiteActive(ResSchedStatusAdapter statusAdapter, pid_t pid, int32_t nwebId) in IsSameSourceWebSiteActive() argument
201 g_pidNwebMap[pid][nwebId] = statusAdapter; in IsSameSourceWebSiteActive()
206 WVLOG_D("IsSameSourceWebSiteActive, current nwebId: %{public}d, active nwebId: %{public}d, " in IsSameSourceWebSiteActive()
207 "pid: %{public}d", nwebId, it.first, pid); in IsSameSourceWebSiteActive()
217 pid_t pid, uint32_t windowId, int32_t nwebId, bool isSiteManage) in ReportStatusData()
222 if (g_nwebSet.find(nwebId) == g_nwebSet.end() || pid == 0) { in ReportStatusData()
223 WVLOG_D("Don't report window status, nwebId: %{public}d, pid: %{public}d", nwebId, pid); in ReportStatusData()
234 if (isSiteManage && IsSameSourceWebSiteActive(statusAdapter, pid, nwebId)) { in ReportStatusData()
216 ReportStatusData(ResSchedStatusAdapter statusAdapter, pid_t pid, uint32_t windowId, int32_t nwebId, bool isSiteManage) ReportStatusData() argument
330 int32_t nwebId = g_nwebId; ReportProcessInUse() local
353 ReportWindowStatus( ResSchedStatusAdapter statusAdapter, pid_t pid, uint32_t windowId, int32_t nwebId) ReportWindowStatus() argument
380 ReportScene( ResSchedStatusAdapter statusAdapter, ResSchedSceneAdapter sceneAdapter, int32_t nwebId) ReportScene() argument
394 ReportWindowId(int32_t windowId, int32_t nwebId) ReportWindowId() argument
402 ReportNWebInit(ResSchedStatusAdapter statusAdapter, int32_t nwebId) ReportNWebInit() argument
[all...]
/base/web/webview/test/fuzztest/ohos_nweb/hisysevent_fuzzer/
H A Dhisysevent_fuzzer.cpp31 int32_t nwebId; in HiSysEventFuzzTest() local
32 if (memcpy_s(&nwebId, sizeof(int32_t), data, sizeof(int32_t)) != EOK) { in HiSysEventFuzzTest()
35 EventReport::ReportCreateWebInstanceTime(nwebId, nwebId); in HiSysEventFuzzTest()
/base/web/webview/interfaces/kits/napi/webviewcontroller/
H A Dweb_download_manager.cpp32 WebDownloadDelegate *GetWebDownloadDelegate(int32_t nwebId) in GetWebDownloadDelegate() argument
34 auto it = g_web_download_delegate_map.find(nwebId); in GetWebDownloadDelegate()
48 int32_t nwebId = WebDownloadItem_NWebId(downloadItem); in DownloadBeforeStart() local
49 WebDownloadDelegate *webDownloadDelegate = GetWebDownloadDelegate(nwebId); in DownloadBeforeStart()
75 int32_t nwebId = WebDownloadItem_NWebId(downloadItem); in DownloadDidUpdate() local
77 WebDownloadDelegate *webDownloadDelegate = GetWebDownloadDelegate(nwebId); in DownloadDidUpdate()
147 void WebDownloadManager::AddDownloadDelegateForWeb(int32_t nwebId, WebDownloadDelegate *delegate) in AddDownloadDelegateForWeb() argument
150 g_web_download_delegate_map.insert_or_assign(nwebId, delegate); in AddDownloadDelegateForWeb()
155 void WebDownloadManager::RemoveDownloadDelegateRef(int32_t nwebId) in RemoveDownloadDelegateRef() argument
157 auto iter = g_web_download_delegate_map.find(nwebId); in RemoveDownloadDelegateRef()
[all...]
H A Dweb_download_manager.h37 static void AddDownloadDelegateForWeb(int32_t nwebId, WebDownloadDelegate *delegate);
39 static void RemoveDownloadDelegateRef(int32_t nwebId);
H A Dweb_download_delegate.h31 static WebDownloadDelegate *FromNWebID(int32_t nwebId);
47 void SetNWebId(int32_t nwebId);
H A Dwebview_javascript_result_callback.cpp87 WebviewJavaScriptResultCallBack* FromNwebID(int32_t nwebId) in FromNwebID() argument
90 if (auto it = g_webviewJsResultCallbackMap.find(nwebId); it != g_webviewJsResultCallbackMap.end()) { in FromNwebID()
113 if (isObject && FromNwebID(bundle.nwebId)) { in CallH5Function()
115 if (FromNwebID(bundle.nwebId)->FindObjectIdInJsTd(env, *napiArg, &returnedObjectId)) { in CallH5Function()
116 FromNwebID(bundle.nwebId)->FindObject(returnedObjectId)->AddHolder(bundle.frameRoutingId); in CallH5Function()
118 returnedObjectId = FromNwebID(bundle.nwebId)->AddObject(env, *napiArg, false, bundle.frameRoutingId); in CallH5Function()
121 FromNwebID(bundle.nwebId)->SetUpAnnotateMethods(returnedObjectId, methodNameList); in CallH5Function()
171 if (FromNwebID(bundle.nwebId)) { in CallbackFunctionForH5()
172 FromNwebID(bundle.nwebId)->CallH5FunctionInternal(env, bundle, nwebArgs); in CallbackFunctionForH5()
185 napi_env env, int32_t nwebId, int32_ in CreateFunctionForH5()
184 CreateFunctionForH5( napi_env env, int32_t nwebId, int32_t frameRoutingId, int32_t h5ObjectId, std::string funcName) CreateFunctionForH5() argument
398 ParseNwebValue2NapiValueHelper(napi_env env, std::shared_ptr<NWebValue> value, WebviewJavaScriptResultCallBack::ObjectMap& objectsMap, int32_t nwebId, int32_t frameId) ParseNwebValue2NapiValueHelper() argument
437 ParseArrayNwebValue2NapiValue(napi_env env, const std::shared_ptr<NWebValue>& value, WebviewJavaScriptResultCallBack::ObjectMap& objectsMap, int32_t nwebId, int32_t frameId) ParseArrayNwebValue2NapiValue() argument
458 ParseDictionaryNwebValue2NapiValue(napi_env env, const std::shared_ptr<NWebValue>& value, WebviewJavaScriptResultCallBack::ObjectMap& objectsMap, int32_t nwebId, int32_t frameId) ParseDictionaryNwebValue2NapiValue() argument
477 ParseBinNwebValue2NapiValue(napi_env env, const std::shared_ptr<NWebValue>& value, WebviewJavaScriptResultCallBack::ObjectMap& objectsMap, int32_t nwebId, int32_t frameId) ParseBinNwebValue2NapiValue() argument
525 ParseNwebValue2NapiValue(napi_env env, std::shared_ptr<NWebValue> value, WebviewJavaScriptResultCallBack::ObjectMap objectsMap, int32_t nwebId, int32_t frameId) ParseNwebValue2NapiValue() argument
838 WebviewJavaScriptResultCallBack(int32_t nwebId) WebviewJavaScriptResultCallBack() argument
[all...]
H A Dnative_media_player_impl.h26 NWebNativeMediaPlayerBridgeImpl(int32_t nwebId, napi_env env, napi_value value);
61 NapiNativeMediaPlayerHandlerImpl(int32_t nwebId, std::shared_ptr<NWebNativeMediaPlayerHandler> handler);
101 explicit NWebCreateNativeMediaPlayerCallbackImpl(int32_t nwebId, napi_env env, napi_ref callback);
H A Dweb_download_item.cpp48 this->nwebId = 0; in WebDownloadItem()
86 this->nwebId = WebDownloadItem_NWebId(downloadItem); in WebDownloadItem()
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webview/
H A Dark_res_sched_client_adapter_impl.cpp29 bool ArkResSchedClientAdapter::ReportWindowStatus(int32_t statusAdapter, pid_t pid, uint32_t windowId, int32_t nwebId) in ReportWindowStatus() argument
32 (NWeb::ResSchedStatusAdapter)statusAdapter, pid, windowId, nwebId); in ReportWindowStatus()
35 bool ArkResSchedClientAdapter::ReportScene(int32_t statusAdapter, int32_t sceneAdapter, int32_t nwebId) in ReportScene() argument
38 (NWeb::ResSchedStatusAdapter)statusAdapter, (NWeb::ResSchedSceneAdapter)sceneAdapter, nwebId); in ReportScene()
46 void ArkResSchedClientAdapter::ReportWindowId(int32_t windowId, int32_t nwebId) in ReportWindowId() argument
48 return NWeb::ResSchedClientAdapter::ReportWindowId(windowId, nwebId); in ReportWindowId()
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webcore/
H A Dark_res_sched_client_adapter_wrapper.cpp29 ResSchedStatusAdapter statusAdapter, pid_t pid, uint32_t windowId, int32_t nwebId) in ReportWindowStatus()
31 return OHOS::ArkWeb::ArkResSchedClientAdapter::ReportWindowStatus((int32_t)statusAdapter, pid, windowId, nwebId); in ReportWindowStatus()
35 ResSchedStatusAdapter statusAdapter, ResSchedSceneAdapter sceneAdapter, int32_t nwebId) in ReportScene()
37 return OHOS::ArkWeb::ArkResSchedClientAdapter::ReportScene((int32_t)statusAdapter, (int32_t)sceneAdapter, nwebId); in ReportScene()
45 void ResSchedClientAdapter::ReportWindowId(int32_t windowId, int32_t nwebId) in ReportWindowId() argument
47 return OHOS::ArkWeb::ArkResSchedClientAdapter::ReportWindowId(windowId, nwebId); in ReportWindowId()
28 ReportWindowStatus( ResSchedStatusAdapter statusAdapter, pid_t pid, uint32_t windowId, int32_t nwebId) ReportWindowStatus() argument
34 ReportScene( ResSchedStatusAdapter statusAdapter, ResSchedSceneAdapter sceneAdapter, int32_t nwebId) ReportScene() argument
/base/web/webview/interfaces/kits/cj/src/
H A Dweb_download_manager_impl.cpp34 WebDownloadDelegateImpl *GetWebDownloadDelegate(int32_t nwebId) in GetWebDownloadDelegate() argument
36 auto it = g_web_download_delegate_map.find(nwebId); in GetWebDownloadDelegate()
50 int32_t nwebId = WebDownloadItem_NWebId(downloadItem); in DownloadBeforeStart() local
51 WebDownloadDelegateImpl *webDownloadDelegate = GetWebDownloadDelegate(nwebId); in DownloadBeforeStart()
77 int32_t nwebId = WebDownloadItem_NWebId(downloadItem); in DownloadDidUpdate() local
79 WebDownloadDelegateImpl *webDownloadDelegate = GetWebDownloadDelegate(nwebId); in DownloadDidUpdate()
147 void WebDownloadManagerImpl::AddDownloadDelegateForWeb(int32_t nwebId, WebDownloadDelegateImpl *delegate) in AddDownloadDelegateForWeb() argument
150 g_web_download_delegate_map.insert_or_assign(nwebId, delegate); in AddDownloadDelegateForWeb()
H A Dweb_download_delegate_impl.cpp109 void WebDownloadDelegateImpl::SetNWebId(int32_t nwebId) in SetNWebId() argument
111 nwebId_ = nwebId; in SetNWebId()
H A Dweb_download_item_impl.cpp46 this->nwebId = 0; in WebDownloadItemImpl()
84 this->nwebId = WebDownloadItem_NWebId(downloadItem); in WebDownloadItemImpl()
/base/web/webview/test/fuzztest/ohos_adapter/resschedadapter_fuzzer/
H A Dresschedadapter_fuzz.cpp40 int32_t nwebId = static_cast<int32_t>(size); in ResSchedAdapterFuzzTest() local
61 adapter.ReportNWebInit(status, nwebId); in ResSchedAdapterFuzzTest()
62 adapter.ReportWindowId(windowId, nwebId); in ResSchedAdapterFuzzTest()
71 adapter.ReportWindowStatus(status, pid, windowId, nwebId); in ResSchedAdapterFuzzTest()
72 adapter.ReportScene(status, ResSchedSceneAdapter::CLICK, nwebId); in ResSchedAdapterFuzzTest()
73 adapter.ReportScene(status, ResSchedSceneAdapter::LOAD_URL, nwebId); in ResSchedAdapterFuzzTest()
77 adapter.ReportWindowId(0, nwebId); in ResSchedAdapterFuzzTest()
82 adapter.ReportWindowId(0, nwebId); in ResSchedAdapterFuzzTest()
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/include/
H A Dark_res_sched_client_adapter.h31 static bool ReportWindowStatus(int32_t statusAdapter, pid_t pid, uint32_t windowId, int32_t nwebId);
34 static bool ReportScene(int32_t statusAdapter, int32_t sceneAdapter, int32_t nwebId);
40 static void ReportWindowId(int32_t windowId, int32_t nwebId);
/base/web/webview/ohos_interface/include/ohos_adapter/
H A Dres_sched_client_adapter.h77 ResSchedStatusAdapter statusAdapter, pid_t pid, uint32_t windowId, int32_t nwebId = -1);
79 ResSchedStatusAdapter statusAdapter, ResSchedSceneAdapter sceneAdapter, int32_t nwebId = -1);
81 static void ReportWindowId(int32_t windowId, int32_t nwebId = -1);
82 static void ReportNWebInit(ResSchedStatusAdapter statusAdapter, int32_t nwebId);
/base/web/webview/ohos_nweb/src/
H A Dnweb_hisysevent.cpp62 int EventReport::ReportCreateWebInstanceTime(uint32_t nwebId, int64_t usedTime) in ReportCreateWebInstanceTime() argument
64 auto data = std::make_tuple(INSTANCE_ID, nwebId, USED_TIME, usedTime); in ReportCreateWebInstanceTime()
/base/web/webview/ohos_nweb/include/
H A Dnweb_hisysevent.h26 static int ReportCreateWebInstanceTime(uint32_t nwebId, int64_t usedTime);
H A Dnweb_c_api.h52 NWEB_EXPORT void WebDownloader_StartDownload(int32_t nwebId, const char* url);
76 NWEB_EXPORT NWebDownloadItemState WebDownload_GetItemState(int32_t nwebId, long downloadItemId);
/base/web/webview/ohos_interface/include/ohos_nweb/
H A Dnweb_controller_handler.h29 virtual void SetNWebHandlerById(int32_t nwebId) = 0;
/base/web/webview/interfaces/kits/cj/include/
H A Dweb_download_manager_impl.h32 static void AddDownloadDelegateForWeb(int32_t nwebId, WebDownloadDelegateImpl *delegate);
H A Dweb_download_item_impl.h57 int32_t nwebId; member in OHOS::Webview::WebDownloadItemImpl
H A Dweb_download_delegate_impl.h41 void SetNWebId(int32_t nwebId);
/base/web/webview/interfaces/kits/napi/webasynccontroller/
H A Dnapi_web_async_controller.cpp172 int32_t nwebId = -1; in JS_NapiWebAsyncController() local
173 napi_get_value_int32(env, result, &nwebId); in JS_NapiWebAsyncController()
175 NapiWebAsyncController *webAsyncController = new (std::nothrow) NapiWebAsyncController(env, thisVar, nwebId); in JS_NapiWebAsyncController()
192 NapiWebAsyncController::NapiWebAsyncController(napi_env env, napi_value thisVar, int32_t nwebId) : nwebId_(nwebId) {} in NapiWebAsyncController() argument
H A Dnapi_web_async_controller.h29 NapiWebAsyncController(napi_env env, napi_value thisVar, int32_t nwebId);

Completed in 15 milliseconds

12