Home
last modified time | relevance | path

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

/system/memory/libion/tests/
Dinvalid_values_test.cpp63 int heap_count; in TEST_F() local
65 EXPECT_EQ(-EBADF, ion_query_heap_cnt(-1, &heap_count)); in TEST_F()
69 int heap_count; in TEST_F() local
70 ASSERT_EQ(0, ion_query_heap_cnt(ionfd, &heap_count)); in TEST_F()
71 ASSERT_GT(heap_count, 0); in TEST_F()
75 EXPECT_EQ(0, ion_query_get_heaps(ionfd, heap_count, nullptr)); in TEST_F()
78 std::make_unique<struct ion_heap_data[]>(heap_count); in TEST_F()
80 EXPECT_EQ(-EBADF, ion_query_get_heaps(-1, heap_count, heaps.get())); in TEST_F()
83 EXPECT_EQ(-EFAULT, ion_query_get_heaps(ionfd, heap_count, reinterpret_cast<void*>(0xdeadf00d))); in TEST_F()
Dion_test_fixture.cpp28 int heap_count; in SetUp() local
29 int ret = ion_query_heap_cnt(ionfd, &heap_count); in SetUp()
31 ASSERT_GT(heap_count, 0); in SetUp()
33 ion_heaps.resize(heap_count, {}); in SetUp()
34 ret = ion_query_get_heaps(ionfd, heap_count, ion_heaps.data()); in SetUp()
/system/memory/libdmabufheap/
DBufferAllocator.cpp92 int heap_count; in QueryIonHeaps() local
93 int ret = ion_query_heap_cnt(ion_fd_, &heap_count); in QueryIonHeaps()
95 ion_heap_info_.resize(heap_count, {}); in QueryIonHeaps()
96 ret = ion_query_get_heaps(ion_fd_, heap_count, ion_heap_info_.data()); in QueryIonHeaps()
/system/memory/libmemunreachable/tests/
DAllocator_test.cpp29 virtual void SetUp() { heap_count = 0; } in SetUp()
31 ASSERT_EQ(heap_count, 0); in TearDown()
/system/memory/libmemunreachable/
DAllocator.cpp66 std::atomic<int> heap_count; variable
313 heap_count++; in operator new()
DAllocator.h33 extern std::atomic<int> heap_count;