Home
last modified time | relevance | path

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

/system/core/libion/tests/
Ddevice_test.cpp37 int m_deviceFd; member in Device
49 m_deviceFd = open("/dev/ion-test", O_RDONLY); in SetUp()
50 ASSERT_GE(m_deviceFd, 0); in SetUp()
55 ASSERT_EQ(0, close(m_deviceFd)); in TearDown()
61 ASSERT_EQ(0, ioctl(m_deviceFd, ION_IOC_TEST_SET_FD, fd)); in readDMA()
69 ASSERT_EQ(0, ioctl(m_deviceFd, ION_IOC_TEST_DMA_MAPPING, &ion_test_rw_data)); in readDMA()
70 ASSERT_EQ(0, ioctl(m_deviceFd, ION_IOC_TEST_SET_FD, -1)); in readDMA()
75 ASSERT_EQ(0, ioctl(m_deviceFd, ION_IOC_TEST_SET_FD, fd)); in writeDMA()
83 ASSERT_EQ(0, ioctl(m_deviceFd, ION_IOC_TEST_DMA_MAPPING, &ion_test_rw_data)); in writeDMA()
84 ASSERT_EQ(0, ioctl(m_deviceFd, ION_IOC_TEST_SET_FD, -1)); in writeDMA()
[all …]