Searched defs:kChunkSize (Results 1 - 2 of 2) sorted by relevance

/system/update_engine/payload_consumer/
H A Dbzip_extent_writer_unittest.cc97 const size_t kChunkSize = 3; local
112 i += kChunkSize) {
113 size_t this_chunk_size = min(kChunkSize, compressed_data.size() - i);
/system/core/libmemunreachable/
H A DAllocator.cpp58 static constexpr size_t kChunkSize = 256 * 1024; member in namespace:android
59 static constexpr size_t kUsableChunkSize = kChunkSize - kPageSize;
60 static constexpr size_t kMaxBucketAllocationSize = kChunkSize / 4;
177 return reinterpret_cast<Chunk*>(reinterpret_cast<uintptr_t>(ptr) & ~(kChunkSize - 1));
180 return (reinterpret_cast<uintptr_t>(ptr) & (kChunkSize - 1)) != 0;
213 // Override new operator on chunk to use mmap to allocate kChunkSize
216 void* mem = MapAligned(kChunkSize, kChunkSize);
224 // Override new operator on chunk to use mmap to allocate kChunkSize
227 munmap(ptr, kChunkSize);
[all...]

Completed in 45 milliseconds