/ohos5.0/base/web/webview/test/unittest/ohos_adapter/media_adapter_test/ |
H A D | media_codec_encoder_adapter_impl_test.cpp | 190 std::shared_ptr<EncoderCallbackImpl> callbackImpl = std::make_shared<EncoderCallbackImpl>(cb); variable 193 callbackImpl->OnError(errorType, errorcode); 195 callbackImpl->OnOutputFormatChanged(fomat); 198 callbackImpl->OnInputBufferAvailable(index, buffer); 325 std::shared_ptr<EncoderCallbackImpl> callbackImpl = std::make_shared<EncoderCallbackImpl>(cb); variable 326 EXPECT_NE(callbackImpl, nullptr); 329 callbackImpl->cb_ = callback; 330 callbackImpl->OnError(OHOS::MediaAVCodec::AVCodecErrorType::AVCODEC_ERROR_EXTEND_START, 1); 332 callbackImpl->OnOutputFormatChanged(fomat); 333 callbackImpl->OnInputBufferAvailable(1, nullptr); [all …]
|
H A D | player_framework_adapter_impl_test.cpp | 161 auto callbackImpl = static_cast<PlayerCallbackTest*>(playerCallback_->callbackAdapter_.get()); variable 163 EXPECT_EQ(callbackImpl->infoType_, PlayerOnInfoType::INFO_TYPE_UNSET); 165 EXPECT_EQ(callbackImpl->errorType_, PlayerAdapterErrorType::INVALID_CODE);
|
/ohos5.0/base/web/webview/test/fuzztest/ohos_adapter/media_adapter/mediaavsessionadapterimpl_fuzzer/ |
H A D | mediaavsessionadapterimpl_fuzzer.cpp | 41 std::shared_ptr<MediaAVSessionCallbackImpl> callbackImpl = in MediaAVSessionAdapterImplFuzzTest() local 46 callbackImpl->OnPlay(); in MediaAVSessionAdapterImplFuzzTest() 47 callbackImpl->OnPause(); in MediaAVSessionAdapterImplFuzzTest() 48 callbackImpl->OnStop(); in MediaAVSessionAdapterImplFuzzTest() 49 callbackImpl->OnSeek(time); in MediaAVSessionAdapterImplFuzzTest()
|
/ohos5.0/base/notification/eventhandler/frameworks/cj/src/ |
H A D | emitter.cpp | 48 callbackImpl = nullptr; in ~CallbackInfo() 93 if (callbackInfo->callbackImpl->name == callbackName) { in SearchCallbackInfo() 130 int32_t OnOrOnce(InnerEvent::EventId eventId, CallbackImpl **callbackImpl, bool once) in OnOrOnce() argument 134 auto callback = *callbackImpl; in OnOrOnce() 139 *callbackImpl = nullptr; in OnOrOnce() 146 *callbackImpl = nullptr; in OnOrOnce() 149 callbackInfo->callbackImpl = callback; in OnOrOnce() 288 delete callbackInfo->callbackImpl; in ProcessCallback() 297 callbackInfo->callbackImpl->callback(eventData); in ProcessCallback()
|
H A D | emitter_ffi.cpp | 30 CallbackImpl *callbackImpl = new CallbackImpl(std::string(callbackInfo.name), onChange); in CreateCallback() local 31 if (callbackImpl == nullptr) { in CreateCallback() 35 return callbackImpl; in CreateCallback()
|
H A D | emitter.h | 35 CallbackImpl *callbackImpl = nullptr; member
|
/ohos5.0/base/web/webview/interfaces/kits/napi/webasynccontroller/ |
H A D | napi_web_async_controller.cpp | 215 auto callbackImpl = std::make_shared<OHOS::NWeb::NWebStoreWebArchiveCallback>(); in StoreWebArchiveCallback() local 216 callbackImpl->SetCallBack([env, jCallback = std::move(jsCallback)](std::string result) { in StoreWebArchiveCallback() 241 nweb->StoreWebArchive(baseName, autoName, callbackImpl); in StoreWebArchiveCallback() 262 auto callbackImpl = std::make_shared<OHOS::NWeb::NWebStoreWebArchiveCallback>(); in StoreWebArchivePromise() local 263 callbackImpl->SetCallBack([env, deferred](std::string result) { in StoreWebArchivePromise() 283 nweb->StoreWebArchive(baseName, autoName, callbackImpl); in StoreWebArchivePromise()
|
/ohos5.0/base/web/webview/ohos_adapter/net_connect_adapter/src/ |
H A D | net_connect_adapter_impl.cpp | 33 sptr<NetConnectCallbackImpl> callbackImpl = new (std::nothrow) NetConnectCallbackImpl(cb); in RegisterNetConnCallback() local 34 if (callbackImpl == nullptr) { in RegisterNetConnCallback() 39 int32_t ret = NetConnClient::GetInstance().RegisterNetConnCallback(callbackImpl); in RegisterNetConnCallback() 50 netConnCallbackMap_.insert(std::make_pair(id, callbackImpl)); in RegisterNetConnCallback()
|
/ohos5.0/base/web/webview/interfaces/kits/napi/webcookiemanager/ |
H A D | napi_web_cookie_manager.cpp | 135 cookieManager->GetCookieAsync(url, false, callbackImpl); in FetchCookieAsyncCallback() 149 cookieManager->GetCookieAsync(url, incognitoMode, callbackImpl); in FetchCookieAsyncPromise() 321 cookieManager->SetCookieAsync(url, value, false, false, callbackImpl); in ConfigCookieAsyncCallback() 340 cookieManager->SetCookieAsync(url, value, incognitoMode, includeHttpOnly, callbackImpl); in ConfigCookieAsyncPromise() 540 cookieManager->DeleteCookieEntirely(callbackImpl, false); in ClearAllCookiesAsyncCallback() 553 … auto callbackImpl = std::make_shared<OHOS::NWeb::NWebCookieCallbackImpl>(env, nullptr, deferred); in ClearAllCookiesAsyncPromise() local 554 cookieManager->DeleteCookieEntirely(callbackImpl, false); in ClearAllCookiesAsyncPromise() 637 cookieManager->DeleteSessionCookies(callbackImpl); in ClearSessionCookieAsyncCallback() 651 cookieManager->DeleteSessionCookies(callbackImpl); in ClearSessionCookieAsyncPromise() 726 cookieManager->Store(callbackImpl); in SaveCookieAsyncCallback() [all …]
|
/ohos5.0/base/web/webview/test/unittest/ohos_adapter/ohos_init_web_adapter/ |
H A D | ohos_init_web_adapter_test.cpp | 56 WebRunInitedCallback* callbackImpl = adapter.GetRunWebInitedCallback(); variable 57 EXPECT_EQ(callbackImpl, nullptr);
|
/ohos5.0/base/web/webview/interfaces/kits/napi/webviewcontroller/ |
H A D | webview_controller.cpp | 442 nweb_ptr->StoreWebArchive(baseName, autoName, callbackImpl); in StoreWebArchiveCallback() 462 callbackImpl->SetCallBack([env, deferred](std::string result) { in StoreWebArchivePromise() 483 nweb_ptr->StoreWebArchive(baseName, autoName, callbackImpl); in StoreWebArchivePromise() 984 nweb_ptr->ExecuteJavaScript(script, callbackImpl, extention); in RunJavaScriptCallback() 1003 nweb_ptr->ExecuteJavaScript(script, callbackImpl, extention); in RunJavaScriptPromise() 1076 nweb_ptr->ExecuteCreatePDFExt(pdfConfig, callbackImpl); in CreatePDFCallbackExt() 1093 nweb_ptr->ExecuteCreatePDFExt(pdfConfig, callbackImpl); in CreatePDFPromiseExt() 1156 nweb_ptr->HasImages(callbackImpl); in HasImagesCallback() 1175 nweb_ptr->HasImages(callbackImpl); in HasImagesPromise() 1584 nweb_ptr->OnCreateNativeMediaPlayer(callbackImpl); in OnCreateNativeMediaPlayer() [all …]
|
H A D | napi_webview_controller.cpp | 2215 auto callbackImpl = std::make_shared<NWebValueCallbackImpl>(env, onMsgEventFunc, true); in OnMessageEventExt() local 2224 ErrCode ret = msgPort->SetPortMessageCallback(callbackImpl); in OnMessageEventExt() 2462 auto callbackImpl = std::make_shared<NWebValueCallbackImpl>(env, onMsgEventFunc, false); in OnMessageEvent() local 2470 ErrCode ret = msgPort->SetPortMessageCallback(callbackImpl); in OnMessageEvent() 4973 WebPrintWriteResultCallback callbackImpl = in ParseWebPrintWriteResultCallback() local 4994 return callbackImpl; in ParseWebPrintWriteResultCallback()
|
/ohos5.0/base/web/webview/test/fuzztest/ohos_adapter/media_adapter/mediacodecencoderadapterimpl_fuzzer/ |
H A D | mediacodecencoderadapterimpl_fuzzer.cpp | 75 …std::shared_ptr<NWeb::CodecCallbackAdapter> callbackImpl = std::make_shared<EncoderCallbackAdapter… in CreateLocationProxyAdapterFuzzTest() local 80 mediaCodecEncoderAdapterImpl.SetCodecCallback(callbackImpl); in CreateLocationProxyAdapterFuzzTest()
|
/ohos5.0/base/web/webview/interfaces/kits/cj/src/ |
H A D | webview_controller_impl.cpp | 188 auto callbackImpl = std::make_shared<WebviewJavaScriptExecuteCallback>(callbackRef); in RunJavaScript() local 189 nweb_ptr->ExecuteJavaScript(script, callbackImpl, false); in RunJavaScript() 440 auto callbackImpl = std::make_shared<NWeb::NWebStoreWebArchiveCallback>(); in StoreWebArchiveCallback() local 441 callbackImpl->SetCallBack([cjCallback = callbackRef](std::string result) { in StoreWebArchiveCallback() 454 nweb_ptr->StoreWebArchive(baseName, autoName, callbackImpl); in StoreWebArchiveCallback()
|
/ohos5.0/base/web/webview/interfaces/native/ |
H A D | native_interface_arkweb.cpp | 65 auto callbackImpl = std::make_shared<OHOS::NWeb::NativeJavaScriptExecuteCallback>(callback); in OH_NativeArkWeb_RunJavaScript() local 67 nweb->ExecuteJavaScript(jsCode, callbackImpl, false); in OH_NativeArkWeb_RunJavaScript()
|
/ohos5.0/foundation/communication/ipc/services/dbinder/test/unittest/ |
H A D | dbinder_service_unittest.cpp | 112 std::shared_ptr<RpcSystemAbilityCallback> callbackImpl = nullptr; variable 113 bool res = dBinderService->StartDBinderService(callbackImpl); 126 std::shared_ptr<RpcSystemAbilityCallback> callbackImpl = nullptr; variable 128 bool res = dBinderService->StartDBinderService(callbackImpl); 141 std::shared_ptr<RpcSystemAbilityCallback> callbackImpl = nullptr; variable 144 bool res = dBinderService->StartDBinderService(callbackImpl); 157 std::shared_ptr<RpcSystemAbilityCallback> callbackImpl = nullptr; variable 161 bool res = dBinderService->StartDBinderService(callbackImpl);
|
/ohos5.0/base/security/access_token/interfaces/innerkits/accesstoken/test/unittest/src/ |
H A D | accesstoken_kit_extension_test.cpp | 2222 std::shared_ptr<TokenSyncCallback> callbackImpl = std::make_shared<TokenSyncCallback>(ptr); variable 2223 EXPECT_NE(nullptr, callbackImpl->tokenSyncCallback_); 2224 EXPECT_EQ(FAKE_SYNC_RET, callbackImpl->GetRemoteHapTokenInfo("test", 0)); // test input 2225 EXPECT_EQ(FAKE_SYNC_RET, callbackImpl->DeleteRemoteHapTokenInfo(0)); // test input 2227 EXPECT_EQ(FAKE_SYNC_RET, callbackImpl->UpdateRemoteHapTokenInfo(info)); // test input
|
/ohos5.0/foundation/communication/ipc/interfaces/innerkits/libdbinder/include/ |
H A D | dbinder_service.h | 152 bool StartDBinderService(std::shared_ptr<RpcSystemAbilityCallback> &callbackImpl);
|
/ohos5.0/foundation/communication/ipc/services/dbinder/dbinder_service/src/ |
H A D | dbinder_service.cpp | 79 bool DBinderService::StartDBinderService(std::shared_ptr<RpcSystemAbilityCallback> &callbackImpl) in StartDBinderService() argument 90 dbinderCallback_ = callbackImpl; in StartDBinderService()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/web/resource/ |
H A D | web_delegate.cpp | 1063 auto callbackImpl = std::make_shared<WebJavaScriptExecuteCallBack>(weak); in ExecuteTypeScript() local 1064 if (callbackImpl && callback) { in ExecuteTypeScript() 1065 … callbackImpl->SetCallBack([weak, func = std::move(callback)](std::string result) { in ExecuteTypeScript() 1078 delegate->nweb_->ExecuteJavaScript(jscode, callbackImpl, false); in ExecuteTypeScript() 1332 auto callbackImpl = std::make_shared<WebMessageValueCallBackImpl>(WeakClaim(this)); in SetPortMessageCallback() local 1333 if (callbackImpl && callback) { in SetPortMessageCallback() 1334 …callbackImpl->SetCallBack([weak = WeakClaim(this), func = std::move(callback)](std::string result)… in SetPortMessageCallback() 1347 nweb_->SetPortMessageCallback(port, callbackImpl); in SetPortMessageCallback()
|