/frameworks/native/libs/binder/ |
D | IMemory.cpp | 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() [all …]
|
D | MemoryBase.cpp | 28 MemoryBase::MemoryBase(const sp<IMemoryHeap>& heap, in MemoryBase() argument 30 : mSize(size), mOffset(offset), mHeap(heap) in MemoryBase()
|
D | MemoryDealer.cpp | 115 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/ |
D | shared_mem_test.cpp | 72 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/drm/libmediadrm/ |
D | CryptoHal.cpp | 260 int32_t CryptoHal::setHeapBase(const sp<IMemoryHeap>& heap) { in setHeapBase() argument 264 if (heap == NULL) { in setHeapBase() 272 sp<HidlMemory> hidlMemory = fromHeap(heap); in setHeapBase() 273 mHeapBases.add(seqNum, HeapBase(mNextBufferId, heap->getSize())); in setHeapBase() 308 sp<IMemoryHeap> heap = memory->getMemory(&offset, &size); in toSharedBuffer() local 309 if (heap == NULL) { in toSharedBuffer() 319 if (mHeapBases.valueFor(seqNum).getSize() != heap->getSize()) { in toSharedBuffer() 325 if (memory->pointer() != static_cast<uint8_t *>(heap->getBase()) + memory->offset() || in toSharedBuffer() 326 heap->getSize() < memory->offset() + memory->size() || in toSharedBuffer()
|
D | ICrypto.cpp | 183 virtual int32_t setHeap(const sp<IMemoryHeap> &heap) { in setHeap() 186 data.writeStrongBinder(IInterface::asBinder(heap)); in setHeap() 464 sp<IMemoryHeap> heap = in onTransact() local 466 reply->writeInt32(setHeap(heap)); in onTransact()
|
/frameworks/native/libs/binder/include/binder/ |
D | MemoryDealer.h | 47 sp<IMemoryHeap> getMemoryHeap() const { return heap(); } in getMemoryHeap() 53 const sp<IMemoryHeap>& heap() const;
|
D | MemoryBase.h | 33 MemoryBase(const sp<IMemoryHeap>& heap, ssize_t offset, size_t size);
|
D | IMemory.h | 82 void* fastPointer(const sp<IBinder>& heap, ssize_t offset) const;
|
/frameworks/native/include/binder/ |
D | MemoryDealer.h | 47 sp<IMemoryHeap> getMemoryHeap() const { return heap(); } in getMemoryHeap() 53 const sp<IMemoryHeap>& heap() const;
|
D | IMemory.h | 82 void* fastPointer(const sp<IBinder>& heap, ssize_t offset) const;
|
/frameworks/av/media/libaudioclient/tests/ |
D | test_create_audiotrack.cpp | 73 sp<MemoryDealer> heap; in testTrack() local 93 heap = new MemoryDealer(heapSize, "AudioTrack Heap Base"); in testTrack() 94 sharedBuffer = heap->allocate(heapSize); in testTrack()
|
/frameworks/av/drm/libmediadrm/include/mediadrm/ |
D | CryptoHal.h | 66 virtual int32_t setHeap(const sp<IMemoryHeap>& heap) { in setHeap() 67 return setHeapBase(heap); in setHeap() 107 int32_t setHeapBase(const sp<IMemoryHeap>& heap);
|
/frameworks/av/media/utils/ |
D | ServiceUtilities.cpp | 226 sp<IMemoryHeap> heap = iMemory->getMemory(); in checkIMemory() local 227 if (heap == 0) { in checkIMemory() 232 off_t size = lseek(heap->getHeapID(), 0, SEEK_END); in checkIMemory() 233 lseek(heap->getHeapID(), 0, SEEK_SET); in checkIMemory()
|
/frameworks/base/libs/hwui/hwui/ |
D | Bitmap.cpp | 194 mPixelStorage.heap.address = address; in Bitmap() 195 mPixelStorage.heap.size = size; in Bitmap() 242 free(mPixelStorage.heap.address); in ~Bitmap() 268 return mPixelStorage.heap.address; in getStorage() 286 return mPixelStorage.heap.size; in getAllocationByteCount()
|
/frameworks/native/vulkan/tools/ |
D | vkinfo.cpp | 502 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/av/media/libmediaplayerservice/ |
D | MetadataRetrieverClient.cpp | 288 sp<MemoryHeapBase> heap = new MemoryHeapBase(size, 0, "MetadataRetrieverClient"); in extractAlbumArt() local 289 if (heap == NULL) { in extractAlbumArt() 294 mAlbumArt = new MemoryBase(heap, 0, size); in extractAlbumArt()
|
/frameworks/av/media/libstagefright/ |
D | CameraSource.cpp | 942 sp<IMemoryHeap> heap = frame->getMemory(&offset, &size); in releaseRecordingFrame() local 943 if (heap->getHeapID() != mMemoryHeapBase->getHeapID()) { in releaseRecordingFrame() 945 heap->getHeapID(), mMemoryHeapBase->getHeapID()); in releaseRecordingFrame() 950 (uint8_t*)heap->getBase() + offset); in releaseRecordingFrame() 979 sp<IMemoryHeap> heap = frame->getMemory(&offset, &size); in releaseRecordingFrame() local 980 if (heap->getHeapID() != mMemoryHeapBase->getHeapID()) { in releaseRecordingFrame() 982 __FUNCTION__, heap->getHeapID(), mMemoryHeapBase->getHeapID()); in releaseRecordingFrame() 1385 sp<IMemoryHeap> heap = data->getMemory(&offset, &size); in processBufferQueueFrame() local 1387 (uint8_t*)heap->getBase() + offset); in processBufferQueueFrame()
|
/frameworks/av/media/libdatasource/ |
D | Android.bp | 38 "libc_malloc_debug_backtrace", // for memory heap analysis
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | TouchInputMapper.cpp | 3728 PointerDistanceHeapElement heap[MAX_POINTERS * MAX_POINTERS]; in assignPointerIds() local 3746 heap[heapSize].currentPointerIndex = currentPointerIndex; in assignPointerIds() 3747 heap[heapSize].lastPointerIndex = lastPointerIndex; in assignPointerIds() 3748 heap[heapSize].distance = distance; in assignPointerIds() 3764 heap[childIndex + 1].distance < heap[childIndex].distance) { in assignPointerIds() 3768 if (heap[parentIndex].distance <= heap[childIndex].distance) { in assignPointerIds() 3772 swap(heap[parentIndex], heap[childIndex]); in assignPointerIds() 3781 heap[i].currentPointerIndex, heap[i].lastPointerIndex, heap[i].distance); in assignPointerIds() 3802 heap[0] = heap[heapSize]; in assignPointerIds() 3810 heap[childIndex + 1].distance < heap[childIndex].distance) { in assignPointerIds() [all …]
|
/frameworks/base/media/jni/ |
D | android_media_MediaDescrambler.cpp | 190 sp<IMemoryHeap> heap = mMem->getMemory(&offset, &size); in ensureBufferCapacity() local 191 if (heap == NULL) { in ensureBufferCapacity() 195 mHidlMemory = fromHeap(heap); in ensureBufferCapacity()
|
/frameworks/av/drm/libmediadrm/interface/mediadrm/ |
D | ICrypto.h | 79 virtual int32_t setHeap(const sp<IMemoryHeap>& heap) = 0;
|
/frameworks/base/core/proto/android/server/ |
D | activitymanagerservice.proto | 246 // The proportional set size for the heap. 248 // The proportional set size that is swappable for the heap. 250 // The private dirty pages used by the heap. 252 // The shared dirty pages used by the heap. 254 // The shared clean pages used by the heap. 256 // The private clean pages used by the heap. 395 // Java heap limit of those devices); some devices with more memory may have 399 // application is running with a large heap. This is the space available for 405 // This is the size of the application's Dalvik heap if it has specified
|
/frameworks/av/services/camera/libcameraservice/api1/ |
D | CameraClient.cpp | 971 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); in handlePreviewData() local 1000 copyFrameAndPostCopiedFrame(msgType, c, heap, offset, size, metadata); in handlePreviewData() 1028 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); in handleRawPicture() local 1098 const sp<IMemoryHeap>& heap, size_t offset, size_t size, in copyFrameAndPostCopiedFrame() argument 1122 void* heapBase = heap->base(); in copyFrameAndPostCopiedFrame()
|
/frameworks/av/media/libaudioclient/ |
D | Android.bp | 109 // for memory heap analysis
|