/frameworks/base/libs/binder/ |
H A D | MemoryBase.cpp | 28 MemoryBase::MemoryBase(const sp<IMemoryHeap>& heap, argument 30 : mSize(size), mOffset(offset), mHeap(heap)
|
H A D | MemoryHeapPmem.cpp | 41 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 D | IMemory.cpp | 56 sp<IMemoryHeap> heap; member in struct:android::HeapCache::heap_info_t 146 sp<IMemoryHeap> heap = getMemory(&offset); local 147 void* const base = heap!=0 ? heap->base() : MAP_FAILED; 182 sp<IBinder> heap = reply.readStrongBinder(); local 185 if (heap != 0) { 186 mHeap = interface_cast<IMemoryHeap>(heap); 245 LOGD("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 D | MemoryDealer.cpp | 115 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 D | screencap.cpp | 42 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/surfaceflinger/ |
H A D | ISurface.h | 87 PixelFormat format, const sp<IMemoryHeap>& heap); 92 const sp<IMemoryHeap>& heap); 103 sp<IMemoryHeap> heap; member in class:android::ISurface::BufferHeap
|
/frameworks/base/libs/surfaceflinger_client/ |
H A D | ISurface.cpp | 44 PixelFormat format, const sp<IMemoryHeap>& heap) 46 format(format), transform(0), flags(0), heap(heap) 53 const sp<IMemoryHeap>& heap) 55 format(format), transform(transform), flags(flags), heap(heap) 111 data.writeStrongBinder(buffers.heap->asBinder()); 183 buffer.heap = interface_cast<IMemoryHeap>(data.readStrongBinder()); 42 BufferHeap(uint32_t w, uint32_t h, int32_t hor_stride, int32_t ver_stride, PixelFormat format, const sp<IMemoryHeap>& heap) argument 50 BufferHeap(uint32_t w, uint32_t h, int32_t hor_stride, int32_t ver_stride, PixelFormat format, uint32_t transform, uint32_t flags, const sp<IMemoryHeap>& heap) argument
|
H A D | ISurfaceComposer.cpp | 128 sp<IMemoryHeap>* heap, 138 *heap = interface_cast<IMemoryHeap>(reply.readStrongBinder()); 234 sp<IMemoryHeap> heap; local 237 status_t res = captureScreen(dpy, &heap, &w, &h, &f, 239 reply->writeStrongBinder(heap->asBinder()); 127 captureScreen(DisplayID dpy, sp<IMemoryHeap>* heap, uint32_t* width, uint32_t* height, PixelFormat* format, uint32_t reqWidth, uint32_t reqHeight) argument
|
/frameworks/base/media/libmediaplayerservice/ |
H A D | MetadataRetrieverClient.cpp | 200 sp<MemoryHeapBase> heap = new MemoryHeapBase(size, 0, "MetadataRetrieverClient"); local 201 if (heap == NULL) { 206 mThumbnail = new MemoryBase(heap, 0, size); 241 sp<MemoryHeapBase> heap = new MemoryHeapBase(size, 0, "MetadataRetrieverClient"); local 242 if (heap == NULL) { 247 mAlbumArt = new MemoryBase(heap, 0, size);
|
/frameworks/base/core/jni/ |
H A D | CursorWindow.cpp | 63 sp<MemoryHeapBase> heap; local 64 heap = new MemoryHeapBase(mMaxSize, 0, "CursorWindow"); 65 if (heap != NULL) { 66 mMemory = new MemoryBase(heap, 0, mMaxSize); 79 LOGE("CursorWindow heap allocation failed"); 82 LOGE("failed to create the CursorWindow heap");
|
H A D | android_hardware_Camera.cpp | 141 sp<IMemoryHeap> heap = dataPtr->getMemory(&offset, &size); local 143 uint8_t *heapBase = (uint8_t*)heap->base(); 190 LOGE("image heap is NULL");
|
/frameworks/base/services/camera/libcameraservice/ |
H A D | CameraHardwareStub.cpp | 66 // 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 D | CameraService.cpp | 673 // with the raw (snapshot) heap. 1044 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); local 1081 copyFrameAndPostCopiedFrame(c, heap, offset, size); 1109 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); local 1163 const sp<ICameraClient>& client, const sp<IMemoryHeap>& heap, 1186 memcpy(previewBuffer->base(), (uint8_t *)heap->base() + offset, size); 1162 copyFrameAndPostCopiedFrame( const sp<ICameraClient>& client, const sp<IMemoryHeap>& heap, size_t offset, size_t size) argument
|
/frameworks/base/libs/ui/ |
H A D | InputReader.cpp | 2602 // We build a heap of squared euclidean distances between current and last pointers 2605 PointerDistanceHeapElement heap[MAX_POINTERS * MAX_POINTERS]; local 2619 // Insert new element into the heap (sift up). 2620 heap[heapSize].currentPointerIndex = currentPointerIndex; 2621 heap[heapSize].lastPointerIndex = lastPointerIndex; 2622 heap[heapSize].distance = distance; 2637 && heap[childIndex + 1].distance < heap[childIndex].distance) { 2641 if (heap[parentIndex].distance <= heap[childInde [all...] |
/frameworks/base/services/audioflinger/ |
H A D | AudioFlinger.cpp | 2782 mCblkMemory = client->heap()->allocate(size); 2804 client->heap()->dump("AudioTrack"); 3571 const sp<MemoryDealer>& AudioFlinger::Client::heap() const function in class:android::AudioFlinger::Client 5927 mCblkMemory = client->heap()->allocate(EFFECT_PARAM_BUFFER_SIZE + bufOffset);
|