Searched refs:ashmemFd (Results 1 – 2 of 2) sorted by relevance
/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() 53 result = ashmem_set_prot_region(ashmemFd, PROT_READ | PROT_WRITE); in create() 55 void* data = ::mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, ashmemFd, 0); in create() 59 result = ashmem_set_prot_region(ashmemFd, PROT_READ); in create() 61 CursorWindow* window = new CursorWindow(name, ashmemFd, in create() 79 ::close(ashmemFd); in create() 89 int ashmemFd = parcel->readFileDescriptor(); in createFromParcel() local [all …]
|
/frameworks/base/include/androidfw/ |
D | CursorWindow.h | 52 CursorWindow(const String8& name, int ashmemFd,
|