/system/media/audio_utils/tests/ |
D | fifo_multiprocess.cpp | 46 audio_utils_fifo_index *frontIndex = (audio_utils_fifo_index *) mmap(NULL, in main() 51 audio_utils_fifo_index *rearIndex = (audio_utils_fifo_index *) mmap(NULL, in main() 56 int16_t *data = (int16_t *) mmap(NULL, sizeof(audio_utils_fifo_index), PROT_READ | PROT_WRITE, in main() 79 frontIndex = (audio_utils_fifo_index *) mmap((char *) frontIndex + pageSize * 4, in main() 142 rearIndex = (audio_utils_fifo_index *) mmap((char *) rearIndex + pageSize * 4, in main() 153 data = (int16_t *) mmap((char *) data + pageSize * 8, BUFFER_SIZE, PROT_READ, in main()
|
/system/core/libion/tests/ |
D | map_test.cpp | 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 | 149 ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 184 ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 213 ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 246 ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 275 ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 310 ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 339 ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 374 ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 404 ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 439 ptr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() [all …]
|
D | allocate_test.cpp | 106 ptr = mmap(NULL, 4096, PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F() 126 ptr = mmap(NULL, 4096, PROT_READ, MAP_SHARED, map_fd, 0); in TEST_F()
|
/system/extras/perfprofd/quipper/ |
D | perf_utils.cc | 123 offset = sizeof(event.mmap) - sizeof(event.mmap.filename) + in GetPerfSampleDataOffset() 124 GetUint64AlignedStringLength(event.mmap.filename); in GetPerfSampleDataOffset()
|
D | perf_parser.cc | 165 VLOG(1) << "MMAP: " << event.mmap.filename; in ProcessEvents() 168 CHECK(MapMmapEvent(&event.mmap, i)) << "Unable to map MMAP event!"; in ProcessEvents() 173 dso_info.name = event.mmap.filename; in ProcessEvents() 446 dso_info.name = raw_event->mmap.filename; in MapIPAndPidAndGetNameAndOffset()
|
/system/core/libcutils/tests/ |
D | AshmemTest.cpp | 33 *region = mmap(nullptr, size, prot, MAP_SHARED, fd, 0); in TestMmap() 38 EXPECT_EQ(MAP_FAILED, mmap(nullptr, size, prot, MAP_SHARED, fd, 0)); in TestProtDenied() 85 void *region2 = mmap(nullptr, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in TEST() 156 void *region = mmap(nullptr, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd[i], 0); in TEST()
|
/system/bt/osi/test/ |
D | wakelock_test.cc | 104 mmap(nullptr, lock_stat.st_size, PROT_READ, MAP_PRIVATE, lock_fd, 0); in IsFileWakeLockAcquired() 106 void* unlock_file = mmap(nullptr, unlock_stat.st_size, PROT_READ, in IsFileWakeLockAcquired()
|
/system/extras/kexec_tools/ |
D | kexecload.c | 135 … atag_buffer = (char *) mmap(NULL, atag_size, PROT_READ, MAP_POPULATE | MAP_PRIVATE, atag_file, 0); in main() 136 …zimage_buffer = (char *) mmap(NULL, zimage_size, PROT_READ, MAP_POPULATE | MAP_PRIVATE, zimage_fil… in main()
|
/system/libhidl/transport/memory/1.0/default/ |
D | AshmemMapper.cpp | 36 void* data = mmap(0, mem.size(), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); in mapMemory()
|
/system/extras/simpleperf/ |
D | perf_clock.cpp | 65 mmap(NULL, 4096, PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in ThreadA() 109 attr.mmap = 0; in GetClockDiff()
|
D | event_attr.cpp | 83 attr.mmap = 1; in CreateDefaultPerfEventAttr() 125 attr.mmap, attr.comm, attr.freq); in DumpPerfEventAttr()
|
/system/extras/tests/memtest/ |
D | memtest.cpp | 139 void* addr1 = mmap(0, size, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); in madvise_test() 158 void* addr2 = mmap(0, size, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); in madvise_test()
|
/system/extras/tests/pagingtest/ |
D | mmap_test.c | 25 buf = mmap(NULL, alloc_size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in mmap_test()
|
D | thrashing_test.c | 44 bufs[i] = mmap(NULL, filesize, PROT_READ, MAP_PRIVATE, fds[i], 0); in thrashing_test()
|
D | pageinout_test.c | 37 buf = mmap(NULL, file_size, PROT_READ, MAP_PRIVATE, fd, 0); in pageinout_test()
|
/system/nvram/hal/ |
D | fake-nvram-seccomp-arm64.policy | 45 mmap: 1
|
D | fake-nvram-seccomp-x86_64.policy | 45 mmap: 1
|
/system/sepolicy/tools/sepolicy-analyze/ |
D | utils.c | 42 map = mmap(NULL, sb.st_size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); in load_policy()
|
/system/core/libion/ |
D | ion_test.c | 144 ptr = mmap(NULL, len, prot, map_flags, share_fd, 0); in ion_share_test() 201 ptr = mmap(NULL, len, prot, map_flags, recv_fd, 0); in ion_share_test()
|
/system/tpm/trunks/ |
D | trunksd-seccomp-amd64.policy | 63 mmap: 1
|
D | trunksd-seccomp-arm64.policy | 58 mmap: 1
|
D | trunksd-seccomp-x86_64.policy | 63 mmap: 1
|
/system/extras/memory_replay/ |
D | Pointers.cpp | 35 void* memory = mmap(nullptr, pointers_size_, PROT_READ | PROT_WRITE, in Pointers()
|