Lines Matching refs:heap
58 sp<IMemoryHeap> heap; member
158 sp<IMemoryHeap> heap = getMemory(&offset); in pointer() local
159 void* const base = heap!=nullptr ? heap->base() : MAP_FAILED; in pointer()
195 sp<IBinder> heap = reply.readStrongBinder(); in getMemory() local
196 if (heap != nullptr) { in getMemory()
197 mHeap = interface_cast<IMemoryHeap>(heap); in getMemory()
293 sp<BpMemoryHeap> heap(static_cast<BpMemoryHeap*>(find_heap(binder).get())); in assertMapped() local
294 heap->assertReallyMapped(); in assertMapped()
295 if (heap->mBase != MAP_FAILED) { in assertMapped()
298 mBase = heap->mBase; in assertMapped()
299 mSize = heap->mSize; in assertMapped()
300 mOffset = heap->mOffset; in assertMapped()
301 int fd = fcntl(heap->mHeapId.load(memory_order_relaxed), F_DUPFD_CLOEXEC, 0); in assertMapped()
303 heap->mHeapId.load(memory_order_relaxed)); in assertMapped()
444 binder.get(), info.heap.get(), in find_heap()
445 static_cast<BpMemoryHeap*>(info.heap.get())->mSize, in find_heap()
446 static_cast<BpMemoryHeap*>(info.heap.get()) in find_heap()
450 return info.heap; in find_heap()
453 info.heap = interface_cast<IMemoryHeap>(binder); in find_heap()
458 return info.heap; in find_heap()
477 binder.unsafe_get(), info.heap.get(), in free_heap()
478 static_cast<BpMemoryHeap*>(info.heap.get())->mSize, in free_heap()
479 static_cast<BpMemoryHeap*>(info.heap.get()) in free_heap()
482 rel = mHeapCache.valueAt(i).heap; in free_heap()
496 if (i>=0) realHeap = mHeapCache.valueAt(i).heap; in get_heap()
507 BpMemoryHeap const* h(static_cast<BpMemoryHeap const *>(info.heap.get())); in dump_heaps()
510 info.heap.get(), info.count, in dump_heaps()