/foundation/distributedhardware/device_manager/interfaces/kits/js4.0/src/ |
H A D | dm_native_event.cpp | 25 thisVarRef_ = nullptr; in DmNativeEvent() 26 napi_create_reference(env, thisVar, 1, &thisVarRef_); in DmNativeEvent() 37 napi_delete_reference(env_, thisVarRef_); in ~DmNativeEvent() 92 napi_status status = napi_get_reference_value(env_, thisVarRef_, &thisVar); in OnEvent()
|
H A D | native_devicemanager_js.cpp | 637 napi_get_reference_value(env_, thisVarRef_, &thisVar); in OnAuthResult()
|
/foundation/distributedhardware/device_manager/interfaces/kits/js/src/ |
H A D | dm_native_event.cpp | 25 thisVarRef_ = nullptr; in DmNativeEvent() 26 napi_create_reference(env, thisVar, 1, &thisVarRef_); in DmNativeEvent() 38 napi_delete_reference(env_, thisVarRef_); in ~DmNativeEvent() 93 napi_status status = napi_get_reference_value(env_, thisVarRef_, &thisVar); in OnEvent()
|
H A D | native_devicemanager_js.cpp | 875 napi_get_reference_value(env_, thisVarRef_, &thisVar);
in OnAuthResult()
|
/foundation/arkui/napi/sample/native_module_netserver/ |
H A D | event_target.cpp | 33 : env_(env), thisVarRef_(nullptr), first_(nullptr), last_(nullptr) in EventTarget() 35 napi_create_reference(env, thisVar, 1, &thisVarRef_); in EventTarget() 54 napi_delete_reference(env_, thisVarRef_); in ~EventTarget() 160 napi_get_reference_value(env_, thisVarRef_, &thisVar); in Emit()
|
H A D | event_target.h | 41 napi_ref thisVarRef_; member in EventTarget
|
H A D | net_server.cpp | 70 napi_reference_unref(env_, thisVarRef_, &thisRefCount); in Stop() 128 napi_reference_unref(that->env_, that->thisVarRef_, &thisRefCount); in OnServerClose()
|
H A D | netserver.cpp | 69 napi_reference_unref(env_, thisVarRef_, &thisRefCount); in Stop() 127 napi_reference_unref(that->env_, that->thisVarRef_, &thisRefCount); in OnServerClose()
|
/foundation/distributedhardware/device_manager/interfaces/kits/js/include/ |
H A D | dm_native_event.h | 42 napi_ref thisVarRef_; member in DmNativeEvent
|
/foundation/distributedhardware/device_manager/interfaces/kits/js4.0/include/ |
H A D | dm_native_event.h | 42 napi_ref thisVarRef_; member in DmNativeEvent
|
/foundation/arkui/ace_engine/interfaces/napi/kits/display_sync/ |
H A D | js_display_sync.h | 68 napi_ref thisVarRef_ = nullptr; member in OHOS::Ace::Napi::final
|
H A D | js_display_sync.cpp | 216 napi_create_reference(env, thisVar, 1, &thisVarRef_); in Initialize() 289 if (thisVarRef_ != nullptr) { in Destroy() 290 napi_delete_reference(env, thisVarRef_); in Destroy()
|
/foundation/communication/ipc/ipc/native/src/napi_common/include/ |
H A D | napi_remote_object_internal.h | 82 napi_ref thisVarRef_ = nullptr; member in OHOS::NAPIRemoteObject
|
/foundation/communication/ipc/ipc/native/src/napi_common/source/ |
H A D | napi_remote_object.cpp | 584 thisVarRef_ = jsObjectRef; in NAPIRemoteObject() 627 if (thisVarRef_ != nullptr && env_ != nullptr) { in ~NAPIRemoteObject() 629 DecreaseJsObjectRef(env_, thisVarRef_); in ~NAPIRemoteObject() 637 .thisVarRef = thisVarRef_ in ~NAPIRemoteObject() 655 thisVarRef_ = nullptr; in ~NAPIRemoteObject() 671 return thisVarRef_; in GetJsObjectRef() 677 thisVarRef_ = nullptr; in ResetJsEnv() 697 sptr<CallbackParam> param = new CallbackParam {env_, thisVarRef_, code, data, reply, option}; in OnRemoteRequest() 785 if (thisVarRef_ == nullptr || env_ == nullptr) { in OnJsRemoteRequest()
|