Searched refs:ashmemFd (Results 1 – 4 of 4) sorted by relevance
/frameworks/av/media/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/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() 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/base/libs/androidfw/ |
D | CursorWindow.cpp | 33 CursorWindow::CursorWindow(const String8& name, int ashmemFd, in CursorWindow() argument 35 mName(name), mAshmemFd(ashmemFd), mData(data), mSize(size), mReadOnly(readOnly) { in CursorWindow() 49 int ashmemFd = ashmem_create_region(ashmemName.string(), size); in create() local 50 if (ashmemFd < 0) { in create() 54 result = ashmem_set_prot_region(ashmemFd, PROT_READ | PROT_WRITE); in create() 58 void* data = ::mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, ashmemFd, 0); in create() 63 result = ashmem_set_prot_region(ashmemFd, PROT_READ); in create() 67 CursorWindow* window = new CursorWindow(name, ashmemFd, in create() 85 ::close(ashmemFd); in create() 96 int ashmemFd = parcel->readFileDescriptor(); in createFromParcel() local [all …]
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | CursorWindow.h | 53 CursorWindow(const String8& name, int ashmemFd,
|