Searched defs:heap (Results 1 - 17 of 17) 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/av/media/libmediaplayerservice/
H A DMetadataRetrieverClient.cpp196 sp<MemoryHeapBase> heap = new MemoryHeapBase(size, 0, "MetadataRetrieverClient"); local
197 if (heap == NULL) {
202 mThumbnail = new MemoryBase(heap, 0, size);
237 sp<MemoryHeapBase> heap = new MemoryHeapBase(size, 0, "MetadataRetrieverClient"); local
238 if (heap == NULL) {
243 mAlbumArt = new MemoryBase(heap, 0, size);
H A DMediaPlayerService.cpp396 snprintf(buffer, 255, " heap base(%p), size(%zu), flags(%d)\n",
1290 const sp<IMemoryHeap>& heap,
1311 sp<AudioCache> cache = new AudioCache(heap);
1353 const sp<IMemoryHeap>& heap, size_t *pSize)
1366 sp<AudioCache> cache = new AudioCache(heap);
1958 MediaPlayerService::AudioCache::AudioCache(const sp<IMemoryHeap>& heap) : argument
1959 mHeap(heap), mChannelCount(0), mFrameCount(1024), mSampleRate(0), mSize(0),
2122 // Signal heap filled here (last frame may be truncated).
2124 // heap is filled and the AudioCache should be effectively
1284 decode( const sp<IMediaHTTPService> &httpService, const char* url, uint32_t *pSampleRate, int* pNumChannels, audio_format_t* pFormat, const sp<IMemoryHeap>& heap, size_t *pSize) argument
1350 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/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/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/media/libmedia/
H A DIMediaPlayerService.cpp97 const sp<IMemoryHeap>& heap,
107 data.writeStrongBinder(heap->asBinder());
123 const sp<IMemoryHeap>& heap, size_t *pSize)
130 data.writeStrongBinder(heap->asBinder());
230 sp<IMemoryHeap> heap = interface_cast<IMemoryHeap>(data.readStrongBinder()); local
241 heap,
257 sp<IMemoryHeap> heap = interface_cast<IMemoryHeap>(data.readStrongBinder()); local
263 heap, &size);
91 decode( const sp<IMediaHTTPService> &httpService, const char* url, uint32_t *pSampleRate, int* pNumChannels, audio_format_t* pFormat, const sp<IMemoryHeap>& heap, size_t *pSize) argument
121 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.cpp844 const sp<IMemoryHeap>& heap,
851 status = service->decode(httpService, url, pSampleRate, pNumChannels, pFormat, heap, pSize);
869 const sp<IMemoryHeap>& heap, size_t *pSize)
876 pNumChannels, pFormat, heap, pSize);
838 decode( const sp<IMediaHTTPService> &httpService, const char* url, uint32_t *pSampleRate, int* pNumChannels, audio_format_t* pFormat, const sp<IMemoryHeap>& heap, size_t *pSize) argument
866 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/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
H A DStreamingProcessor.cpp255 // Need to re-size consumer and heap
257 ALOGV("%s: Camera %d: Resetting recording heap and consumer",
375 // always acquire and free a buffer when the heap is full; otherwise the consumer
498 ALOGV("%s: Camera %d: %s started, recording heap has %zu free of %zu",
721 ALOGV("%s: Camera %d: Creating recording heap with %zu buffers of "
764 sp<IMemoryHeap> heap = local
768 uint8_t *data = (uint8_t*)heap->getBase() + offset;
797 // Make sure this is for the current heap
800 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); local
801 if (heap
[all...]
/frameworks/av/services/camera/libcameraservice/api1/
H A DCameraClient.cpp822 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); local
851 copyFrameAndPostCopiedFrame(msgType, c, heap, offset, size, metadata);
879 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); local
929 const sp<IMemoryHeap>& heap, size_t offset, size_t size,
953 void* heapBase = heap->base();
956 ALOGE("%s: Failed to mmap heap for preview frame.", __FUNCTION__);
927 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/device1/
H A DCameraHardwareInterface.h330 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); local
331 void *data = ((uint8_t *)heap->base()) + offset;
484 // Start refcounting the heap object from here on. When the clients
/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.cpp1319 sp<MemoryDealer> AudioFlinger::Client::heap() const function in class:android::AudioFlinger::Client
/frameworks/native/services/inputflinger/
H A DInputReader.cpp5782 // We build a heap of squared euclidean distances between current and last pointers
5787 PointerDistanceHeapElement heap[MAX_POINTERS * MAX_POINTERS]; local
5804 // Insert new element into the heap (sift up).
5805 heap[heapSize].currentPointerIndex = currentPointerIndex;
5806 heap[heapSize].lastPointerIndex = lastPointerIndex;
5807 heap[heapSize].distance = distance;
5823 && heap[childIndex + 1].distance < heap[childIndex].distance) {
5827 if (heap[parentIndex].distance <= heap[childInde
[all...]

Completed in 2060 milliseconds