Searched refs:heap (Results 1 - 25 of 27) sorted by relevance

12

/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=%d, 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.h43 sp<IMemoryHeap> getMemoryHeap() const { return heap(); }
49 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.cpp193 sp<MemoryHeapBase> heap = new MemoryHeapBase(size, 0, "MetadataRetrieverClient"); local
194 if (heap == NULL) {
199 mThumbnail = new MemoryBase(heap, 0, size);
234 sp<MemoryHeapBase> heap = new MemoryHeapBase(size, 0, "MetadataRetrieverClient"); local
235 if (heap == NULL) {
240 mAlbumArt = new MemoryBase(heap, 0, size);
H A DMediaPlayerService.h185 AudioCache(const sp<IMemoryHeap>& heap);
261 const sp<IMemoryHeap>& heap, size_t *pSize);
265 const sp<IMemoryHeap>& heap, size_t *pSize);
H A DMediaPlayerService.cpp322 snprintf(buffer, 255, " heap base(%p), size(%d), flags(%d)\n",
1181 const sp<IMemoryHeap>& heap, size_t *pSize)
1201 sp<AudioCache> cache = new AudioCache(heap);
1243 const sp<IMemoryHeap>& heap, size_t *pSize)
1256 sp<AudioCache> cache = new AudioCache(heap);
1824 MediaPlayerService::AudioCache::AudioCache(const sp<IMemoryHeap>& heap) : argument
1825 mHeap(heap), mChannelCount(0), mFrameCount(1024), mSampleRate(0), mSize(0),
1179 decode(const char* url, uint32_t *pSampleRate, int* pNumChannels, audio_format_t* pFormat, const sp<IMemoryHeap>& heap, size_t *pSize) argument
1240 decode(int fd, int64_t offset, int64_t length, uint32_t *pSampleRate, int* pNumChannels, audio_format_t* pFormat, const sp<IMemoryHeap>& heap, size_t *pSize) argument
/frameworks/native/services/surfaceflinger/tests/
H A DTransaction_test.cpp56 sp<IMemoryHeap> heap; local
61 ASSERT_EQ(NO_ERROR, sf->captureScreen(display, &heap, &w, &h, &fmt, 0, 0,
63 ASSERT_TRUE(heap != NULL);
65 *sc = new ScreenCapture(w, h, heap);
80 ScreenCapture(uint32_t w, uint32_t h, const sp<IMemoryHeap>& heap) : argument
83 mHeap(heap)
/frameworks/av/include/media/
H A DIMediaPlayerService.h54 const sp<IMemoryHeap>& heap, size_t *pSize) = 0;
57 const sp<IMemoryHeap>& heap, size_t *pSize) = 0;
H A Dmediaplayer.h229 const sp<IMemoryHeap>& heap, size_t *pSize);
232 const sp<IMemoryHeap>& heap, size_t *pSize);
/frameworks/av/media/libmedia/
H A DIMediaPlayerService.cpp91 const sp<IMemoryHeap>& heap, size_t *pSize)
96 data.writeStrongBinder(heap->asBinder());
112 const sp<IMemoryHeap>& heap, size_t *pSize)
119 data.writeStrongBinder(heap->asBinder());
226 sp<IMemoryHeap> heap = interface_cast<IMemoryHeap>(data.readStrongBinder()); local
231 status_t status = decode(url, &sampleRate, &numChannels, &format, heap, &size);
246 sp<IMemoryHeap> heap = interface_cast<IMemoryHeap>(data.readStrongBinder()); local
252 heap, &size);
89 decode(const char* url, uint32_t *pSampleRate, int* pNumChannels, audio_format_t* pFormat, const sp<IMemoryHeap>& heap, size_t *pSize) argument
110 decode(int fd, int64_t offset, int64_t length, uint32_t *pSampleRate, int* pNumChannels, audio_format_t* pFormat, const sp<IMemoryHeap>& heap, size_t *pSize) argument
H A Dmediaplayer.cpp781 const sp<IMemoryHeap>& heap, size_t *pSize)
787 status = service->decode(url, pSampleRate, pNumChannels, pFormat, heap, pSize);
805 const sp<IMemoryHeap>& heap, size_t *pSize)
812 pNumChannels, pFormat, heap, pSize);
779 decode(const char* url, uint32_t *pSampleRate, int* pNumChannels, audio_format_t* pFormat, const sp<IMemoryHeap>& heap, size_t *pSize) argument
802 decode(int fd, int64_t offset, int64_t length, uint32_t *pSampleRate, int* pNumChannels, audio_format_t* pFormat, const sp<IMemoryHeap>& heap, size_t *pSize) argument
/frameworks/av/services/camera/libcameraservice/api1/
H A DCameraClient.h116 const sp<IMemoryHeap>& heap,
H A DCameraClient.cpp802 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); local
831 copyFrameAndPostCopiedFrame(msgType, c, heap, offset, size, metadata);
859 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); local
909 const sp<IMemoryHeap>& heap, size_t offset, size_t size,
932 memcpy(previewBuffer->base(), (uint8_t *)heap->base() + offset, size);
907 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.cpp238 // Need to re-size consumer and heap
240 ALOGV("%s: Camera %d: Resetting recording heap and consumer",
320 // always acquire and free a buffer when the heap is full; otherwise the consumer
438 ALOGV("%s: Camera %d: %s started, recording heap has %d free of %d",
661 ALOGV("%s: Camera %d: Creating recording heap with %d buffers of "
704 sp<IMemoryHeap> heap = local
708 uint8_t *data = (uint8_t*)heap->getBase() + offset;
737 // Make sure this is for the current heap
740 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); local
741 if (heap
[all...]
H A DCallbackProcessor.cpp404 sp<IMemoryHeap> heap = local
407 uint8_t *data = (uint8_t*)heap->getBase() + offset;
442 // Only increment free if we're still using the same heap
/frameworks/base/services/input/
H A DInputReader.cpp5722 // We build a heap of squared euclidean distances between current and last pointers
5727 PointerDistanceHeapElement heap[MAX_POINTERS * MAX_POINTERS]; local
5744 // Insert new element into the heap (sift up).
5745 heap[heapSize].currentPointerIndex = currentPointerIndex;
5746 heap[heapSize].lastPointerIndex = lastPointerIndex;
5747 heap[heapSize].distance = distance;
5763 && heap[childIndex + 1].distance < heap[childIndex].distance) {
5767 if (heap[parentIndex].distance <= heap[childInde
[all...]
/frameworks/av/services/camera/libcameraservice/device1/
H A DCameraHardwareInterface.h316 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); local
317 void *data = ((uint8_t *)heap->base()) + offset;
470 // Start refcounting the heap object from here on. When the clients
/frameworks/base/core/jni/
H A Dandroid_hardware_Camera.cpp232 sp<IMemoryHeap> heap = dataPtr->getMemory(&offset, &size); local
234 uint8_t *heapBase = (uint8_t*)heap->base();
265 ALOGE("image heap is NULL");
/frameworks/av/services/audioflinger/
H A DAudioFlinger.h324 sp<MemoryDealer> heap() const;
H A DTracks.cpp118 mCblkMemory = client->heap()->allocate(size);
124 client->heap()->dump("AudioTrack");
184 mCblkMemory.clear(); // free the shared memory before releasing the heap it belongs to
1042 // lazily initialize the shared memory heap for timed buffers

Completed in 451 milliseconds

12