Home
last modified time | relevance | path

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

/frameworks/compile/libbcc/lib/ExecutionEngine/OldJIT/
DContextManager.cpp61 PROT_READ | PROT_WRITE | PROT_EXEC, in allocateContext()
81 void *result = mmap(0, ContextSize, PROT_READ | PROT_WRITE | PROT_EXEC, in allocateContext()
125 PROT_READ | PROT_WRITE | PROT_EXEC, in allocateContext()
/frameworks/compile/linkloader/lib/
DMemChunk.cpp50 PROT_READ | PROT_WRITE, in allocate()
55 PROT_READ | PROT_WRITE, in allocate()
/frameworks/base/libs/binder/
DCursorWindow.cpp54 result = ashmem_set_prot_region(ashmemFd, PROT_READ | PROT_WRITE); in create()
56 void* data = ::mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, ashmemFd, 0); in create()
60 result = ashmem_set_prot_region(ashmemFd, PROT_READ); in create()
102 void* data = ::mmap(NULL, size, PROT_READ, MAP_SHARED, dupAshmemFd, 0); in createFromParcel()
DMemoryHeapBase.cpp60 ashmem_set_prot_region(fd, PROT_READ); in MemoryHeapBase()
128 PROT_READ|PROT_WRITE, MAP_SHARED, fd, offset); in mapfd()
DProcessState.cpp340 mVMStart = mmap(0, BINDER_VM_SIZE, PROT_READ, MAP_PRIVATE | MAP_NORESERVE, mDriverFD, 0); in ProcessState()
DParcel.cpp748 int result = ashmem_set_prot_region(fd, PROT_READ | PROT_WRITE); in writeBlob()
752 void* ptr = ::mmap(NULL, len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in writeBlob()
756 result = ashmem_set_prot_region(fd, PROT_READ); in writeBlob()
1117 void* ptr = ::mmap(NULL, len, PROT_READ, MAP_SHARED, fd, 0); in readBlob()
DIMemory.cpp308 int access = PROT_READ; in assertReallyMapped()
/frameworks/base/libs/ui/tests/
DInputChannel_test.cpp93 PROT_READ | PROT_WRITE, MAP_SHARED, serverChannel->getAshmemFd(), 0)); in TEST_F()
95 PROT_READ | PROT_WRITE, MAP_SHARED, clientChannel->getAshmemFd(), 0)); in TEST_F()
/frameworks/compile/libbcc/runtime/lib/
Denable_execute_stack.c50 (void) mprotect((void *)startPage, length, PROT_READ | PROT_WRITE | PROT_EXEC); in __enable_execute_stack()
/frameworks/base/opengl/tests/angeles/
Dgpustate.c19 ptr = mmap(0, size, PROT_READ | PROT_WRITE, in map_memory()
/frameworks/compile/libbcc/lib/CodeGen/
DCodeMemoryManager.cpp91 mprotect(mpCodeMem, MaxCodeSize, PROT_READ | PROT_WRITE | PROT_EXEC); in setMemoryWritable()
98 mprotect(mpCodeMem, MaxCodeSize, PROT_READ | PROT_EXEC); in setMemoryExecutable()
/frameworks/compile/libbcc/runtime/test/Unit/
Dclear_cache_test.c41 if ( mprotect(start, end-start, PROT_READ|PROT_WRITE|PROT_EXEC) != 0 ) in main()
/frameworks/compile/linkloader/include/impl/
DELFSectionBits.hxx51 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/base/core/jni/
Dandroid_database_SQLiteStatement.cpp180 mmap(NULL, length, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in create_ashmem_region_with_data()
201 if (ashmem_set_prot_region(fd, PROT_READ) < 0) { in create_ashmem_region_with_data()
/frameworks/compile/linkloader/android/
Dtest-librsloader.c88 mmap(NULL, sb.st_size, PROT_READ, MAP_PRIVATE, fd, 0); in main()
/frameworks/base/cmds/screencap/
Dscreencap.cpp153 mapbase = mmap(0, mapsize, PROT_READ, MAP_PRIVATE, fb, 0); in main()
/frameworks/base/libs/utils/
DFileMap.cpp165 prot = PROT_READ; in create()
/frameworks/base/libs/ui/
DInputTransport.cpp94 result = ashmem_set_prot_region(serverAshmemFd, PROT_READ | PROT_WRITE); in openInputChannelPair()
230 PROT_READ | PROT_WRITE, MAP_SHARED, ashmemFd, 0)); in initialize()
570 PROT_READ | PROT_WRITE, MAP_SHARED, ashmemFd, 0)); in initialize()
/frameworks/compile/linkloader/
Dmain.cpp236 mmap(0, size, PROT_READ, MAP_PRIVATE, fd, 0)); in open_mmap_file()
/frameworks/base/cmds/servicemanager/
Dbinder.c112 bs->mapped = mmap(NULL, mapsize, PROT_READ, MAP_PRIVATE, bs->fd, 0); in binder_open()