Searched refs:PAGE_SIZE (Results 1 - 15 of 15) sorted by relevance

/system/core/libion/tests/
H A Dmap_test.cpp88 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 DAshmemTest.cpp48 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 Ddebuggerd_handler.cpp466 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 Dfuse.h202 __u8 read_buffer[MAX_READ + PAGE_SIZE];
H A Dfuse.cpp1041 __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 Ddebuggerd_test.cpp252 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 DmmapPerf.cpp16 static const size_t pageSize = PAGE_SIZE;
/system/libfmq/include/fmq/
H A DMessageQueue.h658 (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 Dpagecache.py14 PAGE_SIZE = 4096 variable
55 return "%.2f" % round(num_pages * PAGE_SIZE / 1024.0 / 1024.0, 2)
/system/core/lmkd/
H A Dlmkd.c124 /* PAGE_SIZE / 1024 */
468 char buf[PAGE_SIZE];
732 page_k = PAGE_SIZE;
/system/core/liblog/
H A Dproperties.c509 pagesize = PAGE_SIZE;
H A Dlogd_reader.c285 if (((size_t)ret == len) || (buf_size < PAGE_SIZE)) {
/system/extras/procrank/
H A Dprocrank.cpp570 return strtoull(s.c_str(), NULL, 10) * PAGE_SIZE;
/system/core/liblog/tests/
H A Dliblog_benchmark.cpp906 if (((size_t)ret == len) || (len < PAGE_SIZE)) {
/system/core/logd/tests/
H A Dlogd_test.cpp49 if (((size_t)ret == len) || (len < PAGE_SIZE)) {

Completed in 238 milliseconds