Lines Matching refs:fd
62 android::base::unique_fd fd(JitMemoryRegion::CreateZygoteMemory(size, &error_msg)); in BasicTest() local
63 CHECK_NE(fd.get(), -1); in BasicTest()
67 mmap(nullptr, kPageSize, PROT_READ | PROT_WRITE, MAP_SHARED, fd.get(), 0)); in BasicTest()
76 bool res = JitMemoryRegion::ProtectZygoteMemory(fd.get(), &error_msg); in BasicTest()
85 mmap(nullptr, kPageSize, PROT_READ | PROT_WRITE, MAP_SHARED, fd.get(), 0)); in BasicTest()
118 android::base::unique_fd fd(JitMemoryRegion::CreateZygoteMemory(size, &error_msg)); in TestUnmapWritableAfterFork() local
119 CHECK_NE(fd.get(), -1); in TestUnmapWritableAfterFork()
123 mmap(nullptr, kPageSize, PROT_READ | PROT_WRITE, MAP_SHARED, fd.get(), 0)); in TestUnmapWritableAfterFork()
133 mmap(nullptr, kPageSize, PROT_READ, MAP_SHARED, fd.get(), 0)); in TestUnmapWritableAfterFork()
137 bool res = JitMemoryRegion::ProtectZygoteMemory(fd.get(), &error_msg); in TestUnmapWritableAfterFork()
215 android::base::unique_fd fd(JitMemoryRegion::CreateZygoteMemory(size, &error_msg)); in TestMadviseDontFork() local
216 CHECK_NE(fd.get(), -1); in TestMadviseDontFork()
220 mmap(nullptr, kPageSize, PROT_READ | PROT_WRITE, MAP_SHARED, fd.get(), 0)); in TestMadviseDontFork()
231 mmap(nullptr, kPageSize, PROT_READ, MAP_SHARED, fd.get(), 0)); in TestMadviseDontFork()
235 bool res = JitMemoryRegion::ProtectZygoteMemory(fd.get(), &error_msg); in TestMadviseDontFork()
312 android::base::unique_fd fd(JitMemoryRegion::CreateZygoteMemory(size, &error_msg)); in TestFromSharedToPrivate() local
313 CHECK_NE(fd.get(), -1); in TestFromSharedToPrivate()
317 mmap(nullptr, kPageSize, PROT_READ | PROT_WRITE, MAP_SHARED, fd.get(), 0)); in TestFromSharedToPrivate()
332 CHECK(JitMemoryRegion::ProtectZygoteMemory(fd.get(), &error_msg)); in TestFromSharedToPrivate()
345 CHECK_EQ(mmap(addr, kPageSize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_FIXED, fd.get(), 0), in TestFromSharedToPrivate()
364 CHECK_EQ(mmap(addr, kPageSize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_FIXED, fd.get(), 0), in TestFromSharedToPrivate()
370 CHECK_EQ(mmap(addr, kPageSize, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_FIXED, fd.get(), 0), in TestFromSharedToPrivate()
375 CHECK_EQ(mmap(addr, kPageSize, PROT_READ, MAP_SHARED | MAP_FIXED, fd.get(), 0), addr); in TestFromSharedToPrivate()
388 CHECK_EQ(mmap(addr, kPageSize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_FIXED, fd.get(), 0), in TestFromSharedToPrivate()
394 CHECK_EQ(mmap(addr, kPageSize, PROT_READ, MAP_SHARED | MAP_FIXED, fd.get(), 0), addr); in TestFromSharedToPrivate()
428 CHECK_EQ(mmap(addr, kPageSize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_FIXED, fd.get(), 0), in TestFromSharedToPrivate()
445 CHECK_EQ(mmap(addr, kPageSize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_FIXED, fd.get(), 0), in TestFromSharedToPrivate()
470 CHECK_EQ(mmap(addr, kPageSize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_FIXED, fd.get(), 0), in TestFromSharedToPrivate()