Home
last modified time | relevance | path

Searched refs:PROT_READ (Results 1 – 21 of 21) sorted by relevance

/frameworks/rs/cpu_ref/linkloader/lib/
DMemChunk.cpp75 PROT_READ | PROT_WRITE, in allocate()
80 PROT_READ | PROT_WRITE, in allocate()
/frameworks/base/libs/androidfw/
DCursorWindow.cpp53 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()
101 void* data = ::mmap(NULL, size, PROT_READ, MAP_SHARED, dupAshmemFd, 0); in createFromParcel()
/frameworks/native/libs/binder/
DMemoryHeapBase.cpp60 ashmem_set_prot_region(fd, PROT_READ); in MemoryHeapBase()
128 PROT_READ|PROT_WRITE, MAP_SHARED, fd, offset); in mapfd()
DParcel.cpp794 int result = ashmem_set_prot_region(fd, PROT_READ | PROT_WRITE); in writeBlob()
798 void* ptr = ::mmap(NULL, len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in writeBlob()
802 result = ashmem_set_prot_region(fd, PROT_READ); in writeBlob()
1193 void* ptr = ::mmap(NULL, len, PROT_READ, MAP_SHARED, fd, 0); in readBlob()
DProcessState.cpp386 mVMStart = mmap(0, BINDER_VM_SIZE, PROT_READ, MAP_PRIVATE | MAP_NORESERVE, mDriverFD, 0); in ProcessState()
DIMemory.cpp306 int access = PROT_READ; in assertReallyMapped()
/frameworks/rs/cpu_ref/linkloader/include/
DmmanWindows.h53 #define PROT_READ 0x1 macro
/frameworks/rs/cpu_ref/linkloader/include/impl/
DELFSectionBits.hxx55 int prot = PROT_READ; in protect()
/frameworks/base/core/java/android/os/
DMemoryFile.java41 private static final int PROT_READ = 0x1; field in MemoryFile
73 mAddress = native_mmap(mFD, length, PROT_READ | PROT_WRITE); in MemoryFile()
/frameworks/rs/cpu_ref/linkloader/android/
Dtest-librsloader.c88 mmap(NULL, sb.st_size, PROT_READ, MAP_PRIVATE, fd, 0); in main()
/frameworks/compile/mclinker/lib/Support/Unix/
DFileSystem.inc170 prot = PROT_READ;
180 prot = PROT_READ | PROT_WRITE;
/frameworks/base/cmds/screencap/
Dscreencap.cpp165 mapbase = mmap(0, mapsize, PROT_READ, MAP_PRIVATE, fb, 0); in main()
/frameworks/rs/cpu_ref/linkloader/
Dmain.cpp238 mmap(0, size, PROT_READ, MAP_PRIVATE, fd, 0)); in open_mmap_file()
/frameworks/av/services/audioflinger/
Dtest-resample.cpp164 input_vaddr = mmap(0, input_size, PROT_READ, MAP_PRIVATE, input_fd, 0); in main()
/frameworks/native/opengl/libs/EGL/
Degl_cache.cpp315 PROT_READ, MAP_PRIVATE, fd, 0)); in loadBlobCacheLocked()
/frameworks/base/tests/touchlag/
Dtouchlag.cpp227 void* bits = mmap(0, fi.smem_len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main()
/frameworks/rs/cpu_ref/
DrsCpuIntrinsicColorMatrix.cpp413 mBuf = (uint8_t *)mmap(0, mBufSize, PROT_READ | PROT_WRITE, in build()
655 int ret = mprotect(mBuf, mBufSize, PROT_READ | PROT_EXEC); in build()
/frameworks/base/core/jni/
Dandroid_database_SQLiteConnection.cpp524 void* ptr = mmap(NULL, length, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in createAshmemRegionWithData()
535 if (ashmem_set_prot_region(fd, PROT_READ) < 0) { in createAshmemRegionWithData()
/frameworks/native/cmds/servicemanager/
Dbinder.c112 bs->mapped = mmap(NULL, mapsize, PROT_READ, MAP_PRIVATE, bs->fd, 0); in binder_open()
/frameworks/wilhelm/tests/examples/
DslesTestDecodeAac.cpp432 ptr = mmap(NULL, statbuf.st_size, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, (off_t) 0); in TestDecToBuffQueue()
/frameworks/wilhelm/tests/sandbox/
Dxaplay.c333 ptr = mmap(NULL, statbuf.st_size, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, (off_t) 0); in main()