Searched refs:map_fd (Results 1 – 2 of 2) sorted by relevance
/hardware/google/graphics/common/libion/test/ |
D | map_test.cpp | 38 int map_fd = -1; in TEST_F() local 40 ASSERT_EQ(0, ion_alloc_fd(m_ionFd, size, 0, heapMask, 0, &map_fd)); in TEST_F() 41 ASSERT_GE(map_fd, 0); in TEST_F() 44 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 47 ASSERT_EQ(0, close(map_fd)); in TEST_F() 63 int map_fd = -1; in TEST_F() local 65 ASSERT_EQ(0, ion_alloc_fd(m_ionFd, PAGE_SIZE * 2, 0, heapMask, 0, &map_fd)); in TEST_F() 66 ASSERT_GE(map_fd, 0); in TEST_F() 69 … ptr = (unsigned char *)mmap(NULL, PAGE_SIZE * 2, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 77 …ptr = (unsigned char *)mmap(NULL, PAGE_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, PAGE_SIZE… in TEST_F() [all …]
|
D | exynos_api_test.cpp | 42 int map_fd = -1; in TEST_F() local 43 ASSERT_EQ(0, exynos_ion_alloc(m_ionFd, size, heapMask, 0, &map_fd)); in TEST_F() 44 ASSERT_GE(map_fd, 0); in TEST_F() 45 ASSERT_EQ(0, close(map_fd)); in TEST_F()
|