/system/core/libion/tests/ |
D | invalid_values_test.cpp | 121 int ret = ion_map(0, m_validHandle, 4096, PROT_READ, 0, 0, &ptr, &map_fd); in TEST_F() 124 EXPECT_EQ(-EBADF, ion_map(-1, m_validHandle, 4096, PROT_READ, 0, 0, &ptr, &map_fd)); in TEST_F() 126 EXPECT_EQ(-EINVAL, ion_map(m_ionFd, 0, 4096, PROT_READ, 0, 0, &ptr, &map_fd)); in TEST_F() 128 EXPECT_EQ(-EINVAL, ion_map(m_ionFd, m_badHandle, 4096, PROT_READ, 0, 0, &ptr, &map_fd)); in TEST_F() 130 EXPECT_EQ(-EINVAL, ion_map(m_ionFd, m_validHandle, 0, PROT_READ, 0, 0, &ptr, &map_fd)); in TEST_F() 134 EXPECT_EQ(-EINVAL, ion_map(m_ionFd, m_validHandle, 4096, PROT_READ, 0, -1, &ptr, &map_fd)); in TEST_F() 136 EXPECT_EQ(-EINVAL, ion_map(m_ionFd, m_validHandle, 4096, PROT_READ, 0, 0, NULL, &map_fd)); in TEST_F() 138 EXPECT_EQ(-EINVAL, ion_map(m_ionFd, m_validHandle, 4096, PROT_READ, 0, 0, &ptr, NULL)); in TEST_F()
|
D | map_test.cpp | 42 …ASSERT_EQ(0, ion_map(m_ionFd, handle, size, PROT_READ | PROT_WRITE, MAP_SHARED, 0, &ptr, &map_fd)); in TEST_F() 70 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 92 … ptr = (unsigned char *)mmap(NULL, PAGE_SIZE * 2, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 100 …ptr = (unsigned char *)mmap(NULL, PAGE_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, PAGE_SIZE… in TEST_F() 126 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 152 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F()
|
D | exit_test.cpp | 102 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 125 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 149 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 172 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 196 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 219 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F()
|
D | device_test.cpp | 148 ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 185 ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 216 ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 251 ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 282 ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 319 ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 350 ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 387 ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 419 ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 456 ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() [all …]
|
D | formerly_valid_handle_test.cpp | 55 ASSERT_EQ(-EINVAL, ion_map(m_ionFd, m_handle, 4096, PROT_READ, 0, 0, &ptr, &map_fd)); in TEST_F()
|
D | allocate_test.cpp | 125 ptr = mmap(NULL, 4096, PROT_READ, MAP_SHARED, map_fd, 0); in TEST_F()
|
/system/core/include/backtrace/ |
D | BacktraceMap.h | 25 #define PROT_READ 0x1 macro 64 bool IsReadable(uintptr_t pc) { return GetFlags(pc) & PROT_READ; } in IsReadable()
|
/system/extras/kexec_tools/ |
D | kexecload.c | 134 … atag_buffer = (char *) mmap(NULL, atag_size, PROT_READ, MAP_POPULATE | MAP_PRIVATE, atag_file, 0); in main() 135 …zimage_buffer = (char *) mmap(NULL, zimage_size, PROT_READ, MAP_POPULATE | MAP_PRIVATE, zimage_fil… in main()
|
/system/core/toolbox/ |
D | load_policy.c | 35 map = mmap(NULL, sb.st_size, PROT_READ, MAP_PRIVATE, fd, 0); in load_policy_main()
|
D | r.c | 69 void* page = mmap64(0, mmap_size, PROT_READ | PROT_WRITE, in r_main()
|
/system/extras/tests/memtest/ |
D | memtest.cpp | 146 void* addr1 = mmap(0, size, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); in madvise_test() 165 void* addr2 = mmap(0, size, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); in madvise_test()
|
/system/core/libion/ |
D | ion_test.c | 34 int prot = PROT_READ | PROT_WRITE; 244 map_flags |= strstr(optarg, "PROT_READ") ? PROT_READ: 0; in main()
|
/system/core/libbacktrace/ |
D | BacktraceMap.cpp | 78 map->flags |= PROT_READ;
|
D | BacktraceImpl.cpp | 151 if (map && map->flags & PROT_READ) { in ReadWord()
|
/system/core/fastbootd/ |
D | transport.c | 57 buffer = mmap(NULL, len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in transport_handle_download()
|
D | commands.c | 92 ptr = (char *) mmap(NULL, sz, PROT_READ, in cmd_boot()
|
/system/core/libutils/ |
D | FileMap.cpp | 164 prot = PROT_READ; in create()
|
/system/core/debuggerd/ |
D | crasher.c | 164 … char* map = mmap(NULL, sizeof(int), PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANONYMOUS, -1, 0); in do_action()
|
/system/extras/tests/framebuffer/ |
D | refresh.c | 124 PROT_READ | PROT_WRITE, in main()
|
D | fb_test.c | 88 bits = mmap(0, fi.smem_len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in get_framebuffer()
|
/system/core/libpixelflinger/codeflinger/ |
D | CodeCache.cpp | 90 PROT_READ | PROT_WRITE | PROT_EXEC, in getMspace()
|
/system/extras/tests/directiotest/ |
D | directiotest.c | 54 void *ret = mmap(NULL, size, PROT_READ | PROT_WRITE, in pagealign_alloc()
|
/system/core/liblog/ |
D | event_tag_map.c | 88 newTagMap->mapAddr = mmap(NULL, end, PROT_READ | PROT_WRITE, MAP_PRIVATE, in android_openEventTagMap()
|
/system/core/run-as/ |
D | package.c | 132 address = mmap(NULL, length, PROT_READ, MAP_PRIVATE, fd, 0); in map_file()
|
/system/core/fastbootd/commands/ |
D | partitions.c | 89 … mapping->map_ptr = mmap64(NULL, mapping->size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, location); in gpt_mmap() 725 data = (char *) mmap(NULL, size + 1, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); in GPT_parse_file()
|