/frameworks/native/libs/binder/ |
D | IMemory.cpp | 56 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 …]
|
D | MemoryBase.cpp | 28 MemoryBase::MemoryBase(const sp<IMemoryHeap>& heap, in MemoryBase() argument 30 : mSize(size), mOffset(offset), mHeap(heap) in MemoryBase()
|
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) 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/ |
D | screencap.cpp | 42 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/docs/html/tools/performance/heap-viewer/ |
D | index.jd | 44 their sizes on the heap.</p> 74 <img src="{@docRoot}images/tools/performance/heap-viewer/gettingstarted_image01.png" 102 <img src="{@docRoot}images/tools/performance/heap-viewer/gettingstarted_image02.png" 120 <img src="{@docRoot}images/tools/performance/heap-viewer/gettingstarted_image03.png" 128 <li>To save a heap dump, click the Dump Java Heap icon. The heap snapshot file 140 <img src="{@docRoot}images/tools/performance/heap-viewer/gettingstarted_image04.png" 162 <img src="{@docRoot}images/tools/performance/heap-viewer/gettingstarted_image05.png" 170 <li>Double-click the heap snapshot file to open the heap viewer and see detailed information 171 about the current allocations on the heap.</li>
|
/frameworks/base/media/tests/audiotests/ |
D | shared_mem_test.cpp | 72 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/base/docs/html/tools/debugging/ |
D | debugging-memory.jd | 68 <dd>A concurrent GC that frees up memory as your heap begins to fill up.</dd> 71 <dd>A GC caused because your app attempted to allocate memory when your heap was 75 <dd>A GC that occurs when you request to create an HPROF file to analyze your heap.</dd> 83 heap). A GC for externally allocated memory (such as the pixel data stored in 92 <dd>Percentage free of the heap and (number of live objects)/(total heap size).</dd> 103 <p>As these log messages accumulate, look out for increases in the heap stats (the 138 <dd>The GC was initiated because your app attempted to allocate memory when your heap 153 <dd>The collection was caused by a heap transition; this is caused by switching the GC at run time. 163 this are reducing RAM usage and defragmenting the heap. 168 GetPrimitiveArrayCritical. while concurrent heap compaction is occuring. In general, the use of [all …]
|
D | ddms.jd | 16 <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 100 <h3 id="heap">Viewing heap usage for a process</h3> 102 <p>DDMS allows you to view how much heap memory a process is using. This information is useful in 103 tracking heap usage at a certain point of time during the execution of your application.</p> 104 <p>To view heap usage for a process:</p> 106 <li>In the Devices tab, select the process that you want to see the heap information for.</li> 108 <li>Click the <strong>Update Heap</strong> button to enable heap information for the 112 enables the collection of heap data. When the operation completes, you will see a group of
|
D | debugging-projects.jd | 57 <li>Heap - Shows heap usage for a VM.</li>
|
/frameworks/av/media/libmediaplayerservice/ |
D | MetadataRetrieverClient.cpp | 212 sp<MemoryHeapBase> heap = new MemoryHeapBase(size, 0, "MetadataRetrieverClient"); in getFrameAtTime() local 213 if (heap == NULL) { in getFrameAtTime() 218 mThumbnail = new MemoryBase(heap, 0, size); in getFrameAtTime() 253 sp<MemoryHeapBase> heap = new MemoryHeapBase(size, 0, "MetadataRetrieverClient"); in extractAlbumArt() local 254 if (heap == NULL) { in extractAlbumArt() 259 mAlbumArt = new MemoryBase(heap, 0, size); in extractAlbumArt()
|
/frameworks/native/include/binder/ |
D | MemoryDealer.h | 44 sp<IMemoryHeap> getMemoryHeap() const { return heap(); } in getMemoryHeap() 50 const sp<IMemoryHeap>& heap() const;
|
D | MemoryBase.h | 33 MemoryBase(const sp<IMemoryHeap>& heap, ssize_t offset, size_t size);
|
D | IMemory.h | 78 void* fastPointer(const sp<IBinder>& heap, ssize_t offset) const;
|
/frameworks/base/docs/html/tools/help/ |
D | hprof-conv.jd | 23 process. To convert a heap dump to standard HPROF format in Android Studio, right-click a heap
|
/frameworks/base/docs/html/training/articles/ |
D | memory.jd | 119 <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/base/docs/html/tools/performance/ |
D | comparison.jd | 24 <li><a href="{@docRoot}tools/performance/heap-viewer/index.html"> 42 <a href="{@docRoot}tools/performance/heap-viewer/index.html"> 129 see a bitmap object resident on the heap, you can find its allocation location with Allocation
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
D | StreamingProcessor.cpp | 821 sp<IMemoryHeap> heap = in processRecordingFrame() local 826 (uint8_t*)heap->getBase() + offset); in processRecordingFrame() 859 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); in releaseRecordingFrame() local 860 if (heap->getHeapID() != mRecordingHeap->mHeap->getHeapID()) { in releaseRecordingFrame() 863 heap->getHeapID(), mRecordingHeap->mHeap->getHeapID()); in releaseRecordingFrame() 868 (uint8_t*)heap->getBase() + offset); in releaseRecordingFrame()
|
D | CallbackProcessor.cpp | 406 sp<IMemoryHeap> heap = in processNewCallback() local 409 uint8_t *data = (uint8_t*)heap->getBase() + offset; in processNewCallback()
|
/frameworks/av/services/camera/libcameraservice/api1/ |
D | CameraClient.cpp | 802 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); in handlePreviewData() local 831 copyFrameAndPostCopiedFrame(msgType, c, heap, offset, size, metadata); in handlePreviewData() 859 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); in handleRawPicture() local 909 const sp<IMemoryHeap>& heap, size_t offset, size_t size, in copyFrameAndPostCopiedFrame() argument 933 void* heapBase = heap->base(); in copyFrameAndPostCopiedFrame()
|
D | CameraClient.h | 117 const sp<IMemoryHeap>& heap,
|
/frameworks/base/docs/html/tools/studio/ |
D | index.jd | 209 <h4 id="heap-dump">Heap dump </h4> 211 garbage collection and dump the Java heap to a heap snapshot in an Android-specific HPROF binary 216 <p class="img-caption"><strong>Figure 5.</strong> HPROF viewer with heap dump.</p> 218 <p>To create a snapshot of the Android app heap memory, click the 219 Dump Java Heap icon (<img src="{@docRoot}images/tools/studio-dump-heap-icon.png" style="vertical-al… 220 in the Memory Monitor. Android Studio creates the heap snapshot file with the filename 222 in the <em>Captures</em> tab. Double-click the heap snapshot file to open the HPROF viewer.</p> 224 <p>To convert a heap dump to standard HPROF format in Android Studio, right-click a heap
|
/frameworks/base/docs/html/tools/performance/allocation-tracker/ |
D | index.jd | 31 <li><a href="{@docRoot}tools/performance/heap-viewer/index.html"> 60 <a href="{@docRoot}tools/performance/heap-viewer/index.html">Heap
|
/frameworks/native/services/inputflinger/ |
D | InputReader.cpp | 6185 PointerDistanceHeapElement heap[MAX_POINTERS * MAX_POINTERS]; in assignPointerIds() local 6203 heap[heapSize].currentPointerIndex = currentPointerIndex; in assignPointerIds() 6204 heap[heapSize].lastPointerIndex = lastPointerIndex; in assignPointerIds() 6205 heap[heapSize].distance = distance; in assignPointerIds() 6221 && heap[childIndex + 1].distance < heap[childIndex].distance) { in assignPointerIds() 6225 if (heap[parentIndex].distance <= heap[childIndex].distance) { in assignPointerIds() 6229 swap(heap[parentIndex], heap[childIndex]); in assignPointerIds() 6238 i, heap[i].currentPointerIndex, heap[i].lastPointerIndex, in assignPointerIds() 6239 heap[i].distance); in assignPointerIds() 6260 heap[0] = heap[heapSize]; in assignPointerIds() [all …]
|
/frameworks/base/media/jni/soundpool/ |
D | SoundPool.cpp | 492 sp<MemoryHeapBase> heap, size_t *memsize) { in decode() argument 530 uint8_t* writePos = static_cast<uint8_t*>(heap->getBase()); in decode() 531 size_t available = heap->getSize(); in decode()
|
/frameworks/av/services/camera/libcameraservice/device1/ |
D | CameraHardwareInterface.h | 328 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); in releaseRecordingFrame() local 329 void *data = ((uint8_t *)heap->base()) + offset; in releaseRecordingFrame()
|