Lines Matching defs:ref
105 char inc = refs->ref >= 0 ? '+' : '-';
106 ALOGD("\t%c ID %p (ref %d):", inc, refs->id, refs->ref);
123 char inc = refs->ref >= 0 ? '+' : '-';
124 ALOGD("\t%c ID %p (ref %d):", inc, refs->id, refs->ref);
221 int32_t ref;
229 ref_entry* ref = new ref_entry;
233 ref->ref = mRef;
234 ref->id = id;
236 ref->stack.update(2);
238 ref->next = *refs;
239 *refs = ref;
249 ref_entry* ref = head;
250 while (ref != NULL) {
251 if (ref->id == id) {
252 *refs = ref->next;
253 delete ref;
256 refs = &ref->next;
257 ref = *refs;
270 ref = head;
271 while (ref) {
272 char inc = ref->ref >= 0 ? '+' : '-';
273 ALOGD("\t%c ID %p (ref %d):", inc, ref->id, ref->ref);
274 ref = ref->next;
287 ref_entry* ref = r;
288 while (ref != NULL) {
289 if (ref->id == old_id) {
290 ref->id = new_id;
292 ref = ref->next;
301 char inc = refs->ref >= 0 ? '+' : '-';
302 sprintf(buf, "\t%c ID %p (ref %d):\n",
303 inc, refs->id, refs->ref);
335 ALOG_ASSERT(c > 0, "incStrong() called on %p after last strong ref", refs);
372 ALOG_ASSERT(c >= 0, "forceIncStrong called on %p after ref count underflow",
402 ALOG_ASSERT(c >= 0, "incWeak called on %p after last weak ref", this);
466 // call the object with only a weak ref) and the implementation
606 RefBase* ref(reinterpret_cast<RefBase*>(caster.getReferenceBase(d)));
607 ref->mRefs->renameStrongRefId(s, d);
608 ref->mRefs->renameWeakRefId(s, d);