/system/memory/libion/tests/ |
D | exit_test.cpp | 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() 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() 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() 102 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 108 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), 0, &map_fd)); in TEST_F() 128 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() [all …]
|
D | allocate_test.cpp | 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() 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() 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() 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, &fd)); in TEST_F() 95 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 98 ion_alloc_fd(ionfd, 3UL * 1024 * 1024 * 1024, 0, (1 << heap.heap_id), 0, &fd)); in TEST_F() [all …]
|
D | map_test.cpp | 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() 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() 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() 110 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 115 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), flags, &map_fd)); in TEST_F()
|
D | invalid_values_test.cpp | 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()
|
D | heap_query.cpp | 32 << ":" << heap.heap_id); 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()
|
D | system_heap.cpp | 32 EXPECT_TRUE((1 << heap.heap_id) & ION_HEAP_SYSTEM_MASK); in TEST_F()
|
/system/memory/libdmabufheap/ |
D | BufferAllocator.cpp | 123 int BufferAllocator::GetIonHeapIdByName(const std::string& heap_name, unsigned int* heap_id) { in GetIonHeapIdByName() argument 126 *heap_id = it.heap_id; in GetIonHeapIdByName() 175 unsigned int heap_id; in GetIonConfig() local 176 ret = GetIonHeapIdByName(heap_name, &heap_id); in GetIonConfig() 178 heap_config.mask = 1 << heap_id; in GetIonConfig()
|
/system/memory/libion/kernel-headers/linux/ |
D | ion_4.12.h | 35 __u32 heap_id; member
|
D | ion_4.19.h | 47 __u32 heap_id; member
|
/system/memory/libion/original-kernel-headers/linux/ |
D | ion_4.12.h | 63 __u32 heap_id; member
|
D | ion_4.19.h | 91 __u32 heap_id; member
|
/system/memory/libdmabufheap/include/BufferAllocator/ |
D | BufferAllocator.h | 135 int GetIonHeapIdByName(const std::string& heap_name, unsigned int* heap_id);
|
/system/memory/libmeminfo/libdmabufinfo/ |
D | dmabufinfo_test.cpp | 47 __u32 heap_id; member 307 ret |= (1 << it.heap_id); in get_ion_heap_mask()
|