/aosp12/system/memory/libion/tests/ |
H A D | exit_test.cpp | 29 for (const auto& heap : ion_heaps) { in TEST_F() local 32 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 50 for (const auto& heap : ion_heaps) { in TEST_F() local 54 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 66 << "failed on heap " << heap.name << ":" << heap.type << ":" << heap.heap_id in TEST_F() 78 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 102 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 128 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 153 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 180 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() [all …]
|
H A D | allocate_test.cpp | 29 for (const auto& heap : ion_heaps) { in TEST_F() local 32 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 44 for (const auto& heap : ion_heaps) { in TEST_F() local 47 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 59 for (const auto& heap : ion_heaps) { in TEST_F() local 62 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 75 for (const auto& heap : ion_heaps) { in TEST_F() local 78 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 93 for (const auto& heap : ion_heaps) { in TEST_F() local 95 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() [all …]
|
H A D | map_test.cpp | 29 for (const auto& heap : ion_heaps) { in TEST_F() local 32 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 36 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), 0, &map_fd)); in TEST_F() 52 for (const auto& heap : ion_heaps) { in TEST_F() local 54 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 82 for (const auto& heap : ion_heaps) { in TEST_F() local 85 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 90 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), flags, &map_fd)); in TEST_F() 107 for (const auto& heap : ion_heaps) { in TEST_F() local 110 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() [all …]
|
H A D | heap_query.cpp | 30 for (const auto& heap : ion_heaps) { in TEST_F() local 31 SCOPED_TRACE(::testing::Message() << "Invalid id for heap:" << heap.name << ":" << heap.type in TEST_F() 32 << ":" << heap.heap_id); in TEST_F() 33 switch (heap.type) { in TEST_F() 35 ASSERT_TRUE((1 << heap.heap_id) & ION_HEAP_SYSTEM_MASK); in TEST_F() 38 ASSERT_TRUE((1 << heap.heap_id) & ION_HEAP_TYPE_DMA_MASK); in TEST_F()
|
H A D | invalid_values_test.cpp | 37 for (const auto& heap : ion_heaps) { in TEST_F() local 39 EXPECT_EQ(-EBADF, ion_alloc_fd(-1, 4096, 0, (1 << heap.heap_id), 0, &fd)); in TEST_F() 41 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 43 EXPECT_EQ(-EINVAL, ion_alloc_fd(ionfd, 0, 0, (1 << heap.heap_id), 0, &fd)); in TEST_F() 45 int ret = ion_alloc_fd(ionfd, -1, 0, (1 << heap.heap_id), 0, &fd); in TEST_F() 55 EXPECT_EQ(-EINVAL, ion_alloc_fd(ionfd, 4096, 0, (1 << heap.heap_id), 0, nullptr)); in TEST_F()
|
/aosp12/frameworks/av/media/libmediatranscoding/tests/ |
H A D | AdjustableMaxPriorityQueue_tests.cpp | 64 for (it = heap.begin(); it != heap.end(); ++it) { in TEST() 70 EXPECT_EQ(10, heap.size()); in TEST() 75 while (!heap.empty()) { in TEST() 81 heap.pop(); in TEST() 117 EXPECT_EQ(1, *heap.top()); in TEST() 159 for (HeapIterator iter = heap.begin(); iter != heap.end(); iter++) { in TEST() 167 heap.rebuild(); in TEST() 173 heap.rebuild(); in TEST() 193 for (HeapIterator iter = heap.begin(); iter != heap.end(); iter++) { in TEST() 206 for (HeapIterator iter = heap.begin(); iter != heap.end(); iter++) { in TEST() [all …]
|
/aosp12/art/tools/ahat/src/main/com/android/ahat/ |
H A D | HeapTable.java | 59 heaps.add(heap); in render() 67 for (AhatHeap heap : heaps) { in render() 88 for (AhatHeap heap : heaps) { in render() 110 for (AhatHeap heap : heaps) { in render() 111 summary.put(heap, 0L); in render() 112 basesummary.put(heap, 0L); in render() 116 for (AhatHeap heap : heaps) { in render() 118 summary.put(heap, summary.get(heap) + size); in render() 121 basesummary.put(heap, basesummary.get(heap) + basesize); in render() 128 for (AhatHeap heap : heaps) { in render() [all …]
|
/aosp12/frameworks/native/libs/binder/ |
H A D | IMemory.cpp | 58 sp<IMemoryHeap> heap; member 154 sp<IMemoryHeap> heap = getMemory(&offset); in unsecurePointer() local 155 void* const base = heap!=nullptr ? heap->base() : MAP_FAILED; in unsecurePointer() 194 if (heap != nullptr) { in getMemory() 292 heap->assertReallyMapped(); in assertMapped() 293 if (heap->mBase != MAP_FAILED) { in assertMapped() 296 mBase = heap->mBase; in assertMapped() 297 mSize = heap->mSize; in assertMapped() 298 mOffset = heap->mOffset; in assertMapped() 448 return info.heap; in find_heap() [all …]
|
/aosp12/art/runtime/javaheapprof/ |
H A D | javaheapsampler.cc | 47 VLOG(heap) << "JHP:PickAndAdjustNextSample, sample_adjust_bytes: " in PickAndAdjustNextSample() 53 VLOG(heap) << "JHP:PickAndAdjustNextSample, final bytes_until_sample: " in PickAndAdjustNextSample() 65 VLOG(heap) << "JHP:***Report Perfetto Allocation: alloc_size: " << allocation_size; in ReportSample() 67 VLOG(heap) << "JHP:***Report Perfetto Allocation: obj: " << perf_alloc_id; in ReportSample() 82 VLOG(heap) << "JHP:GetSampleOffset: exhausted_size = " << exhausted_size; in GetSampleOffset() 86 VLOG(heap) << "JHP:GetSampleOffset: diff = " << diff << " bytes_until_sample = " in GetSampleOffset() 93 VLOG(heap) << "JHP:GetSampleOffset: Take sample, next_bytes_until_sample = " in GetSampleOffset() 96 VLOG(heap) << "JHP:GetSampleOffset:Next sample offset = " in GetSampleOffset() 112 VLOG(heap) << "JHP:GetSampleOffset: No sample, next_bytes_until_sample= " in GetSampleOffset() 125 VLOG(heap) << "JHP:AdjustSampleOffset:No Adjustment"; in AdjustSampleOffset() [all …]
|
/aosp12/system/memory/libmemunreachable/tests/ |
H A D | Allocator_test.cpp | 32 ASSERT_TRUE(heap.empty()); in TearDown() 35 Heap heap; member in android::AllocatorTest 42 Allocator<char[100]> allocator(heap); in TEST_F() 49 Allocator<char[100]> allocator(heap); in TEST_F() 65 Allocator<char[size]> allocator(heap); in TEST_F() 89 Allocator<char[size]> allocator(heap); in TEST_F() 98 Allocator<char[size]> allocator(heap); in TEST_F() 113 Allocator<char[100]> a(heap); in TEST_F() 117 Allocator<char[100]> e(heap); in TEST_F() 159 Allocator<int> allocator(heap); in TEST_F() [all …]
|
H A D | ThreadCapture_test.cpp | 52 virtual void TearDown() { ASSERT_TRUE(heap.empty()); } in TearDown() 100 Heap heap; member in android::ThreadListTest 104 auto tids = TidList{heap}; in WaitForThreads() 105 ThreadCapture thread_capture{getpid(), heap}; in WaitForThreads() 129 ThreadCapture thread_capture(getpid(), heap); in TEST_F() 132 auto list_tids = allocator::vector<pid_t>(heap); in TEST_F() 150 auto list_tids = allocator::vector<pid_t>(heap); in TEST_P() 155 ThreadCapture thread_capture(getpid(), heap); in TEST_P() 228 ThreadCapture thread_capture(child, heap); in TEST_P() 263 ThreadCapture thread_capture(ret, heap); in TEST_F() [all …]
|
/aosp12/art/runtime/gc/ |
H A D | allocation_record.cc | 93 VLOG(heap) << "Start SweepAllocationRecords()"; in SweepAllocationRecords() 122 VLOG(heap) << "Updated " << count_moved << " allocation records"; in SweepAllocationRecords() 142 Heap* heap = Runtime::Current()->GetHeap(); in SetAllocTrackingEnabled() local 146 if (heap->IsAllocTrackingEnabled()) { in SetAllocTrackingEnabled() 152 heap->SetAllocationRecords(records); in SetAllocTrackingEnabled() 165 heap->SetAllocTrackingEnabled(true); in SetAllocTrackingEnabled() 172 if (!heap->IsAllocTrackingEnabled()) { in SetAllocTrackingEnabled() 175 heap->SetAllocTrackingEnabled(false); in SetAllocTrackingEnabled() 214 Heap* const heap = Runtime::Current()->GetHeap(); in RecordAllocation() local 215 if (!heap->IsAllocTrackingEnabled()) { in RecordAllocation() [all …]
|
/aosp12/frameworks/av/media/libshmem/ |
H A D | ShmemCompat.cpp | 54 const sp<MemoryHeapBase> heap = in convertSharedFileRegionToIMemory() local 56 *result = sp<MemoryBase>::make(heap, in convertSharedFileRegionToIMemory() 72 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); in convertIMemoryToSharedFileRegion() local 74 if (heap == nullptr) { in convertIMemoryToSharedFileRegion() 80 heap->getOffset() > std::numeric_limits<int64_t>::max() || in convertIMemoryToSharedFileRegion() 81 static_cast<uint64_t>(heap->getOffset()) + in convertIMemoryToSharedFileRegion() 87 const int fd = fcntl(heap->getHeapID(), F_DUPFD_CLOEXEC, 0); in convertIMemoryToSharedFileRegion() 93 result->offset = heap->getOffset() + offset; in convertIMemoryToSharedFileRegion() 94 result->writeable = (heap->getFlags() & IMemoryHeap::READ_ONLY) == 0; in convertIMemoryToSharedFileRegion()
|
/aosp12/art/tools/ahat/src/main/com/android/ahat/heapdump/ |
H A D | Site.java | 79 public AhatHeap heap; field in Site.ObjectsInfo 102 ObjectsInfo(AhatHeap heap, AhatClassObj classObj) { in ObjectsInfo() argument 103 this.heap = heap; in ObjectsInfo() 220 AhatHeap heap = inst.getHeap(); in prepareForUse() local 222 ObjectsInfo info = getObjectsInfo(heap, inst.getClassObj()); in prepareForUse() 225 mSizesByHeap[heap.getIndex()] = mSizesByHeap[heap.getIndex()].plus(size); in prepareForUse() 252 public Size getSize(AhatHeap heap) { in getSize() argument 253 return mSizesByHeap[heap.getIndex()]; in getSize() 302 ObjectsInfo getObjectsInfo(AhatHeap heap, AhatClassObj classObj) { in getObjectsInfo() argument 306 mObjectsInfoMap.put(heap, classToObjectsInfo); in getObjectsInfo() [all …]
|
/aosp12/art/runtime/native/ |
H A D | dalvik_system_VMDebug.cc | 262 gc::Heap* const heap = Runtime::Current()->GetHeap(); in VMDebug_countInstancesOfClass() local 271 heap->CountInstances(classes, countAssignable, &count); in VMDebug_countInstancesOfClass() 280 gc::Heap* const heap = Runtime::Current()->GetHeap(); in VMDebug_countInstancesOfClasses() local 294 heap->CountInstances(classes, countAssignable, &counts[0]); in VMDebug_countInstancesOfClasses() 322 gc::Heap* heap = Runtime::Current()->GetHeap(); in VMDebug_getRuntimeStatInternal() local 325 std::string output = std::to_string(heap->GetGcCount()); in VMDebug_getRuntimeStatInternal() 350 heap->DumpGcCountRateHistogram(output); in VMDebug_getRuntimeStatInternal() 355 heap->DumpBlockingGcCountRateHistogram(output); in VMDebug_getRuntimeStatInternal() 391 gc::Heap* heap = Runtime::Current()->GetHeap(); in VMDebug_getRuntimeStatsInternal() local 418 heap->DumpGcCountRateHistogram(output); in VMDebug_getRuntimeStatsInternal() [all …]
|
/aosp12/art/test/906-iterate-heap/ |
H A D | Android.bp | 3 // Build rules for ART run-test `906-iterate-heap`. 16 name: "art-run-test-906-iterate-heap", 21 ":art-run-test-906-iterate-heap-expected-stdout", 22 ":art-run-test-906-iterate-heap-expected-stderr", 28 name: "art-run-test-906-iterate-heap-expected-stdout", 29 out: ["art-run-test-906-iterate-heap-expected-stdout.txt"], 36 name: "art-run-test-906-iterate-heap-expected-stderr", 37 out: ["art-run-test-906-iterate-heap-expected-stderr.txt"],
|
/aosp12/art/test/2231-checker-heap-poisoning/ |
H A D | Android.bp | 3 // Build rules for ART run-test `2231-checker-heap-poisoning`. 16 name: "art-run-test-2231-checker-heap-poisoning", 21 ":art-run-test-2231-checker-heap-poisoning-expected-stdout", 22 ":art-run-test-2231-checker-heap-poisoning-expected-stderr", 31 name: "art-run-test-2231-checker-heap-poisoning-expected-stdout", 32 out: ["art-run-test-2231-checker-heap-poisoning-expected-stdout.txt"], 39 name: "art-run-test-2231-checker-heap-poisoning-expected-stderr", 40 out: ["art-run-test-2231-checker-heap-poisoning-expected-stderr.txt"],
|
/aosp12/art/tools/ahat/ |
H A D | README.txt | 5 Launch an http server for viewing the given Android heap dump FILE. 11 Use the proguard map FILE to deobfuscate the heap dump. 13 Diff the heap dump against the given baseline heap dump FILE. 15 Use the proguard map FILE to deobfuscate the baseline heap dump. 25 * Show site context and heap and class filter in "Objects" view? 30 * For HeapTable with single heap shown, the heap name isn't centered? 42 objects normally sorted by 'app' heap by default. 67 Show progress of heap dump processing. 69 Support heap dumps generated with HotSpotDiagnosticMXBean. 103 Add support for diffing two heap dumps. [all …]
|
/aosp12/hardware/google/graphics/common/libion/test/ |
H A D | map_test.cpp | 31 struct ion_heap_data *heap = (struct ion_heap_data *)m_heap_query.heaps; in TEST_F() local 34 unsigned int heapMask = 1 << heap[i].heap_id; in TEST_F() 58 struct ion_heap_data *heap = (struct ion_heap_data *)m_heap_query.heaps; in TEST_F() local 61 unsigned int heapMask = 1 << heap[i].heap_id; in TEST_F() 92 struct ion_heap_data *heap = (struct ion_heap_data *)m_heap_query.heaps; in TEST_F() local 95 unsigned int heapMask = 1 << heap[i].heap_id; in TEST_F() 120 struct ion_heap_data *heap = (struct ion_heap_data *)m_heap_query.heaps; in TEST_F() local 123 unsigned int heapMask = 1 << heap[i].heap_id; in TEST_F() 162 struct ion_heap_data *heap = (struct ion_heap_data *)m_heap_query.heaps; in TEST_F() local 165 unsigned int heapMask = 1 << heap[i].heap_id; in TEST_F()
|
/aosp12/art/runtime/ |
H A D | aot_class_linker.cc | 133 bool AotClassLinker::CanReferenceInBootImageExtension(ObjPtr<mirror::Class> klass, gc::Heap* heap) { in CanReferenceInBootImageExtension() argument 139 if (heap->ObjectIsInBootImageSpace(klass)) { in CanReferenceInBootImageExtension() 147 DCHECK(heap->ObjectIsInBootImageSpace(klass->GetIfTable())); // IfTable is OK. in CanReferenceInBootImageExtension() 162 if (heap->ObjectIsInBootImageSpace(klass->GetDexCache())) { in CanReferenceInBootImageExtension() 168 while (!heap->ObjectIsInBootImageSpace(superclass)) { in CanReferenceInBootImageExtension() 170 if (heap->ObjectIsInBootImageSpace(superclass->GetDexCache())) { in CanReferenceInBootImageExtension() 181 if (!heap->ObjectIsInBootImageSpace(interface) && in CanReferenceInBootImageExtension() 182 heap->ObjectIsInBootImageSpace(interface->GetDexCache())) { in CanReferenceInBootImageExtension() 191 while (!heap->ObjectIsInBootImageSpace(k)) { in CanReferenceInBootImageExtension() 194 CHECK(heap->ObjectIsInBootImageSpace(declaring_class) || in CanReferenceInBootImageExtension() [all …]
|
/aosp12/hardware/qcom/gps/msm8909/utils/ |
H A D | LocHeap.cpp | 312 LocHeapDebug heap; in main() local 316 if (i % checks == 0 && !heap.checkTree()) { in main() 323 heap.push(dynamic_cast<LocRankable&>(*data)); in main() 326 LocRankable* rankable = heap.pop(); in main() 333 printf("%s: %d == %d\n", (r&1)?"push":"pop", treeSize, heap.getTreeSize()); in main() 334 if (treeSize != heap.getTreeSize()) { in main() 341 if (!heap.checkTree()) { in main() 347 for (LocRankable* data = heap.pop(); NULL != data; data = heap.pop()) { in main()
|
/aosp12/hardware/qcom/gps/msm8909w_3100/utils/ |
H A D | LocHeap.cpp | 312 LocHeapDebug heap; in main() local 316 if (i % checks == 0 && !heap.checkTree()) { in main() 323 heap.push(dynamic_cast<LocRankable&>(*data)); in main() 326 LocRankable* rankable = heap.pop(); in main() 333 printf("%s: %d == %d\n", (r&1)?"push":"pop", treeSize, heap.getTreeSize()); in main() 334 if (treeSize != heap.getTreeSize()) { in main() 341 if (!heap.checkTree()) { in main() 347 for (LocRankable* data = heap.pop(); NULL != data; data = heap.pop()) { in main()
|
/aosp12/hardware/qcom/gps/msm8996/utils/ |
H A D | LocHeap.cpp | 312 LocHeapDebug heap; in main() local 316 if (i % checks == 0 && !heap.checkTree()) { in main() 323 heap.push(dynamic_cast<LocRankable&>(*data)); in main() 326 LocRankable* rankable = heap.pop(); in main() 333 printf("%s: %d == %d\n", (r&1)?"push":"pop", treeSize, heap.getTreeSize()); in main() 334 if (treeSize != heap.getTreeSize()) { in main() 341 if (!heap.checkTree()) { in main() 347 for (LocRankable* data = heap.pop(); NULL != data; data = heap.pop()) { in main()
|
/aosp12/hardware/qcom/gps/msm8998/utils/ |
H A D | LocHeap.cpp | 312 LocHeapDebug heap; in main() local 316 if (i % checks == 0 && !heap.checkTree()) { in main() 323 heap.push(dynamic_cast<LocRankable&>(*data)); in main() 326 LocRankable* rankable = heap.pop(); in main() 333 printf("%s: %d == %d\n", (r&1)?"push":"pop", treeSize, heap.getTreeSize()); in main() 334 if (treeSize != heap.getTreeSize()) { in main() 341 if (!heap.checkTree()) { in main() 347 for (LocRankable* data = heap.pop(); NULL != data; data = heap.pop()) { in main()
|
/aosp12/hardware/qcom/sm7150/gps/utils/ |
H A D | LocHeap.cpp | 312 LocHeapDebug heap; in main() local 316 if (i % checks == 0 && !heap.checkTree()) { in main() 323 heap.push(dynamic_cast<LocRankable&>(*data)); in main() 326 LocRankable* rankable = heap.pop(); in main() 333 printf("%s: %d == %d\n", (r&1)?"push":"pop", treeSize, heap.getTreeSize()); in main() 334 if (treeSize != heap.getTreeSize()) { in main() 341 if (!heap.checkTree()) { in main() 347 for (LocRankable* data = heap.pop(); NULL != data; data = heap.pop()) { in main()
|