Home
last modified time | relevance | path

Searched refs:ionfd (Results 1 – 8 of 8) sorted by relevance

/system/memory/libion/tests/
Dion_test_fixture.cpp22 IonTest::IonTest() : ionfd(-1), ion_heaps() {} in IonTest()
25 ionfd = ion_open(); in SetUp()
26 ASSERT_GE(ionfd, 0); in SetUp()
29 int ret = ion_query_heap_cnt(ionfd, &heap_count); in SetUp()
34 ret = ion_query_get_heaps(ionfd, heap_count, ion_heaps.data()); in SetUp()
39 ion_close(ionfd); in TearDown()
Dinvalid_values_test.cpp36 EXPECT_EQ(-ENODEV, ion_alloc_fd(ionfd, 4096, 0, 0, 0, &fd)); 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()
61 EXPECT_EQ(-EINVAL, ion_query_heap_cnt(ionfd, nullptr)); in TEST_F()
70 ASSERT_EQ(0, ion_query_heap_cnt(ionfd, &heap_count)); in TEST_F()
75 EXPECT_EQ(0, ion_query_get_heaps(ionfd, heap_count, nullptr)); in TEST_F()
83 EXPECT_EQ(-EFAULT, ion_query_get_heaps(ionfd, heap_count, reinterpret_cast<void*>(0xdeadf00d))); in TEST_F()
Dexit_test.cpp39 ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), 0, &handle_fd)); in TEST_F()
60 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), 0, in TEST_F()
84 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), 0, &map_fd)); in TEST_F()
108 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), 0, &map_fd)); in TEST_F()
134 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), in TEST_F()
159 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), in TEST_F()
186 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), in TEST_F()
212 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), in TEST_F()
Dallocate_test.cpp35 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), 0, &fd)); in TEST_F()
50 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), ION_FLAG_CACHED, &fd)); in TEST_F()
65 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << 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()
98 ion_alloc_fd(ionfd, 3UL * 1024 * 1024 * 1024, 0, (1 << heap.heap_id), 0, &fd)); in TEST_F()
113 ASSERT_EQ(0, ion_alloc_fd(ionfd, 4096, 0, (1 << heap.heap_id), 0, &map_fd)); in TEST_F()
Dmap_test.cpp36 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), 0, &map_fd)); in TEST_F()
57 ASSERT_EQ(0, ion_alloc_fd(ionfd, getpagesize() * 2, 0, (1 << heap.heap_id), 0, &map_fd)); in TEST_F()
90 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), flags, &map_fd)); in TEST_F()
115 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), flags, &map_fd)); in TEST_F()
Dmodular_heap_check.cpp25 if (ion_is_using_modular_heaps(ionfd)) { in TEST_F()
Dion_test_fixture.h32 int ionfd; variable
Dsystem_heap.cpp41 ASSERT_EQ(0, ion_alloc_fd(ionfd, getpagesize(), 0, ION_HEAP_SYSTEM_MASK, 0, &fd)); in TEST_F()