Lines Matching refs:ashmemFd
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
97 if (ashmemFd == int(BAD_TYPE)) { in createFromParcel()
101 ssize_t size = ashmem_get_size_region(ashmemFd); in createFromParcel()
106 int dupAshmemFd = ::fcntl(ashmemFd, F_DUPFD_CLOEXEC, 0); in createFromParcel()