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

/frameworks/base/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 LOGD("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 DMemoryHeapPmem.cpp41 MemoryHeapPmem::MemoryPmem::MemoryPmem(const sp<MemoryHeapPmem>& heap) argument
42 : BnMemory(), mClientHeap(heap)
56 SubRegionMemory(const sp<MemoryHeapPmem>& heap, ssize_t offset, size_t size);
66 SubRegionMemory::SubRegionMemory(const sp<MemoryHeapPmem>& heap, argument
68 : MemoryHeapPmem::MemoryPmem(heap), mSize(size), mOffset(offset)
79 int our_fd = heap->heapID();
112 const sp<MemoryHeapPmem>& heap(getHeap());
113 int our_fd = heap->heapID();
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);
240 memory = new Allocation(this, heap(), offset, size);
255 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/base/services/surfaceflinger/tests/screencap/
H A Dscreencap.cpp42 sp<IMemoryHeap> heap; local
45 status_t err = composer->captureScreen(0, &heap, &w, &h, &f, 0, 0);
52 w, h, heap->getBase());
58 b.setPixels(heap->getBase());
/frameworks/base/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;
H A DMemoryHeapPmem.h39 MemoryPmem(const sp<MemoryHeapPmem>& heap);
55 /* make the whole heap visible (you know who you are) */
58 /* hide (revoke) the whole heap (the client will see the garbage page) */
61 /* revoke all allocations made by this heap */
/frameworks/base/libs/gui/tests/
H A DSurface_test.cpp82 sp<IMemoryHeap> heap; local
86 ASSERT_EQ(NO_ERROR, sf->captureScreen(0, &heap, &w, &h, &fmt, 64, 64, 0,
88 ASSERT_TRUE(heap != NULL);
115 heap = 0;
117 ASSERT_EQ(NO_ERROR, sf->captureScreen(0, &heap, &w, &h, &fmt,
119 ASSERT_TRUE(heap != NULL);
/frameworks/base/media/libmediaplayerservice/
H A DMetadataRetrieverClient.cpp181 sp<MemoryHeapBase> heap = new MemoryHeapBase(size, 0, "MetadataRetrieverClient"); local
182 if (heap == NULL) {
187 mThumbnail = new MemoryBase(heap, 0, size);
222 sp<MemoryHeapBase> heap = new MemoryHeapBase(size, 0, "MetadataRetrieverClient"); local
223 if (heap == NULL) {
228 mAlbumArt = new MemoryBase(heap, 0, size);
/frameworks/base/services/surfaceflinger/tests/
H A DTransaction_test.cpp52 sp<IMemoryHeap> heap; local
56 ASSERT_EQ(NO_ERROR, sf->captureScreen(0, &heap, &w, &h, &fmt, 0, 0,
58 ASSERT_TRUE(heap != NULL);
60 *sc = new ScreenCapture(w, h, heap);
75 ScreenCapture(uint32_t w, uint32_t h, const sp<IMemoryHeap>& heap) : argument
78 mHeap(heap)
/frameworks/base/services/camera/libcameraservice/
H A DCameraHardwareStub.cpp66 // Create raw heap.
85 // Make a new mmap'ed heap that can be shared across processes.
153 // Find the offset within the heap of the current buffer.
156 sp<MemoryHeapBase> heap = mPreviewHeap; local
173 void *base = heap->base();
297 sp<MemoryHeapBase> heap = new MemoryHeapBase(kCannedJpegSize); local
298 sp<MemoryBase> mem = new MemoryBase(heap, 0, kCannedJpegSize);
299 memcpy(heap->base(), kCannedJpeg, kCannedJpegSize);
H A DCameraService.cpp1066 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); local
1095 copyFrameAndPostCopiedFrame(msgType, c, heap, offset, size, metadata);
1123 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); local
1173 const sp<IMemoryHeap>& heap, size_t offset, size_t size,
1196 memcpy(previewBuffer->base(), (uint8_t *)heap->base() + offset, size);
1171 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 DCameraService.h166 const sp<IMemoryHeap>& heap,
H A DCameraHardwareInterface.h62 * preview heap so it can be registered with SurfaceFlinger for
323 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); local
324 void *data = ((uint8_t *)heap->base()) + offset;
477 // Start refcounting the heap object from here on. When the clients
/frameworks/base/libs/gui/
H A DISurfaceComposer.cpp105 sp<IMemoryHeap>* heap,
118 *heap = interface_cast<IMemoryHeap>(reply.readStrongBinder());
227 sp<IMemoryHeap> heap; local
230 status_t res = captureScreen(dpy, &heap, &w, &h, &f,
232 reply->writeStrongBinder(heap->asBinder());
104 captureScreen(DisplayID dpy, 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/base/include/surfaceflinger/
H A DISurfaceComposer.h122 sp<IMemoryHeap>* heap,
/frameworks/base/services/surfaceflinger/
H A DSurfaceFlinger.h176 sp<IMemoryHeap>* heap,
324 sp<IMemoryHeap>* heap,
H A DSurfaceFlinger.cpp229 MemoryHeapBase::READ_ONLY, "SurfaceFlinger read-only heap");
2245 sp<IMemoryHeap>* heap,
2336 *heap = base;
2369 sp<IMemoryHeap>* heap,
2384 sp<IMemoryHeap>* heap;
2395 sp<IMemoryHeap>* heap, uint32_t* w, uint32_t* h, PixelFormat* f,
2399 heap(heap), w(w), h(h), f(f), sw(sw), sh(sh),
2415 heap, w, h, f, sw, sh, minLayerZ, maxLayerZ);
2422 dpy, heap, widt
[all...]
/frameworks/base/services/input/
H A DInputReader.cpp5285 // We build a heap of squared euclidean distances between current and last pointers
5290 PointerDistanceHeapElement heap[MAX_POINTERS * MAX_POINTERS]; local
5307 // Insert new element into the heap (sift up).
5308 heap[heapSize].currentPointerIndex = currentPointerIndex;
5309 heap[heapSize].lastPointerIndex = lastPointerIndex;
5310 heap[heapSize].distance = distance;
5326 && heap[childIndex + 1].distance < heap[childIndex].distance) {
5330 if (heap[parentIndex].distance <= heap[childInde
[all...]
/frameworks/base/core/jni/
H A Dandroid_hardware_Camera.cpp230 sp<IMemoryHeap> heap = dataPtr->getMemory(&offset, &size); local
232 uint8_t *heapBase = (uint8_t*)heap->base();
263 LOGE("image heap is NULL");
/frameworks/base/services/audioflinger/
H A DAudioFlinger.h234 const sp<MemoryDealer>& heap() const;
H A DAudioFlinger.cpp3205 mCblkMemory = client->heap()->allocate(size);
3228 client->heap()->dump("AudioTrack");
4014 const sp<MemoryDealer>& AudioFlinger::Client::heap() const function in class:android::AudioFlinger::Client
6808 mCblkMemory = client->heap()->allocate(EFFECT_PARAM_BUFFER_SIZE + bufOffset);

Completed in 962 milliseconds