Home
last modified time | relevance | path

Searched refs:MemoryMapping (Results 1 – 3 of 3) sorted by relevance

/ndk/sources/android/crazy_linker/src/
Dcrazy_linker_memory_mapping.h17 class MemoryMapping {
24 MemoryMapping() : map_(NULL), size_(0) {} in MemoryMapping() function
25 ~MemoryMapping() {} in ~MemoryMapping()
75 class ScopedMemoryMapping : public MemoryMapping {
Dcrazy_linker_ashmem.cpp55 if (map.Allocate(NULL, map_size, MemoryMapping::CAN_WRITE, fd)) { in CheckFileDescriptorIsReadOnly()
69 if (!map.Allocate(NULL, map_size, MemoryMapping::CAN_READ, fd)) { in CheckFileDescriptorIsReadOnly()
73 if (map.SetProtection(MemoryMapping::CAN_READ_WRITE)) { in CheckFileDescriptorIsReadOnly()
Dcrazy_linker_elf_relro.cpp93 if (!map.Allocate(NULL, relro_size, MemoryMapping::CAN_WRITE, ashmem_.fd())) { in CopyFrom()
125 NULL, relro_size, MemoryMapping::CAN_READ_WRITE, ashmem_.fd())) { in CopyFromRelocated()
172 if (!fd_map.Allocate(NULL, relro_size, MemoryMapping::CAN_READ, ashmem_fd)) { in InitFrom()