Home | History | Annotate | Download | only in libutils

Lines Matching defs:RefBase

17 #define LOG_TAG "RefBase"
28 #include <utils/RefBase.h>
79 // A weakref_impl is allocated as the value of mRefs in a RefBase object on
81 // In the OBJECT_LIFETIME_STRONG case, it is deallocated in the RefBase
87 // In the OBJECT_LIFETIME_WEAK case, it is always deallocated from the RefBase
125 class RefBase::weakref_impl : public RefBase::weakref_type
130 RefBase* const mBase;
135 weakref_impl(RefBase* base)
154 weakref_impl(RefBase* base)
204 // "addStrongRef: RefBase=%p, id=%p", mBase, id);
210 // "removeStrongRef: RefBase=%p, id=%p", mBase, id);
220 // "renameStrongRefId: RefBase=%p, oid=%p, nid=%p",
254 sprintf(buf, "Strong references on RefBase %p (weakref_type %p):\n", mBase, this);
257 sprintf(buf, "Weak references on RefBase %p (weakref_type %p):\n", mBase, this);
323 ALOGE("RefBase: removing id %p on RefBase %p"
383 void RefBase::incStrong(const void* id) const
405 void RefBase::decStrong(const void* id) const
433 void RefBase::forceIncStrong(const void* id) const
458 int32_t RefBase::getStrongCount() const
464 RefBase* RefBase::weakref_type::refBase() const
469 void RefBase::weakref_type::incWeak(const void* id)
479 void RefBase::weakref_type::decWeak(const void* id)
500 // ALOGV("Freeing refs %p of old RefBase %p\n", this, impl->mBase);
511 bool RefBase::weakref_type::attemptIncStrong(const void* id)
610 bool RefBase::weakref_type::attemptIncWeak(const void* id)
632 int32_t RefBase::weakref_type::getWeakCount() const
639 void RefBase::weakref_type::printRefs() const
644 void RefBase::weakref_type::trackMe(bool enable, bool retain)
649 RefBase::weakref_type* RefBase::createWeak(const void* id) const
655 RefBase::weakref_type* RefBase::getWeakRefs() const
660 RefBase::RefBase()
665 RefBase::~RefBase()
688 void RefBase::extendObjectLifetime(int32_t mode)
695 void RefBase::onFirstRef()
699 void RefBase::onLastStrongRef(const void* /*id*/)
703 bool RefBase::onIncStrongAttempted(uint32_t flags, const void* /*id*/)
708 void RefBase::onLastWeakRef(const void* /*id*/)
715 void RefBase::renameRefs(size_t n, const ReferenceRenamer& renamer) {
721 void RefBase::renameRefs(size_t /*n*/, const ReferenceRenamer& /*renamer*/) { }
724 void RefBase::renameRefId(weakref_type* ref,
731 void RefBase::renameRefId(RefBase* ref,