/ohos5.0/commonlibrary/c_utils/base/test/unittest/common/ |
H A D | utils_refbase_test.cpp | 268 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 D | refbase_benchmark_test.cpp | 308 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 D | ipc_issues.cpp | 36 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 D | avcodec_service_stub_mock.cpp | 58 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 D | hello_native_buffer.cpp | 89 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 D | rs_window_animation_callback.cpp | 34 if (finishedCallback_.GetRefPtr()->GetSptrRefCount() == 1) { in OnAnimationFinished()
|
/ohos5.0/foundation/multimedia/av_codec/test/unittest/common/common_mock/surface/capi/ |
H A D | surface_capi_mock.cpp | 34 if ((nativeWindow_ != nullptr) && (nativeWindow_->GetSptrRefCount() >= 1)) { in ~SurfaceCapiMock()
|
/ohos5.0/foundation/communication/ipc/services/dbinder/test/distributedtest/src/ |
H A D | dbinder_distributed_test.cpp | 1501 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 D | c-utils-guide-refbase.md | 180 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 D | mock_refbase_test.cpp | 314 int getref = refb.GetSptrRefCount(); 328 int getref = refb.GetSptrRefCount();
|
/ohos5.0/foundation/multimedia/media_foundation/src/buffer/avbuffer/ |
H A D | avbuffer.cpp | 149 …FALSE_RETURN_V_MSG_E(surfaceBuffer->GetSptrRefCount() > 0, nullptr, "GetSptrRefCount is invalid, c… in CreateAVBuffer() 150 surfaceBuffer->GetSptrRefCount()); in CreateAVBuffer()
|
H A D | av_surface_memory.cpp | 71 MEDIA_LOG_DD("GetSptrRefCount:%{public}d", surfaceBuffer->GetSptrRefCount()); in Free()
|
/ohos5.0/drivers/hdf_core/adapter/uhdf2/hdi/src/ |
H A D | object_collector.cpp | 80 if (it->second->GetSptrRefCount() == 0) { in GetOrNewObject()
|
/ohos5.0/foundation/multimedia/camera_framework/services/camera_service/src/avcodec/ |
H A D | video_encoder.cpp | 29 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 D | test_service.cpp | 67 ZLOGD(LABEL, "TestService: strong = %d", newInstance->GetSptrRefCount()); in Instantiate()
|
/ohos5.0/foundation/distributeddatamgr/preferences/frameworks/native/mock/c_utils/utils/base/src/ |
H A D | refbase.cpp | 342 int RefBase::GetSptrRefCount() in GetSptrRefCount() function in OHOS::RefBase
|
/ohos5.0/foundation/multimedia/image_framework/mock/native/src/ |
H A D | refbase.cpp | 342 int RefBase::GetSptrRefCount() in GetSptrRefCount() function in OHOS::RefBase
|
/ohos5.0/foundation/communication/ipc/ipc/native/src/core/source/ |
H A D | ipc_object_proxy.cpp | 155 …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 D | avbuffer_queue.cpp | 68 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 D | mock_session_manager_service.cpp | 532 iter.second->GetSptrRefCount()); in NotifySceneBoardAvailableToLiteClient() 612 iter.second->GetSptrRefCount()); in NotifyWMSConnectionChangedToLiteClient()
|
/ohos5.0/foundation/window/window_manager/window_scene/session_manager/src/ |
H A D | session_manager.cpp | 140 int refCount = sessionManagerServiceProxy_->GetSptrRefCount(); in ClearSessionManagerProxy()
|
/ohos5.0/commonlibrary/c_utils/base/test/fuzztest/refbase_fuzzer/ |
H A D | refbase_fuzzer.cpp | 145 g_ref->GetSptrRefCount(); in __anone27d57a10402()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/platform/utils/ |
H A D | refbase.cpp | 534 int RefBase::GetSptrRefCount() in GetSptrRefCount() function in OHOS::RefBase
|
/ohos5.0/commonlibrary/c_utils/base/src/ |
H A D | refbase.cpp | 568 int RefBase::GetSptrRefCount() in GetSptrRefCount() function in OHOS::RefBase
|
/ohos5.0/foundation/ability/ability_runtime/services/abilitymgr/src/ |
H A D | data_ability_record.cpp | 420 scheduler_ ? scheduler_->GetSptrRefCount() : 0, in Dump()
|