Searched defs:heap (Results 1 - 24 of 24) sorted by relevance

/frameworks/native/libs/binder/
H A DMemoryBase.cpp28 MemoryBase::MemoryBase(const sp<IMemoryHeap>& heap, argument
30 : mSize(size), mOffset(offset), mHeap(heap)
H A DIMemory.cpp59 sp<IMemoryHeap> heap; member in struct:android::HeapCache::heap_info_t
154 sp<IMemoryHeap> heap = getMemory(&offset); local
155 void* const base = heap!=0 ? heap->base() : MAP_FAILED;
190 sp<IBinder> heap = reply.readStrongBinder(); local
193 if (heap != 0) {
194 mHeap = interface_cast<IMemoryHeap>(heap);
265 ALOGD("UNMAPPING binder=%p, heap=%p, size=%zu, fd=%d",
285 sp<BpMemoryHeap> heap(static_cast<BpMemoryHeap*>(find_heap(binder).get()));
286 heap
[all...]
H A DMemoryDealer.cpp115 const sp<IMemoryHeap>& heap, ssize_t offset, size_t size);
168 const sp<IMemoryHeap>& heap, ssize_t offset, size_t size)
169 : MemoryBase(heap, offset, size), mDealer(dealer)
172 void* const start_ptr = (void*)(intptr_t(heap->base()) + offset);
246 memory = new Allocation(this, heap(), offset, size);
261 const sp<IMemoryHeap>& MemoryDealer::heap() const { function in class:android::MemoryDealer
166 Allocation( const sp<MemoryDealer>& dealer, const sp<IMemoryHeap>& heap, ssize_t offset, size_t size) argument
/frameworks/av/include/mediadrm/
H A DCryptoHal.h65 virtual int32_t setHeap(const sp<IMemoryHeap>& heap) { argument
66 return setHeapBase(heap);
105 int32_t setHeapBase(const sp<IMemoryHeap>& heap);
/frameworks/av/media/libmedia/include/media/
H A DCryptoHal.h65 virtual int32_t setHeap(const sp<IMemoryHeap>& heap) { argument
66 return setHeapBase(heap);
105 int32_t setHeapBase(const sp<IMemoryHeap>& heap);
/frameworks/av/media/libaudioclient/tests/
H A Dtest_create_audiotrack.cpp73 sp<MemoryDealer> heap; local
93 heap = new MemoryDealer(heapSize, "AudioTrack Heap Base");
94 sharedBuffer = heap->allocate(heapSize);
/frameworks/base/libs/hwui/hwui/
H A DBitmap.h132 } heap; member in union:android::Bitmap::__anon1016
/frameworks/base/media/tests/audiotests/
H A Dshared_mem_test.cpp72 sp<MemoryDealer> heap; local
91 heap = new MemoryDealer(1024*1024, "AudioTrack Heap Base");
93 iMem = heap->allocate(BUF_SZ*sizeof(short));
120 heap.clear();
/frameworks/av/drm/libmediadrm/
H A DICrypto.cpp183 virtual int32_t setHeap(const sp<IMemoryHeap> &heap) { argument
186 data.writeStrongBinder(IInterface::asBinder(heap));
451 sp<IMemoryHeap> heap = local
453 reply->writeInt32(setHeap(heap));
H A DCryptoHal.cpp238 * If the heap base isn't set, get the heap base from the IMemory
239 * and send it to the HAL so it can map a remote heap of the same
240 * size. Once the heap base is established, shared memory buffers
241 * are sent by providing an offset into the heap and a buffer size.
243 int32_t CryptoHal::setHeapBase(const sp<IMemoryHeap>& heap) { argument
247 if (heap == NULL) {
248 ALOGE("setHeapBase(): heap is NULL");
255 sp<HidlMemory> hidlMemory = fromHeap(heap);
256 mHeapBases.add(seqNum, HeapBase(mNextBufferId, heap
291 sp<IMemoryHeap> heap = memory->getMemory(&offset, &size); local
[all...]
/frameworks/av/media/libmediaplayerservice/
H A DMetadataRetrieverClient.cpp287 sp<MemoryHeapBase> heap = new MemoryHeapBase(size, 0, "MetadataRetrieverClient"); local
288 if (heap == NULL) {
293 mAlbumArt = new MemoryBase(heap, 0, size);
/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DCallbackProcessor.cpp406 sp<IMemoryHeap> heap = local
409 uint8_t *data = (uint8_t*)heap->getBase() + offset;
444 // Only increment free if we're still using the same heap
/frameworks/native/vulkan/vkjson/
H A Dvkjson.cc560 inline bool Iterate(Visitor* visitor, VkMemoryHeap* heap) { argument
562 visitor->Visit("size", &heap->size) &&
563 visitor->Visit("flags", &heap->flags);
/frameworks/base/media/jni/
H A Dandroid_media_MediaDescrambler.cpp190 sp<IMemoryHeap> heap = mMem->getMemory(&offset, &size); local
191 if (heap == NULL) {
195 mHidlMemory = fromHeap(heap);
/frameworks/av/media/libstagefright/
H A DFrameDecoder.cpp81 sp<MemoryHeapBase> heap = new MemoryHeapBase(size, 0, "MetadataRetrieverClient"); local
82 if (heap == NULL) {
86 sp<IMemory> frameMem = new MemoryBase(heap, 0, size);
H A DCameraSource.cpp606 // Create memory heap to store buffers as VideoNativeMetadata.
759 // Create memory heap to store buffers as VideoNativeMetadata.
940 sp<IMemoryHeap> heap = frame->getMemory(&offset, &size); local
941 if (heap->getHeapID() != mMemoryHeapBase->getHeapID()) {
942 ALOGE("%s: Mismatched heap ID, ignoring release (got %x, expected %x)", __FUNCTION__,
943 heap->getHeapID(), mMemoryHeapBase->getHeapID());
948 (uint8_t*)heap->getBase() + offset);
977 sp<IMemoryHeap> heap = frame->getMemory(&offset, &size); local
978 if (heap->getHeapID() != mMemoryHeapBase->getHeapID()) {
979 ALOGE("%s: Mismatched heap I
1378 sp<IMemoryHeap> heap = data->getMemory(&offset, &size); local
[all...]
/frameworks/av/services/camera/libcameraservice/api1/
H A DCameraClient.cpp992 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); local
1021 copyFrameAndPostCopiedFrame(msgType, c, heap, offset, size, metadata);
1049 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); local
1119 const sp<IMemoryHeap>& heap, size_t offset, size_t size,
1143 void* heapBase = heap->base();
1146 ALOGE("%s: Failed to mmap heap for preview frame.", __FUNCTION__);
1117 copyFrameAndPostCopiedFrame( int32_t msgType, const sp<hardware::ICameraClient>& client, const sp<IMemoryHeap>& heap, size_t offset, size_t size, camera_frame_metadata_t *metadata) argument
/frameworks/av/services/camera/libcameraservice/device1/
H A DCameraHardwareInterface.cpp576 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); local
577 int heapId = heap->getHeapID();
604 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); local
606 uint32_t heapId = heap->getHeapID();
766 // Start refcounting the heap object from here on. When the clients
/frameworks/base/core/jni/
H A Dandroid_hardware_Camera.cpp258 sp<IMemoryHeap> heap = dataPtr->getMemory(&offset, &size); local
260 uint8_t *heapBase = (uint8_t*)heap->base();
291 ALOGE("image heap is NULL");
/frameworks/base/media/jni/soundpool/
H A DSoundPool.cpp516 sp<MemoryHeapBase> heap, size_t *memsize) {
554 uint8_t* writePos = static_cast<uint8_t*>(heap->getBase());
555 size_t available = heap->getSize();
514 decode(int fd, int64_t offset, int64_t length, uint32_t *rate, int *numChannels, audio_format_t *audioFormat, sp<MemoryHeapBase> heap, size_t *memsize) argument
/frameworks/av/media/libstagefright/mpeg2ts/
H A DATSParser.cpp854 sp<IMemoryHeap> heap = newMem->getMemory(&offset, &size); local
855 if (heap == NULL) {
859 mHidlMemory = fromHeap(heap);
/frameworks/av/services/audioflinger/
H A DAudioFlinger.cpp1559 sp<MemoryDealer> AudioFlinger::Client::heap() const function in class:android::AudioFlinger::Client
1910 // TODO: Cache the client shared heap size in a persistent property.
1915 // minimum heap size.
/frameworks/native/services/inputflinger/
H A DInputReader.cpp6595 // We build a heap of squared euclidean distances between current and last pointers
6600 PointerDistanceHeapElement heap[MAX_POINTERS * MAX_POINTERS]; local
6617 // Insert new element into the heap (sift up).
6618 heap[heapSize].currentPointerIndex = currentPointerIndex;
6619 heap[heapSize].lastPointerIndex = lastPointerIndex;
6620 heap[heapSize].distance = distance;
6636 && heap[childIndex + 1].distance < heap[childIndex].distance) {
6640 if (heap[parentIndex].distance <= heap[childInde
[all...]
/frameworks/data-binding/prebuilds/1.0-rc0/
H A Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/databinding/Bindable.class Bindable. ...

Completed in 4877 milliseconds