/system/core/libion/tests/ |
formerly_valid_handle_test.cpp | 60 int share_fd; local 62 ASSERT_EQ(-EINVAL, ion_share(m_ionFd, m_handle, &share_fd));
|
invalid_values_test.cpp | 143 int share_fd; local 146 int ret = ion_share(0, m_validHandle, &share_fd); 149 EXPECT_EQ(-EBADF, ion_share(-1, m_validHandle, &share_fd)); 151 EXPECT_EQ(-EINVAL, ion_share(m_ionFd, 0, &share_fd)); 153 EXPECT_EQ(-EINVAL, ion_share(m_ionFd, m_badHandle, &share_fd)); 154 /* NULL share_fd */ 167 /* bad share_fd */ 169 /* invalid share_fd */ 182 /* bad share_fd */ 184 /* invalid share_fd */ [all...] |
/hardware/ti/omap4-aah/test/CameraHal/ |
surfacetexture_test.cpp | 184 int share_fd; local 198 ret = ion_share (fd, handle, &share_fd); 206 MAP_SHARED, share_fd, 0); 210 MAP_SHARED, share_fd, 0);
|
/system/core/libion/ |
ion_test.c | 136 int fd, share_fd, ret; local 141 ret = ion_share(fd, handle, &share_fd); 144 ptr = mmap(NULL, len, prot, map_flags, share_fd, 0); 153 *(int *)CMSG_DATA(cmsg) = share_fd;
|
/hardware/ti/omap4-aah/ion/ |
ion_test.c | 153 int fd, share_fd, ret; local 158 ret = ion_share(fd, handle, &share_fd); 161 ptr = mmap(NULL, len, prot, map_flags, share_fd, 0); 170 *(int *)CMSG_DATA(cmsg) = share_fd;
|