Home
last modified time | relevance | path

Searched refs:callbackId (Results 1 – 25 of 193) sorted by relevance

12345678

/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/engine/jsi/
H A Djsi_group_js_bridge.cpp134 PLUGIN_REQUEST_ARG_REJECT_INDEX, callbackId)) { in ProcessJsRequest()
216 strFunctionName.c_str(), callbackId); in ProcessJsRequest()
351 auto itFunc = eventCallBackFuncs_.find(callbackId); in RemoveEventGroupCallBackFuncs()
353 eventCallBackFuncs_.erase(callbackId); in RemoveEventGroupCallBackFuncs()
394 dispatcher->DispatchPluginError(callbackId, in ProcessParseJsError()
399 dispatcher->DispatchPluginError(callbackId, in ProcessParseJsError()
530 auto itFunc = moduleCallBackFuncs_.find(callbackId); in CallModuleJsCallback()
553 RemoveRequestIdCallbackIdRelation(callbackId, true); in TriggerModulePluginGetErrorCallback()
562 callbackId); in TriggerModulePluginGetErrorCallback()
604 auto itFunc = eventCallBackFuncs_.find(callbackId); in CallEventJsCallback()
[all …]
H A Djsi_group_js_bridge.h66 …void TriggerModuleJsCallback(int32_t callbackId, int32_t code, std::vector<uint8_t>&& messageData)…
69 int32_t callbackId, int32_t errorCode, std::string&& errorMessage) override;
71 …void TriggerEventJsCallback(int32_t callbackId, int32_t code, std::vector<uint8_t>&& eventData) ov…
81 int32_t callbackId, int32_t code, OHOS::Ace::ResponseData responseData) override;
98 int32_t rejectCallbackIndex, int32_t callbackId);
100 const shared_ptr<JsValue>& localEventCallbackFunc, int32_t callbackId, int32_t requestId);
102 void RemoveEventGroupCallBackFuncs(int32_t callbackId);
103 void AddRequestIdCallbackIdRelation(int32_t callbackId, int32_t requestId);
106 …void CallModuleJsCallback(int32_t callbackId, int32_t code, const shared_ptr<JsValue>& callBackRes…
107 void CallEventJsCallback(int32_t callbackId, std::vector<uint8_t>&& data);
[all …]
H A Djsi_engine.h49 …void CallJs(const std::string& callbackId, const std::string& args, bool keepAlive = false, bool i…
69 bool CallCurlFunction(const OHOS::Ace::RequestData& requestData, int32_t callbackId);
138 …void TimerCallback(const std::string& callbackId, const std::string& delay, bool isInterval) overr…
140 void MediaQueryCallback(const std::string& callbackId, const std::string& args) override;
142 void RequestAnimationCallback(const std::string& callbackId, uint64_t timeStamp) override;
144 void JsCallback(const std::string& callbackId, const std::string& args) override;
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/
H A Djsi_declarative_group_js_bridge.cpp226 AddRequestIdCallbackIdRelation(callbackId, requestId); in SetEventGroupCallBackFuncs()
232 auto itFunc = eventCallBackFuncs_.find(callbackId); in RemoveEventGroupCallBackFuncs()
234 eventCallBackFuncs_.erase(callbackId); in RemoveEventGroupCallBackFuncs()
273 dispatcher->DispatchPluginError(callbackId, in ProcessParseJsError()
278 dispatcher->DispatchPluginError(callbackId, in ProcessParseJsError()
388 CallModuleJsCallback(callbackId, code, callBackResult); in TriggerModuleJsCallback()
400 auto itFunc = moduleCallBackFuncs_.find(callbackId); in CallModuleJsCallback()
420 RemoveRequestIdCallbackIdRelation(callbackId, true); in TriggerModulePluginGetErrorCallback()
424 auto itFunc = moduleCallBackFuncs_.find(callbackId); in TriggerModulePluginGetErrorCallback()
461 auto itFunc = eventCallBackFuncs_.find(callbackId); in CallEventJsCallback()
[all …]
H A Djsi_declarative_group_js_bridge.h66 …void TriggerModuleJsCallback(int32_t callbackId, int32_t code, std::vector<uint8_t>&& messageData)…
69 int32_t callbackId, int32_t errorCode, std::string&& errorMessage) override;
71 …void TriggerEventJsCallback(int32_t callbackId, int32_t code, std::vector<uint8_t>&& eventData) ov…
80 …void TriggerModuleJsCallbackPreview(int32_t callbackId, int32_t code, ResponseData responseData) o…
96 int32_t rejectCallbackIndex, int32_t callbackId);
98 const shared_ptr<JsValue>& localEventCallbackFunc, int32_t callbackId, int32_t requestId);
100 void RemoveEventGroupCallBackFuncs(int32_t callbackId);
101 void AddRequestIdCallbackIdRelation(int32_t callbackId, int32_t requestId);
104 …void CallModuleJsCallback(int32_t callbackId, int32_t code, const shared_ptr<JsValue>& callBackRes…
105 void CallEventJsCallback(int32_t callbackId, std::vector<uint8_t>&& data);
[all …]
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/appkit/ability_runtime/context/
H A Denvironment_callback.cpp132 int32_t callbackId = serialNumber_; in Register() local
143 …callbacks_.emplace(callbackId, std::shared_ptr<NativeReference>(reinterpret_cast<NativeReference*>… in Register()
145 return callbackId; in Register()
148 bool JsEnvironmentCallback::UnRegister(int32_t callbackId, bool isSync) in UnRegister() argument
150 TAG_LOGD(AAFwkTag::APPKIT, "callbackId : %{public}d", callbackId); in UnRegister()
152 auto it = callbacksSync_.find(callbackId); in UnRegister()
154 … TAG_LOGE(AAFwkTag::APPKIT, "callbackId: %{public}d is not in callbacksSync_", callbackId); in UnRegister()
158 return callbacksSync_.erase(callbackId) == 1; in UnRegister()
160 auto it = callbacks_.find(callbackId); in UnRegister()
162 TAG_LOGE(AAFwkTag::APPKIT, "callbackId: %{public}d is not in callbacks_", callbackId); in UnRegister()
[all …]
H A Dability_lifecycle_callback.cpp184 int32_t callbackId = serialNumber_; in Register() local
195 …callbacks_.emplace(callbackId, std::shared_ptr<NativeReference>(reinterpret_cast<NativeReference*>… in Register()
197 return callbackId; in Register()
200 bool JsAbilityLifecycleCallback::UnRegister(int32_t callbackId, bool isSync) in UnRegister() argument
202 TAG_LOGI(AAFwkTag::APPKIT, "callbackId : %{public}d", callbackId); in UnRegister()
204 auto it = callbacksSync_.find(callbackId); in UnRegister()
206 … TAG_LOGE(AAFwkTag::APPKIT, "callbackId: %{public}d is not in callbacksSync_", callbackId); in UnRegister()
209 return callbacksSync_.erase(callbackId) == 1; in UnRegister()
211 auto it = callbacks_.find(callbackId); in UnRegister()
213 TAG_LOGE(AAFwkTag::APPKIT, "callbackId: %{public}d is not in callbacks_", callbackId); in UnRegister()
[all …]
/ohos5.0/base/security/device_auth/services/frameworks/src/os_account_adapter/
H A Dos_account_adapter.cpp33 EventCallbackId callbackId; member
164 static bool IsCallbackExist(EventCallbackId callbackId) in IsCallbackExist() argument
169 if (callback->callbackId == callbackId) { in IsCallbackExist()
263 void AddOsAccountEventCallback(EventCallbackId callbackId, OsAccountCallbackFunc unlockFunc, in AddOsAccountEventCallback() argument
274 if (IsCallbackExist(callbackId)) { in AddOsAccountEventCallback()
279 eventCallback.callbackId = callbackId; in AddOsAccountEventCallback()
287 void RemoveOsAccountEventCallback(EventCallbackId callbackId) in RemoveOsAccountEventCallback() argument
295 if (callback->callbackId == callbackId) { in RemoveOsAccountEventCallback()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/engine/common/
H A Dgroup_js_bridge.h32 virtual void TriggerModuleJsCallback(int32_t callbackId, int32_t code,
35 …virtual void TriggerModuleJsCallbackPreview(int32_t callbackId, int32_t code, ResponseData respons…
39 int32_t callbackId, int32_t errorCode, std::string&& errorMessage) = 0;
41 …virtual void TriggerEventJsCallback(int32_t callbackId, int32_t code, std::vector<uint8_t>&& event…
47 virtual bool ForwardToWorker(int32_t callbackId) in ForwardToWorker() argument
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/modules/
H A Djsi_timer_module.cpp47 uint32_t callbackId = JsiTimerModule::GetInstance()->AddCallBack(argv[0], callBackParams); in SetTimeoutOrInterval() local
48 delegate->WaitTimer(std::to_string(callbackId), std::to_string(delay), isInterval, true); in SetTimeoutOrInterval()
49 return runtime->NewInt32(callbackId); in SetTimeoutOrInterval()
56 uint32_t callbackId = JsiTimerModule::GetInstance()->AddCallBack(argv[0], callBackParams); in SetTimeoutOrInterval() local
57 delegate->WaitTimer(std::to_string(callbackId), std::to_string(delay), isInterval, true); in SetTimeoutOrInterval()
58 return runtime->NewInt32(callbackId); in SetTimeoutOrInterval()
80 uint32_t callbackId = static_cast<uint32_t>(argv[0]->ToInt32(runtime)); in ClearTimeoutOrInterval() local
81 JsiTimerModule::GetInstance()->RemoveCallBack(callbackId); in ClearTimeoutOrInterval()
82 delegate->ClearTimer(std::to_string(callbackId)); in ClearTimeoutOrInterval()
/ohos5.0/foundation/communication/netmanager_base/interfaces/kits/c/netconnclient/src/
H A Dnet_connection.cpp290 uint32_t timeout, uint32_t *callbackId) in OH_NetConn_RegisterNetConnCallback() argument
301 if (callbackId == nullptr) { in OH_NetConn_RegisterNetConnCallback()
307 callbackId); in OH_NetConn_RegisterNetConnCallback()
311 …Conn_RegisterDefaultNetConnCallback(NetConn_NetConnCallback *netConnCallback, uint32_t *callbackId) in OH_NetConn_RegisterDefaultNetConnCallback() argument
317 if (callbackId == nullptr) { in OH_NetConn_RegisterDefaultNetConnCallback()
322 callbackId); in OH_NetConn_RegisterDefaultNetConnCallback()
344 …egisterAppHttpProxyCallback(OH_NetConn_AppHttpProxyChange appHttpProxyChange, uint32_t *callbackId) in OH_NetConn_RegisterAppHttpProxyCallback() argument
350 if (callbackId == nullptr) { in OH_NetConn_RegisterAppHttpProxyCallback()
365 *callbackId = id; in OH_NetConn_RegisterAppHttpProxyCallback()
369 void OH_NetConn_UnregisterAppHttpProxyCallback(uint32_t callbackId) in OH_NetConn_UnregisterAppHttpProxyCallback() argument
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/common/
H A Dplatform_bridge.cpp30 int32_t callbackId = callbackIds_++; in SendMessage() local
31 auto result = callBackHandlers_.try_emplace(callbackId, handler); in SendMessage()
44 dispatcher->Dispatch(INTERNAL_MODULE_GROUP, std::move(dataBuf), callbackId, true); in SendMessage()
47 void PlatformBridge::HandleCallback(int32_t callbackId, std::vector<uint8_t>&& messageData) in HandleCallback() argument
63 auto itFunc = callBackHandlers_.find(callbackId); in HandleCallback()
/ohos5.0/base/security/device_auth/frameworks/src/lite/
H A Dipc_callback_stub.c29 static void DoCallBack(int32_t callbackId, uintptr_t cbHook, IpcIo *data, IpcIo *reply) in DoCallBack() argument
50 ProcCbHook(callbackId, cbHook, cbDataCache, MAX_REQUEST_PARAMS_NUM, (uintptr_t)(reply)); in DoCallBack()
57 int32_t callbackId; in CbStubOnRemoteRequest() local
69 ReadInt32(data, &callbackId); in CbStubOnRemoteRequest()
71 DoCallBack(callbackId, cbHook, data, reply); in CbStubOnRemoteRequest()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-network-kit/
H A D_net_connection.md94 …Change](#oh_netconn_apphttpproxychange) appHttpProxyChange, uint32_t \*callbackId) | 注册监听应用级代理变化。 |
95 …tpProxyCallback](#oh_netconn_unregisterapphttpproxycallback) (uint32_t callbackId) | 注销监听应用级代理变化。 …
98 …isterNetConnCallback](#oh_netconn_unregisternetconncallback) (uint32_t callbackId) | 注销监听网络状态的回调。 |
878 …egisterAppHttpProxyCallback(OH_NetConn_AppHttpProxyChange appHttpProxyChange, uint32_t *callbackId)
894 | callbackId | 关联本次注册的回调的id。 |
906 void OH_NetConn_UnregisterAppHttpProxyCallback(uint32_t callbackId)
921 | callbackId | 关联需要注销的回调的id,此id在注册时得到。 |
927 …ifier *specifier, NetConn_NetConnCallback *netConnCallback, uint32_t timeout, uint32_t *callbackId)
945 | callbackId | 出参,对应本次注册成功的回调。 |
971 …Conn_RegisterDefaultNetConnCallback(NetConn_NetConnCallback *netConnCallback, uint32_t *callbackId)
[all …]
/ohos5.0/base/security/device_auth/frameworks/src/standard/
H A Dipc_callback_stub.cpp30 void StubDevAuthCb::DoCallBack(int32_t callbackId, uintptr_t cbHook, in DoCallBack() argument
51 …ProcCbHook(callbackId, cbHook, cbDataCache, MAX_REQUEST_PARAMS_NUM, reinterpret_cast<uintptr_t>(&r… in DoCallBack()
62 int32_t callbackId; in OnRemoteRequest() local
71 callbackId = data.ReadInt32(); in OnRemoteRequest()
73 StubDevAuthCb::DoCallBack(callbackId, cbHook, data, reply, option); in OnRemoteRequest()
/ohos5.0/base/security/device_auth/test/unittest/deviceauth/source/
H A Dos_account_adapter_mock.c31 void AddOsAccountEventCallback(EventCallbackId callbackId, OsAccountCallbackFunc unlockFunc, in AddOsAccountEventCallback() argument
34 (void)callbackId; in AddOsAccountEventCallback()
39 void RemoveOsAccountEventCallback(EventCallbackId callbackId) in RemoveOsAccountEventCallback() argument
41 (void)callbackId; in RemoveOsAccountEventCallback()
/ohos5.0/base/security/device_auth/test/unittest/tdd_framework/common/src/
H A Dos_account_adapter_mock.c31 void AddOsAccountEventCallback(EventCallbackId callbackId, OsAccountCallbackFunc unlockFunc, in AddOsAccountEventCallback() argument
34 (void)callbackId; in AddOsAccountEventCallback()
39 void RemoveOsAccountEventCallback(EventCallbackId callbackId) in RemoveOsAccountEventCallback() argument
41 (void)callbackId; in RemoveOsAccountEventCallback()
/ohos5.0/base/security/device_auth/services/frameworks/src/os_account_adapter_mock/
H A Dos_account_adapter_mock.cpp32 void AddOsAccountEventCallback(EventCallbackId callbackId, OsAccountCallbackFunc unlockFunc, in AddOsAccountEventCallback() argument
35 (void)callbackId; in AddOsAccountEventCallback()
40 void RemoveOsAccountEventCallback(EventCallbackId callbackId) in RemoveOsAccountEventCallback() argument
42 (void)callbackId; in RemoveOsAccountEventCallback()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/hyper_graphic_manager/core/utils/
H A Dhgm_state_machine.h48 void UnRegisterEnterStateCallback(State state, int32_t callbackId);
50 void UnRegisterExitStateCallback(State state, int32_t callbackId);
70 …nRegisterStateChangeCallback(StateChangeCallbacksType& callbacks, State state, int32_t callbackId);
132 void HgmStateMachine<State, Event>::UnRegisterEnterStateCallback(State state, int32_t callbackId) in UnRegisterEnterStateCallback() argument
134 return UnRegisterStateChangeCallback(enterStateCallbacks_, state, callbackId); in UnRegisterEnterStateCallback()
144 void HgmStateMachine<State, Event>::UnRegisterExitStateCallback(State state, int32_t callbackId) in UnRegisterExitStateCallback() argument
146 return UnRegisterStateChangeCallback(exitStateCallbacks_, state, callbackId); in UnRegisterExitStateCallback()
174 StateChangeCallbacksType& callbacks, State state, int32_t callbackId) in UnRegisterStateChangeCallback() argument
/ohos5.0/foundation/ability/ability_runtime/interfaces/inner_api/auto_fill_manager/src/
H A Dauto_fill_manager.cpp113 auto callbackId = extensionCallback->GetCallbackId(); in HandleRequestExecuteInner() local
114 SetTimeOutEvent(callbackId); in HandleRequestExecuteInner()
119 RemoveEvent(callbackId); in HandleRequestExecuteInner()
122 result.autoFillSessionId = callbackId; in HandleRequestExecuteInner()
128 TAG_LOGI(AAFwkTag::AUTOFILLMGR, "callbackId: %{public}u", callbackId); in HandleRequestExecuteInner()
130 extensionCallbacks_.emplace(callbackId, extensionCallback); in HandleRequestExecuteInner()
315 auto iter = extensionCallbacks_.find(callbackId); in GetAutoFillExtensionCallback()
317 TAG_LOGE(AAFwkTag::AUTOFILLMGR, "not find, callbackId: %{public}u", callbackId); in GetAutoFillExtensionCallback()
323 void AutoFillManager::RemoveAutoFillExtensionCallback(uint32_t callbackId) in RemoveAutoFillExtensionCallback() argument
325 TAG_LOGI(AAFwkTag::AUTOFILLMGR, "callbackId: %{public}u", callbackId); in RemoveAutoFillExtensionCallback()
[all …]
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/plugin/mock/
H A Dmock_plugin_frontend.cpp44 void PluginFrontend::SendCallbackMessage(const std::string& callbackId, const std::string& data) co… in SendCallbackMessage() argument
48 void PluginFrontend::TransferComponentResponseData(int callbackId, int32_t code, std::vector<uint8_… in TransferComponentResponseData() argument
50 void PluginFrontend::TransferJsResponseData(int callbackId, int32_t code, std::vector<uint8_t>&& da… in TransferJsResponseData() argument
53 void PluginFrontend::TransferJsResponseDataPreview(int callbackId, int32_t code, ResponseData respo… in TransferJsResponseDataPreview() argument
55 delegate_->TransferJsResponseDataPreview(callbackId, code, responseData); in TransferJsResponseDataPreview()
59 void PluginFrontend::TransferJsPluginGetError(int callbackId, int32_t errorCode, std::string&& erro… in TransferJsPluginGetError() argument
61 void PluginFrontend::TransferJsEventData(int32_t callbackId, int32_t code, std::vector<uint8_t>&& d… in TransferJsEventData() argument
/ohos5.0/foundation/ability/ability_runtime/frameworks/simulator/ability_simulator/src/
H A Djs_timer.cpp120 uint32_t callbackId = g_callbackId.fetch_add(1, std::memory_order_relaxed); in StartTimeoutOrInterval() local
122 auto task = std::make_shared<JsTimer>(env, jsFunction, callbackId); in StartTimeoutOrInterval()
138 g_timerTable.emplace(callbackId, task); in StartTimeoutOrInterval()
141 return CreateJsValue(env, callbackId); in StartTimeoutOrInterval()
170 uint32_t callbackId = 0; in StopTimeoutOrInterval() local
171 napi_get_value_uint32(env, argv[0], &callbackId); in StopTimeoutOrInterval()
174 g_timerTable.erase(callbackId); in StopTimeoutOrInterval()
/ohos5.0/foundation/communication/netmanager_base/interfaces/kits/c/netconnclient/include/
H A Dnet_connection.h259 uint32_t timeout, uint32_t *callbackId);
261 …onn_RegisterDefaultNetConnCallback(NetConn_NetConnCallback *netConnCallback, uint32_t *callbackId);
267 …gisterAppHttpProxyCallback(OH_NetConn_AppHttpProxyChange appHttpProxyChange, uint32_t *callbackId);
269 void OH_NetConn_UnregisterAppHttpProxyCallback(uint32_t callbackId);
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/plugin_frontend/
H A Dplugin_frontend_delegate.cpp272 delegate->jsCallback_(callbackId, args); in OnJSCallback()
649 int32_t callbackId = callbackCnt_++; in FireSyncEvent() local
664 result = jsCallBackResult_[callbackId]; in FireSyncEvent()
665 jsCallBackResult_.erase(callbackId); in FireSyncEvent()
1029 auto timeoutTaskIter = timeoutTaskMap_.find(callbackId); in WaitTimer()
1040 …cancelableTimer.Reset([callbackId, delay, isInterval, call = timer_] { call(callbackId, delay, isI… in WaitTimer()
1050 auto timeoutTaskIter = timeoutTaskMap_.find(callbackId); in ClearTimer()
1684 call(callbackId, delegate->GetSystemRealTime()); in RequestAnimationFrame()
1688 animationFrameTaskIds_.emplace(callbackId); in RequestAnimationFrame()
1712 const auto& callbackId = animationFrameTaskIds_.front(); in FlushAnimationTasks() local
[all …]
/ohos5.0/foundation/ability/ability_runtime/frameworks/js/napi/app/application_context/
H A Dapplication_context.js92 unregisterAbilityLifecycleCallback(callbackId, callback) { argument
93 return this.__context_impl__.unregisterAbilityLifecycleCallback(callbackId, callback);
100 unregisterEnvironmentCallback(callbackId, envcallback) { argument
101 return this.__context_impl__.unregisterEnvironmentCallback(callbackId, envcallback);
108 off(type, callbackId, callback) { argument
109 return this.__context_impl__.off(type, callbackId, callback);

12345678