Searched refs:weakRef (Results 1 – 12 of 12) sorted by relevance
/ohos5.0/commonlibrary/c_utils/base/test/fuzztest/refbase_fuzzer/ |
H A D | refbase_fuzzer.cpp | 106 [](SingleThreadRefCounts* refState, WeakRefCounter*& weakRef) { in __anone27d57a10202() 116 weakRef->DecWeakRefCount(nullptr); in __anone27d57a10202() 171 [](SingleThreadRefCounts* refState, WeakRefCounter*& weakRef) { in __anone27d57a10902() 174 weakRef->GetWeakRefCount(); in __anone27d57a10902() 187 [](SingleThreadRefCounts* refState, WeakRefCounter*& weakRef) { in __anone27d57a10b02() 190 weakRef = g_ref->CreateWeakRef(nullptr); in __anone27d57a10b02() 196 [](SingleThreadRefCounts* refState, WeakRefCounter*& weakRef) { in __anone27d57a10c02() 199 weakRef->IncWeakRefCount(nullptr); in __anone27d57a10c02() 205 [](SingleThreadRefCounts* refState, WeakRefCounter*& weakRef) { in __anone27d57a10d02() 209 weakRef->AttemptIncStrongRef(nullptr); in __anone27d57a10d02()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/state_mgmt/src/lib/v2/ |
H A D | v2_change_observation.ts | 241 let weakRef: WeakRef<object> = this.id2cmp_[id]; 242 …if (weakRef && typeof weakRef === 'object' && 'deref' in weakRef && weakRef.deref() === undefined)… 274 let weakRef: WeakRef<Object> = this.id2cmp_[id]; 275 if (weakRef && 'deref' in weakRef && (comp = weakRef.deref()) && comp instanceof Object) {
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/ |
H A D | arkts_native_utils_bridge.h | 26 weakRef = AceType::WeakClaim(ptr); in NativeWeakRef() 31 return weakRef.Invalid(); in Invalid() 35 WeakPtr<AceType> weakRef; member
|
H A D | arkts_native_utils_bridge.cpp | 128 auto ref = weak->weakRef.Upgrade(); in Upgrade()
|
/ohos5.0/foundation/multimedia/media_foundation/engine/include/foundation/utils/ |
H A D | buffer_pool.h | 160 std::weak_ptr<BufferPool<T>> weakRef(this->shared_from_this()); in AllocateBufferUnprotected() 161 std::shared_ptr<T> sptr(freeBuffers_.front().release(), [weakRef](T* ptr) { in AllocateBufferUnprotected() 162 auto pool = weakRef.lock(); in AllocateBufferUnprotected()
|
/ohos5.0/foundation/ability/ability_base/interfaces/inner_api/base/include/ |
H A D | base_obj.h | 63 virtual ErrCode GetWeakReference(sptr<IWeakReference> & weakRef) = 0; /* [out] */ 82 ErrCode GetWeakReference(sptr<IWeakReference> &weakRef) override; /* [out] */
|
/ohos5.0/foundation/ability/ability_base/interfaces/inner_api/base/src/ |
H A D | base_object.cpp | 154 ErrCode Object::GetWeakReference(sptr<IWeakReference> &weakRef) in GetWeakReference() argument 160 weakRef = new (addr) WeakReferenceImpl(static_cast<IObject *>(this), CreateWeakRef(addr)); in GetWeakReference()
|
/ohos5.0/foundation/ability/ability_base/test/unittest/base/ |
H A D | base_test.cpp | 275 sptr<IWeakReference> weakRef; 276 testObject1->GetWeakReference(weakRef); 277 EXPECT_TRUE(weakRef != nullptr); 279 weakRef->Resolve(g_IID_IObject, reinterpret_cast<IInterface **>(&object)); 285 weakRef->Resolve(g_IID_IObject, reinterpret_cast<IInterface **>(&object));
|
H A D | base_object_test.cpp | 137 sptr<IWeakReference> weakRef = nullptr; variable 138 EXPECT_EQ(ERR_OK, object.GetWeakReference(weakRef));
|
/ohos5.0/foundation/window/window_manager/interfaces/kits/napi/extension_window/ |
H A D | js_extension_window_listener.cpp | 224 static void LifeCycleCallBack(LifeCycleEventType eventType, wptr<JsExtensionWindowListener> weakRef, in LifeCycleCallBack() argument 228 auto task = [self = weakRef, eventType, eng = env] () { in LifeCycleCallBack()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/ |
H A D | stateMgmt.js | 7941 let weakRef = this.id2cmp_[id]; 7942 …if (weakRef && typeof weakRef === 'object' && 'deref' in weakRef && weakRef.deref() === undefined)… 7972 let weakRef = this.id2cmp_[id]; 7973 … if (weakRef && 'deref' in weakRef && (comp = weakRef.deref()) && comp instanceof Object) {
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_view_abstract.cpp | 8896 auto frameNode = AceType::DynamicCast<NG::FrameNode>(weak->weakRef.Upgrade()); in AddInvalidateFunc()
|