Home
last modified time | relevance | path

Searched refs:ion_share (Results 1 – 5 of 5) sorted by relevance

/system/core/libion/tests/
Dinvalid_values_test.cpp40 ASSERT_EQ(0, ion_share(m_ionFd, m_validHandle, &m_validShareFd)); in SetUp()
141 TEST_F(InvalidValues, ion_share) in TEST_F() argument
146 int ret = ion_share(0, m_validHandle, &share_fd); in TEST_F()
149 EXPECT_EQ(-EBADF, ion_share(-1, m_validHandle, &share_fd)); in TEST_F()
151 EXPECT_EQ(-EINVAL, ion_share(m_ionFd, 0, &share_fd)); in TEST_F()
153 EXPECT_EQ(-EINVAL, ion_share(m_ionFd, m_badHandle, &share_fd)); in TEST_F()
155 EXPECT_EQ(-EINVAL, ion_share(m_ionFd, m_validHandle, NULL)); in TEST_F()
Dformerly_valid_handle_test.cpp62 ASSERT_EQ(-EINVAL, ion_share(m_ionFd, m_handle, &share_fd)); in TEST_F()
/system/core/libion/
Dion.c121 int ion_share(int fd, ion_user_handle_t handle, int *share_fd) in ion_share() function
150 ret = ion_share(fd, handle, handle_fd); in ion_alloc_fd()
Dion_test.c141 ret = ion_share(fd, handle, &share_fd); in ion_share_test()
/system/core/libion/include/ion/
Dion.h41 int ion_share(int fd, ion_user_handle_t handle, int *share_fd);