Searched refs:ashmemFd (Results 1 – 3 of 3) sorted by relevance
/frameworks/av/media/module/bufferpool/1.0/vts/ |
D | allocator.cpp | 35 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() 170 NULL, o->size(), PROT_READ|PROT_WRITE, MAP_SHARED, o->ashmemFd(), 0); in Fill() 188 NULL, o->size(), PROT_READ, MAP_SHARED, o->ashmemFd(), 0); in Verify()
|
/frameworks/av/media/module/bufferpool/2.0/tests/ |
D | allocator.cpp | 35 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()
|
/frameworks/base/libs/androidfw/ |
D | CursorWindow.cpp | 76 int ashmemFd = 0; in maybeInflate() local 87 ashmemFd = ashmem_create_region(ashmemName.c_str(), mInflatedSize); in maybeInflate() 88 if (ashmemFd < 0) { in maybeInflate() 93 if (ashmem_set_prot_region(ashmemFd, PROT_READ | PROT_WRITE) < 0) { in maybeInflate() 98 newData = ::mmap(nullptr, mInflatedSize, PROT_READ | PROT_WRITE, MAP_SHARED, ashmemFd, 0); in maybeInflate() 104 if (ashmem_set_prot_region(ashmemFd, PROT_READ) < 0) { in maybeInflate() 119 mAshmemFd = ashmemFd; in maybeInflate() 134 ::close(ashmemFd); in maybeInflate()
|