/frameworks/base/core/java/android/os/ |
D | SharedMemory.java | 119 private static void validateProt(int prot) { in validateProt() argument 120 if ((prot & ~PROT_MASK) != 0) { in validateProt() 150 public boolean setProtect(int prot) { in setProtect() argument 152 validateProt(prot); in setProtect() 153 int errno = nSetProt(mFileDescriptor, prot); in setProtect() 236 public @NonNull ByteBuffer map(int prot, int offset, int length) throws ErrnoException { in map() argument 238 validateProt(prot); in map() 248 long address = Os.mmap(0, length, prot, OsConstants.MAP_SHARED, mFileDescriptor, offset); in map() 249 boolean readOnly = (prot & OsConstants.PROT_WRITE) == 0; in map() 402 private static native int nSetProt(FileDescriptor fd, int prot); in nSetProt() argument
|
/frameworks/libs/binary_translation/kernel_api/ |
D | sys_mman_emulation.cc | 73 void* MmapForGuest(void* addr, size_t length, int prot, int flags, int fd, off64_t offset) { in MmapForGuest() argument 74 void* result = mmap64(addr, length, ToHostProt(prot), flags, fd, offset); in MmapForGuest() 76 UpdateGuestProt(prot, result, length); in MmapForGuest() 86 int MprotectForGuest(void* addr, size_t length, int prot) { in MprotectForGuest() argument 98 UpdateGuestProt(prot, addr, length); in MprotectForGuest() 99 return mprotect(addr, length, ToHostProt(prot)); in MprotectForGuest()
|
/frameworks/libs/binary_translation/tools/ |
D | symbolize_trace.py | 32 prot = 0 variable in MapEntry 47 prot = 0 49 prot |= PROT_READ 51 prot |= PROT_WRITE 53 prot |= PROT_EXEC 55 return prot 74 map_entry.prot = self.parse_prot(entries[1]) 85 if map_entry.prot == 0:
|
/frameworks/libs/binary_translation/base/ |
D | mmap_posix.cc | 26 return mmap(args.addr, args.size, args.prot, args.flags, args.fd, args.offset); in MmapImpl() 40 void MprotectOrDie(void* ptr, size_t size, int prot) { in MprotectOrDie() argument 41 int res = mprotect(ptr, size, prot); in MprotectOrDie()
|
D | exec_region_anonymous.cc | 34 {.size = size, .prot = PROT_READ | PROT_EXEC, .flags = MAP_SHARED, .fd = fd})), in Create() 36 {.size = size, .prot = PROT_READ | PROT_WRITE, .flags = MAP_SHARED, .fd = fd})), in Create()
|
D | exec_region_elf_backed.cc | 66 .prot = PROT_READ | PROT_EXEC, in Create() 70 {.size = region_size, .prot = PROT_READ | PROT_WRITE, .flags = MAP_SHARED, .fd = fd})), in Create()
|
/frameworks/av/media/codec2/vndk/ |
D | C2AllocatorIon.cpp | 196 int prot = PROT_NONE; in map() local 199 prot |= PROT_READ; in map() 202 prot |= PROT_WRITE; in map() 210 … c2_status_t err = mapInternal(mapSize, mapOffset, alignmentBytes, prot, flags, &(map.addr), addr); in map() 286 int prot, int flags, void** base, void** addr) { in mapInternal() argument 289 int ret = ion_map(mIonFd, mBuffer, mapSize, prot, in mapInternal() 293 mIonFd, mBuffer, mapSize, prot, flags, mapOffset, ret); in mapInternal() 302 *base = mmap(nullptr, mapSize, prot, flags, mMapFd, mapOffset); in mapInternal() 305 mapSize, prot, flags, mMapFd, mapOffset, errno); in mapInternal() 356 int prot, int flags, void** base, void** addr) { in mapInternal() argument [all …]
|
D | C2DmaBufAllocator.cpp | 142 int prot, int flags, void** base, void** addr) { in mapInternal() argument 144 *base = mmap(nullptr, mapSize, prot, flags, mHandle.bufferFd(), mapOffset); in mapInternal() 147 mapSize, prot, flags, mHandle.bufferFd(), mapOffset, errno); in mapInternal() 187 int prot = PROT_NONE; in map() local 190 prot |= PROT_READ; in map() 193 prot |= PROT_WRITE; in map() 202 mapInternal(mapSize, mapOffset, alignmentBytes, prot, flags, &(map.addr), addr); in map()
|
/frameworks/libs/binary_translation/kernel_api/include/berberis/kernel_api/ |
D | sys_mman_emulation.h | 24 void* MmapForGuest(void* addr, size_t length, int prot, int flags, int fd, off64_t offset); 28 int MprotectForGuest(void* addr, size_t length, int prot);
|
/frameworks/libs/binary_translation/tests/ndk_program_tests/ |
D | proc_self_maps_test.cc | 44 char prot[5]; // sizeof("rwxp") in IsExecutable() local 45 if (sscanf(line, "%" SCNxPTR "-%" SCNxPTR " %4s", &start, &end, prot) == 3) { in IsExecutable() 59 return prot[2] == 'x'; in IsExecutable()
|
/frameworks/base/native/android/ |
D | sharedmem.cpp | 60 int ASharedMemory_setProt(int fd, int prot) { in ASharedMemory_setProt() argument 61 return ashmem_set_prot_region(fd, prot); in ASharedMemory_setProt()
|
/frameworks/compile/mclinker/lib/Support/Unix/ |
D | FileSystem.inc | 163 int prot, flag; 166 prot = PROT_READ; 170 prot = PROT_WRITE; 174 prot = PROT_READ | PROT_WRITE; 182 pMemBuffer = ::mmap(NULL, pLength, prot, flag, m_Handler, pStartOffset);
|
/frameworks/libs/binary_translation/base/include/berberis/base/ |
D | mmap.h | 48 int prot = PROT_READ | PROT_WRITE; member 67 void MprotectOrDie(void* ptr, size_t size, int prot);
|
/frameworks/base/core/jni/ |
D | android_os_SharedMemory.cpp | 73 jint SharedMemory_nSetProt(JNIEnv* env, jobject, jobject fileDescriptor, jint prot) { in SharedMemory_nSetProt() argument 76 if (ashmem_set_prot_region(fd, prot)) { in SharedMemory_nSetProt()
|
/frameworks/libs/binary_translation/runtime_primitives/ |
D | code_pool_test.cc | 50 .prot = PROT_READ | PROT_WRITE, in AllocWritableRegion() 58 .prot = PROT_NONE, in AllocExecutableRegion()
|
/frameworks/native/libs/binder/ |
D | MemoryHeapBase.cpp | 164 int prot = PROT_READ; in mapfd() local 166 prot |= PROT_WRITE; in mapfd() 169 prot, MAP_SHARED, fd, offset); in mapfd()
|
/frameworks/native/include/android/ |
D | sharedmem.h | 122 int ASharedMemory_setProt(int fd, int prot) __INTRODUCED_IN(26);
|
/frameworks/libs/binary_translation/tiny_loader/include/berberis/tiny_loader/ |
D | tiny_loader.h | 31 void* (*)(void* addr, size_t length, int prot, int flags, int fd, off64_t offset);
|
/frameworks/libs/binary_translation/tiny_loader/ |
D | tiny_loader.cc | 457 int prot = PFLAGS_TO_PROT(phdr->p_flags); in LoadSegments() local 458 if ((prot & (PROT_EXEC | PROT_WRITE)) == (PROT_EXEC | PROT_WRITE)) { in LoadSegments() 463 void* seg_addr = mmap64_fn(reinterpret_cast<void*>(seg_page_start), file_length, prot, in LoadSegments()
|