• Home
  • Raw
  • Download

Lines Matching refs:heap

59         sp<IMemoryHeap> heap;  member
155 sp<IMemoryHeap> heap = getMemory(&offset); in unsecurePointer() local
156 void* const base = heap!=nullptr ? heap->base() : MAP_FAILED; in unsecurePointer()
194 sp<IBinder> heap = reply.readStrongBinder(); in getMemory() local
195 if (heap != nullptr) { in getMemory()
196 mHeap = interface_cast<IMemoryHeap>(heap); in getMemory()
292 sp<BpMemoryHeap> heap = sp<BpMemoryHeap>::cast(find_heap(binder)); in assertMapped() local
293 heap->assertReallyMapped(); in assertMapped()
294 if (heap->mBase != MAP_FAILED) { in assertMapped()
297 mBase = heap->mBase; in assertMapped()
298 mSize = heap->mSize; in assertMapped()
299 mOffset = heap->mOffset; in assertMapped()
300 int fd = fcntl(heap->mHeapId.load(memory_order_relaxed), F_DUPFD_CLOEXEC, 0); in assertMapped()
302 heap->mHeapId.load(memory_order_relaxed)); in assertMapped()
443 binder.get(), info.heap.get(), in find_heap()
444 static_cast<BpMemoryHeap*>(info.heap.get())->mSize, in find_heap()
445 static_cast<BpMemoryHeap*>(info.heap.get()) in find_heap()
449 return info.heap; in find_heap()
452 info.heap = interface_cast<IMemoryHeap>(binder); in find_heap()
457 return info.heap; in find_heap()
476 binder.unsafe_get(), info.heap.get(), in free_heap()
477 static_cast<BpMemoryHeap*>(info.heap.get())->mSize, in free_heap()
478 static_cast<BpMemoryHeap*>(info.heap.get()) in free_heap()
481 rel = i->second.heap; in free_heap()
496 realHeap = i->second.heap; in get_heap()
507 BpMemoryHeap const* h(static_cast<BpMemoryHeap const *>(info.heap.get())); in dump_heaps()
509 info.heap.get(), info.count, h->mHeapId.load(memory_order_relaxed), h->mBase, in dump_heaps()