Lines Matching defs:RefBase
17 #define LOG_TAG "RefBase"
20 #include <utils/RefBase.h>
60 class RefBase::weakref_impl : public RefBase::weakref_type
65 RefBase* const mBase;
70 weakref_impl(RefBase* base)
89 weakref_impl(RefBase* base)
139 // "addStrongRef: RefBase=%p, id=%p", mBase, id);
145 // "removeStrongRef: RefBase=%p, id=%p", mBase, id);
155 // "renameStrongRefId: RefBase=%p, oid=%p, nid=%p",
189 sprintf(buf, "Strong references on RefBase %p (weakref_type %p):\n", mBase, this);
192 sprintf(buf, "Weak references on RefBase %p (weakref_type %p):\n", mBase, this);
258 ALOGE("RefBase: removing id %p on RefBase %p"
318 void RefBase::incStrong(const void* id) const
337 void RefBase::decStrong(const void* id) const
355 void RefBase::forceIncStrong(const void* id) const
377 int32_t RefBase::getStrongCount() const
382 RefBase* RefBase::weakref_type::refBase() const
387 void RefBase::weakref_type::incWeak(const void* id)
396 void RefBase::weakref_type::decWeak(const void* id)
414 // ALOGV("Freeing refs %p of old RefBase %p\n", this, impl->mBase);
428 bool RefBase::weakref_type::attemptIncStrong(const void* id)
532 bool RefBase::weakref_type::attemptIncWeak(const void* id)
553 int32_t RefBase::weakref_type::getWeakCount() const
558 void RefBase::weakref_type::printRefs() const
563 void RefBase::weakref_type::trackMe(bool enable, bool retain)
568 RefBase::weakref_type* RefBase::createWeak(const void* id) const
574 RefBase::weakref_type* RefBase::getWeakRefs() const
579 RefBase::RefBase()
584 RefBase::~RefBase()
605 void RefBase::extendObjectLifetime(int32_t mode)
610 void RefBase::onFirstRef()
614 void RefBase::onLastStrongRef(const void* /*id*/)
618 bool RefBase::onIncStrongAttempted(uint32_t flags, const void* id)
623 void RefBase::onLastWeakRef(const void* /*id*/)
629 void RefBase::renameRefs(size_t n, const ReferenceRenamer& renamer) {
637 void RefBase::renameRefId(weakref_type* ref,
644 void RefBase::renameRefId(RefBase* ref,