Lines Matching refs:id

143     void addStrongRef(const void* /*id*/) { }
144 void removeStrongRef(const void* /*id*/) { }
146 void addWeakRef(const void* /*id*/) { }
147 void removeWeakRef(const void* /*id*/) { }
175 ALOGD("\t%c ID %p (ref %d):", inc, refs->id, refs->ref);
189 ALOGD("\t%c ID %p (ref %d):", inc, refs->id, refs->ref);
202 void addStrongRef(const void* id) {
204 // "addStrongRef: RefBase=%p, id=%p", mBase, id);
205 addRef(&mStrongRefs, id, mStrong.load(std::memory_order_relaxed));
208 void removeStrongRef(const void* id) {
210 // "removeStrongRef: RefBase=%p, id=%p", mBase, id);
212 removeRef(&mStrongRefs, id);
214 addRef(&mStrongRefs, id, -mStrong.load(std::memory_order_relaxed));
225 void addWeakRef(const void* id) {
226 addRef(&mWeakRefs, id, mWeak.load(std::memory_order_relaxed));
229 void removeWeakRef(const void* id) {
231 removeRef(&mWeakRefs, id);
233 addRef(&mWeakRefs, id, -mWeak.load(std::memory_order_relaxed));
280 const void* id;
287 void addRef(ref_entry** refs, const void* id, int32_t mRef)
297 ref->id = id;
306 void removeRef(ref_entry** refs, const void* id)
314 if (ref->id == id) {
323 ALOGE("RefBase: removing id %p on RefBase %p"
325 id, mBase, this);
330 ALOGD("\t%c ID %p (ref %d):", inc, ref->id, ref->ref);
344 if (ref->id == old_id) {
345 ref->id = new_id;
358 inc, refs->id, refs->ref);
383 void RefBase::incStrong(const void* id) const
386 refs->incWeak(id);
388 refs->addStrongRef(id);
392 ALOGD("incStrong of %p from %p: cnt=%d\n", this, id, c);
405 void RefBase::decStrong(const void* id) const
408 refs->removeStrongRef(id);
411 ALOGD("decStrong of %p from %p: cnt=%d\n", this, id, c);
416 refs->mBase->onLastStrongRef(id);
430 refs->decWeak(id);
433 void RefBase::forceIncStrong(const void* id) const
438 refs->incWeak(id);
440 refs->addStrongRef(id);
445 ALOGD("forceIncStrong of %p from %p: cnt=%d\n", this, id, c);
469 void RefBase::weakref_type::incWeak(const void* id)
472 impl->addWeakRef(id);
479 void RefBase::weakref_type::decWeak(const void* id)
482 impl->removeWeakRef(id);
506 impl->mBase->onLastWeakRef(id);
511 bool RefBase::weakref_type::attemptIncStrong(const void* id)
513 incWeak(id);
543 decWeak(id);
563 decWeak(id);
570 if (!impl->mBase->onIncStrongAttempted(FIRST_INC_STRONG, id)) {
572 decWeak(id);
584 impl->mBase->onLastStrongRef(id);
589 impl->addStrongRef(id);
592 ALOGD("attemptIncStrong of %p from %p: cnt=%d\n", this, id, curCount);
610 bool RefBase::weakref_type::attemptIncWeak(const void* id)
626 impl->addWeakRef(id);
649 RefBase::weakref_type* RefBase::createWeak(const void* id) const
651 mRefs->incWeak(id);
699 void RefBase::onLastStrongRef(const void* /*id*/)
703 bool RefBase::onIncStrongAttempted(uint32_t flags, const void* /*id*/)
708 void RefBase::onLastWeakRef(const void* /*id*/)