Home
last modified time | relevance | path

Searched refs:mHeap (Results 1 – 12 of 12) sorted by relevance

/frameworks/native/libs/binder/tests/
DbinderMemoryHeapBaseUnitTest.cpp25 auto mHeap = sp<MemoryHeapBase>::make(10, MemoryHeapBase::FORCE_MEMFD, "Test mapping"); in TEST() local
26 ASSERT_NE(mHeap.get(), nullptr); in TEST()
27 int fd = mHeap->getHeapID(); in TEST()
34 auto mHeap = sp<MemoryHeapBase>::make(8192, in TEST() local
37 ASSERT_NE(mHeap.get(), nullptr); in TEST()
38 int fd = mHeap->getHeapID(); in TEST()
44 auto mHeap = sp<MemoryHeapBase>::make(8192, in TEST() local
48 ASSERT_NE(mHeap.get(), nullptr); in TEST()
49 int fd = mHeap->getHeapID(); in TEST()
55 auto mHeap = sp<MemoryHeapBase>::make(8192, in TEST() local
[all …]
/frameworks/av/media/module/libmediatranscoding/include/media/
DAdjustableMaxPriorityQueue.h105 const std::vector<T>& getStorage() const { return mHeap; }; in getStorage()
108 std::vector<T> mHeap;
120 return mHeap.empty(); in empty()
125 return mHeap.size(); in size()
130 DCHECK(!mHeap.empty()); in top()
131 return mHeap.front(); in top()
139 mHeap.push_back(std::forward<Arg>(item)); in pushInternal()
140 std::push_heap(mHeap.begin(), mHeap.end(), Comparator()); in pushInternal()
147 mHeap.emplace_back(std::forward<Args>(args)...); in emplace()
148 std::push_heap(mHeap.begin(), mHeap.end(), Comparator()); in emplace()
[all …]
/frameworks/av/services/camera/libcameraservice/api1/client2/
DCamera2Heap.h33 mHeap = new MemoryHeapBase(buf_size * num_buffers, 0, name); in mBufSize()
36 mBuffers[i] = new MemoryBase(mHeap, in mBufSize()
48 sp<MemoryHeapBase> mHeap; variable
DCallbackProcessor.cpp384 0 : (mCallbackHeap->mHeap->getSize() / kCallbackHeapCount); in processNewCallback()
389 if (mCallbackHeap->mHeap->getSize() == 0) { in processNewCallback()
/frameworks/native/libs/binder/
DMemoryBase.cpp30 : mSize(size), mOffset(offset), mHeap(heap) in MemoryBase()
38 return mHeap; in getMemory()
DIMemory.cpp137 mutable sp<IMemoryHeap> mHeap; member in android::BpMemory
190 if (mHeap == nullptr) { in getMemory()
196 mHeap = interface_cast<IMemoryHeap>(heap); in getMemory()
197 if (mHeap != nullptr) { in getMemory()
202 size_t heapSize = mHeap->getSize(); in getMemory()
222 return (mSize > 0) ? mHeap : nullptr; in getMemory()
DMemoryDealer.cpp230 : mHeap(sp<MemoryHeapBase>::make(size, flags, name)), in MemoryDealer()
259 return mHeap; in heap()
/frameworks/native/libs/binder/include/binder/
DMemoryBase.h39 const sp<IMemoryHeap>& getHeap() const { return mHeap; } in getHeap()
44 sp<IMemoryHeap> mHeap; variable
DMemoryDealer.h55 sp<IMemoryHeap> mHeap; variable
/frameworks/base/media/jni/soundpool/
DSound.cpp203 mHeap = new MemoryHeapBase(kDefaultHeapSize); in doLoad()
211 &channelMask, mHeap, &mSizeInBytes); in doLoad()
226 __func__, mHeap->getBase(), mSizeInBytes, sampleRate, channelCount); in doLoad()
227 mData = new MemoryBase(mHeap, 0, mSizeInBytes); in doLoad()
239 mHeap.clear(); in doLoad()
DSound.h90 sp<MemoryHeapBase> mHeap; variable
/frameworks/native/include/binder/
DMemoryDealer.h55 sp<IMemoryHeap> mHeap; variable