/base/web/webview/interfaces/kits/cj/include/ |
H A D | web_download_manager_impl.h | 29 static void SetDownloadDelegate(WebDownloadDelegateImpl *delegate); 32 static void AddDownloadDelegateForWeb(int32_t nwebId, WebDownloadDelegateImpl *delegate); 33 static void RemoveDownloadDelegate(WebDownloadDelegateImpl *delegate);
|
/base/web/webview/interfaces/kits/napi/webviewcontroller/ |
H A D | web_download_manager.h | 34 static void SetDownloadDelegate(WebDownloadDelegate *delegate); 37 static void AddDownloadDelegateForWeb(int32_t nwebId, WebDownloadDelegate *delegate); 38 static void RemoveDownloadDelegate(WebDownloadDelegate *delegate);
|
H A D | napi_web_download_manager.cpp | 46 // check download delegate is object type in JS_SetDownloadDelegate() 50 WebDownloadDelegate *delegate = nullptr; in JS_SetDownloadDelegate() local 51 napi_unwrap(env, obj, (void **)&delegate); in JS_SetDownloadDelegate() 52 if (!delegate) { in JS_SetDownloadDelegate() 53 WVLOG_E("[DOWNLOAD] NapiWebDownloadManager::JS_SetDownloadDelegate delegate is null"); in JS_SetDownloadDelegate() 56 napi_create_reference(env, obj, 1, &delegate->delegate_); in JS_SetDownloadDelegate() 57 WebDownloadManager::SetDownloadDelegate(delegate); in JS_SetDownloadDelegate()
|
H A D | web_download_manager.cpp | 51 WVLOG_D("[DOWNLOAD] donn't found delegate for nweb."); in DownloadBeforeStart() 79 WVLOG_D("[DOWNLOAD] donn't found delegate for nweb."); in DownloadDidUpdate() 134 void WebDownloadManager::RemoveDownloadDelegate(WebDownloadDelegate *delegate) in RemoveDownloadDelegate() argument 138 if (iterator->second == delegate) { in RemoveDownloadDelegate() 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() 164 void WebDownloadManager::SetDownloadDelegate(WebDownloadDelegate *delegate) in SetDownloadDelegate() argument 168 g_default_delegate = std::make_unique<WebDownloadDelegate>(*delegate); in SetDownloadDelegate()
|
H A D | napi_web_download_delegate.cpp | 121 WebDownloadDelegate *delegate = new WebDownloadDelegate(env); in JS_Constructor() local 125 env, thisVar, delegate, in JS_Constructor() 127 WebDownloadDelegate *delegate = static_cast<WebDownloadDelegate *>(data); in JS_Constructor() 128 delete delegate; in JS_Constructor()
|
H A D | napi_webview_controller.cpp | 4771 WebDownloadDelegate* delegate = nullptr; in SetDownloadDelegate() local 4773 napi_unwrap(env, obj, (void**)&delegate); in SetDownloadDelegate() 4774 if (!delegate) { in SetDownloadDelegate() 4775 WVLOG_E("[DOWNLOAD] WebDownloader::JS_SetDownloadDelegate delegate is null"); in SetDownloadDelegate() 4779 napi_create_reference(env, obj, 1, &delegate->delegate_); in SetDownloadDelegate() 4789 WebDownloadManager::AddDownloadDelegateForWeb(nwebId, delegate); in SetDownloadDelegate()
|
/base/web/webview/interfaces/kits/cj/src/ |
H A D | web_download_manager_impl.cpp | 53 WEBVIEWLOGD("[DOWNLOAD] donn't found delegate for nweb."); in DownloadBeforeStart() 81 WEBVIEWLOGD("[DOWNLOAD] donn't found delegate for nweb."); in DownloadDidUpdate() 134 void WebDownloadManagerImpl::RemoveDownloadDelegate(WebDownloadDelegateImpl *delegate) in RemoveDownloadDelegate() argument 138 if (iterator->second == delegate) { in RemoveDownloadDelegate() 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() 155 void WebDownloadManagerImpl::SetDownloadDelegate(WebDownloadDelegateImpl *delegate) in SetDownloadDelegate() argument 159 g_default_delegate = delegate; in SetDownloadDelegate()
|
H A D | webview_ffi.cpp | 820 auto delegate = FFIData::GetData<WebDownloadDelegateImpl>(delegateId); in FfiOHOSWebviewCtlSetDownloadDelegate() local 821 if (!delegate) { in FfiOHOSWebviewCtlSetDownloadDelegate() 830 WebDownloadManagerImpl::AddDownloadDelegateForWeb(nwebId, delegate); in FfiOHOSWebviewCtlSetDownloadDelegate() 1659 WEBVIEWLOGE("new web download delegate failed"); in FfiOHOSWebDownloadDelegateImplConstructor()
|
/base/hiviewdfx/hisysevent/test/moduletest/common/ |
H A D | hisysevent_adapter_native_test.cpp | 168 std::shared_ptr<OHOS::HiviewDFX::HiSysEventDelegate> delegate = in HWTEST_F() local 170 std::thread t([delegate] () { in HWTEST_F() 171 delegate->BinderFunc(); in HWTEST_F() 174 auto ret = delegate->RemoveListener(nullptr); in HWTEST_F() 176 ret = delegate->SetDebugMode(nullptr, true); in HWTEST_F() 182 ret = delegate->AddListener(listener, rules); in HWTEST_F() 184 ret = delegate->SetDebugMode(listener, true); in HWTEST_F() 186 ret = delegate->SetDebugMode(listener, false); in HWTEST_F() 189 ret = delegate->RemoveListener(listener); in HWTEST_F() 199 ret = delegate in HWTEST_F() [all...] |
/base/inputmethod/imf/frameworks/js/napi/inputmethodability/ |
H A D | js_keyboard_delegate_setting.cpp | 94 auto delegate = std::make_shared<JsKeyboardDelegateSetting>(); in GetKeyboardDelegateSetting() local 95 if (delegate == nullptr) { in GetKeyboardDelegateSetting() 96 IMSA_HILOGE("keyboard delegate is nullptr!"); in GetKeyboardDelegateSetting() 99 keyboardDelegate_ = delegate; in GetKeyboardDelegateSetting() 110 auto delegate = GetKeyboardDelegateSetting(); in InitKeyboardDelegate() local 111 if (delegate == nullptr) { in InitKeyboardDelegate() 114 InputMethodAbility::GetInstance()->SetKdListener(delegate); in InitKeyboardDelegate() 126 auto delegate = GetKeyboardDelegateSetting(); in JsConstructor() local 127 if (delegate == nullptr || !InitKeyboardDelegate()) { in JsConstructor() 128 IMSA_HILOGE("failed to get delegate!"); in JsConstructor() 271 auto delegate = reinterpret_cast<JsKeyboardDelegateSetting *>(JsUtils::GetNativeSelf(env, info)); UnSubscribe() local [all...] |
/base/inputmethod/imf/frameworks/js/napi/inputmethodclient/ |
H A D | js_get_input_method_setting.cpp | 89 auto delegate = GetInputMethodSettingInstance(); in JsConstructor() local 90 if (delegate == nullptr) { in JsConstructor() 91 IMSA_HILOGE("delegate is nullptr!"); in JsConstructor() 97 env, thisVar, delegate.get(), [](napi_env env, void *data, void *hint) {}, nullptr, nullptr); in JsConstructor() 102 if (delegate->loop_ == nullptr) { in JsConstructor() 103 napi_get_uv_event_loop(env, &delegate->loop_); in JsConstructor()
|