Home
last modified time | relevance | path

Searched refs:heap (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/native/libs/binder/
DIMemory.cpp59 sp<IMemoryHeap> heap; member
154 sp<IMemoryHeap> heap = getMemory(&offset); in pointer() local
155 void* const base = heap!=0 ? heap->base() : MAP_FAILED; in pointer()
190 sp<IBinder> heap = reply.readStrongBinder(); in getMemory() local
193 if (heap != 0) { in getMemory()
194 mHeap = interface_cast<IMemoryHeap>(heap); in getMemory()
285 sp<BpMemoryHeap> heap(static_cast<BpMemoryHeap*>(find_heap(binder).get())); in assertMapped() local
286 heap->assertReallyMapped(); in assertMapped()
287 if (heap->mBase != MAP_FAILED) { in assertMapped()
290 mBase = heap->mBase; in assertMapped()
[all …]
DMemoryBase.cpp28 MemoryBase::MemoryBase(const sp<IMemoryHeap>& heap, in MemoryBase() argument
30 : mSize(size), mOffset(offset), mHeap(heap) in MemoryBase()
DMemoryDealer.cpp115 const sp<IMemoryHeap>& heap, ssize_t offset, size_t size);
168 const sp<IMemoryHeap>& heap, ssize_t offset, size_t size) in Allocation() argument
169 : MemoryBase(heap, offset, size), mDealer(dealer) in Allocation()
172 void* const start_ptr = (void*)(intptr_t(heap->base()) + offset); in Allocation()
246 memory = new Allocation(this, heap(), offset, size); in allocate()
261 const sp<IMemoryHeap>& MemoryDealer::heap() const { in heap() function in android::MemoryDealer
/frameworks/base/media/tests/audiotests/
Dshared_mem_test.cpp72 sp<MemoryDealer> heap; in Test01() local
91 heap = new MemoryDealer(1024*1024, "AudioTrack Heap Base"); in Test01()
93 iMem = heap->allocate(BUF_SZ*sizeof(short)); in Test01()
120 heap.clear(); in Test01()
/frameworks/av/media/libmediaplayerservice/
DMetadataRetrieverClient.cpp212 sp<MemoryHeapBase> heap = new MemoryHeapBase(size, 0, "MetadataRetrieverClient"); in getFrameAtTime() local
213 if (heap == NULL) { in getFrameAtTime()
218 mThumbnail = new MemoryBase(heap, 0, size); in getFrameAtTime()
254 sp<MemoryHeapBase> heap = new MemoryHeapBase(size, 0, "MetadataRetrieverClient"); in extractAlbumArt() local
255 if (heap == NULL) { in extractAlbumArt()
260 mAlbumArt = new MemoryBase(heap, 0, size); in extractAlbumArt()
/frameworks/av/include/media/
DCryptoHal.h63 virtual int32_t setHeap(const sp<IMemoryHeap>& heap) { in setHeap()
64 return setHeapBase(heap); in setHeap()
90 int32_t setHeapBase(const sp<IMemoryHeap>& heap);
DICrypto.h79 virtual int32_t setHeap(const sp<IMemoryHeap>& heap) = 0;
/frameworks/av/media/libmedia/include/media/
DCryptoHal.h63 virtual int32_t setHeap(const sp<IMemoryHeap>& heap) { in setHeap()
64 return setHeapBase(heap); in setHeap()
90 int32_t setHeapBase(const sp<IMemoryHeap>& heap);
DICrypto.h79 virtual int32_t setHeap(const sp<IMemoryHeap>& heap) = 0;
/frameworks/native/libs/binder/include/binder/
DMemoryDealer.h47 sp<IMemoryHeap> getMemoryHeap() const { return heap(); } in getMemoryHeap()
53 const sp<IMemoryHeap>& heap() const;
DMemoryBase.h33 MemoryBase(const sp<IMemoryHeap>& heap, ssize_t offset, size_t size);
DIMemory.h78 void* fastPointer(const sp<IBinder>& heap, ssize_t offset) const;
/frameworks/av/drm/libmediadrm/
DCryptoHal.cpp229 int32_t CryptoHal::setHeapBase(const sp<IMemoryHeap>& heap) { in setHeapBase() argument
230 if (heap == NULL) { in setHeapBase()
243 int fd = heap->getHeapID(); in setHeapBase()
246 auto hidlMemory = hidl_memory("ashmem", hidlHandle, heap->getSize()); in setHeapBase()
267 sp<IMemoryHeap> heap = memory->getMemory(&offset, &size); in toSharedBuffer() local
268 if (heap == NULL) { in toSharedBuffer()
DICrypto.cpp183 virtual int32_t setHeap(const sp<IMemoryHeap> &heap) { in setHeap()
186 data.writeStrongBinder(IInterface::asBinder(heap)); in setHeap()
442 sp<IMemoryHeap> heap = in onTransact() local
444 reply->writeInt32(setHeap(heap)); in onTransact()
/frameworks/base/tools/preload2/src/com/android/preload/classdataretrieval/hprof/
DHprof.java25 import com.android.tools.perflib.heap.ClassObj;
26 import com.android.tools.perflib.heap.Queries;
27 import com.android.tools.perflib.heap.Snapshot;
/frameworks/native/vulkan/tools/
Dvkinfo.cpp502 for (uint32_t heap = 0; heap < info.memory.memoryHeapCount; heap++) { in PrintGpuInfo() local
503 if ((info.memory.memoryHeaps[heap].flags & in PrintGpuInfo()
507 Indent(indent + 1), heap, in PrintGpuInfo()
508 info.memory.memoryHeaps[heap].size / 0x100000, in PrintGpuInfo()
509 info.memory.memoryHeaps[heap].size, strbuf.str().c_str()); in PrintGpuInfo()
513 if (info.memory.memoryTypes[type].heapIndex != heap) in PrintGpuInfo()
/frameworks/base/libs/hwui/hwui/
DBitmap.cpp365 mPixelStorage.heap.address = address; in Bitmap()
366 mPixelStorage.heap.size = size; in Bitmap()
409 free(mPixelStorage.heap.address); in ~Bitmap()
437 return mPixelStorage.heap.address; in getStorage()
466 return mPixelStorage.heap.size; in getAllocationByteCount()
DBitmap.h143 } heap; member
/frameworks/av/media/libaudioclient/
DAndroid.bp43 // for memory heap analysis
/frameworks/av/services/camera/libcameraservice/api1/
DCameraClient.cpp975 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); in handlePreviewData() local
1004 copyFrameAndPostCopiedFrame(msgType, c, heap, offset, size, metadata); in handlePreviewData()
1032 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); in handleRawPicture() local
1102 const sp<IMemoryHeap>& heap, size_t offset, size_t size, in copyFrameAndPostCopiedFrame() argument
1126 void* heapBase = heap->base(); in copyFrameAndPostCopiedFrame()
DCameraClient.h127 const sp<IMemoryHeap>& heap,
/frameworks/av/media/libstagefright/
DCameraSource.cpp938 sp<IMemoryHeap> heap = frame->getMemory(&offset, &size); in releaseRecordingFrame() local
939 if (heap->getHeapID() != mMemoryHeapBase->getHeapID()) { in releaseRecordingFrame()
941 heap->getHeapID(), mMemoryHeapBase->getHeapID()); in releaseRecordingFrame()
946 (uint8_t*)heap->getBase() + offset); in releaseRecordingFrame()
1347 sp<IMemoryHeap> heap = data->getMemory(&offset, &size); in processBufferQueueFrame() local
1349 (uint8_t*)heap->getBase() + offset); in processBufferQueueFrame()
/frameworks/av/services/camera/libcameraservice/device1/
DCameraHardwareInterface.cpp612 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); in releaseRecordingFrame() local
613 int heapId = heap->getHeapID(); in releaseRecordingFrame()
628 void *data = ((uint8_t *)heap->base()) + offset; in releaseRecordingFrame()
643 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); in releaseRecordingFrameBatch() local
645 uint32_t heapId = heap->getHeapID(); in releaseRecordingFrameBatch()
/frameworks/native/services/inputflinger/
DInputReader.cpp6459 PointerDistanceHeapElement heap[MAX_POINTERS * MAX_POINTERS]; in assignPointerIds() local
6477 heap[heapSize].currentPointerIndex = currentPointerIndex; in assignPointerIds()
6478 heap[heapSize].lastPointerIndex = lastPointerIndex; in assignPointerIds()
6479 heap[heapSize].distance = distance; in assignPointerIds()
6495 && heap[childIndex + 1].distance < heap[childIndex].distance) { in assignPointerIds()
6499 if (heap[parentIndex].distance <= heap[childIndex].distance) { in assignPointerIds()
6503 swap(heap[parentIndex], heap[childIndex]); in assignPointerIds()
6512 i, heap[i].currentPointerIndex, heap[i].lastPointerIndex, in assignPointerIds()
6513 heap[i].distance); in assignPointerIds()
6534 heap[0] = heap[heapSize]; in assignPointerIds()
[all …]
/frameworks/av/services/camera/libcameraservice/api1/client2/
DCallbackProcessor.cpp406 sp<IMemoryHeap> heap = in processNewCallback() local
409 uint8_t *data = (uint8_t*)heap->getBase() + offset; in processNewCallback()

12