Home
last modified time | relevance | path

Searched refs:callbackObj (Results 1 - 18 of 18) sorted by relevance

/foundation/ai/intelligent_voice_framework/tests/unittest/intell_voice_test/src/
H A Dclient_unit_test.cpp80 sptr<IRemoteObject> callbackObj = callback->AsObject(); in HWTEST_F() local
81 ASSERT_NE(callbackObj, nullptr); in HWTEST_F()
83 engine->SetCallback(callbackObj); in HWTEST_F()
/foundation/resourceschedule/resource_schedule_service/ressched/interfaces/kits/js/napi/src/
H A Djs_systemload_listener.cpp29 SystemloadListener::SystemloadListener(napi_env env, napi_value callbackObj, OnSystemloadLevelCb callback) in SystemloadListener() argument
32 if (napiEnv_ == nullptr || callbackObj == nullptr) { in SystemloadListener()
36 napi_create_reference(napiEnv_, callbackObj, 1, &tmpRef); in SystemloadListener()
H A Djs_systemload.cpp59 void Systemload::OnSystemloadLevel(napi_env env, napi_value callbackObj, int32_t level) in OnSystemloadLevel() argument
71 NAPI_CALL_RETURN_VOID(env, napi_strict_equals(env, callbackObj, iter->first->GetNapiValue(), &isEqual)); in OnSystemloadLevel()
134 auto systemloadLevelCb = [](napi_env env, napi_value callbackObj, int32_t level) { in RegisterSystemloadCallback()
135 Systemload::GetInstance().OnSystemloadLevel(env, callbackObj, level); in RegisterSystemloadCallback()
/foundation/resourceschedule/resource_schedule_service/ressched/interfaces/innerkits/ressched_client/include/
H A Dres_sched_client.h96 * @param callbackObj systemload level listener object.
98 void RegisterSystemloadNotifier(const sptr<ResSchedSystemloadNotifierClient>& callbackObj);
103 * @param callbackObj systemload level listener object
105 void UnRegisterSystemloadNotifier(const sptr<ResSchedSystemloadNotifierClient>& callbackObj);
153 void RegisterSystemloadLevelCb(const sptr<ResSchedSystemloadNotifierClient>& callbackObj);
154 void UnRegisterSystemloadLevelCb(const sptr<ResSchedSystemloadNotifierClient>& callbackObj);
/foundation/resourceschedule/resource_schedule_service/ressched/interfaces/innerkits/ressched_client/src/
H A Dres_sched_client.cpp121 void ResSchedClient::RegisterSystemloadNotifier(const sptr<ResSchedSystemloadNotifierClient>& callbackObj) in RegisterSystemloadNotifier() argument
129 systemloadLevelListener_->RegisterSystemloadLevelCb(callbackObj); in RegisterSystemloadNotifier()
137 void ResSchedClient::UnRegisterSystemloadNotifier(const sptr<ResSchedSystemloadNotifierClient>& callbackObj) in UnRegisterSystemloadNotifier() argument
145 systemloadLevelListener_->UnRegisterSystemloadLevelCb(callbackObj); in UnRegisterSystemloadNotifier()
400 const sptr<ResSchedSystemloadNotifierClient>& callbackObj) in RegisterSystemloadLevelCb()
403 if (callbackObj != nullptr) { in RegisterSystemloadLevelCb()
405 if (iter == callbackObj) { in RegisterSystemloadLevelCb()
410 systemloadLevelCbs_.emplace_back(callbackObj); in RegisterSystemloadLevelCb()
416 const sptr<ResSchedSystemloadNotifierClient>& callbackObj) in UnRegisterSystemloadLevelCb()
419 systemloadLevelCbs_.remove(callbackObj); in UnRegisterSystemloadLevelCb()
399 RegisterSystemloadLevelCb( const sptr<ResSchedSystemloadNotifierClient>& callbackObj) RegisterSystemloadLevelCb() argument
415 UnRegisterSystemloadLevelCb( const sptr<ResSchedSystemloadNotifierClient>& callbackObj) UnRegisterSystemloadLevelCb() argument
[all...]
/foundation/window/window_manager/window_scene/interfaces/kits/napi/scene_session_manager/
H A Djs_rss_session.cpp46 RssEventListener::RssEventListener(napi_env env, napi_value callbackObj, OnRssEventCb callback) in RssEventListener() argument
50 napi_create_reference(napiEnv_, callbackObj, 1, &objRef); in RssEventListener()
198 void RssSession::OnReceiveEvent(napi_env env, napi_value callbackObj, uint32_t eventType, in OnReceiveEvent() argument
210 NAPI_CALL_RETURN_VOID(env, napi_strict_equals(env, callbackObj, iter->first->GetNapiValue(), &isEqual)); in OnReceiveEvent()
262 auto rssDataCb = [](napi_env env, napi_value callbackObj, uint32_t eventType, in RegisterRssDataCallback()
264 RssSession::GetInstance().OnReceiveEvent(env, callbackObj, eventType, extraInfo); in RegisterRssDataCallback()
H A Djs_rss_session.h40 RssEventListener(napi_env env, napi_value callbackObj, OnRssEventCb callback);
74 void OnReceiveEvent(napi_env env, napi_value callbackObj, uint32_t eventType,
/foundation/multimedia/player_framework/test/fuzztest/screen_capture_fuzztest/screencaptureserverstartcase_fuzzer/
H A Dscreencaptureserverstartcase_fuzzer.cpp111 std::shared_ptr<TestScreenCaptureCallbackTest> callbackObj = std::make_shared<TestScreenCaptureCallbackTest>(); in FuzzScreenCaptureServerStartCase() local
112 TestScreenCapture::SetScreenCaptureCallback(callbackObj); in FuzzScreenCaptureServerStartCase()
/foundation/resourceschedule/resource_schedule_service/ressched/interfaces/kits/js/napi/include/
H A Djs_systemload_listener.h32 SystemloadListener(napi_env env, napi_value callbackObj, OnSystemloadLevelCb callback);
H A Djs_systemload.h66 void OnSystemloadLevel(napi_env env, napi_value callbackObj, int32_t level);
/foundation/multimedia/camera_framework/frameworks/js/camera_napi/src/picker/
H A Dcamera_picker_napi.cpp212 napi_value callbackObj = nullptr; in CommonCompleteCallback() local
230 napi_create_object(env, &callbackObj); in CommonCompleteCallback()
232 napi_set_named_property(env, callbackObj, "resultCode", resultCode); in CommonCompleteCallback()
234 napi_set_named_property(env, callbackObj, "resultUri", resultUri); in CommonCompleteCallback()
237 napi_set_named_property(env, callbackObj, "mediaType", resultMediaType); in CommonCompleteCallback()
238 jsContext->data = callbackObj; in CommonCompleteCallback()
/foundation/multimedia/av_codec/test/nativedemo/avdemuxer/capi_demo/
H A Davdemuxer_demo.cpp202 Demuxer_MediaKeySystemInfoCallback callbackObj = &OnDrmInfoChangedWithObjInApp; in SetDrmAppCallback() local
203 ret = OH_AVDemuxer_SetDemuxerMediaKeySystemInfoCallback(this->avdemxuer_, callbackObj); in SetDrmAppCallback()
/foundation/distributedhardware/distributed_audio/services/audiohdiproxy/test/unittest/daudio_hdi_handler/include/
H A Daudio_test_utils.h36 const sptr<OHOS::HDI::DistributedAudio::Audioext::V2_0::IDAudioCallback> &callbackObj) override
/foundation/resourceschedule/resource_schedule_service/ressched/test/fuzztest/ressched_fuzzer/
H A Dressched_fuzzer.cpp312 sptr<ResSchedSystemloadNotifierClient> callbackObj; in ResSchedClientFuzzTest() local
313 ResSchedClient::GetInstance().RegisterSystemloadNotifier(callbackObj); in ResSchedClientFuzzTest()
314 ResSchedClient::GetInstance().UnRegisterSystemloadNotifier(callbackObj); in ResSchedClientFuzzTest()
/foundation/multimedia/camera_framework/frameworks/js/camera_napi/src/output/
H A Dpreview_output_napi.cpp197 napi_value callbackObj; in OnSketchStatusDataChangedCall() local
198 napi_create_object(env_, &callbackObj); in OnSketchStatusDataChangedCall()
201 napi_set_property(env_, callbackObj, napiSketchStatusKey, napiSketchStatus); in OnSketchStatusDataChangedCall()
204 napi_set_property(env_, callbackObj, napiSketchRatioKey, napiSketchRatio); in OnSketchStatusDataChangedCall()
205 args[PARAM1] = callbackObj; in OnSketchStatusDataChangedCall()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_view_abstract.cpp748 DoubleBindCallback ParseDoubleBindCallback(const JSCallbackInfo& info, const JSRef<JSObject>& callbackObj, in ParseDoubleBindCallback() argument
751 JSRef<JSVal> arrowFunc = callbackObj->GetProperty(arrowFuncName); in ParseDoubleBindCallback()
3603 JSRef<JSObject> callbackObj = JSRef<JSObject>::Cast(info[0]); in ParseBindContextMenuShow() local
3604 menuParam.onStateChange = ParseDoubleBindCallback(info, callbackObj, "$value"); in ParseBindContextMenuShow()
3605 auto isShowObj = callbackObj->GetProperty("value"); in ParseBindContextMenuShow()
3641 JSRef<JSObject> callbackObj = JSRef<JSObject>::Cast(jsVal); in JsBindMenu() local
3642 menuParam.onStateChange = ParseDoubleBindCallback(info, callbackObj, "$value"); in JsBindMenu()
3643 auto isShowObj = callbackObj->GetProperty(static_cast<int32_t>(ArkUIIndex::VALUE)); in JsBindMenu()
7745 JSRef<JSObject> callbackObj = JSRef<JSObject>::Cast(info[0]); in ParseBindContentCoverIsShow() local
7746 auto isShowObj = callbackObj in ParseBindContentCoverIsShow()
7759 JSRef<JSObject> callbackObj = JSRef<JSObject>::Cast(info[0]); JsBindContentCover() local
7842 JSRef<JSObject> callbackObj = JSRef<JSObject>::Cast(info[0]); ParseSheetIsShow() local
[all...]
H A Djs_web.cpp2430 JSRef<JSObject> callbackObj = JSClass<JSWebAppLinkCallback>::NewInstance(); in Create()
2431 auto callbackEvent = Referenced::Claim(callbackObj->Unwrap<JSWebAppLinkCallback>()); in Create()
2433 obj->SetPropertyObject("result", callbackObj); in Create()
/foundation/multimedia/camera_framework/frameworks/native/camera/test/unittest/src/v1_1/
H A Dcamera_framework_unittest.cpp109 const sptr<HDI::Camera::V1_0::IStreamOperatorCallback>& callbackObj,
159 MOCK_METHOD2(GetStreamOperator, int32_t(const sptr<HDI::Camera::V1_0::IStreamOperatorCallback>& callbackObj,
161 MOCK_METHOD2(GetStreamOperator_V1_1, int32_t(const sptr<HDI::Camera::V1_0::IStreamOperatorCallback>& callbackObj,

Completed in 86 milliseconds