Searched refs:kChunkSize (Results 1 – 10 of 10) sorted by relevance
/aosp12/art/runtime/ |
H A D | monitor_pool.h | 143 size_t index = offset / kChunkSize; in LookupMonitor() 146 size_t offset_in_chunk = offset % kChunkSize; in LookupMonitor() 153 return base_addr <= mon_ptr && (mon_ptr - base_addr < kChunkSize); in IsInChunk() 167 + i * (kMaxListSize * kChunkSize) + j * kChunkSize); in ComputeMonitorIdInPool() 196 static constexpr size_t kChunkSize = kPageSize; variable 197 static_assert(IsPowerOfTwo(kChunkSize), "kChunkSize must be power of 2"); 211 static_assert(kMaxListSize * kChunkSize < (1 << LockWord::kMonitorIdSize),
|
H A D | monitor_pool.cc | 60 void* chunk = allocator_.allocate(kChunkSize); in AllocateChunk() 75 last->monitor_id_ = OffsetToMonitorId(current_chunk_list_index_* (kMaxListSize * kChunkSize) in AllocateChunk() 76 + (num_chunks_ - 1) * kChunkSize + (kChunkCapacity - 1) * kAlignedMonitorSize); in AllocateChunk() 99 allocator_.deallocate(reinterpret_cast<uint8_t*>(monitor_chunks_[i][j]), kChunkSize); in FreeInternal()
|
/aosp12/system/core/fs_mgr/libfiemap/ |
H A D | fiemap_writer_test.cpp | 316 static constexpr size_t kChunkSize = 32768; in TEST_F() local 317 static constexpr size_t kSize = kChunkSize * 3; in TEST_F() 318 auto ptr = SplitFiemap::Create(testfile, kSize, kChunkSize); in TEST_F() 334 static constexpr size_t kChunkSize = 32768; in TEST_F() local 335 static constexpr size_t kSize = kChunkSize * 3; in TEST_F() 336 auto ptr = SplitFiemap::Create(testfile, kSize, kChunkSize); in TEST_F() 361 static constexpr size_t kChunkSize = 32768; in TEST_F() local 362 static constexpr size_t kSize = kChunkSize * 3; in TEST_F() 363 auto ptr = SplitFiemap::Create(testfile, kSize, kChunkSize); in TEST_F() 388 static constexpr size_t kChunkSize = 32768; in TEST_F() local [all …]
|
H A D | image_manager.cpp | 243 static constexpr size_t kChunkSize = 4096; in ZeroFillNewImage() local 244 std::string zeroes(kChunkSize, '\0'); in ZeroFillNewImage()
|
/aosp12/system/memory/libmemunreachable/ |
H A D | Allocator.cpp | 58 static constexpr size_t kChunkSize = 256 * 1024; variable 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)); in ptr_to_chunk() 180 return (reinterpret_cast<uintptr_t>(ptr) & (kChunkSize - 1)) != 0; in is_chunk() 216 void* mem = MapAligned(kChunkSize, kChunkSize); in operator new() 227 munmap(ptr, kChunkSize); in operator delete() 391 void* ptr = MapAligned(size, kChunkSize); in MapAlloc()
|
/aosp12/frameworks/av/services/camera/libcameraservice/api1/client2/ |
H A D | JpegCompressor.cpp | 117 const size_t kChunkSize = 32; in threadLoop() local 119 JSAMPROW chunk[kChunkSize]; in threadLoop() 120 for (size_t i = 0 ; i < kChunkSize; i++) { in threadLoop() 124 jpeg_write_scanlines(&mCInfo, chunk, kChunkSize); in threadLoop()
|
/aosp12/system/update_engine/payload_consumer/ |
H A D | bzip_extent_writer_unittest.cc | 90 const size_t kChunkSize = 3; in TEST_F() local 103 i += kChunkSize) { in TEST_F() 104 size_t this_chunk_size = min(kChunkSize, compressed_data.size() - i); in TEST_F()
|
/aosp12/system/core/fs_mgr/libsnapshot/ |
H A D | cow_decompress.cpp | 89 static constexpr size_t kChunkSize = 4096; variable 99 uint8_t chunk[kChunkSize]; in Decompress() 128 size_t request_size = std::min(output_bytes_, kChunkSize); in GetFreshBuffer()
|
/aosp12/frameworks/av/media/extractors/mpeg2/ |
H A D | MPEG2PSExtractor.cpp | 168 static const size_t kChunkSize = 8192; in feedMore() local 177 if (mBuffer->size() + kChunkSize > mBuffer->capacity()) { in feedMore() 178 size_t newCapacity = mBuffer->capacity() + kChunkSize; in feedMore() 186 mOffset, mBuffer->data() + mBuffer->size(), kChunkSize); in feedMore() 188 if (n < (ssize_t)kChunkSize) { in feedMore()
|
/aosp12/system/logging/logd/ |
H A D | SerializedFlushToStateTest.cpp | 29 constexpr size_t kChunkSize = 3 * 4096; variable 152 auto chunk = SerializedLogChunk{kChunkSize}; in AddChunkWithMessages() 297 auto chunk = SerializedLogChunk{kChunkSize}; in TEST()
|