/foundation/communication/connected_nfc_tag/frameworks/js/napi/ |
H A D | nfc_napi_event.cpp | 34 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 D | napi_bluetooth_event.h | 57 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 D | movingphoto_napi.cpp | 138 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 D | wifi_napi_event.cpp | 71 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 D | nfc_napi_controller_event.cpp | 43 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 D | nfc_napi_hce_adapter.cpp | 39 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 D | napi_bluetooth_event.cpp | 22 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 D | wifi_napi_event.h | 94 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 D | nfc_napi_foreground_dispatch.cpp | 41 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 D | patternlock_napi.cpp | 239 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()
|