Searched refs:PAGE_SIZE (Results 1 - 15 of 15) sorted by relevance
/system/core/libion/tests/ |
H A D | map_test.cpp | 88 ASSERT_EQ(0, ion_alloc_fd(m_ionFd, PAGE_SIZE * 2, 0, heapMask, 0, &map_fd)); 92 ptr = (unsigned char *)mmap(NULL, PAGE_SIZE * 2, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); 95 memset(ptr, 0, PAGE_SIZE); 96 memset(ptr + PAGE_SIZE, 0xaa, PAGE_SIZE); 98 ASSERT_EQ(0, munmap(ptr, PAGE_SIZE * 2)); 100 ptr = (unsigned char *)mmap(NULL, PAGE_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, PAGE_SIZE); 104 ASSERT_EQ(ptr[PAGE_SIZE - 1], 0xaa); 106 ASSERT_EQ(0, munmap(ptr, PAGE_SIZE)); [all...] |
/system/core/libcutils/tests/ |
H A D | AshmemTest.cpp | 48 constexpr size_t size = PAGE_SIZE; 70 constexpr size_t size = PAGE_SIZE; 106 constexpr size_t size = PAGE_SIZE; 122 constexpr size_t size = PAGE_SIZE; 139 constexpr size_t size = PAGE_SIZE;
|
/system/core/debuggerd/handler/ |
H A D | debuggerd_handler.cpp | 466 mmap(nullptr, PAGE_SIZE * 3, PROT_NONE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); 471 char* stack = static_cast<char*>(thread_stack_allocation) + PAGE_SIZE; 472 if (mprotect(stack, PAGE_SIZE, PROT_READ | PROT_WRITE) != 0) { 477 stack = (stack + PAGE_SIZE - 1);
|
/system/core/sdcard/ |
H A D | fuse.h | 202 __u8 read_buffer[MAX_READ + PAGE_SIZE];
|
H A D | fuse.cpp | 1041 __u8 *read_buffer = (__u8 *) ((uintptr_t)(handler->read_buffer + PAGE_SIZE) & ~((uintptr_t)PAGE_SIZE-1)); 1067 __u8 aligned_buffer[req->size] __attribute__((__aligned__(PAGE_SIZE)));
|
/system/core/debuggerd/ |
H A D | debuggerd_test.cpp | 252 constexpr size_t read_length = PAGE_SIZE; 257 result.resize(result.size() + PAGE_SIZE); 262 result.resize(result.size() - PAGE_SIZE); 266 result.resize(result.size() - PAGE_SIZE + rc);
|
/system/extras/mmap-perf/ |
H A D | mmapPerf.cpp | 16 static const size_t pageSize = PAGE_SIZE;
|
/system/libfmq/include/fmq/ |
H A D | MessageQueue.h | 658 (Descriptor::alignToWordBoundary(kQueueSizeBytes) + kMetaDataSize + PAGE_SIZE - 1) & 659 ~(PAGE_SIZE - 1); 1163 * Offset for mmap must be a multiple of PAGE_SIZE. 1165 int mapOffset = (grantors[grantorIdx].offset / PAGE_SIZE) * PAGE_SIZE; 1185 int mapOffset = (grantors[grantorIdx].offset / PAGE_SIZE) * PAGE_SIZE;
|
/system/extras/pagecache/ |
H A D | pagecache.py | 14 PAGE_SIZE = 4096 variable 55 return "%.2f" % round(num_pages * PAGE_SIZE / 1024.0 / 1024.0, 2)
|
/system/core/lmkd/ |
H A D | lmkd.c | 124 /* PAGE_SIZE / 1024 */ 468 char buf[PAGE_SIZE]; 732 page_k = PAGE_SIZE;
|
/system/core/liblog/ |
H A D | properties.c | 509 pagesize = PAGE_SIZE;
|
H A D | logd_reader.c | 285 if (((size_t)ret == len) || (buf_size < PAGE_SIZE)) {
|
/system/extras/procrank/ |
H A D | procrank.cpp | 570 return strtoull(s.c_str(), NULL, 10) * PAGE_SIZE;
|
/system/core/liblog/tests/ |
H A D | liblog_benchmark.cpp | 906 if (((size_t)ret == len) || (len < PAGE_SIZE)) {
|
/system/core/logd/tests/ |
H A D | logd_test.cpp | 49 if (((size_t)ret == len) || (len < PAGE_SIZE)) {
|
Completed in 238 milliseconds