Searched refs:refs (Results 1 – 9 of 9) sorted by relevance
/system/core/libmemunreachable/ |
D | Binder.cpp | 37 static bool BinderReferencesToVector(allocator::vector<uintptr_t>& refs, in BinderReferencesToVector() argument 43 size_t size = refs.size(); in BinderReferencesToVector() 46 refs.resize(size); in BinderReferencesToVector() 48 ssize_t ret = fn(refs.size(), refs.data()); in BinderReferencesToVector() 54 } while (size > refs.size()); in BinderReferencesToVector() 56 refs.resize(size); in BinderReferencesToVector() 60 bool BinderReferences(allocator::vector<uintptr_t>& refs) { in BinderReferences() argument 61 refs.clear(); in BinderReferences() 63 allocator::vector<uintptr_t> binder_refs{refs.get_allocator()}; in BinderReferences() 64 if (BinderReferencesToVector(refs, getBinderKernelReferences)) { in BinderReferences() [all …]
|
D | Binder.h | 24 bool BinderReferences(allocator::vector<uintptr_t>& refs);
|
D | MemUnreachable.cpp | 58 const allocator::vector<uintptr_t>& refs); 88 const allocator::vector<uintptr_t>& refs) { in CollectAllocations() argument 129 heap_walker_.Root(refs); in CollectAllocations() 300 allocator::vector<uintptr_t> refs(heap); in GetUnreachableMemory() local 320 if (!BinderReferences(refs)) { in GetUnreachableMemory() 350 if (!unreachable.CollectAllocations(thread_info, mappings, refs)) { in GetUnreachableMemory()
|
/system/core/libutils/ |
D | RefBase.cpp | 195 ref_entry* refs = mStrongRefs; in ~weakref_impl() local 196 while (refs) { in ~weakref_impl() 197 char inc = refs->ref >= 0 ? '+' : '-'; in ~weakref_impl() 198 ALOGD("\t%c ID %p (ref %d):", inc, refs->id, refs->ref); in ~weakref_impl() 200 CallStack::logStack(LOG_TAG, refs->stack.get()); in ~weakref_impl() 202 refs = refs->next; in ~weakref_impl() 209 ref_entry* refs = mWeakRefs; in ~weakref_impl() local 210 while (refs) { in ~weakref_impl() 211 char inc = refs->ref >= 0 ? '+' : '-'; in ~weakref_impl() 212 ALOGD("\t%c ID %p (ref %d):", inc, refs->id, refs->ref); in ~weakref_impl() [all …]
|
/system/libhwbinder/ |
D | IPCThreadState.cpp | 511 RefBase::weakref_type* refs = mPendingWeakDerefs[0]; in processPendingDerefs() local 513 refs->decWeak(mProcess.get()); in processPendingDerefs() 538 RefBase::weakref_type* refs = mPostWriteWeakDerefs[0]; in processPostWriteDerefs() local 540 refs->decWeak(mProcess.get()); in processPostWriteDerefs() 1054 RefBase::weakref_type* refs; in executeCommand() local 1065 refs = (RefBase::weakref_type*)mIn.readPointer(); in executeCommand() 1067 ALOG_ASSERT(refs->refBase() == obj, in executeCommand() 1069 refs, obj, refs->refBase()); in executeCommand() 1076 mOut.writePointer((uintptr_t)refs); in executeCommand() 1081 refs = (RefBase::weakref_type*)mIn.readPointer(); in executeCommand() [all …]
|
D | ProcessState.cpp | 258 e.refs = nullptr; in lookupHandleLocked() 278 if (b == nullptr || !e->refs->attemptIncWeak(this)) { in getStrongProxyForHandle() 281 if (b) e->refs = b->getWeakRefs(); in getStrongProxyForHandle() 288 e->refs->decWeak(this); in getStrongProxyForHandle() 312 if (b == nullptr || !e->refs->attemptIncWeak(this)) { in getWeakProxyForHandle() 316 if (b) e->refs = b->getWeakRefs(); in getWeakProxyForHandle() 319 e->refs->decWeak(this); in getWeakProxyForHandle()
|
/system/core/libmemunreachable/tests/ |
D | Binder_test.cpp | 154 allocator::vector<uintptr_t> refs{heap}; in TEST_F() local 156 ASSERT_TRUE(BinderReferences(refs)); in TEST_F() 159 for (auto ref : refs) { in TEST_F()
|
/system/core/libutils/include/utils/ |
D | RefBase.h | 387 void set_object_and_refs(T* other, weakref_type* refs); 610 void wp<T>::set_object_and_refs(T* other, weakref_type* refs) in set_object_and_refs() argument 612 if (other) refs->incWeak(this); in set_object_and_refs() 615 m_refs = refs; in set_object_and_refs()
|
/system/libhwbinder/include/hwbinder/ |
D | ProcessState.h | 104 RefBase::weakref_type* refs; member
|