Home
last modified time | relevance | path

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

/hardware/interfaces/media/bufferpool/aidl/default/tests/
Dallocator.cpp35 HandleAshmem(int ashmemFd, size_t size) in HandleAshmem()
37 mFds{ ashmemFd }, in HandleAshmem()
40 int ashmemFd() const { return mFds.mAshmem; } in ashmemFd() function
85 AllocationAshmem(int ashmemFd, size_t capacity, bool res) in AllocationAshmem() argument
86 : mHandle(ashmemFd, capacity), in AllocationAshmem()
92 int ashmemFd = ashmem_create_region(kAllocationTag, size); in Alloc() local
93 return new AllocationAshmem(ashmemFd, size, ashmemFd >= 0); in Alloc()
188 NULL, o->size(), PROT_READ|PROT_WRITE, MAP_SHARED, o->ashmemFd(), 0); in Fill()
206 NULL, o->size(), PROT_READ, MAP_SHARED, o->ashmemFd(), 0); in Verify()
228 NULL, o->size(), PROT_READ|PROT_WRITE, MAP_SHARED, o->ashmemFd(), 0); in MapMemoryForMutex()