Home
last modified time | relevance | path

Searched refs:heap (Results 1 – 25 of 44) sorted by relevance

12

/frameworks/native/libs/binder/
DIMemory.cpp56 sp<IMemoryHeap> heap; member
148 sp<IMemoryHeap> heap = getMemory(&offset); in pointer() local
149 void* const base = heap!=0 ? heap->base() : MAP_FAILED; in pointer()
184 sp<IBinder> heap = reply.readStrongBinder(); in getMemory() local
187 if (heap != 0) { in getMemory()
188 mHeap = interface_cast<IMemoryHeap>(heap); in getMemory()
266 sp<BpMemoryHeap> heap(static_cast<BpMemoryHeap*>(find_heap(binder).get())); in assertMapped() local
267 heap->assertReallyMapped(); in assertMapped()
268 if (heap->mBase != MAP_FAILED) { in assertMapped()
271 mBase = heap->mBase; in assertMapped()
[all …]
DMemoryBase.cpp28 MemoryBase::MemoryBase(const sp<IMemoryHeap>& heap, in MemoryBase() argument
30 : mSize(size), mOffset(offset), mHeap(heap) in MemoryBase()
DMemoryDealer.cpp115 const sp<IMemoryHeap>& heap, ssize_t offset, size_t size);
166 const sp<IMemoryHeap>& heap, ssize_t offset, size_t size) in Allocation() argument
167 : MemoryBase(heap, offset, size), mDealer(dealer) in Allocation()
170 void* const start_ptr = (void*)(intptr_t(heap->base()) + offset); in Allocation()
244 memory = new Allocation(this, heap(), offset, size); in allocate()
259 const sp<IMemoryHeap>& MemoryDealer::heap() const { in heap() function in android::MemoryDealer
/frameworks/native/services/surfaceflinger/tests/screencap/
Dscreencap.cpp42 sp<IMemoryHeap> heap; in main() local
46 status_t err = composer->captureScreen(display, &heap, &w, &h, &f, 0, 0); in main()
53 w, h, heap->getBase()); in main()
59 b.setPixels(heap->getBase()); in main()
/frameworks/base/media/tests/audiotests/
Dshared_mem_test.cpp72 sp<MemoryDealer> heap; in Test01() local
91 heap = new MemoryDealer(1024*1024, "AudioTrack Heap Base"); in Test01()
93 iMem = heap->allocate(BUF_SZ*sizeof(short)); in Test01()
120 heap.clear(); in Test01()
/frameworks/av/media/libmediaplayerservice/
DMetadataRetrieverClient.cpp196 sp<MemoryHeapBase> heap = new MemoryHeapBase(size, 0, "MetadataRetrieverClient"); in getFrameAtTime() local
197 if (heap == NULL) { in getFrameAtTime()
202 mThumbnail = new MemoryBase(heap, 0, size); in getFrameAtTime()
237 sp<MemoryHeapBase> heap = new MemoryHeapBase(size, 0, "MetadataRetrieverClient"); in extractAlbumArt() local
238 if (heap == NULL) { in extractAlbumArt()
243 mAlbumArt = new MemoryBase(heap, 0, size); in extractAlbumArt()
DMediaPlayerService.h190 AudioCache(const sp<IMemoryHeap>& heap);
272 const sp<IMemoryHeap>& heap,
278 const sp<IMemoryHeap>& heap, size_t *pSize);
/frameworks/native/services/surfaceflinger/tests/
DTransaction_test.cpp56 sp<IMemoryHeap> heap; in captureScreen() local
61 ASSERT_EQ(NO_ERROR, sf->captureScreen(display, &heap, &w, &h, &fmt, 0, 0, in captureScreen()
63 ASSERT_TRUE(heap != NULL); in captureScreen()
65 *sc = new ScreenCapture(w, h, heap); in captureScreen()
80 ScreenCapture(uint32_t w, uint32_t h, const sp<IMemoryHeap>& heap) : in ScreenCapture() argument
83 mHeap(heap) in ScreenCapture()
/frameworks/base/docs/html/tools/debugging/
Ddebugging-memory.jd59 <dd>A concurrent garbage collection that frees up memory as your heap begins to fill up.</dd>
62 <dd>A garbage collection caused because your app attempted to allocate memory when your heap was
66 <dd>A garbage collection that occurs when you create an HPROF file to analyze your heap.</dd>
74 heap). A garbage collection for externally allocated memory (such as the pixel data stored in
83 <dd>Percentage free and (number of live objects)/(total heap size).</dd>
100 <p>As these log messages stack up, look out for increases in the heap stats (the
108 real-time updates to your app's heap in the Device Monitor:</p>
119 <p>The Heap view shows some basic stats about your heap memory usage, updated after every
125 The Heap tab on the right shows the heap results.</p>
127 <p>Continue interacting with your app to watch your heap allocation update with each garbage
[all …]
Dddms.jd16 <li><a href="#heap">Viewing heap usage for a process</a></li>
32 provides port-forwarding services, screen capture on the device, thread and heap information on
105 <h3 id="heap">Viewing heap usage for a process</h3>
107 <p>DDMS allows you to view how much heap memory a process is using. This information is useful in
108 tracking heap usage at a certain point of time during the execution of your application.</p>
109 <p>To view heap usage for a process:</p>
111 <li>In the Devices tab, select the process that you want to see the heap information for.</li>
113 <li>Click the <strong>Update Heap</strong> button to enable heap information for the
117 enables the collection of heap data. When the operation completes, you will see a group of
Ddebugging-projects.jd57 <li>Heap - Shows heap usage for a VM.</li>
/frameworks/av/media/libmedia/
DIMediaPlayerService.cpp97 const sp<IMemoryHeap>& heap, in decode() argument
107 data.writeStrongBinder(heap->asBinder()); in decode()
123 const sp<IMemoryHeap>& heap, size_t *pSize) in decode() argument
130 data.writeStrongBinder(heap->asBinder()); in decode()
230 sp<IMemoryHeap> heap = interface_cast<IMemoryHeap>(data.readStrongBinder()); in onTransact() local
241 heap, in onTransact()
257 sp<IMemoryHeap> heap = interface_cast<IMemoryHeap>(data.readStrongBinder()); in onTransact() local
263 heap, &size); in onTransact()
Dmediaplayer.cpp844 const sp<IMemoryHeap>& heap, in decode() argument
851 status = service->decode(httpService, url, pSampleRate, pNumChannels, pFormat, heap, pSize); in decode()
869 const sp<IMemoryHeap>& heap, size_t *pSize) in decode() argument
876 pNumChannels, pFormat, heap, pSize); in decode()
/frameworks/native/include/binder/
DMemoryDealer.h44 sp<IMemoryHeap> getMemoryHeap() const { return heap(); } in getMemoryHeap()
50 const sp<IMemoryHeap>& heap() const;
DMemoryBase.h33 MemoryBase(const sp<IMemoryHeap>& heap, ssize_t offset, size_t size);
DIMemory.h78 void* fastPointer(const sp<IBinder>& heap, ssize_t offset) const;
/frameworks/av/include/media/
DIMediaPlayerService.h60 const sp<IMemoryHeap>& heap, size_t *pSize) = 0;
64 const sp<IMemoryHeap>& heap, size_t *pSize) = 0;
Dmediaplayer.h241 const sp<IMemoryHeap>& heap,
245 const sp<IMemoryHeap>& heap, size_t *pSize);
/frameworks/base/docs/html/training/articles/
Dmemory.jd119 <li>The Dalvik heap for each process is constrained to a single virtual memory range. This defines
120 the logical heap size, which can grow as it needs to (but only up to a limit that the system defines
123 <li>The logical size of the heap is not the same as the amount of physical memory used by the heap.
124 When inspecting your app's heap, Android computes a value called the Proportional Set Size (PSS),
131 <li>The Dalvik heap does not compact the logical size of the heap, meaning that Android does not
132 defragment the heap to close up space. Android can only shrink the logical heap size when there
133 is unused space at the end of the heap. But this doesn't mean the physical memory used by the heap
134 can't shrink. After garbage collection, Dalvik walks the heap and finds unused pages, then returns
144 <p>To maintain a functional multi-tasking environment, Android sets a hard limit on the heap size
145 for each app. The exact heap size limit varies between devices based on how much RAM the device
[all …]
/frameworks/av/services/camera/libcameraservice/api1/client2/
DStreamingProcessor.cpp764 sp<IMemoryHeap> heap = in processRecordingFrame() local
768 uint8_t *data = (uint8_t*)heap->getBase() + offset; in processRecordingFrame()
800 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); in releaseRecordingFrame() local
801 if (heap->getHeapID() != mRecordingHeap->mHeap->getHeapID()) { in releaseRecordingFrame()
804 heap->getHeapID(), mRecordingHeap->mHeap->getHeapID()); in releaseRecordingFrame()
807 uint8_t *data = (uint8_t*)heap->getBase() + offset; in releaseRecordingFrame()
DCallbackProcessor.cpp406 sp<IMemoryHeap> heap = in processNewCallback() local
409 uint8_t *data = (uint8_t*)heap->getBase() + offset; in processNewCallback()
/frameworks/av/services/camera/libcameraservice/api1/
DCameraClient.cpp822 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); in handlePreviewData() local
851 copyFrameAndPostCopiedFrame(msgType, c, heap, offset, size, metadata); in handlePreviewData()
879 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); in handleRawPicture() local
929 const sp<IMemoryHeap>& heap, size_t offset, size_t size, in copyFrameAndPostCopiedFrame() argument
953 void* heapBase = heap->base(); in copyFrameAndPostCopiedFrame()
DCameraClient.h117 const sp<IMemoryHeap>& heap,
/frameworks/native/services/inputflinger/
DInputReader.cpp5787 PointerDistanceHeapElement heap[MAX_POINTERS * MAX_POINTERS]; in assignPointerIds() local
5805 heap[heapSize].currentPointerIndex = currentPointerIndex; in assignPointerIds()
5806 heap[heapSize].lastPointerIndex = lastPointerIndex; in assignPointerIds()
5807 heap[heapSize].distance = distance; in assignPointerIds()
5823 && heap[childIndex + 1].distance < heap[childIndex].distance) { in assignPointerIds()
5827 if (heap[parentIndex].distance <= heap[childIndex].distance) { in assignPointerIds()
5831 swap(heap[parentIndex], heap[childIndex]); in assignPointerIds()
5840 i, heap[i].currentPointerIndex, heap[i].lastPointerIndex, in assignPointerIds()
5841 heap[i].distance); in assignPointerIds()
5862 heap[0] = heap[heapSize]; in assignPointerIds()
[all …]
/frameworks/av/services/camera/libcameraservice/device1/
DCameraHardwareInterface.h330 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); in releaseRecordingFrame() local
331 void *data = ((uint8_t *)heap->base()) + offset; in releaseRecordingFrame()

12