Home
last modified time | relevance | path

Searched refs:refCount (Results 1 - 25 of 165) sorted by relevance

1234567

/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/
H A Dref_object.cpp76 int refCount = refCount_.load(std::memory_order_seq_cst); in ~RefObject() local
77 if (refCount > 0) { in ~RefObject()
78 LOGF("object is destructed with ref-count > 0., refCount = %d", refCount); in ~RefObject()
161 int refCount = obj->refCount_.fetch_add(1, std::memory_order_seq_cst); in IncObjRef() local
162 if ((refCount <= 0) || (refCount >= MAX_REF_COUNT)) { in IncObjRef()
164 LOGF("%s object is refed with ref-count=%d.", tag.c_str(), refCount); in IncObjRef()
173 int refCount = obj->refCount_.fetch_sub(1, std::memory_order_seq_cst); in DecObjRef() local
174 if (refCount < in DecObjRef()
[all...]
/foundation/systemabilitymgr/samgr/services/samgr/native/source/collect/
H A Dref_count_collect.cpp85 uint32_t refCount = saProxy->GetStrongRefCountForStub(); in IdentifyUnrefOndemand() local
86 HILOGD("ondemand SA:%{public}d, ref count:%{public}u", saId, refCount); in IdentifyUnrefOndemand()
87 if (refCount == 1) { in IdentifyUnrefOndemand()
116 uint32_t refCount = saProxy->GetStrongRefCountForStub(); in IdentifyUnrefResident() local
117 HILOGD("resident SA:%{public}d, ref count:%{public}u", saId, refCount); in IdentifyUnrefResident()
118 if (refCount == 1) { in IdentifyUnrefResident()
/foundation/communication/nfc/frameworks/js/napi/controller/
H A Dnfc_napi_controller_event.cpp74 uint32_t refCount = INVALID_REF_COUNT; in after_work_cb() local
97 napi_reference_unref(asyncData->env, asyncData->callbackRef, &refCount); in after_work_cb()
98 InfoLog("after_work_cb unref, env: %{private}p, callbackRef: %{private}p, refCount: %{public}d", in after_work_cb()
99 asyncData->env, asyncData->callbackRef, refCount); in after_work_cb()
100 if (refCount == 0) { in after_work_cb()
127 uint32_t refCount = INVALID_REF_COUNT; in EventNotify() local
128 napi_reference_ref(asyncEvent->env, asyncEvent->callbackRef, &refCount); in EventNotify()
334 uint32_t refCount = INVALID_REF_COUNT; in DeleteRegisterObj() local
335 napi_reference_unref(iter->m_regEnv, iter->m_regHanderRef, &refCount); in DeleteRegisterObj()
336 InfoLog("delete ref, m_regEnv: %{private}p, m_regHanderRef: %{private}p, refCount in DeleteRegisterObj()
358 uint32_t refCount = INVALID_REF_COUNT; DeleteAllRegisterObj() local
[all...]
/foundation/communication/ipc/ipc/native/test/unittest/common/
H A Dipc_core_unittest.cpp520 int refCount = 0; in HWTEST_F() local
526 refCount = stub->GetObjectRefCount(); in HWTEST_F()
527 EXPECT_EQ(refCount, 1); in HWTEST_F()
532 refCount = stub->GetObjectRefCount(); in HWTEST_F()
535 EXPECT_GE(refCount, 2); in HWTEST_F()
537 EXPECT_GE(refCount, 1); in HWTEST_F()
543 refCount = stub->GetObjectRefCount(); in HWTEST_F()
545 EXPECT_GE(refCount, 3); in HWTEST_F()
547 EXPECT_GE(refCount, 1); in HWTEST_F()
551 refCount in HWTEST_F()
567 int refCount = 0; HWTEST_F() local
[all...]
/foundation/window/window_manager/utils/src/
H A Dsingleton_container.cpp33 if (it->second.refCount > 0) { in ~SingletonContainer()
40 singletonMap[mid].refCount--; in ~SingletonContainer()
61 singletonMap[nextId].refCount = 0; in AddSingleton()
98 singletonMap[stringMap[name]].refCount++; in DependOn()
/foundation/resourceschedule/work_scheduler/interfaces/kits/js/napi/src/
H A Dinit.cpp72 int32_t refCount = 1; in InitNetworkType() local
99 napi_create_reference(env, result, refCount, &g_networkTypeConstructor); in InitNetworkType()
125 int32_t refCount = 1; in InitChargingType() local
146 napi_create_reference(env, result, refCount, &g_chargingTypeConstructor); in InitChargingType()
171 int32_t refCount = 1; in InitBatteryStatus() local
189 napi_create_reference(env, result, refCount, &g_batteryStatusConstructor); in InitBatteryStatus()
213 int32_t refCount = 1; in InitStorageRequest() local
231 napi_create_reference(env, result, refCount, &g_storageRequestConstructor); in InitStorageRequest()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/matrix/src/
H A Dmatrix_event.cpp38 void MatrixEvent::SetRefCount(RefCount refCount) in SetRefCount() argument
40 refCount_ = std::move(refCount); in SetRefCount()
/foundation/communication/nfc/frameworks/js/napi/tag/
H A Dnfc_napi_foreground_dispatch.cpp78 napi_handle_scope &scope, uint32_t &refCount) in ReleaseAfterWorkCb()
81 napi_reference_unref(asyncData->env, asyncData->callbackRef, &refCount); in ReleaseAfterWorkCb()
82 InfoLog("ReleaseAfterWorkCb unref, env: %{private}p, callbackRef: %{private}p, refCount: %{public}d", in ReleaseAfterWorkCb()
83 asyncData->env, asyncData->callbackRef, refCount); in ReleaseAfterWorkCb()
84 if (refCount == 0) { in ReleaseAfterWorkCb()
96 uint32_t refCount = INVALID_REF_COUNT; in AfterWorkCb() local
100 ReleaseAfterWorkCb(work, asyncData, scope, refCount); in AfterWorkCb()
108 ReleaseAfterWorkCb(work, asyncData, scope, refCount); in AfterWorkCb()
121 ReleaseAfterWorkCb(work, asyncData, scope, refCount); in AfterWorkCb()
142 uint32_t refCount in EventNotify() local
77 ReleaseAfterWorkCb(uv_work_t *work, AsyncEventData *asyncData, napi_handle_scope &scope, uint32_t &refCount) ReleaseAfterWorkCb() argument
360 uint32_t refCount = INVALID_REF_COUNT; DeleteRegisterObj() local
554 uint32_t refCount = INVALID_REF_COUNT; DeleteRegisteredObj() local
[all...]
/foundation/filemanagement/dfs_service/test/unittests/cloud_disk/mock/
H A Dfile_operations_helper_mock.cpp133 ptr -> refCount = 1; in FindCloudDiskFile()
148 ptr -> refCount = 0; in FindCloudDiskFile()
204 inoPtr->refCount -= num; in PutCloudDiskInode()
205 if (inoPtr->refCount == 0) { in PutCloudDiskInode()
221 if (filePtr->refCount == 0) { in PutCloudDiskFile()
238 inoPtr->refCount -= num; in PutLocalId()
239 if (inoPtr->refCount == 0) { in PutLocalId()
/foundation/resourceschedule/device_usage_statistics/frameworks/src/
H A Dusage_statistics_init.cpp69 int32_t refCount = 1; in InitIntervalType() local
93 napi_create_reference(env, result, refCount, &typeConstructor_); in InitIntervalType()
106 int32_t refCount = 1; in InitAppGroupType() local
133 napi_create_reference(env, result, refCount, &typeConstructor_); in InitAppGroupType()
H A Dbundle_state_init.cpp59 int32_t refCount = 1; in InitIntervalType() local
83 napi_create_reference(env, result, refCount, &typeConstructor_); in InitIntervalType()
/foundation/filemanagement/dfs_service/services/cloudfiledaemon/src/cloud_disk/
H A Dfile_operations_helper.cpp178 child->refCount++;
211 inoPtr->refCount -= num; in PutCloudDiskInode()
212 if (inoPtr->refCount == 0) { in PutCloudDiskInode()
228 if (filePtr->refCount == 0) { in PutCloudDiskFile()
245 inoPtr->refCount -= num; in PutLocalId()
246 if (inoPtr->refCount == 0) { in PutLocalId()
/foundation/communication/wifi/wifi/frameworks/js/napi/src/
H A Dwifi_napi_event.cpp83 uint32_t refCount = INVALID_REF_COUNT; in EventNotify()
110 res = napi_reference_ref(asyncEvent->env, asyncEvent->callbackRef, &refCount); in EventNotify()
111 WIFI_LOGI("napi_send_event, res: %{public}d, callbackRef: %{private}p, refCount: %{public}d", in EventNotify()
112 res, asyncEvent->callbackRef, refCount); in EventNotify()
113 if (res != napi_ok || refCount <= 1) { in EventNotify()
133 res = napi_reference_unref(asyncEvent->env, asyncEvent->callbackRef, &refCount); in EventNotify()
134 WIFI_LOGD("napi_send_event, unref, res: %{public}d, refCount: %{public}d", res, refCount); in EventNotify()
742 uint32_t refCount = INVALID_REF_COUNT; in DeleteRegisterObj() local
743 napi_reference_unref(iter->m_regEnv, iter->m_regHanderRef, &refCount); in DeleteRegisterObj()
766 uint32_t refCount = INVALID_REF_COUNT; DeleteAllRegisterObj() local
[all...]
/foundation/multimedia/audio_framework/frameworks/js/napi/audiomanager/callback/
H A Dnapi_audio_manager_callbacks.cpp59 const int32_t refCount = ARGS_ONE; in SaveCallbackReference() local
60 napi_status status = napi_create_reference(env_, args, refCount, &callback); in SaveCallbackReference()
84 const int32_t refCount = ARGS_ONE; in SaveRoutingManagerDeviceChangeCbRef() local
91 napi_status status = napi_create_reference(env_, callback, refCount, &callbackRef); in SaveRoutingManagerDeviceChangeCbRef()
176 const int32_t refCount = ARGS_ONE; in SaveMicrophoneBlockedCallbackReference() local
183 napi_status status = napi_create_reference(env_, callback, refCount, &callbackRef); in SaveMicrophoneBlockedCallbackReference()
222 const int32_t refCount = 1; in SaveAudioManagerDeviceChangeCbRef() local
229 napi_status status = napi_create_reference(env_, callback, refCount, &callbackRef); in SaveAudioManagerDeviceChangeCbRef()
/foundation/communication/nfc/frameworks/js/napi/cardEmulation/
H A Dnfc_napi_hce_adapter.cpp275 uint32_t refCount = INVALID_REF_COUNT; in DeleteHceCmdRegisterObj() local
276 napi_reference_unref(oldRegObj.m_regEnv, oldRegObj.m_regHanderRef, &refCount); in DeleteHceCmdRegisterObj()
278 "DeleteHceCmdRegisterObj, m_regEnv: %{private}p, m_regHanderRef: %{private}p, refCount: %{public}d", in DeleteHceCmdRegisterObj()
279 oldRegObj.m_regEnv, oldRegObj.m_regHanderRef, refCount); in DeleteHceCmdRegisterObj()
280 if (refCount == 0) { in DeleteHceCmdRegisterObj()
309 uint32_t refCount = INVALID_REF_COUNT; in after_work_cb() local
335 napi_reference_unref(asyncData->env, asyncData->callbackRef, &refCount); in after_work_cb()
337 "refCount: %{public}d", in after_work_cb()
338 asyncData->env, asyncData->callbackRef, refCount); in after_work_cb()
339 if (refCount in after_work_cb()
366 uint32_t refCount = INVALID_REF_COUNT; EventNotify() local
[all...]
/foundation/communication/bluetooth/frameworks/js/napi/src/common/
H A Dnapi_bluetooth_event.cpp94 uint32_t refCount = INVALID_REF_COUNT; in UpdateCallbackInfo() local
104 napi_reference_unref(it->second->env_, it->second->callback_, &refCount); in UpdateCallbackInfo()
105 HILOGD("decrements the refernce count, refCount: %{public}d", refCount); in UpdateCallbackInfo()
106 // other place like EventNotify before use will add refCount, happen refCount != 0, in UpdateCallbackInfo()
107 // ensure other place copy the prepare covered callbackInfo态add refCount and unref and delete refCount in UpdateCallbackInfo()
108 if (refCount == 0) { in UpdateCallbackInfo()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/test/
H A Dutils_test.cpp140 RefCount refCount([&num]() {
143 ASSERT_TRUE(refCount);
145 RefCount refCount1(refCount);
148 RefCount refCount2(std::move(refCount));
/foundation/multimedia/media_library/frameworks/js/src/
H A Dphoto_proxy_napi.cpp81 int32_t refCount = 1; in Init() local
86 if (napi_create_reference(env, ctorObj, refCount, &sConstructor_) == napi_ok) { in Init()
/foundation/filemanagement/dfs_service/services/cloudfiledaemon/include/cloud_disk/
H A Dcloud_disk_inode.h67 std::atomic<int> refCount{0};
78 std::atomic<int> refCount{0};
/foundation/graphic/graphic_3d/lume/LumeRender/src/util/
H A Drender_util.cpp50 desc.refCount = handle.GetRefCount(); in GetRenderHandleDesc()
54 desc.refCount -= 1; // one count in mgr in GetRenderHandleDesc()
66 desc.refCount -= 1; // one count in mgr in GetRenderHandleDesc()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/device/
H A Dsync_state_machine.cpp297 watchDogController_[flag].refCount++; in StartFeedDogForSync()
298 LOGD("af incr refCount = %d", watchDogController_[flag].refCount); in StartFeedDogForSync()
368 watchDogController_[flag].refCount = 0; in StopFeedDogForSyncNoLock()
381 if (--watchDogController_[flag].refCount <= 0) { in DecRefCountOfFeedDogTimer()
382 LOGD("stop feed dog timer, refcount = %d", watchDogController_[flag].refCount); in DecRefCountOfFeedDogTimer()
385 LOGD("af dec refcount = %d", watchDogController_[flag].refCount); in DecRefCountOfFeedDogTimer()
/foundation/multimedia/player_framework/frameworks/js/system_sound_manager/src/ringtone_player/
H A Dringtone_player_napi.cpp69 int32_t refCount = 1; in Init() local
87 if (napi_create_reference(env, ctorObj, refCount, &sConstructor_) == napi_ok) { in Init()
244 const int32_t refCount = 1; in GetTitle() local
262 napi_create_reference(env, argv[PARAM0], refCount, &asyncContext->callbackRef); in GetTitle()
338 const int32_t refCount = 1; in GetAudioRendererInfo() local
354 napi_create_reference(env, argv[PARAM0], refCount, &asyncContext->callbackRef); in GetAudioRendererInfo()
394 const int32_t refCount = 1; in Configure() local
423 napi_create_reference(env, argv[PARAM1], refCount, &asyncContext->callbackRef); in Configure()
458 const int32_t refCount = 1; in Start() local
476 napi_create_reference(env, argv[PARAM0], refCount, in Start()
508 const int32_t refCount = 1; Stop() local
558 const int32_t refCount = 1; Release() local
[all...]
/foundation/ai/intelligent_voice_framework/frameworks/js/napi/
H A Dservice_change_callback_napi.cpp44 constexpr int32_t refCount = 1; in SaveCallbackReference() local
45 napi_status status = napi_create_reference(env_, callback, refCount, &cbRef); in SaveCallbackReference()
/foundation/arkui/ace_engine/frameworks/base/memory/
H A Dref_counter.h148 int32_t refCount = weakRef_.Decrease(); variable
149 if (refCount == 0) {
/foundation/multimedia/audio_framework/frameworks/js/napi/audiomanager/
H A Dnapi_audio_interrupt_manager.cpp106 const int32_t refCount = ARGS_ONE; in Init() local
115 status = napi_create_reference(env, constructor, refCount, &g_interruptManagerConstructor); in Init()

Completed in 14 milliseconds

1234567