/system/core/libion/tests/ |
D | invalid_values_test.cpp | 37 ASSERT_EQ(0, ion_alloc(m_ionFd, 4096, 0, m_firstHeap, 0, &m_validHandle)) in SetUp() 56 TEST_F(InvalidValues, ion_alloc) in TEST_F() argument 60 int ret = ion_alloc(0, 4096, 0, m_firstHeap, 0, &handle); in TEST_F() 63 EXPECT_EQ(-EBADF, ion_alloc(-1, 4096, 0, m_firstHeap, 0, &handle)); in TEST_F() 65 EXPECT_EQ(-ENODEV, ion_alloc(m_ionFd, 4096, 0, 0, 0, &handle)); in TEST_F() 69 EXPECT_EQ(-EINVAL, ion_alloc(m_ionFd, 0, 0, heapMask, 0, &handle)); in TEST_F() 71 EXPECT_EQ(-EINVAL, ion_alloc(m_ionFd, -1, 0, heapMask, 0, &handle)); in TEST_F() 73 EXPECT_EQ(-EINVAL, ion_alloc(m_ionFd, 4096, -1, heapMask, 0, &handle)); in TEST_F() 75 EXPECT_EQ(-EINVAL, ion_alloc(m_ionFd, 4096, 0, heapMask, 0, NULL)); in TEST_F()
|
D | allocate_test.cpp | 35 ASSERT_EQ(0, ion_alloc(m_ionFd, size, 0, heapMask, 0, &handle)); in TEST_F() 50 ASSERT_EQ(0, ion_alloc(m_ionFd, size, 0, heapMask, ION_FLAG_CACHED, &handle)); in TEST_F() 65 … ASSERT_EQ(0, ion_alloc(m_ionFd, size, 0, heapMask, ION_FLAG_CACHED_NEEDS_SYNC, &handle)); in TEST_F() 83 ASSERT_EQ(0, ion_alloc(m_ionFd, size, 0, heapMask, 0, &handle)); in TEST_F() 143 ASSERT_EQ(-ENOMEM, ion_alloc(m_ionFd, 3UL*1024*1024*1024, 0, heapMask, 0, &handle)); in TEST_F()
|
D | formerly_valid_handle_test.cpp | 35 ASSERT_EQ(0, ion_alloc(m_ionFd, 4096, 0, 1/* ion_env->m_firstHeap */, 0, &m_handle)); in SetUp()
|
D | ion_test_fixture.cpp | 50 ret = ion_alloc(fd, 4096, 0, i, 0, &handle); in SetUp()
|
D | map_test.cpp | 37 ASSERT_EQ(0, ion_alloc(m_ionFd, size, 0, heapMask, 0, &handle)); in TEST_F()
|
D | exit_test.cpp | 38 ASSERT_EQ(0, ion_alloc(m_ionFd, size, 0, heapMask, 0, &handle)); in TEST_F()
|
/system/core/libion/ |
D | ion.c | 61 int ion_alloc(int fd, size_t len, size_t align, unsigned int heap_mask, in ion_alloc() function 147 ret = ion_alloc(fd, len, align, heap_mask, flags, &handle); in ion_alloc_fd()
|
D | ion_test.c | 49 ret = ion_alloc(*fd, len, align, heap_mask, alloc_flags, handle); in _ion_alloc_test()
|
/system/core/libion/include/ion/ |
D | ion.h | 33 int ion_alloc(int fd, size_t len, size_t align, unsigned int heap_mask,
|