Home
last modified time | relevance | path

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

12

/system/memory/libion/tests/
Dexit_test.cpp29 for (const auto& heap : ion_heaps) { in TEST_F() local
32 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F()
39 ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), 0, &handle_fd)); 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()
60 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), 0, in TEST_F()
66 << "failed on 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()
84 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), 0, &map_fd)); in TEST_F()
[all …]
Dallocate_test.cpp29 for (const auto& heap : ion_heaps) { in TEST_F() local
32 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F()
35 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), 0, &fd)); 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()
50 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), ION_FLAG_CACHED, &fd)); 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()
65 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), in TEST_F()
75 for (const auto& heap : ion_heaps) { in TEST_F() local
[all …]
Dmap_test.cpp29 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()
57 ASSERT_EQ(0, ion_alloc_fd(ionfd, getpagesize() * 2, 0, (1 << heap.heap_id), 0, &map_fd)); 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
[all …]
Dheap_query.cpp30 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()
Dinvalid_values_test.cpp37 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()
Dsystem_heap.cpp29 for (const auto& heap : ion_heaps) { in TEST_F() local
30 if (heap.type == ION_HEAP_TYPE_SYSTEM) { in TEST_F()
32 EXPECT_TRUE((1 << heap.heap_id) & ION_HEAP_SYSTEM_MASK); in TEST_F()
/system/memory/libmemunreachable/tests/
DAllocator_test.cpp28 AllocatorTest() : heap(), disable_malloc_() {} in AllocatorTest()
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()
[all …]
DThreadCapture_test.cpp52 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()
131 auto expected_tids = allocator::vector<pid_t>(1, 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()
[all …]
DBinder_test.cpp153 Heap heap; in TEST_F() local
154 allocator::vector<uintptr_t> refs{heap}; in TEST_F()
/system/libhidl/transport/allocator/1.0/utils/
DFrameworkUtils.cpp25 sp<HidlMemory> fromHeap(const sp<IMemoryHeap>& heap) { in fromHeap() argument
26 int fd = dup(heap->getHeapID()); in fromHeap()
35 return HidlMemory::getInstance("ashmem", fd, heap->getSize()); in fromHeap()
/system/libhidl/transport/allocator/1.0/utils/include/hidlmemory/
DFrameworkUtils.h31 sp<HidlMemory> fromHeap(const sp<IMemoryHeap>& heap);
/system/memory/libmemunreachable/
DMemUnreachable.cpp295 Heap heap; in GetUnreachableMemory() local
306 ThreadCapture thread_capture(parent_pid, heap); in GetUnreachableMemory()
307 allocator::vector<ThreadInfo> thread_info(heap); in GetUnreachableMemory()
308 allocator::vector<Mapping> mappings(heap); in GetUnreachableMemory()
309 allocator::vector<uintptr_t> refs(heap); in GetUnreachableMemory()
357 MemUnreachable unreachable{parent_pid, heap}; in GetUnreachableMemory()
365 allocator::vector<Leak> leaks{heap}; in GetUnreachableMemory()
DAllocator.cpp168 Chunk(HeapImpl* heap, int bucket);
184 HeapImpl* heap() { return heap_; } in heap() function in android::Chunk
230 Chunk::Chunk(HeapImpl* heap, int bucket) in Chunk() argument
232 heap_(heap), in Chunk()
382 assert(chunk->heap() == this); in FreeLocked()
DAllocator.h108 STLAllocator(const Heap& heap) in STLAllocator() argument
110 heap_(heap) {} in STLAllocator()
DREADME.md67 …s is produced by examining the memory mappings and calling `malloc_iterate()` on any heap mappings.
91 - `malloc_iterate()`: call a callback on each active allocation in a given heap region.
/system/sepolicy/prebuilts/api/29.0/private/
Ddomain.te9 # whether to load the heap profiling library. This does not necessarily enable
10 # heap profiling, as initialization will fail if it does not have the
13 # Allow heap profiling on debug builds.
Dheapprofd.te1 # Android heap profiling daemon. go/heapprofd.
Dephemeral_app.te59 # Allow heap profiling if the app opts in by being marked
Disolated_app.te63 # Allow heap profiling if the main app has been marked as profileable or
/system/sepolicy/private/
Ddomain.te9 # whether to load the heap profiling library. This does not necessarily enable
10 # heap profiling, as initialization will fail if it does not have the
13 # Allow heap profiling on debug builds.
Dheapprofd.te1 # Android heap profiling daemon. go/heapprofd.
/system/sepolicy/prebuilts/api/30.0/private/
Ddomain.te9 # whether to load the heap profiling library. This does not necessarily enable
10 # heap profiling, as initialization will fail if it does not have the
13 # Allow heap profiling on debug builds.
Dheapprofd.te1 # Android heap profiling daemon. go/heapprofd.
/system/sepolicy/prebuilts/api/29.0/public/
Dte_macros648 # Allow processes within the domain to have their heap profiled by heapprofd.
676 # Allow processes within the domain to have their heap profiled by heapprofd on
706 # Opt out of heap profiling by heapprofd.
/system/sepolicy/prebuilts/api/26.0/private/
Dapp.te155 # Send heap dumps to system_server via an already open file descriptor
156 # % adb shell am set-watch-heap com.android.systemui 1048576

12