Lines Matching defs:RefBase

17 #define LOG_TAG "RefBase"
19 #include <utils/RefBase.h>
52 class RefBase::weakref_impl : public RefBase::weakref_type
57 RefBase* const mBase;
62 weakref_impl(RefBase* base)
81 weakref_impl(RefBase* base)
141 // "addStrongRef: RefBase=%p, id=%p", mBase, id);
147 // "removeStrongRef: RefBase=%p, id=%p", mBase, id);
157 // "renameStrongRefId: RefBase=%p, oid=%p, nid=%p",
191 sprintf(buf, "Strong references on RefBase %p (weakref_type %p):\n", mBase, this);
194 sprintf(buf, "Weak references on RefBase %p (weakref_type %p):\n", mBase, this);
261 LOG_ALWAYS_FATAL("RefBase: removing id %p on RefBase %p"
266 ALOGE("RefBase: removing id %p on RefBase %p"
328 void RefBase::incStrong(const void* id) const
347 void RefBase::decStrong(const void* id) const
365 void RefBase::forceIncStrong(const void* id) const
387 int32_t RefBase::getStrongCount() const
392 RefBase* RefBase::weakref_type::refBase() const
397 void RefBase::weakref_type::incWeak(const void* id)
406 void RefBase::weakref_type::decWeak(const void* id)
424 // ALOGV("Freeing refs %p of old RefBase %p\n", this, impl->mBase);
438 bool RefBase::weakref_type::attemptIncStrong(const void* id)
501 bool RefBase::weakref_type::attemptIncWeak(const void* id)
522 int32_t RefBase::weakref_type::getWeakCount() const
527 void RefBase::weakref_type::printRefs() const
532 void RefBase::weakref_type::trackMe(bool enable, bool retain)
537 RefBase::weakref_type* RefBase::createWeak(const void* id) const
543 RefBase::weakref_type* RefBase::getWeakRefs() const
548 RefBase::RefBase()
553 RefBase::~RefBase()
574 void RefBase::extendObjectLifetime(int32_t mode)
579 void RefBase::onFirstRef()
583 void RefBase::onLastStrongRef(const void* /*id*/)
587 bool RefBase::onIncStrongAttempted(uint32_t flags, const void* id)
592 void RefBase::onLastWeakRef(const void* /*id*/)
598 void RefBase::moveReferences(void* dst, void const* src, size_t n,
606 RefBase* ref(reinterpret_cast<RefBase*>(caster.getReferenceBase(d)));