Lines Matching refs:heap

56         sp<IMemoryHeap> heap;  member
148 sp<IMemoryHeap> heap = getMemory(&offset); in pointer() local
149 void* const base = heap!=0 ? heap->base() : MAP_FAILED; in pointer()
184 sp<IBinder> heap = reply.readStrongBinder(); in getMemory() local
187 if (heap != 0) { in getMemory()
188 mHeap = interface_cast<IMemoryHeap>(heap); in getMemory()
266 sp<BpMemoryHeap> heap(static_cast<BpMemoryHeap*>(find_heap(binder).get())); in assertMapped() local
267 heap->assertReallyMapped(); in assertMapped()
268 if (heap->mBase != MAP_FAILED) { in assertMapped()
271 mBase = heap->mBase; in assertMapped()
272 mSize = heap->mSize; in assertMapped()
273 mOffset = heap->mOffset; in assertMapped()
274 android_atomic_write( dup( heap->mHeapId ), &mHeapId ); in assertMapped()
407 binder.get(), info.heap.get(), in find_heap()
408 static_cast<BpMemoryHeap*>(info.heap.get())->mSize, in find_heap()
409 static_cast<BpMemoryHeap*>(info.heap.get())->mHeapId, in find_heap()
412 return info.heap; in find_heap()
415 info.heap = interface_cast<IMemoryHeap>(binder); in find_heap()
420 return info.heap; in find_heap()
440 binder.unsafe_get(), info.heap.get(), in free_heap()
441 static_cast<BpMemoryHeap*>(info.heap.get())->mSize, in free_heap()
442 static_cast<BpMemoryHeap*>(info.heap.get())->mHeapId, in free_heap()
444 rel = mHeapCache.valueAt(i).heap; in free_heap()
458 if (i>=0) realHeap = mHeapCache.valueAt(i).heap; in get_heap()
469 BpMemoryHeap const* h(static_cast<BpMemoryHeap const *>(info.heap.get())); in dump_heaps()
472 info.heap.get(), info.count, in dump_heaps()