Home
last modified time | relevance | path

Searched refs:mRefs (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/libs/utils/
DSharedBuffer.cpp31 sb->mRefs = 1; in alloc()
40 if (released->mRefs != 0) return -1; // XXX: invalid operation in dealloc()
97 android_atomic_inc(&mRefs); in acquire()
103 if (onlyOwner() || ((prev = android_atomic_dec(&mRefs)) == 1)) { in release()
104 mRefs = 0; in release()
DRefBase.cpp289 weakref_impl* const refs = mRefs; in incStrong()
309 weakref_impl* const refs = mRefs; in decStrong()
332 weakref_impl* const refs = mRefs; in forceIncStrong()
355 return mRefs->mStrong; in getStrongCount()
359 mRefs->mDestroyer = destroyer; in setDestroyer()
512 mRefs->incWeak(id); in createWeak()
513 return mRefs; in createWeak()
518 return mRefs; in getWeakRefs()
522 : mRefs(new weakref_impl(this)) in RefBase()
529 if ((mRefs->mFlags & OBJECT_LIFETIME_WEAK) == OBJECT_LIFETIME_WEAK) { in ~RefBase()
[all …]
/frameworks/base/libs/binder/
DBinder.cpp217 : mRemote(o.get()), mRefs(NULL), mState(0) in BpRefBase()
223 mRefs = mRemote->createWeak(this); // Held for our entire lifetime. in BpRefBase()
233 mRefs->decWeak(this); in ~BpRefBase()
251 return mRemote ? mRefs->attemptIncStrong(this) : false; in onIncStrongAttempted()
/frameworks/base/include/utils/
DSharedBuffer.h100 mutable int32_t mRefs; variable
139 return (mRefs == 1); in onlyOwner()
DRefBase.h157 weakref_impl* const mRefs; variable
/frameworks/base/include/binder/
DBinder.h95 RefBase::weakref_type* mRefs; variable