Searched refs:AshmemRegion (Results 1 – 8 of 8) sorted by relevance
13 class AshmemRegion {15 AshmemRegion() : fd_(-1) {} in AshmemRegion() function17 ~AshmemRegion() { Reset(-1); } in ~AshmemRegion()56 AshmemRegion(const AshmemRegion& other);57 AshmemRegion& operator=(const AshmemRegion& other);
13 TEST(AshmemRegion, Construction) { in TEST() argument14 AshmemRegion region; in TEST()18 TEST(AshmemRegion, Allocate) { in TEST() argument19 AshmemRegion region; in TEST()
21 bool AshmemRegion::Allocate(size_t region_size, const char* region_name) { in Allocate()44 bool AshmemRegion::SetProtectionFlags(int prot) { in SetProtectionFlags()49 bool AshmemRegion::CheckFileDescriptorIsReadOnly(int fd) { in CheckFileDescriptorIsReadOnly()
78 AshmemRegion ashmem_;
247 crazy::AshmemRegion region; in crazy_system_can_share_relro()250 !crazy::AshmemRegion::CheckFileDescriptorIsReadOnly(region.fd())) in crazy_system_can_share_relro()
166 if (!AshmemRegion::CheckFileDescriptorIsReadOnly(ashmem_fd)) { in InitFrom()
19 class AshmemRegion; variable35 friend class AshmemRegion;37 DiscardableAshmemChunk(AshmemRegion* ashmem_region,43 AshmemRegion* const ashmem_region_;77 friend class AshmemRegion;79 void DeleteAshmemRegion_Locked(AshmemRegion* region);85 ScopedVector<AshmemRegion> ashmem_regions_;
115 class AshmemRegion { class118 static scoped_ptr<AshmemRegion> Create( in Create()126 return scoped_ptr<AshmemRegion>(); in Create()127 return make_scoped_ptr(new AshmemRegion(fd, size, base, allocator)); in Create()130 ~AshmemRegion() { in ~AshmemRegion()218 AshmemRegion(int fd, in AshmemRegion() function in base::internal::AshmemRegion418 DISALLOW_COPY_AND_ASSIGN(AshmemRegion);444 DiscardableAshmemChunk::DiscardableAshmemChunk(AshmemRegion* ashmem_region, in DiscardableAshmemChunk()482 for (ScopedVector<AshmemRegion>::iterator it = ashmem_regions_.begin(); in Allocate()496 scoped_ptr<AshmemRegion> new_region( in Allocate()[all …]