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()
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
90 if (ashmemFd == int(BAD_TYPE)) { in createFromParcel()
93 ssize_t size = ashmem_get_size_region(ashmemFd); in createFromParcel()
97 int dupAshmemFd = ::dup(ashmemFd); in createFromParcel()