Lines Matching refs:allocator
34 virtual void SetUp() { allocator = new BufferAllocator(); } in SetUp()
38 int map_fd = allocator->AllocSystem(cpu_access_needed, kAllocSizeInBytes); in DoAlloc()
44 int ret = allocator->CpuSyncStart(map_fd, kSyncReadWrite); in DoAlloc()
47 ret = allocator->CpuSyncEnd(map_fd, kSyncReadWrite); in DoAlloc()
60 allocator->MapNameToIonHeap(kDmabufSystemHeapName, "" /* no mapping for non-legacy */, in DoConcurrentAllocWithMapName()
64 allocator->MapNameToIonHeap( in DoConcurrentAllocWithMapName()
70 virtual void TearDown() { delete allocator; } in TearDown()
72 BufferAllocator* allocator = nullptr; member in DmaBufHeapConcurrentAccessTest
111 DmaBufHeapTest::DmaBufHeapTest() : allocator(new BufferAllocator()) { in DmaBufHeapTest()
120 allocator->MapNameToIonHeap(kDmabufSystemHeapName, "" /* no mapping for non-legacy */, in DmaBufHeapTest()
123 allocator->MapNameToIonHeap( in DmaBufHeapTest()
135 int fd = allocator->AllocSystem(cpu_access_needed, size); in TEST_F()
147 int fd = allocator->Alloc(kDmabufSystemHeapName, size, ION_FLAG_CACHED_NEEDS_SYNC in TEST_F()
162 int fd = allocator->AllocSystem(cpu_access_needed, size); in TEST_F()
181 map_fd = allocator->Alloc(kDmabufSystemHeapName, kAllocSizeInBytes); in TEST_F()
187 ret = allocator->CpuSyncStart(map_fd, kSyncWrite); in TEST_F()
192 ret = allocator->CpuSyncEnd(map_fd, kSyncWrite); in TEST_F()
203 map_fd = allocator->Alloc(kDmabufSystemHeapName, kAllocSizeInBytes); in TEST_F()
209 ret = allocator->CpuSyncStart(map_fd); in TEST_F()
214 ret = allocator->CpuSyncEnd(map_fd); in TEST_F()
225 int map_fd = allocator->Alloc(kDmabufSystemHeapName, kAllocSizeInBytes); in TEST_F()
231 int ret = allocator->CpuSyncStart(map_fd, sync_type); in TEST_F()
234 ret = allocator->CpuSyncEnd(map_fd, sync_type); in TEST_F()
260 int map_fd = allocator->Alloc(kDmabufSystemHeapName, size); in TEST_F()
266 int ret = allocator->CpuSyncStart(map_fd, kSyncWrite, CustomCpuSyncStart); in TEST_F()
271 ret = allocator->CpuSyncEnd(map_fd, kSyncWrite, CustomCpuSyncEnd); in TEST_F()
280 auto heap_list = allocator->GetDmabufHeapList(); in TEST_F()
301 auto heap_list = allocator->GetDmabufHeapList(); in TEST_F()
310 int map_fd = allocator->AllocSystem(cpu_access_needed, kAllocSizeInBytes); in TEST_F()
323 int ret = allocator->CpuSyncStart(map_fd); in TEST_F()
328 ret = allocator->CpuSyncEnd(map_fd); in TEST_F()