Home
last modified time | relevance | path

Searched refs:PROT_WRITE (Results 1 – 25 of 60) sorted by relevance

123

/frameworks/libs/binary_translation/tests/ndk_program_tests/riscv64/
Dhandle_not_executable_test.cc34 PROT_READ | PROT_WRITE, // No PROT_EXEC! in TEST()
99 0, kPageSize * 2, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0)); in TEST()
103 mprotect(second_page, kPageSize, PROT_READ | PROT_WRITE); in TEST()
Druntime_code_patching_test.cc89 mmap(0, kPageSize, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0)); in TEST()
/frameworks/libs/binary_translation/tests/ndk_program_tests/arm64/
Dhandle_not_executable_test.cc34 PROT_READ | PROT_WRITE, // No PROT_EXEC! in TEST()
93 0, kPageSize * 2, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0)); in TEST()
97 mprotect(second_page, kPageSize, PROT_READ | PROT_WRITE); in TEST()
Druntime_code_patching_test.cc83 mmap(0, 4096, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0)); in TEST()
/frameworks/av/services/oboeservice/
DSharedMemoryProxy.cpp52 int err = ashmem_set_prot_region(mProxyFileDescriptor, PROT_READ|PROT_WRITE); in open()
62 PROT_READ|PROT_WRITE, in open()
73 PROT_READ|PROT_WRITE, in open()
DSharedMemoryWrapper.cpp38 int err = ashmem_set_prot_region(mCounterFd.get(), PROT_READ|PROT_WRITE); in SharedMemoryWrapper()
45 PROT_READ|PROT_WRITE, in SharedMemoryWrapper()
80 PROT_READ|PROT_WRITE, in setupFifoBuffer()
DSharedRingBuffer.cpp56 …int err = ashmem_set_prot_region(mFileDescriptor.get(), PROT_READ|PROT_WRITE); // TODO error handl… in allocate()
66 PROT_READ|PROT_WRITE, in allocate()
/frameworks/libs/binary_translation/tests/ndk_program_tests/arm/
Dhandle_not_executable_test.cc34 PROT_READ | PROT_WRITE, // No PROT_EXEC! in TEST()
93 0, kPageSize * 2, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0)); in TEST()
97 mprotect(second_page, kPageSize, PROT_READ | PROT_WRITE); in TEST()
Druntime_code_patching_test.cc61 mmap(0, 4096, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0)); in TEST()
91 mmap(0, 4096, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0)); in TEST()
Dsyscall_test.cc43 PROT_READ | PROT_WRITE | PROT_EXEC, in TEST()
/frameworks/libs/binary_translation/tests/ndk_program_tests/
Dsigaltstack_test.cc58 ASSERT_EQ(mprotect(g_access_1, kAccessSize, PROT_READ | PROT_WRITE), 0); in HandleSignalOnAccess()
65 ASSERT_EQ(mprotect(g_access_2, kAccessSize, PROT_READ | PROT_WRITE), 0); in HandleSignalOnAccess()
80 g_ss = mmap(nullptr, kStackSize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST()
/frameworks/av/media/codec2/hal/services/seccomp_policy/
Dandroid.hardware.media.c2-default-riscv64.policy22 mprotect: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE
23 mmap: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE
Dandroid.hardware.media.c2-default-arm.policy22 mprotect: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE
23 mmap2: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE
Dandroid.hardware.media.c2-default-arm64.policy22 mprotect: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE
23 mmap: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE
/frameworks/base/core/java/android/os/
DSharedMemory.java116 private static final int PROT_MASK = OsConstants.PROT_READ | OsConstants.PROT_WRITE
205 return map(OsConstants.PROT_READ | OsConstants.PROT_WRITE, 0, mSize); in mapReadWrite()
249 boolean readOnly = (prot & OsConstants.PROT_WRITE) == 0; in map()
/frameworks/libs/binary_translation/test_utils/include/berberis/test_utils/
Dguest_exec_region.h35 PROT_READ | PROT_WRITE | PROT_EXEC, in MakeGuestExecRegion()
/frameworks/av/services/mediacodec/seccomp_policy/
Dmediaswcodec-arm.policy22 mprotect: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE
23 mmap2: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE
Dmediaswcodec-arm64.policy22 mprotect: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE
23 mmap: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE
/frameworks/libs/binary_translation/base/
Dexec_region_anonymous.cc36 {.size = size, .prot = PROT_READ | PROT_WRITE, .flags = MAP_SHARED, .fd = fd})), in Create()
Dexec_region_elf_backed.cc70 {.size = region_size, .prot = PROT_READ | PROT_WRITE, .flags = MAP_SHARED, .fd = fd})), in Create()
/frameworks/base/core/jni/
Dandroid_util_MemoryIntArray.cpp47 int setProtResult = ashmem_set_prot_region(fd, PROT_READ | PROT_WRITE); in android_util_MemoryIntArray_create()
83 int protMode = owner ? (PROT_READ | PROT_WRITE) : PROT_READ; in android_util_MemoryIntArray_open()
/frameworks/libs/binary_translation/tools/
Dsymbolize_trace.py25 PROT_WRITE = 2 variable
51 prot |= PROT_WRITE
/frameworks/base/core/tests/utiltests/jni/
Dandroid_util_MemoryIntArrayTest.cpp46 int setProtResult = ashmem_set_prot_region(fd, PROT_READ | PROT_WRITE); in android_util_MemoryIntArrayTest_createAshmem()
/frameworks/base/libs/hwui/
DProfileDataContainer.cpp69 mmap(NULL, sizeof(ProfileData), PROT_READ | PROT_WRITE, MAP_SHARED, ashmemfd, 0)); in switchStorageToAshmem()
/frameworks/av/media/module/bufferpool/2.0/tests/
Dallocator.cpp188 NULL, o->size(), PROT_READ|PROT_WRITE, MAP_SHARED, o->ashmemFd(), 0); in Fill()
228 NULL, o->size(), PROT_READ|PROT_WRITE, MAP_SHARED, o->ashmemFd(), 0); in MapMemoryForMutex()

123