Home
last modified time | relevance | path

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

12

/frameworks/av/media/libmediatranscoding/tests/
DAdjustableMaxPriorityQueue_tests.cpp47 AdjustableMaxPriorityQueue<std::pair<float, char*>> heap; in TEST() local
57 heap.push(std::pair<float, char*>(value, nullptr)); in TEST()
64 for (it = heap.begin(); it != heap.end(); ++it) { in TEST()
70 EXPECT_EQ(10, heap.size()); in TEST()
75 while (!heap.empty()) { in TEST()
76 float value = heap.top().first; in TEST()
81 heap.pop(); in TEST()
113 AdjustableMaxPriorityQueue<std::unique_ptr<int>, IntUniquePtrComp> heap; in TEST() local
116 EXPECT_TRUE(heap.push(std::move(smaller))); in TEST()
117 EXPECT_EQ(1, *heap.top()); in TEST()
[all …]
/frameworks/native/libs/binder/
DIMemory.cpp58 sp<IMemoryHeap> heap; member
154 sp<IMemoryHeap> heap = getMemory(&offset); in unsecurePointer() local
155 void* const base = heap!=nullptr ? heap->base() : MAP_FAILED; in unsecurePointer()
193 sp<IBinder> heap = reply.readStrongBinder(); in getMemory() local
194 if (heap != nullptr) { in getMemory()
195 mHeap = interface_cast<IMemoryHeap>(heap); in getMemory()
291 sp<BpMemoryHeap> heap(static_cast<BpMemoryHeap*>(find_heap(binder).get())); in assertMapped() local
292 heap->assertReallyMapped(); in assertMapped()
293 if (heap->mBase != MAP_FAILED) { in assertMapped()
296 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/drm/libmediadrm/include/mediadrm/
DCryptoHal.h69 virtual int32_t setHeap(const sp<HidlMemory>& heap) { in setHeap()
70 return setHeapBase(heap); in setHeap()
96 int32_t setHeapBase(const sp<HidlMemory>& heap);
/frameworks/native/include/binder/
DMemoryDealer.h47 sp<IMemoryHeap> getMemoryHeap() const { return heap(); } in getMemoryHeap()
53 const sp<IMemoryHeap>& heap() const;
DIMemory.h106 void* fastPointer(const sp<IBinder>& heap, ssize_t offset) const;
/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.h106 void* fastPointer(const sp<IBinder>& heap, ssize_t offset) const;
/frameworks/av/media/libaudioclient/tests/
Dtest_create_audiotrack.cpp73 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/
DCryptoHal.cpp258 int32_t CryptoHal::setHeapBase(const sp<HidlMemory>& heap) { in setHeapBase() argument
259 if (heap == NULL || mHeapSeqNum < 0) { in setHeapBase()
260 ALOGE("setHeapBase(): heap %p mHeapSeqNum %d", heap.get(), mHeapSeqNum); in setHeapBase()
268 mHeapSizes.add(seqNum, heap->size()); in setHeapBase()
269 Return<void> hResult = mPlugin->setSharedBufferBase(*heap, bufferId); in setHeapBase()
/frameworks/base/media/jni/soundpool/
DSound.cpp50 audio_channel_mask_t *channelMask, const sp<MemoryHeapBase>& heap, in decode() argument
84 auto writePos = static_cast<uint8_t*>(heap->getBase()); in decode()
85 size_t available = heap->getSize(); in decode()
/frameworks/base/libs/hwui/hwui/
DBitmap.cpp232 mPixelStorage.heap.address = address; in Bitmap()
233 mPixelStorage.heap.size = size; in Bitmap()
283 free(mPixelStorage.heap.address); in ~Bitmap()
313 return mPixelStorage.heap.address; in getStorage()
331 return mPixelStorage.heap.size; in getAllocationByteCount()
/frameworks/av/media/libmediaplayerservice/
DMetadataRetrieverClient.cpp284 sp<MemoryHeapBase> heap = new MemoryHeapBase(size, 0, "MetadataRetrieverClient"); in extractAlbumArt() local
285 if (heap == NULL) { in extractAlbumArt()
290 mAlbumArt = new MemoryBase(heap, 0, size); in extractAlbumArt()
/frameworks/av/media/libdatasource/
DAndroid.bp38 "libc_malloc_debug_backtrace", // for memory heap analysis
/frameworks/av/media/utils/
DServiceUtilities.cpp244 sp<IMemoryHeap> heap = iMemory->getMemory(); in checkIMemory() local
245 if (heap == 0) { in checkIMemory()
250 off_t size = lseek(heap->getHeapID(), 0, SEEK_END); in checkIMemory()
251 lseek(heap->getHeapID(), 0, SEEK_SET); in checkIMemory()
/frameworks/av/media/libstagefright/
DCameraSource.cpp942 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()
983 sp<IMemoryHeap> heap = frame->getMemory(&offset, &size); in releaseRecordingFrame() local
984 if (heap->getHeapID() != mMemoryHeapBase->getHeapID()) { in releaseRecordingFrame()
986 __FUNCTION__, heap->getHeapID(), mMemoryHeapBase->getHeapID()); in releaseRecordingFrame()
1397 sp<IMemoryHeap> heap = data->getMemory(&offset, &size); in processBufferQueueFrame() local
1399 (uint8_t*)heap->getBase() + offset); in processBufferQueueFrame()
/frameworks/base/core/proto/android/server/
Dactivitymanagerservice.proto162 // The proportional set size for the heap.
164 // The proportional set size that is swappable for the heap.
166 // The private dirty pages used by the heap.
168 // The shared dirty pages used by the heap.
170 // The shared clean pages used by the heap.
172 // The private clean pages used by the heap.
180 // The rss set size for the heap.
323 // Java heap limit of those devices); some devices with more memory may have
327 // application is running with a large heap. This is the space available for
333 // This is the size of the application's Dalvik heap if it has specified
/frameworks/av/drm/libmediadrm/interface/mediadrm/
DICrypto.h83 virtual int32_t setHeap(const sp<hardware::HidlMemory>& heap) = 0;
/frameworks/av/services/mediametrics/
DMediaMetricsService.cpp231 bool heap = false; in dump() local
243 heap = true; in dump()
311 if (heap) { in dump()
/frameworks/native/services/inputflinger/reader/mapper/
DTouchInputMapper.cpp3720 PointerDistanceHeapElement heap[MAX_POINTERS * MAX_POINTERS]; in assignPointerIds() local
3738 heap[heapSize].currentPointerIndex = currentPointerIndex; in assignPointerIds()
3739 heap[heapSize].lastPointerIndex = lastPointerIndex; in assignPointerIds()
3740 heap[heapSize].distance = distance; in assignPointerIds()
3756 heap[childIndex + 1].distance < heap[childIndex].distance) { in assignPointerIds()
3760 if (heap[parentIndex].distance <= heap[childIndex].distance) { in assignPointerIds()
3764 swap(heap[parentIndex], heap[childIndex]); in assignPointerIds()
3773 heap[i].currentPointerIndex, heap[i].lastPointerIndex, heap[i].distance); in assignPointerIds()
3794 heap[0] = heap[heapSize]; in assignPointerIds()
3802 heap[childIndex + 1].distance < heap[childIndex].distance) { in assignPointerIds()
[all …]
/frameworks/base/media/jni/
Dandroid_media_MediaDescrambler.cpp190 sp<IMemoryHeap> heap = mMem->getMemory(&offset, &size); in ensureBufferCapacity() local
191 if (heap == NULL) { in ensureBufferCapacity()
195 mHidlMemory = fromHeap(heap); in ensureBufferCapacity()
/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
1106 const sp<IMemoryHeap>& heap, size_t offset, size_t size, in copyFrameAndPostCopiedFrame() argument
1130 void* heapBase = heap->base(); in copyFrameAndPostCopiedFrame()

12