/system/core/libion/tests/ |
D | exit_test.cpp | 31 for (unsigned int heapMask : m_allHeaps) { in TEST_F() local 33 SCOPED_TRACE(::testing::Message() << "heap " << heapMask); in TEST_F() 38 ASSERT_EQ(0, ion_alloc(m_ionFd, size, 0, heapMask, 0, &handle)); in TEST_F() 49 for (unsigned int heapMask : m_allHeaps) { in TEST_F() local 51 SCOPED_TRACE(::testing::Message() << "heap " << heapMask); in TEST_F() 56 ASSERT_EQ(0, ion_alloc_fd(m_ionFd, size, 0, heapMask, 0, &handle_fd)); in TEST_F() 67 for (unsigned int heapMask : m_allHeaps) { in TEST_F() local 70 SCOPED_TRACE(::testing::Message() << "heap " << heapMask); in TEST_F() 75 ASSERT_EQ(0, ion_alloc_fd(m_ionFd, size, 0, heapMask, 0, &handle_fd)); in TEST_F() 79 << "failed on heap " << heapMask in TEST_F() [all …]
|
D | allocate_test.cpp | 30 for (unsigned int heapMask : m_allHeaps) { in TEST_F() local 32 SCOPED_TRACE(::testing::Message() << "heap " << heapMask); in TEST_F() 35 ASSERT_EQ(0, ion_alloc(m_ionFd, size, 0, heapMask, 0, &handle)); in TEST_F() 45 for (unsigned int heapMask : m_allHeaps) { in TEST_F() local 47 SCOPED_TRACE(::testing::Message() << "heap " << heapMask); in TEST_F() 50 ASSERT_EQ(0, ion_alloc(m_ionFd, size, 0, heapMask, ION_FLAG_CACHED, &handle)); in TEST_F() 60 for (unsigned int heapMask : m_allHeaps) { in TEST_F() local 62 SCOPED_TRACE(::testing::Message() << "heap " << heapMask); in TEST_F() 65 … ASSERT_EQ(0, ion_alloc(m_ionFd, size, 0, heapMask, ION_FLAG_CACHED_NEEDS_SYNC, &handle)); in TEST_F() 75 for (unsigned int heapMask : m_allHeaps) { in TEST_F() local [all …]
|
D | map_test.cpp | 31 for (unsigned int heapMask : m_allHeaps) { in TEST_F() local 33 SCOPED_TRACE(::testing::Message() << "heap " << heapMask); in TEST_F() 37 ASSERT_EQ(0, ion_alloc(m_ionFd, size, 0, heapMask, 0, &handle)); in TEST_F() 60 for (unsigned int heapMask : m_allHeaps) { in TEST_F() local 62 SCOPED_TRACE(::testing::Message() << "heap " << heapMask); in TEST_F() 66 ASSERT_EQ(0, ion_alloc_fd(m_ionFd, size, 0, heapMask, 0, &map_fd)); in TEST_F() 84 for (unsigned int heapMask : m_allHeaps) { in TEST_F() local 85 SCOPED_TRACE(::testing::Message() << "heap " << heapMask); in TEST_F() 88 ASSERT_EQ(0, ion_alloc_fd(m_ionFd, PAGE_SIZE * 2, 0, heapMask, 0, &map_fd)); in TEST_F() 115 for (unsigned int heapMask : m_allHeaps) { in TEST_F() local [all …]
|
D | device_test.cpp | 139 for (unsigned int heapMask : m_allHeaps) { in TEST_F() local 140 SCOPED_TRACE(::testing::Message() << "heap " << heapMask); in TEST_F() 144 ASSERT_EQ(0, ion_alloc_fd(m_ionFd, 4096, 0, heapMask, flags, &map_fd)); in TEST_F() 176 for (unsigned int heapMask : m_allHeaps) { in TEST_F() local 177 SCOPED_TRACE(::testing::Message() << "heap " << heapMask); in TEST_F() 181 ASSERT_EQ(0, ion_alloc_fd(m_ionFd, 4096, 0, heapMask, flags, &map_fd)); in TEST_F() 207 for (unsigned int heapMask : m_allHeaps) { in TEST_F() local 208 SCOPED_TRACE(::testing::Message() << "heap " << heapMask); in TEST_F() 212 ASSERT_EQ(0, ion_alloc_fd(m_ionFd, 4096, 0, heapMask, flags, &map_fd)); in TEST_F() 242 for (unsigned int heapMask : m_allHeaps) { in TEST_F() local [all …]
|
D | invalid_values_test.cpp | 66 for (unsigned int heapMask : m_allHeaps) { in TEST_F() local 67 SCOPED_TRACE(::testing::Message() << "heap " << heapMask); 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() 89 for (unsigned int heapMask : m_allHeaps) { in TEST_F() local 90 SCOPED_TRACE(::testing::Message() << "heap " << heapMask); in TEST_F() 92 EXPECT_EQ(-EINVAL, ion_alloc_fd(m_ionFd, 0, 0, heapMask, 0, &fd)); in TEST_F() 94 EXPECT_EQ(-EINVAL, ion_alloc_fd(m_ionFd, -1, 0, heapMask, 0, &fd)); in TEST_F() [all …]
|