Searched refs:heap (Results 1 - 22 of 22) 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.cpp56 sp<IMemoryHeap> heap; member in struct:android::HeapCache::heap_info_t
148 sp<IMemoryHeap> heap = getMemory(&offset); local
149 void* const base = heap!=0 ? heap->base() : MAP_FAILED;
184 sp<IBinder> heap = reply.readStrongBinder(); local
187 if (heap != 0) {
188 mHeap = interface_cast<IMemoryHeap>(heap);
247 ALOGD("UNMAPPING binder=%p, heap=%p, size=%zu, fd=%d",
266 sp<BpMemoryHeap> heap(static_cast<BpMemoryHeap*>(find_heap(binder).get()));
267 heap
[all...]
H A DMemoryDealer.cpp115 const sp<IMemoryHeap>& heap, ssize_t offset, size_t size);
166 const sp<IMemoryHeap>& heap, ssize_t offset, size_t size)
167 : MemoryBase(heap, offset, size), mDealer(dealer)
170 void* const start_ptr = (void*)(intptr_t(heap->base()) + offset);
244 memory = new Allocation(this, heap(), offset, size);
259 const sp<IMemoryHeap>& MemoryDealer::heap() const { function in class:android::MemoryDealer
164 Allocation( const sp<MemoryDealer>& dealer, const sp<IMemoryHeap>& heap, ssize_t offset, size_t size) argument
/frameworks/native/services/surfaceflinger/tests/screencap/
H A Dscreencap.cpp42 sp<IMemoryHeap> heap; local
46 status_t err = composer->captureScreen(display, &heap, &w, &h, &f, 0, 0);
53 w, h, heap->getBase());
59 b.setPixels(heap->getBase());
/frameworks/native/include/binder/
H A DMemoryDealer.h44 sp<IMemoryHeap> getMemoryHeap() const { return heap(); }
50 const sp<IMemoryHeap>& heap() const;
H A DMemoryBase.h33 MemoryBase(const sp<IMemoryHeap>& heap, ssize_t offset, size_t size);
H A DIMemory.h78 void* fastPointer(const sp<IBinder>& heap, ssize_t offset) const;
/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/media/libmediaplayerservice/
H A DMetadataRetrieverClient.cpp212 sp<MemoryHeapBase> heap = new MemoryHeapBase(size, 0, "MetadataRetrieverClient"); local
213 if (heap == NULL) {
218 mThumbnail = new MemoryBase(heap, 0, size);
253 sp<MemoryHeapBase> heap = new MemoryHeapBase(size, 0, "MetadataRetrieverClient"); local
254 if (heap == NULL) {
259 mAlbumArt = new MemoryBase(heap, 0, size);
/frameworks/av/services/camera/libcameraservice/api1/
H A DCameraClient.h117 const sp<IMemoryHeap>& heap,
H A DCameraClient.cpp817 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); local
846 copyFrameAndPostCopiedFrame(msgType, c, heap, offset, size, metadata);
874 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); local
924 const sp<IMemoryHeap>& heap, size_t offset, size_t size,
948 void* heapBase = heap->base();
951 ALOGE("%s: Failed to mmap heap for preview frame.", __FUNCTION__);
922 copyFrameAndPostCopiedFrame( int32_t msgType, const sp<ICameraClient>& client, const sp<IMemoryHeap>& heap, size_t offset, size_t size, camera_frame_metadata_t *metadata) argument
/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DStreamingProcessor.cpp261 // Need to re-size consumer and heap
263 ALOGV("%s: Camera %d: Resetting recording heap and consumer",
425 // always acquire and free a buffer when the heap is full; otherwise the consumer
555 ALOGV("%s: Camera %d: %s started, recording heap has %zu free of %zu",
778 ALOGV("%s: Camera %d: Creating recording heap with %zu buffers of "
821 sp<IMemoryHeap> heap = local
826 (uint8_t*)heap->getBase() + offset);
856 // Make sure this is for the current heap
859 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); local
860 if (heap
[all...]
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/services/inputflinger/
H A DInputReader.cpp6192 // We build a heap of squared euclidean distances between current and last pointers
6197 PointerDistanceHeapElement heap[MAX_POINTERS * MAX_POINTERS]; local
6214 // Insert new element into the heap (sift up).
6215 heap[heapSize].currentPointerIndex = currentPointerIndex;
6216 heap[heapSize].lastPointerIndex = lastPointerIndex;
6217 heap[heapSize].distance = distance;
6233 && heap[childIndex + 1].distance < heap[childIndex].distance) {
6237 if (heap[parentIndex].distance <= heap[childInde
[all...]
/frameworks/av/services/camera/libcameraservice/device1/
H A DCameraHardwareInterface.h328 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); local
329 void *data = ((uint8_t *)heap->base()) + offset;
482 // Start refcounting the heap object from here on. When the clients
/frameworks/base/media/jni/soundpool/
H A DSoundPool.cpp492 sp<MemoryHeapBase> heap, size_t *memsize) {
530 uint8_t* writePos = static_cast<uint8_t*>(heap->getBase());
531 size_t available = heap->getSize();
490 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/base/core/jni/
H A Dandroid_hardware_Camera.cpp254 sp<IMemoryHeap> heap = dataPtr->getMemory(&offset, &size); local
256 uint8_t *heapBase = (uint8_t*)heap->base();
287 ALOGE("image heap is NULL");
/frameworks/av/services/audioflinger/
H A DAudioFlinger.h421 sp<MemoryDealer> heap() const;
H A DTracks.cpp123 mCblkMemory = client->heap()->allocate(size);
127 client->heap()->dump("AudioTrack");
232 mCblkMemory.clear(); // free the shared memory before releasing the heap it belongs to
1194 // lazily initialize the shared memory heap for timed buffers
H A DEffects.cpp1051 mCblkMemory = client->heap()->allocate(EFFECT_PARAM_BUFFER_SIZE + bufOffset);
1195 mCblkMemory.clear(); // free the shared memory before releasing the heap it belongs to
H A DAudioFlinger.cpp1359 // Increase heap size on non low ram devices to limit risk of reconnection failure for
1373 sp<MemoryDealer> AudioFlinger::Client::heap() const function in class:android::AudioFlinger::Client
/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 501 milliseconds