Home
last modified time | relevance | path

Searched refs:GetSptrRefCount (Results 1 – 25 of 41) sorted by relevance

12

/ohos5.0/commonlibrary/c_utils/base/test/unittest/common/
H A Dutils_refbase_test.cpp268 if (object->GetSptrRefCount()) in DetachObject()
471 EXPECT_EQ(testobject->GetSptrRefCount(), 1);
476 EXPECT_EQ(sptrRef->GetSptrRefCount(), 1);
593 EXPECT_EQ(testObject1->GetSptrRefCount(), 1);
607 EXPECT_EQ(testObject1->GetSptrRefCount(), 2);
788 EXPECT_EQ(baseObject1.GetSptrRefCount(), 0);
796 EXPECT_EQ(baseObject2.GetSptrRefCount(), 0);
873 EXPECT_EQ(testTargetWptrObject3->GetSptrRefCount(), testOrigSptrObject->GetSptrRefCount());
888 EXPECT_EQ(testTargetWptrObject4->GetSptrRefCount(), testOrigSptrObject->GetSptrRefCount());
943 EXPECT_EQ(testTargetWptrObject3->GetSptrRefCount(), testOrigSptrObject->GetSptrRefCount());
[all …]
/ohos5.0/commonlibrary/c_utils/base/test/benchmarktest/refbase_benchmark_test/
H A Drefbase_benchmark_test.cpp308 if (object->GetSptrRefCount()) { in DetachObject()
637 AssertEqual(testobject->GetSptrRefCount(), EXPECTED_REF_COUNT_ONE, in BENCHMARK_F()
645 AssertEqual(sptrRef->GetSptrRefCount(), EXPECTED_REF_COUNT_ONE, in BENCHMARK_F()
758 int refcount = testObject1->GetSptrRefCount(); in BENCHMARK_F()
800 AssertEqual(testObject1->GetSptrRefCount(), EXPECTED_REF_COUNT_ONE, in BENCHMARK_F()
820 AssertEqual(testObject1->GetSptrRefCount(), EXPECTED_REF_COUNT_TWO, in BENCHMARK_F()
836 AssertEqual(testObject1->GetSptrRefCount(), EXPECTED_REF_COUNT_TWO, in BENCHMARK_F()
891 AssertEqual(testObject1->GetSptrRefCount(), EXPECTED_REF_COUNT_TWO, in BENCHMARK_F()
896 AssertEqual(testObject4->GetSptrRefCount(), EXPECTED_REF_COUNT_TWO, in BENCHMARK_F()
1254 AssertEqual(tarWptr->GetSptrRefCount(), origSptr->GetSptrRefCount(), in CompOrigSptrAndTarWptr002()
[all …]
/ohos5.0/base/hiviewdfx/faultloggerd/tools/crasher_cpp/faults/
H A Dipc_issues.cpp36 printf("sendObj:%p count:%d.\n", sendObj.GetRefPtr(), sendObj->GetSptrRefCount()); in SptrMismatch()
39 printf("sendObj2:%p count:%d.\n", sendObj2.GetRefPtr(), sendObj2->GetSptrRefCount()); in SptrMismatch()
/ohos5.0/foundation/multimedia/av_codec/test/unittest/sa_avcodec_test/mock/
H A Davcodec_service_stub_mock.cpp58 listener->GetSptrRefCount()); in GetSubSystemAbility()
67 UNITTEST_INFO_LOG("object refCount:%d", object->GetSptrRefCount()); in SetDeathListener()
/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/hello_native_buffer/
H A Dhello_native_buffer.cpp89 if (sfBuffer->GetSptrRefCount() != HARDWARE_BUFFER_REFERENCE_TWICE) { in main()
109 if (sfBuffer->GetSptrRefCount() != 1) { in main()
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/animation/window_animation_manager/
H A Drs_window_animation_callback.cpp34 if (finishedCallback_.GetRefPtr()->GetSptrRefCount() == 1) { in OnAnimationFinished()
/ohos5.0/foundation/multimedia/av_codec/test/unittest/common/common_mock/surface/capi/
H A Dsurface_capi_mock.cpp34 if ((nativeWindow_ != nullptr) && (nativeWindow_->GetSptrRefCount() >= 1)) { in ~SurfaceCapiMock()
/ohos5.0/foundation/communication/ipc/services/dbinder/test/distributedtest/src/
H A Ddbinder_distributed_test.cpp1501 EXPECT_EQ(object->GetSptrRefCount(), 1);
1520 EXPECT_EQ(object->GetSptrRefCount(), 2);
1524 EXPECT_EQ(object->GetSptrRefCount(), 3);
1528 EXPECT_EQ(object->GetSptrRefCount(), 2);
1532 EXPECT_EQ(object->GetSptrRefCount(), 1);
1559 EXPECT_EQ(remoteObject->GetSptrRefCount(), 2);
1567 EXPECT_EQ(remoteObject2->GetSptrRefCount(), 2);
/ohos5.0/commonlibrary/c_utils/docs/zh-cn/
H A Dc-utils-guide-refbase.md180 if (curSptr->GetSptrRefCount() == 2 && curSptr->GetWptrRefCount() == 2 && // 2: count
211 if (snewWptr->GetWptrRefCount() == 3 && soldSptr->GetSptrRefCount() == 1 && // 3: count
217 …if (spromotedWptr->GetSptrRefCount() == 2 && spromotedWptr->GetWptrRefCount() == 4) { // 2, 4: cou…
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
H A Dmock_refbase_test.cpp314 int getref = refb.GetSptrRefCount();
328 int getref = refb.GetSptrRefCount();
/ohos5.0/foundation/multimedia/media_foundation/src/buffer/avbuffer/
H A Davbuffer.cpp149 …FALSE_RETURN_V_MSG_E(surfaceBuffer->GetSptrRefCount() > 0, nullptr, "GetSptrRefCount is invalid, c… in CreateAVBuffer()
150 surfaceBuffer->GetSptrRefCount()); in CreateAVBuffer()
H A Dav_surface_memory.cpp71 MEDIA_LOG_DD("GetSptrRefCount:%{public}d", surfaceBuffer->GetSptrRefCount()); in Free()
/ohos5.0/drivers/hdf_core/adapter/uhdf2/hdi/src/
H A Dobject_collector.cpp80 if (it->second->GetSptrRefCount() == 0) { in GetOrNewObject()
/ohos5.0/foundation/multimedia/camera_framework/services/camera_service/src/avcodec/
H A Dvideo_encoder.cpp29 MEDIA_INFO_LOG("codecSurface refCount %{public}d", codecSurface_->GetSptrRefCount()); in ~VideoEncoder()
294 frameRecord->GetFrameId().c_str(), frameRecord->GetSptrRefCount()); in EncodeSurfaceBuffer()
/ohos5.0/foundation/communication/ipc/ipc/test/auxiliary/native/src/
H A Dtest_service.cpp67 ZLOGD(LABEL, "TestService: strong = %d", newInstance->GetSptrRefCount()); in Instantiate()
/ohos5.0/foundation/distributeddatamgr/preferences/frameworks/native/mock/c_utils/utils/base/src/
H A Drefbase.cpp342 int RefBase::GetSptrRefCount() in GetSptrRefCount() function in OHOS::RefBase
/ohos5.0/foundation/multimedia/image_framework/mock/native/src/
H A Drefbase.cpp342 int RefBase::GetSptrRefCount() in GetSptrRefCount() function in OHOS::RefBase
/ohos5.0/foundation/communication/ipc/ipc/native/src/core/source/
H A Dipc_object_proxy.cpp155 …ProcessSkeleton::ConvertToSecureDesc(desc).c_str(), GetSptrRefCount(), ProcessSkeleton::ConvertAdd… in SendRequest()
235 …ProcessSkeleton::ConvertToSecureDesc(desc).c_str(), GetSptrRefCount(), ProcessSkeleton::ConvertAdd… in GetInterfaceDescriptor()
637 return (GetSptrRefCount() > 0); in CanPromote()
/ohos5.0/foundation/multimedia/media_foundation/src/buffer/avbuffer_queue/
H A Davbuffer_queue.cpp68 if (producer_ == nullptr || producer_->GetSptrRefCount() <= 0) { in GetProducer()
82 if (consumer_ == nullptr || consumer_->GetSptrRefCount() <= 0) { in GetConsumer()
/ohos5.0/foundation/window/window_manager/wmserver/src/
H A Dmock_session_manager_service.cpp532 iter.second->GetSptrRefCount()); in NotifySceneBoardAvailableToLiteClient()
612 iter.second->GetSptrRefCount()); in NotifyWMSConnectionChangedToLiteClient()
/ohos5.0/foundation/window/window_manager/window_scene/session_manager/src/
H A Dsession_manager.cpp140 int refCount = sessionManagerServiceProxy_->GetSptrRefCount(); in ClearSessionManagerProxy()
/ohos5.0/commonlibrary/c_utils/base/test/fuzztest/refbase_fuzzer/
H A Drefbase_fuzzer.cpp145 g_ref->GetSptrRefCount(); in __anone27d57a10402()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/platform/utils/
H A Drefbase.cpp534 int RefBase::GetSptrRefCount() in GetSptrRefCount() function in OHOS::RefBase
/ohos5.0/commonlibrary/c_utils/base/src/
H A Drefbase.cpp568 int RefBase::GetSptrRefCount() in GetSptrRefCount() function in OHOS::RefBase
/ohos5.0/foundation/ability/ability_runtime/services/abilitymgr/src/
H A Ddata_ability_record.cpp420 scheduler_ ? scheduler_->GetSptrRefCount() : 0, in Dump()

12