/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 | 31 for (unsigned int heapMask : m_allHeaps) { in TEST_F() local 33 SCOPED_TRACE(::testing::Message() << "heap " << heapMask); in TEST_F() 36 ASSERT_EQ(0, ion_alloc(m_ionFd, size, 0, heapMask, 0, &handle)); in TEST_F() 46 for (unsigned int heapMask : m_allHeaps) { in TEST_F() local 48 SCOPED_TRACE(::testing::Message() << "heap " << heapMask); in TEST_F() 51 ASSERT_EQ(0, ion_alloc(m_ionFd, size, 0, heapMask, ION_FLAG_CACHED, &handle)); in TEST_F() 61 for (unsigned int heapMask : m_allHeaps) { in TEST_F() local 63 SCOPED_TRACE(::testing::Message() << "heap " << heapMask); in TEST_F() 66 … ASSERT_EQ(0, ion_alloc(m_ionFd, size, 0, heapMask, ION_FLAG_CACHED_NEEDS_SYNC, &handle)); in TEST_F() 76 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 | 140 for (unsigned int heapMask : m_allHeaps) { in TEST_F() local 141 SCOPED_TRACE(::testing::Message() << "heap " << heapMask); in TEST_F() 145 ASSERT_EQ(0, ion_alloc_fd(m_ionFd, 4096, 0, heapMask, flags, &map_fd)); in TEST_F() 175 for (unsigned int heapMask : m_allHeaps) { in TEST_F() local 176 SCOPED_TRACE(::testing::Message() << "heap " << heapMask); in TEST_F() 180 ASSERT_EQ(0, ion_alloc_fd(m_ionFd, 4096, 0, heapMask, flags, &map_fd)); in TEST_F() 204 for (unsigned int heapMask : m_allHeaps) { in TEST_F() local 205 SCOPED_TRACE(::testing::Message() << "heap " << heapMask); in TEST_F() 209 ASSERT_EQ(0, ion_alloc_fd(m_ionFd, 4096, 0, heapMask, flags, &map_fd)); in TEST_F() 237 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 …]
|