Lines Matching refs:id
111 ALOGD("\t%c ID %p (ref %d):", inc, refs->id, refs->ref); in ~weakref_impl()
125 ALOGD("\t%c ID %p (ref %d):", inc, refs->id, refs->ref); in ~weakref_impl()
138 void addStrongRef(const void* id) { in addStrongRef() argument
141 addRef(&mStrongRefs, id, mStrong); in addStrongRef()
144 void removeStrongRef(const void* id) { in removeStrongRef() argument
148 removeRef(&mStrongRefs, id); in removeStrongRef()
150 addRef(&mStrongRefs, id, -mStrong); in removeStrongRef()
161 void addWeakRef(const void* id) { in addWeakRef() argument
162 addRef(&mWeakRefs, id, mWeak); in addWeakRef()
165 void removeWeakRef(const void* id) { in removeWeakRef() argument
167 removeRef(&mWeakRefs, id); in removeWeakRef()
169 addRef(&mWeakRefs, id, -mWeak); in removeWeakRef()
216 const void* id; member
223 void addRef(ref_entry** refs, const void* id, int32_t mRef) in addRef() argument
233 ref->id = id; in addRef()
242 void removeRef(ref_entry** refs, const void* id) in removeRef() argument
250 if (ref->id == id) { in removeRef()
261 id, mBase, this); in removeRef()
266 ALOGD("\t%c ID %p (ref %d):", inc, ref->id, ref->ref); in removeRef()
280 if (ref->id == old_id) { in renameRefsId()
281 ref->id = new_id; in renameRefsId()
294 inc, refs->id, refs->ref); in printRefsLocked()
319 void RefBase::incStrong(const void* id) const in incStrong()
322 refs->incWeak(id); in incStrong()
324 refs->addStrongRef(id); in incStrong()
328 ALOGD("incStrong of %p from %p: cnt=%d\n", this, id, c); in incStrong()
338 void RefBase::decStrong(const void* id) const in decStrong()
341 refs->removeStrongRef(id); in decStrong()
344 ALOGD("decStrong of %p from %p: cnt=%d\n", this, id, c); in decStrong()
348 refs->mBase->onLastStrongRef(id); in decStrong()
353 refs->decWeak(id); in decStrong()
356 void RefBase::forceIncStrong(const void* id) const in forceIncStrong()
359 refs->incWeak(id); in forceIncStrong()
361 refs->addStrongRef(id); in forceIncStrong()
366 ALOGD("forceIncStrong of %p from %p: cnt=%d\n", this, id, c); in forceIncStrong()
388 void RefBase::weakref_type::incWeak(const void* id) in incWeak() argument
391 impl->addWeakRef(id); in incWeak()
397 void RefBase::weakref_type::decWeak(const void* id) in decWeak() argument
400 impl->removeWeakRef(id); in decWeak()
420 impl->mBase->onLastWeakRef(id); in decWeak()
429 bool RefBase::weakref_type::attemptIncStrong(const void* id) in attemptIncStrong() argument
431 incWeak(id); in attemptIncStrong()
460 decWeak(id); in attemptIncStrong()
480 decWeak(id); in attemptIncStrong()
487 if (!impl->mBase->onIncStrongAttempted(FIRST_INC_STRONG, id)) { in attemptIncStrong()
489 decWeak(id); in attemptIncStrong()
503 impl->mBase->onLastStrongRef(id); in attemptIncStrong()
507 impl->addStrongRef(id); in attemptIncStrong()
510 ALOGD("attemptIncStrong of %p from %p: cnt=%d\n", this, id, curCount); in attemptIncStrong()
533 bool RefBase::weakref_type::attemptIncWeak(const void* id) in attemptIncWeak() argument
548 impl->addWeakRef(id); in attemptIncWeak()
569 RefBase::weakref_type* RefBase::createWeak(const void* id) const in createWeak()
571 mRefs->incWeak(id); in createWeak()
619 bool RefBase::onIncStrongAttempted(uint32_t flags, const void* id) in onIncStrongAttempted() argument