Home
last modified time | relevance | path

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

12

/system/core/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/libhidlcache/
DHidlMemoryCache.cpp33 MemoryDecorator(const sp<IMemory>& heap) : mHeap(heap) {} in MemoryDecorator() argument
54 MemoryCacheable(const sp<IMemory>& heap, sp<IMemoryToken> key) in MemoryCacheable() argument
55 : MemoryDecorator(heap), mKey(key) {} in MemoryCacheable()
64 MemoryBlockImpl(const sp<IMemory>& heap, uint64_t size, uint64_t offset) in MemoryBlockImpl() argument
65 : mHeap(heap), mSize(size), mOffset(offset), mHeapSize(heap->getSize()) {} in MemoryBlockImpl()
119 sp<IMemory> heap = fetch(token); in map() local
120 if (heap == nullptr) { in map()
123 return new MemoryBlockImpl(heap, memblk.size, memblk.offset); in map()
DMemoryDealer.cpp287 sp<::android::hidl::memory::V1_0::IMemory> HidlMemoryDealer::heap() { in heap() function in android::hardware::HidlMemoryDealer
300 sp<IMemory> heap = mapMemory(mem); in getInstance() local
301 if (heap == nullptr) { in getInstance()
305 return new HidlMemoryDealer(heap, mem); in getInstance()
308 HidlMemoryDealer::HidlMemoryDealer(sp<IMemory> heap, const hidl_memory& mem) in HidlMemoryDealer() argument
309 : MemoryDealer(heap->getSize()), in HidlMemoryDealer()
310 mHeap(heap), in HidlMemoryDealer()
Dlibhidlcache_test.cpp141 EXPECT_EQ(dealer->heap()->getSize(), 4096ULL); 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/libhidlcache/include/hidlcache/
DMemoryDealer.h67 virtual sp<IMemory> heap();
72 HidlMemoryDealer(sp<IMemory> heap, const hidl_memory& memory);
/system/libhidl/transport/allocator/1.0/utils/include/hidlmemory/
DFrameworkUtils.h31 sp<HidlMemory> fromHeap(const sp<IMemoryHeap>& heap);
/system/core/libmemunreachable/
DMemUnreachable.cpp286 Heap heap; in GetUnreachableMemory() local
297 ThreadCapture thread_capture(parent_pid, heap); in GetUnreachableMemory()
298 allocator::vector<ThreadInfo> thread_info(heap); in GetUnreachableMemory()
299 allocator::vector<Mapping> mappings(heap); in GetUnreachableMemory()
300 allocator::vector<uintptr_t> refs(heap); in GetUnreachableMemory()
348 MemUnreachable unreachable{parent_pid, heap}; in GetUnreachableMemory()
356 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.
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
Duntrusted_app_all.te151 # Allow heap profiling if the app opts in by being marked
/system/sepolicy/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/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