/frameworks/av/media/libmediatranscoding/tests/ |
D | AdjustableMaxPriorityQueue_tests.cpp | 47 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/ |
D | IMemory.cpp | 58 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 …]
|
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/include/mediadrm/ |
D | CryptoHal.h | 69 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/ |
D | MemoryDealer.h | 47 sp<IMemoryHeap> getMemoryHeap() const { return heap(); } in getMemoryHeap() 53 const sp<IMemoryHeap>& heap() const;
|
D | IMemory.h | 106 void* fastPointer(const sp<IBinder>& heap, ssize_t offset) const;
|
/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 | 106 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/ |
D | CryptoHal.cpp | 258 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/ |
D | Sound.cpp | 50 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/ |
D | Bitmap.cpp | 232 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/ |
D | MetadataRetrieverClient.cpp | 284 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/ |
D | Android.bp | 38 "libc_malloc_debug_backtrace", // for memory heap analysis
|
/frameworks/av/media/utils/ |
D | ServiceUtilities.cpp | 244 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/ |
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() 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/ |
D | activitymanagerservice.proto | 162 // 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/ |
D | ICrypto.h | 83 virtual int32_t setHeap(const sp<hardware::HidlMemory>& heap) = 0;
|
/frameworks/av/services/mediametrics/ |
D | MediaMetricsService.cpp | 231 bool heap = false; in dump() local 243 heap = true; in dump() 311 if (heap) { in dump()
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | TouchInputMapper.cpp | 3720 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/ |
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/services/camera/libcameraservice/api1/ |
D | CameraClient.cpp | 975 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()
|