Searched refs:kAllocSizeInBytes (Results 1 – 1 of 1) sorted by relevance
/system/memory/libdmabufheap/tests/ |
D | dmabuf_heap_test.cpp | 37 static const size_t kAllocSizeInBytes = 4096; in DoAlloc() local 38 int map_fd = allocator->AllocSystem(cpu_access_needed, kAllocSizeInBytes); in DoAlloc() 41 void* ptr = mmap(NULL, kAllocSizeInBytes, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in DoAlloc() 50 ASSERT_EQ(0, munmap(ptr, kAllocSizeInBytes)); in DoAlloc() 174 static const size_t kAllocSizeInBytes = 4096; in TEST_F() local 177 auto zeroes_ptr = std::make_unique<char[]>(kAllocSizeInBytes); in TEST_F() 181 map_fd = allocator->Alloc(kDmabufSystemHeapName, kAllocSizeInBytes); in TEST_F() 184 void* ptr = mmap(NULL, kAllocSizeInBytes, PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 190 memset(ptr, 0xaa, kAllocSizeInBytes); in TEST_F() 195 ASSERT_EQ(0, munmap(ptr, kAllocSizeInBytes)); in TEST_F() [all …]
|