Home
last modified time | relevance | path

Searched refs:asyncEvent (Results 1 - 10 of 10) sorted by relevance

/foundation/communication/connected_nfc_tag/frameworks/js/napi/
H A Dnfc_napi_event.cpp34 void EventNotify(AsyncEventData *asyncEvent);
48 AsyncEventData *asyncEvent = new AsyncEventData(each.m_regEnv, each.m_regHanderRef, result); in CheckAndNotify() local
49 if (asyncEvent == nullptr) { in CheckAndNotify()
52 EventNotify(asyncEvent); in CheckAndNotify()
65 void NapiEvent::EventNotify(AsyncEventData *asyncEvent) in EventNotify() argument
68 if (asyncEvent == nullptr) { in EventNotify()
69 HILOGE("asyncEvent is null."); in EventNotify()
73 napi_get_uv_event_loop(asyncEvent->env, &loop); in EventNotify()
78 delete asyncEvent; in EventNotify()
79 asyncEvent in EventNotify()
[all...]
/foundation/communication/bluetooth/frameworks/js/napi/include/
H A Dnapi_bluetooth_event.h57 static void EventNotify(AsyncEventData *asyncEvent);
71 AsyncEventData *asyncEvent = new (std::nothrow)AsyncEventData(cb, func); in CheckAndNotify() local
72 if (asyncEvent == nullptr) { in CheckAndNotify()
73 HILOGI("asyncEvent is nullptr!"); in CheckAndNotify()
76 EventNotify(asyncEvent); in CheckAndNotify()
/foundation/arkui/ace_engine/component_ext/movingphoto/
H A Dmovingphoto_napi.cpp138 auto asyncEvent = std::make_shared<NapiAsyncEvent>(env, argv[0]); in JsOnComplete() local
139 auto onComplete = [asyncEvent]() { in JsOnComplete()
140 asyncEvent->Call(0, nullptr); in JsOnComplete()
156 auto asyncEvent = std::make_shared<NapiAsyncEvent>(env, argv[0]); in JsOnStart() local
157 auto onStart = [asyncEvent]() { in JsOnStart()
158 asyncEvent->Call(0, nullptr); in JsOnStart()
174 auto asyncEvent = std::make_shared<NapiAsyncEvent>(env, argv[0]); in JsOnStop() local
175 auto onStop = [asyncEvent]() { in JsOnStop()
176 asyncEvent->Call(0, nullptr); in JsOnStop()
192 auto asyncEvent in JsOnPause() local
210 auto asyncEvent = std::make_shared<NapiAsyncEvent>(env, argv[0]); JsOnFinish() local
228 auto asyncEvent = std::make_shared<NapiAsyncEvent>(env, argv[0]); JsOnError() local
[all...]
/foundation/communication/wifi/wifi/frameworks/js/napi/src/
H A Dwifi_napi_event.cpp71 void NapiEvent::EventNotify(AsyncEventData *asyncEvent) in EventNotify() argument
73 if (asyncEvent == nullptr) { in EventNotify()
74 WIFI_LOGE("asyncEvent is null!"); in EventNotify()
77 WIFI_LOGI("Enter wifi event notify, eventType: %{public}s", asyncEvent->eventType.c_str()); in EventNotify()
79 auto task = [asyncEvent]() { in EventNotify()
89 auto it = g_eventRegisterInfo.find(asyncEvent->eventType); in EventNotify()
90 napi_open_handle_scope(asyncEvent->env, &scope); in EventNotify()
100 if (each.m_regEnv == asyncEvent->env && each.m_regHanderRef == asyncEvent->callbackRef) { in EventNotify()
110 res = napi_reference_ref(asyncEvent in EventNotify()
[all...]
/foundation/communication/nfc/frameworks/js/napi/controller/
H A Dnfc_napi_controller_event.cpp43 void EventNotify(AsyncEventData *asyncEvent);
58 AsyncEventData *asyncEvent = in CheckAndNotify() local
60 if (asyncEvent == nullptr) { in CheckAndNotify()
63 EventNotify(asyncEvent); in CheckAndNotify()
109 void NapiEvent::EventNotify(AsyncEventData *asyncEvent) in EventNotify() argument
112 if (asyncEvent == nullptr) { in EventNotify()
113 DebugLog("asyncEvent is null."); in EventNotify()
117 napi_get_uv_event_loop(asyncEvent->env, &loop); in EventNotify()
122 delete asyncEvent; in EventNotify()
123 asyncEvent in EventNotify()
[all...]
/foundation/communication/nfc/frameworks/js/napi/cardEmulation/
H A Dnfc_napi_hce_adapter.cpp39 void EventNotify(AsyncEventData* asyncEvent);
52 AsyncEventData* asyncEvent = in CheckAndNotify() local
54 if (asyncEvent == nullptr) { in CheckAndNotify()
57 EventNotify(asyncEvent); in CheckAndNotify()
348 void NapiEvent::EventNotify(AsyncEventData* asyncEvent) in EventNotify() argument
351 if (asyncEvent == nullptr) { in EventNotify()
352 DebugLog("hce asyncEvent is null."); in EventNotify()
356 napi_get_uv_event_loop(asyncEvent->env, &loop); in EventNotify()
361 delete asyncEvent; in EventNotify()
362 asyncEvent in EventNotify()
[all...]
/foundation/communication/bluetooth/frameworks/js/napi/src/common/
H A Dnapi_bluetooth_event.cpp22 void NapiEvent::EventNotify(AsyncEventData *asyncEvent) in EventNotify() argument
25 napi_get_uv_event_loop(asyncEvent->env_, &loop); in EventNotify()
30 delete asyncEvent; in EventNotify()
31 asyncEvent = nullptr; in EventNotify()
34 work->data = asyncEvent; in EventNotify()
/foundation/communication/wifi/wifi/frameworks/js/napi/inc/
H A Dwifi_napi_event.h94 void EventNotify(AsyncEventData *asyncEvent);
106 AsyncEventData *asyncEvent = new (std::nothrow)AsyncEventData(each.m_regEnv, each.m_regHanderRef, in CheckAndNotify() local
108 if (asyncEvent == nullptr) { in CheckAndNotify()
111 EventNotify(asyncEvent); in CheckAndNotify()
/foundation/communication/nfc/frameworks/js/napi/tag/
H A Dnfc_napi_foreground_dispatch.cpp41 void EventNotify(AsyncEventData *asyncEvent);
68 AsyncEventData *asyncEvent = in CheckAndNotify() local
70 if (asyncEvent == nullptr) { in CheckAndNotify()
73 EventNotify(asyncEvent); in CheckAndNotify()
124 void NapiEvent::EventNotify(AsyncEventData *asyncEvent) in EventNotify() argument
126 if (asyncEvent == nullptr) { in EventNotify()
127 DebugLog("foreground event notify: asyncEvent is null."); in EventNotify()
131 napi_get_uv_event_loop(asyncEvent->env, &loop); in EventNotify()
136 delete asyncEvent; in EventNotify()
137 asyncEvent in EventNotify()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/patternlock/
H A Dpatternlock_napi.cpp239 auto asyncEvent = std::make_shared<NapiAsyncEvnet>(env, argv[0]); in OnPatternComplete() local
240 auto onComplete = [asyncEvent](const BaseEventInfo* info) { in OnPatternComplete()
244 arrayValue = CommonNapiUtils::CreateArray(asyncEvent->GetEnv()); in OnPatternComplete()
248 asyncEvent->GetEnv(), arrayValue, i, CommonNapiUtils::CreateInt32(asyncEvent->GetEnv(), arr.at(i))); in OnPatternComplete()
251 asyncEvent->Call(1, argv); in OnPatternComplete()

Completed in 9 milliseconds