Home
last modified time | relevance | path

Searched refs:ion_alloc (Results 1 – 9 of 9) sorted by relevance

/system/core/libion/tests/
Dinvalid_values_test.cpp37 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()
Dallocate_test.cpp35 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()
Dformerly_valid_handle_test.cpp35 ASSERT_EQ(0, ion_alloc(m_ionFd, 4096, 0, 1/* ion_env->m_firstHeap */, 0, &m_handle)); in SetUp()
Dion_test_fixture.cpp50 ret = ion_alloc(fd, 4096, 0, i, 0, &handle); in SetUp()
Dmap_test.cpp37 ASSERT_EQ(0, ion_alloc(m_ionFd, size, 0, heapMask, 0, &handle)); in TEST_F()
Dexit_test.cpp38 ASSERT_EQ(0, ion_alloc(m_ionFd, size, 0, heapMask, 0, &handle)); in TEST_F()
/system/core/libion/
Dion.c61 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()
Dion_test.c49 ret = ion_alloc(*fd, len, align, heap_mask, alloc_flags, handle); in _ion_alloc_test()
/system/core/libion/include/ion/
Dion.h33 int ion_alloc(int fd, size_t len, size_t align, unsigned int heap_mask,