• Home
  • Raw
  • Download

Lines Matching refs:id

114                 ALOGD("\t%c ID %p (ref %d):", inc, refs->id, refs->ref);  in ~weakref_impl()
128 ALOGD("\t%c ID %p (ref %d):", inc, refs->id, refs->ref); in ~weakref_impl()
141 void addStrongRef(const void* id) { in addStrongRef() argument
144 addRef(&mStrongRefs, id, mStrong); in addStrongRef()
147 void removeStrongRef(const void* id) { in removeStrongRef() argument
151 removeRef(&mStrongRefs, id); in removeStrongRef()
153 addRef(&mStrongRefs, id, -mStrong); in removeStrongRef()
164 void addWeakRef(const void* id) { in addWeakRef() argument
165 addRef(&mWeakRefs, id, mWeak); in addWeakRef()
168 void removeWeakRef(const void* id) { in removeWeakRef() argument
170 removeRef(&mWeakRefs, id); in removeWeakRef()
172 addRef(&mWeakRefs, id, -mWeak); in removeWeakRef()
219 const void* id; member
226 void addRef(ref_entry** refs, const void* id, int32_t mRef) in addRef() argument
236 ref->id = id; in addRef()
245 void removeRef(ref_entry** refs, const void* id) in removeRef() argument
253 if (ref->id == id) { in removeRef()
264 id, mBase, this); in removeRef()
269 ALOGD("\t%c ID %p (ref %d):", inc, ref->id, ref->ref); in removeRef()
283 if (ref->id == old_id) { in renameRefsId()
284 ref->id = new_id; in renameRefsId()
297 inc, refs->id, refs->ref); in printRefsLocked()
322 void RefBase::incStrong(const void* id) const in incStrong()
325 refs->incWeak(id); in incStrong()
327 refs->addStrongRef(id); in incStrong()
331 ALOGD("incStrong of %p from %p: cnt=%d\n", this, id, c); in incStrong()
341 void RefBase::decStrong(const void* id) const in decStrong()
344 refs->removeStrongRef(id); in decStrong()
347 ALOGD("decStrong of %p from %p: cnt=%d\n", this, id, c); in decStrong()
351 refs->mBase->onLastStrongRef(id); in decStrong()
356 refs->decWeak(id); in decStrong()
359 void RefBase::forceIncStrong(const void* id) const in forceIncStrong()
362 refs->incWeak(id); in forceIncStrong()
364 refs->addStrongRef(id); in forceIncStrong()
369 ALOGD("forceIncStrong of %p from %p: cnt=%d\n", this, id, c); in forceIncStrong()
391 void RefBase::weakref_type::incWeak(const void* id) in incWeak() argument
394 impl->addWeakRef(id); in incWeak()
400 void RefBase::weakref_type::decWeak(const void* id) in decWeak() argument
403 impl->removeWeakRef(id); in decWeak()
423 impl->mBase->onLastWeakRef(id); in decWeak()
432 bool RefBase::weakref_type::attemptIncStrong(const void* id) in attemptIncStrong() argument
434 incWeak(id); in attemptIncStrong()
463 decWeak(id); in attemptIncStrong()
483 decWeak(id); in attemptIncStrong()
490 if (!impl->mBase->onIncStrongAttempted(FIRST_INC_STRONG, id)) { in attemptIncStrong()
492 decWeak(id); in attemptIncStrong()
506 impl->mBase->onLastStrongRef(id); in attemptIncStrong()
510 impl->addStrongRef(id); in attemptIncStrong()
513 ALOGD("attemptIncStrong of %p from %p: cnt=%d\n", this, id, curCount); in attemptIncStrong()
536 bool RefBase::weakref_type::attemptIncWeak(const void* id) in attemptIncWeak() argument
551 impl->addWeakRef(id); in attemptIncWeak()
572 RefBase::weakref_type* RefBase::createWeak(const void* id) const in createWeak()
574 mRefs->incWeak(id); in createWeak()