/base/notification/distributed_notification_service/frameworks/js/napi/src/ |
D | subscribe.cpp | 38 napi_ref ref = nullptr; member 125 if (canceCallbackInfo_.ref != nullptr) { in ~SubscriberInstance() 126 napi_delete_reference(canceCallbackInfo_.env, canceCallbackInfo_.ref); in ~SubscriberInstance() 128 if (consumeCallbackInfo_.ref != nullptr) { in ~SubscriberInstance() 129 napi_delete_reference(consumeCallbackInfo_.env, consumeCallbackInfo_.ref); in ~SubscriberInstance() 131 if (updateCallbackInfo_.ref != nullptr) { in ~SubscriberInstance() 132 napi_delete_reference(updateCallbackInfo_.env, updateCallbackInfo_.ref); in ~SubscriberInstance() 134 if (subscribeCallbackInfo_.ref != nullptr) { in ~SubscriberInstance() 135 napi_delete_reference(subscribeCallbackInfo_.env, subscribeCallbackInfo_.ref); in ~SubscriberInstance() 137 if (unsubscribeCallbackInfo_.ref != nullptr) { in ~SubscriberInstance() [all …]
|
/base/notification/distributed_notification_service/frameworks/js/napi/include/ |
D | subscribe.h | 104 void SetCallbackInfo(const napi_env &env, const std::string &type, const napi_ref &ref); 107 void SetCancelCallbackInfo(const napi_env &env, const napi_ref &ref); 109 void SetConsumeCallbackInfo(const napi_env &env, const napi_ref &ref); 111 void SetUpdateCallbackInfo(const napi_env &env, const napi_ref &ref); 113 void SetSubscribeCallbackInfo(const napi_env &env, const napi_ref &ref); 115 void SetUnsubscribeCallbackInfo(const napi_env &env, const napi_ref &ref); 117 void SetDieCallbackInfo(const napi_env &env, const napi_ref &ref); 119 void SetDisturbModeCallbackInfo(const napi_env &env, const napi_ref &ref); 121 void SetDisturbDateCallbackInfo(const napi_env &env, const napi_ref &ref); 123 void SetEnabledNotificationCallbackInfo(const napi_env &env, const napi_ref &ref); [all …]
|
/base/msdp/device_status/frameworks/js/napi/interaction/drag/src/ |
D | js_drag_manager.cpp | 37 bool JsDragManager::IsSameHandle(napi_env env, napi_value handle, napi_ref ref) in IsSameHandle() argument 44 CHKRF_SCOPE(env, napi_get_reference_value(env, ref, &handlerTemp), GET_REFERENCE_VALUE, scope); in IsSameHandle() 57 if (item->env == env && IsSameHandle(env, handle, item->ref)) { in RegisterListener() 62 napi_ref ref = nullptr; in RegisterListener() local 63 CHKRV(napi_create_reference(env, handle, 1, &ref), CREATE_REFERENCE); in RegisterListener() 66 monitor->ref = ref; in RegisterListener() 84 RELEASE_CALLBACKINFO((*iter)->env, (*iter)->ref); in UnregisterListener() 87 if ((*iter)->env == env && IsSameHandle(env, handle, (*iter)->ref)) { in UnregisterListener() 89 RELEASE_CALLBACKINFO((*iter)->env, (*iter)->ref); in UnregisterListener() 145 if (item->ref != (*temp)->ref) { in CallDragMsg() [all …]
|
/base/request/request/frameworks/js/napi/include/upload/ |
D | upload_task_napiV5.h | 37 napi_ref ref; member 42 napi_ref ref; member 48 napi_ref ref; member 60 static void OnSystemSuccess(napi_env env, napi_ref ref, Upload::UploadResponse &response); 61 static void OnSystemFail(napi_env env, napi_ref ref, std::string &response, int32_t &code); 62 static void OnSystemComplete(napi_env env, napi_ref ref);
|
/base/msdp/device_status/frameworks/js/napi/interaction/coordination/src/ |
D | js_event_target.cpp | 59 if (cb->ref == nullptr) { in EmitJsPrepare() 86 if (cb->ref == nullptr) { in EmitJsActivate() 114 if (cb->ref == nullptr) { in EmitJsDeactivate() 140 if (cb->ref == nullptr) { in EmitJsGetCrossingSwitchState() 165 if (JsUtil::IsSameHandle(env, handle, item->ref)) { in AddListener() 170 napi_ref ref = nullptr; in AddListener() local 171 CHKRV(napi_create_reference(env, handle, 1, &ref), CREATE_REFERENCE); in AddListener() 175 monitor->ref = ref; in AddListener() 197 if (JsUtil::IsSameHandle(env, handle, (*it)->ref)) { in RemoveListener() 220 CHKRP(napi_create_reference(env, handle, 1, &cb->ref), CREATE_REFERENCE); in CreateCallbackInfo() [all …]
|
D | js_coordination_manager.cpp | 39 RELEASE_CALLBACKINFO(cb->env, cb->ref); in Prepare() 54 RELEASE_CALLBACKINFO(cb->env, cb->ref); in Unprepare() 70 RELEASE_CALLBACKINFO(cb->env, cb->ref); in Activate() 85 RELEASE_CALLBACKINFO(cb->env, cb->ref); in Deactivate() 100 RELEASE_CALLBACKINFO(cb->env, cb->ref); in GetCrossingSwitchState()
|
/base/msdp/device_status/frameworks/js/napi/interaction/cooperate/src/ |
D | js_event_cooperate_target.cpp | 63 if (cb->ref == nullptr) { in EmitJsEnable() 91 if (cb->ref == nullptr) { in EmitJsStart() 119 if (cb->ref == nullptr) { in EmitJsStop() 145 if (cb->ref == nullptr) { in EmitJsGetState() 170 if (JsUtilCooperate::IsSameHandle(env, handle, item->ref)) { in AddListener() 175 napi_ref ref = nullptr; in AddListener() local 176 CHKRV(napi_create_reference(env, handle, 1, &ref), CREATE_REFERENCE); in AddListener() 179 monitor->ref = ref; in AddListener() 201 if (JsUtilCooperate::IsSameHandle(env, handle, (*it)->ref)) { in RemoveListener() 228 CHKRP_SCOPE(env, napi_create_reference(env, handle, 1, &cb->ref), CREATE_REFERENCE, scope); in CreateCallbackInfo() [all …]
|
/base/request/request/frameworks/js/napi/src/ |
D | uv_queue.cpp | 34 void UvQueue::DeleteRef(napi_env env, napi_ref ref) in DeleteRef() argument 41 callbackData->ref = ref; in DeleteRef() 49 napi_delete_reference(callbackData->env, callbackData->ref); in UvDelete()
|
/base/security/huks/services/huks_standard/huks_service/main/core/src/ |
D | hks_storage_file_lock.c | 31 uint32_t ref; member 105 lock->ref = 1; in AllocFileLock() 120 lock->ref++; in AddRef() 205 uint32_t ref = 0; in Release() local 211 lock->ref--; in Release() 212 ref = lock->ref; in Release() 213 if (ref == 0) { in Release() 235 return ref; in Release()
|
/base/powermgr/power_manager/frameworks/napi/utils/ |
D | napi_utils.cpp | 55 void NapiUtils::ReleaseReference(napi_env& env, napi_ref& ref) in ReleaseReference() argument 57 if (ref != nullptr) { in ReleaseReference() 58 napi_delete_reference(env, ref); in ReleaseReference() 59 ref = nullptr; in ReleaseReference()
|
/base/request/request/frameworks/js/napi/src/upload/ |
D | upload_task_napiV5.cpp | 103 void UploadTaskNapiV5::OnSystemSuccess(napi_env env, napi_ref ref, Upload::UploadResponse &response) in OnSystemSuccess() argument 108 SystemSuccessCallback{.env = env, .ref = ref, .response = response}; in OnSystemSuccess() 122 napi_get_reference_value(successCallback->env, successCallback->ref, &callback); in OnSystemSuccess() 132 void UploadTaskNapiV5::OnSystemFail(napi_env env, napi_ref ref, std::string &data, int32_t &code) in OnSystemFail() argument 136 SystemFailCallback{.data = data, .code = code, .env = env, .ref = ref}; in OnSystemFail() 153 napi_get_reference_value(failCallback->env, failCallback->ref, &callback); in OnSystemFail() 163 void UploadTaskNapiV5::OnSystemComplete(napi_env env, napi_ref ref) in OnSystemComplete() argument 166 …leteCallback *completeCallback = new (std::nothrow) SystemCompleteCallback{.env = env, .ref = ref}; in OnSystemComplete() 179 …napi_status ret = napi_get_reference_value(completeCallback->env, completeCallback->ref, &callback… in OnSystemComplete()
|
/base/security/dlp_permission_service/interfaces/inner_api/dlp_fuse/src/ |
D | dlp_link_file.cpp | 56 bool DlpLinkFile::SubAndCheckZeroRef(int ref) in SubAndCheckZeroRef() argument 59 if (ref <= 0) { in SubAndCheckZeroRef() 60 DLP_LOG_WARN(LABEL, "Need sub reference %{public}d is error", ref); in SubAndCheckZeroRef() 63 if (refcount_ < ref) { in SubAndCheckZeroRef() 65 ref, static_cast<int>(refcount_)); in SubAndCheckZeroRef() 68 refcount_ -= ref; in SubAndCheckZeroRef()
|
/base/hiviewdfx/hisysevent/interfaces/js/kits/napi/src/ |
D | napi_hisysevent_querier.cpp | 44 napi_delete_reference(callbackContext->env, callbackContext->ref); in ~NapiHiSysEventQuerier() 53 [this, sysEvents, seq] (const napi_env env, const napi_ref ref, pid_t threadId) { in OnQuery() argument 62 napi_get_reference_value(env, ref, &querier); in OnQuery() 76 [this, reason, total, seq] (const napi_env env, const napi_ref ref, pid_t threadId) { in OnComplete() argument 88 napi_get_reference_value(env, ref, &querier); in OnComplete() 101 this->onCompleteHandler(this->callbackContext->env, this->callbackContext->ref); in OnComplete()
|
D | napi_hisysevent_listener.cpp | 43 napi_delete_reference(callbackContext->env, callbackContext->ref); in ~NapiHiSysEventListener() 52 …[this, domain, eventName, eventType, eventDetail] (const napi_env env, const napi_ref ref, pid_t t… in OnEvent() argument 60 napi_status status = napi_get_reference_value(env, ref, &listener); in OnEvent() 76 [this] (const napi_env env, const napi_ref ref, pid_t threadId) { in OnServiceDied() argument 81 napi_status status = napi_get_reference_value(env, ref, &listener); in OnServiceDied()
|
/base/powermgr/battery_statistics/frameworks/napi/src/ |
D | napi_utils.cpp | 40 void NapiUtils::ReleaseReference(napi_env& env, napi_ref& ref) in ReleaseReference() argument 42 if (ref != nullptr) { in ReleaseReference() 43 napi_delete_reference(env, ref); in ReleaseReference() 44 ref = nullptr; in ReleaseReference()
|
/base/request/request/frameworks/js/napi/include/ |
D | uv_queue.h | 25 napi_ref ref; member 30 static void DeleteRef(napi_env env, napi_ref ref);
|
/base/telephony/core_service/test/unittest/core_service_gtest/ |
D | sim_elementary_file_test.cpp | 742 if (!helper.Run(SetLockStateTestFunc, std::ref(helper))) { 765 if (!helper.Run(SetLockStateTestFunc1, std::ref(helper))) { 787 if (!helper.Run(SetLockStateTestFunc, std::ref(helper))) { 809 if (!helper.Run(SetFDNStateTestFunc, std::ref(helper))) { 830 if (!helper.Run(SetFDNStateTestFunc1, std::ref(helper))) { 851 if (!helper.Run(SetFDNStateTestFunc, std::ref(helper))) { 873 if (!helper.Run(GetLockStateTestFunc, std::ref(helper))) { 894 if (!helper.Run(GetLockStateTestFunc1, std::ref(helper))) { 915 if (!helper.Run(GetLockStateTestFunc, std::ref(helper))) { 937 if (!helper.Run(GetFDNStateTestFunc, std::ref(helper))) { [all …]
|
/base/telephony/sms_mms/test/gtest/ |
D | cb_gtest.cpp | 119 if (!helper.Run(OpenCellBroadcastTestFuc, std::ref(helper))) { 155 if (!helper.Run(OpenCellBroadcastTestFuc2, std::ref(helper))) { 191 if (!helper.Run(OpenCellBroadcastTestFuc3, std::ref(helper))) { 227 if (!helper.Run(OpenCellBroadcastTestFuc4, std::ref(helper))) { 263 if (!helper.Run(OpenCellBroadcastTestFuc5, std::ref(helper))) { 299 if (!helper.Run(OpenCellBroadcastTestFuc6, std::ref(helper))) { 323 if (!helper.Run(OpenCellBroadcastTestFuc2, std::ref(helper))) { 347 if (!helper.Run(OpenCellBroadcastTestFuc3, std::ref(helper))) { 371 if (!helper.Run(OpenCellBroadcastTestFuc4, std::ref(helper))) { 395 if (!helper.Run(OpenCellBroadcastTestFuc5, std::ref(helper))) { [all …]
|
D | sms_gtest.cpp | 142 if (!helper.Run(SetDefaultSmsSlotIdTestFuc, std::ref(helper))) { 166 if (!helper.Run(SetDefaultSmsSlotIdTestFuc, std::ref(helper))) { 189 if (!helper.Run(SetDefaultSmsSlotIdTestFuc, std::ref(helper))) { 218 if (!helper.Run(GetDefaultSmsSlotIdTestFuc, std::ref(helper))) { 248 if (!helper.Run(GetDefaultSmsSimIdTestFuc, std::ref(helper))) { 270 if (!helper.Run(GetDefaultSmsSimIdTestFuc, std::ref(helper))) { 305 if (!helper.Run(SetSmscAddrTestFuc, std::ref(helper))) { 329 if (!helper.Run(SetSmscAddrTestFuc, std::ref(helper))) { 365 if (!helper.Run(DelAllSimMessagesTestFuc, std::ref(helper), WAIT_TIME_LONG_SECOND)) { 389 if (!helper.Run(DelAllSimMessagesTestFuc, std::ref(helper), WAIT_TIME_LONG_SECOND)) { [all …]
|
/base/msdp/device_status/utils/common/include/ |
D | util_napi.h | 24 #define RELEASE_CALLBACKINFO(env, ref) \ argument 26 if (ref != nullptr && env != nullptr) { \ 27 napi_delete_reference(env, ref); \
|
/base/location/frameworks/js/napi/include/ |
D | callback_manager.h | 69 auto ref = innerIter->first; in IsCallbackInMap() local 70 if (IsCallbackEquals(env, handler, ref)) { in IsCallbackInMap() 100 auto ref = innerIter->first; in DeleteCallback() local 101 if (IsCallbackEquals(env, handler, ref)) { in DeleteCallback() 120 auto ref = innerIter->first; in GetCallbackPtr() local 121 if (IsCallbackEquals(env, handler, ref)) { in GetCallbackPtr()
|
/base/print/print_fwk/interfaces/kits/napi/src/ |
D | print_callback.cpp | 22 PrintCallback::PrintCallback(napi_env env, napi_ref ref) : env_(env), ref_(ref) in PrintCallback() argument 57 napi_value callbackFunc = NapiPrintUtils::GetReference(cbParam->env, cbParam->ref); in PrintTaskAfterCallFun() 87 napi_value callbackFunc = NapiPrintUtils::GetReference(cbParam->env, cbParam->ref); in PrinterAfterCallFun() 118 napi_value callbackFunc = NapiPrintUtils::GetReference(cbParam->env, cbParam->ref); in PrintJobAfterCallFun() 149 napi_value callbackFunc = NapiPrintUtils::GetReference(cbParam->env, cbParam->ref); in ExtensionAfterCallFun() 186 param->ref = ref_; in onBaseCallback()
|
/base/print/print_fwk/interfaces/kits/napi/include/ |
D | print_callback.h | 29 napi_ref ref; member 41 PrintCallback(napi_env env, napi_ref ref);
|
/base/telephony/state_registry/frameworks/js/napi/src/ |
D | event_listener_manager.cpp | 33 …napi_env env, const TelephonyUpdateEventType eventType, napi_ref ref, std::list<EventListener> &re… in UnregisterEventListener() argument 40 return handler->UnregisterEventListener(env, eventType, ref, removeListenerList); in UnregisterEventListener()
|
/base/hiviewdfx/hiview/base/ |
D | hiview_global.cpp | 20 std::unique_ptr<HiviewGlobal>& GetOrSetGlobalReference(std::unique_ptr<HiviewGlobal> ref, bool stat… in GetOrSetGlobalReference() argument 25 } else if (ref != nullptr) { in GetOrSetGlobalReference() 26 globalRef = std::move(ref); in GetOrSetGlobalReference()
|