/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 | IMemory.cpp | 56 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 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 | 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/binder/ |
H A D | MemoryDealer.h | 43 sp<IMemoryHeap> getMemoryHeap() const { return heap(); } 49 const sp<IMemoryHeap>& heap() const;
|
H A D | MemoryBase.h | 33 MemoryBase(const sp<IMemoryHeap>& heap, ssize_t offset, size_t size);
|
H A D | IMemory.h | 78 void* fastPointer(const sp<IBinder>& heap, ssize_t offset) const;
|
H A D | MemoryHeapPmem.h | 39 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 D | Surface_test.cpp | 82 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 D | MetadataRetrieverClient.cpp | 181 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 D | Transaction_test.cpp | 52 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 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 | 1066 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 D | CameraService.h | 166 const sp<IMemoryHeap>& heap,
|
H A D | CameraHardwareInterface.h | 62 * 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 D | ISurfaceComposer.cpp | 105 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 D | ISurfaceComposer.h | 122 sp<IMemoryHeap>* heap,
|
/frameworks/base/services/surfaceflinger/ |
H A D | SurfaceFlinger.h | 176 sp<IMemoryHeap>* heap, 324 sp<IMemoryHeap>* heap,
|
H A D | SurfaceFlinger.cpp | 229 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 D | InputReader.cpp | 5285 // 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 D | android_hardware_Camera.cpp | 230 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 D | AudioFlinger.h | 234 const sp<MemoryDealer>& heap() const;
|
H A D | AudioFlinger.cpp | 3205 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);
|