Searched refs:heap (Results 1 - 23 of 23) 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=%d, fd=%d",
268 sp<BpMemoryHeap> heap(static_cast<BpMemoryHeap*>(find_heap(binder).get()));
269 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/native/libs/gui/tests/
H A DSurface_test.cpp84 sp<IMemoryHeap> heap; local
89 ASSERT_EQ(NO_ERROR, sf->captureScreen(display, &heap, &w, &h, &fmt, 64, 64, 0,
91 ASSERT_TRUE(heap != NULL);
119 heap = 0;
121 ASSERT_EQ(NO_ERROR, sf->captureScreen(display, &heap, &w, &h, &fmt,
123 ASSERT_TRUE(heap != NULL);
/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);
/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/native/include/gui/
H A DISurfaceComposer.h97 virtual status_t captureScreen(const sp<IBinder>& display, sp<IMemoryHeap>* heap,
/frameworks/native/libs/gui/
H A DISurfaceComposer.cpp106 const sp<IBinder>& display, sp<IMemoryHeap>* heap,
119 *heap = interface_cast<IMemoryHeap>(reply.readStrongBinder());
278 sp<IMemoryHeap> heap; local
281 status_t res = captureScreen(display, &heap, &w, &h, &f,
283 reply->writeStrongBinder(heap->asBinder());
105 captureScreen( const sp<IBinder>& display, sp<IMemoryHeap>* heap, uint32_t* width, uint32_t* height, PixelFormat* format, uint32_t reqWidth, uint32_t reqHeight, uint32_t minLayerZ, uint32_t maxLayerZ) argument
/frameworks/av/services/camera/libcameraservice/camera2/
H A DStreamingProcessor.cpp219 // Need to reallocate memory for heap
279 // always acquire and free a buffer when the heap is full; otherwise the consumer
501 ALOGV("%s: Camera %d: Creating recording heap with %d buffers of "
544 sp<IMemoryHeap> heap = local
548 uint8_t *data = (uint8_t*)heap->getBase() + offset;
576 // Make sure this is for the current heap
579 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); local
580 if (heap->getHeapID() != mRecordingHeap->mHeap->getHeapID()) {
581 ALOGW("%s: Camera %d: Mismatched heap ID, ignoring release "
583 heap
[all...]
H A DCallbackProcessor.cpp272 sp<IMemoryHeap> heap = local
275 uint8_t *data = (uint8_t*)heap->getBase() + offset;
292 // Only increment free if we're still using the same heap
/frameworks/av/services/camera/libcameraservice/
H A DCameraClient.h108 const sp<IMemoryHeap>& heap,
H A DCameraClient.cpp795 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); local
824 copyFrameAndPostCopiedFrame(msgType, c, heap, offset, size, metadata);
852 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); local
902 const sp<IMemoryHeap>& heap, size_t offset, size_t size,
925 memcpy(previewBuffer->base(), (uint8_t *)heap->base() + offset, size);
900 copyFrameAndPostCopiedFrame( int32_t msgType, const sp<ICameraClient>& client, const sp<IMemoryHeap>& heap, size_t offset, size_t size, camera_frame_metadata_t *metadata) argument
H A DCameraHardwareInterface.h60 * preview heap so it can be registered with SurfaceFlinger for
321 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); local
322 void *data = ((uint8_t *)heap->base()) + offset;
475 // Start refcounting the heap object from here on. When the clients
/frameworks/native/services/surfaceflinger/
H A DSurfaceFlinger.h200 virtual status_t captureScreen(const sp<IBinder>& display, sp<IMemoryHeap>* heap,
309 status_t captureScreenImplLocked(const sp<IBinder>& display, sp<IMemoryHeap>* heap,
H A DSurfaceFlinger.cpp2605 sp<IMemoryHeap>* heap,
2701 *heap = base;
2733 sp<IMemoryHeap>* heap,
2747 sp<IMemoryHeap>* heap; member in class:android::MessageCaptureScreen
2758 sp<IMemoryHeap>* heap, uint32_t* w, uint32_t* h, PixelFormat* f,
2762 heap(heap), w(w), h(h), f(f), sw(sw), sh(sh),
2773 heap, w, h, f, sw, sh, minLayerZ, maxLayerZ);
2779 display, heap, width, height, format, sw, sh, minLayerZ, maxLayerZ);
2604 captureScreenImplLocked(const sp<IBinder>& display, sp<IMemoryHeap>* heap, uint32_t* w, uint32_t* h, PixelFormat* f, uint32_t sw, uint32_t sh, uint32_t minLayerZ, uint32_t maxLayerZ) argument
2732 captureScreen(const sp<IBinder>& display, sp<IMemoryHeap>* heap, uint32_t* width, uint32_t* height, PixelFormat* format, uint32_t sw, uint32_t sh, uint32_t minLayerZ, uint32_t maxLayerZ) argument
2757 MessageCaptureScreen(SurfaceFlinger* flinger, const sp<IBinder>& display, sp<IMemoryHeap>* heap, uint32_t* w, uint32_t* h, PixelFormat* f, uint32_t sw, uint32_t sh, uint32_t minLayerZ, uint32_t maxLayerZ) argument
/frameworks/base/services/input/
H A DInputReader.cpp5602 // We build a heap of squared euclidean distances between current and last pointers
5607 PointerDistanceHeapElement heap[MAX_POINTERS * MAX_POINTERS]; local
5624 // Insert new element into the heap (sift up).
5625 heap[heapSize].currentPointerIndex = currentPointerIndex;
5626 heap[heapSize].lastPointerIndex = lastPointerIndex;
5627 heap[heapSize].distance = distance;
5643 && heap[childIndex + 1].distance < heap[childIndex].distance) {
5647 if (heap[parentIndex].distance <= heap[childInde
[all...]
/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.h294 sp<MemoryDealer> heap() const;
H A DAudioFlinger.cpp4175 mCblkMemory = client->heap()->allocate(size);
4203 client->heap()->dump("AudioTrack");
4238 mCblkMemory.clear(); // free the shared memory before releasing the heap it belongs to
4922 // lazily initialize the shared memory heap for timed buffers
5744 sp<MemoryDealer> AudioFlinger::Client::heap() const function in class:android::AudioFlinger::Client
8928 mCblkMemory = client->heap()->allocate(EFFECT_PARAM_BUFFER_SIZE + bufOffset);
9039 mCblkMemory.clear(); // free the shared memory before releasing the heap it belongs to

Completed in 4945 milliseconds