Lines Matching refs:id
106 LOGD("\t%c ID %p (ref %d):", inc, refs->id, refs->ref); in ~weakref_impl()
124 LOGD("\t%c ID %p (ref %d):", inc, refs->id, refs->ref); in ~weakref_impl()
139 void addStrongRef(const void* id) { in addStrongRef() argument
142 addRef(&mStrongRefs, id, mStrong); in addStrongRef()
145 void removeStrongRef(const void* id) { in removeStrongRef() argument
149 removeRef(&mStrongRefs, id); in removeStrongRef()
151 addRef(&mStrongRefs, id, -mStrong); in removeStrongRef()
162 void addWeakRef(const void* id) { in addWeakRef() argument
163 addRef(&mWeakRefs, id, mWeak); in addWeakRef()
166 void removeWeakRef(const void* id) { in removeWeakRef() argument
168 removeRef(&mWeakRefs, id); in removeWeakRef()
170 addRef(&mWeakRefs, id, -mWeak); in removeWeakRef()
217 const void* id; member
224 void addRef(ref_entry** refs, const void* id, int32_t mRef) in addRef() argument
234 ref->id = id; in addRef()
243 void removeRef(ref_entry** refs, const void* id) in removeRef() argument
251 if (ref->id == id) { in removeRef()
263 id, mBase, this); in removeRef()
268 id, mBase, this); in removeRef()
273 LOGD("\t%c ID %p (ref %d):", inc, ref->id, ref->ref); in removeRef()
289 if (ref->id == old_id) { in renameRefsId()
290 ref->id = new_id; in renameRefsId()
303 inc, refs->id, refs->ref); in printRefsLocked()
328 void RefBase::incStrong(const void* id) const in incStrong()
331 refs->incWeak(id); in incStrong()
333 refs->addStrongRef(id); in incStrong()
337 LOGD("incStrong of %p from %p: cnt=%d\n", this, id, c); in incStrong()
347 void RefBase::decStrong(const void* id) const in decStrong()
350 refs->removeStrongRef(id); in decStrong()
353 LOGD("decStrong of %p from %p: cnt=%d\n", this, id, c); in decStrong()
357 refs->mBase->onLastStrongRef(id); in decStrong()
362 refs->decWeak(id); in decStrong()
365 void RefBase::forceIncStrong(const void* id) const in forceIncStrong()
368 refs->incWeak(id); in forceIncStrong()
370 refs->addStrongRef(id); in forceIncStrong()
375 LOGD("forceIncStrong of %p from %p: cnt=%d\n", this, id, c); in forceIncStrong()
397 void RefBase::weakref_type::incWeak(const void* id) in incWeak() argument
400 impl->addWeakRef(id); in incWeak()
406 void RefBase::weakref_type::decWeak(const void* id) in decWeak() argument
409 impl->removeWeakRef(id); in decWeak()
429 impl->mBase->onLastWeakRef(id); in decWeak()
438 bool RefBase::weakref_type::attemptIncStrong(const void* id) in attemptIncStrong() argument
440 incWeak(id); in attemptIncStrong()
462 || impl->mBase->onIncStrongAttempted(FIRST_INC_STRONG, id); in attemptIncStrong()
469 && impl->mBase->onIncStrongAttempted(FIRST_INC_STRONG, id); in attemptIncStrong()
472 decWeak(id); in attemptIncStrong()
483 impl->mBase->onLastStrongRef(id); in attemptIncStrong()
487 impl->addStrongRef(id); in attemptIncStrong()
490 LOGD("attemptIncStrong of %p from %p: cnt=%d\n", this, id, curCount); in attemptIncStrong()
501 bool RefBase::weakref_type::attemptIncWeak(const void* id) in attemptIncWeak() argument
516 impl->addWeakRef(id); in attemptIncWeak()
537 RefBase::weakref_type* RefBase::createWeak(const void* id) const in createWeak()
539 mRefs->incWeak(id); in createWeak()
587 bool RefBase::onIncStrongAttempted(uint32_t flags, const void* id) in onIncStrongAttempted() argument