Home
last modified time | relevance | path

Searched refs:blocks (Results 1 – 25 of 116) sorted by relevance

12345

/system/chre/util/include/chre/util/
Dmemory_pool_impl.h33 blocks()[i].mNextFreeBlockIndex = i + 1; in MemoryPool()
45 mNextFreeBlockIndex = blocks()[blockIndex].mNextFreeBlockIndex; in allocate()
48 return new (&blocks()[blockIndex].mElement) in allocate()
55 uintptr_t baseAddress = reinterpret_cast<uintptr_t>(&blocks()[0].mElement); in deallocate()
58 blocks()[blockIndex].mElement.~ElementType(); in deallocate()
59 blocks()[blockIndex].mNextFreeBlockIndex = mNextFreeBlockIndex; in deallocate()
71 MemoryPool<ElementType, kSize>::blocks() { in blocks() function
Dmemory_pool.h106 MemoryPoolBlock *blocks();
/system/tools/hidl/host_utils/
DFormatter.cpp200 for (const WrappedOutput::Block& subBlock : block.blocks) { in printBlock()
261 CHECK(content.empty() || blocks.empty()); in computeSize()
267 for (auto block = blocks.begin(); block != blocks.end(); ++block) { in computeSize()
268 if (block == blocks.begin()) { in computeSize()
280 CHECK(content.empty() || blocks.empty()); in print()
286 for (auto block = blocks.begin(); block != blocks.end(); ++block) { in print()
287 if (block == blocks.begin()) { in print()
302 std::vector<Block>& blockVec = mCurrentBlock->blocks; in operator <<()
305 if (!last.populated && last.blocks.empty()) { in operator <<()
317 std::vector<Block>& blockVec = mCurrentBlock->blocks; in printUnlessWrapped()
[all …]
/system/core/fs_mgr/libsnapshot/snapuserd/dm-snapshot-merge/
Dsnapuserd_readahead.cpp194 std::vector<uint64_t>& blocks) { in PrepareReadAhead() argument
210 blocks.push_back(cow_op->new_block); in PrepareReadAhead()
231 blocks.push_back(op->new_block); in PrepareReadAhead()
330 std::vector<uint64_t> blocks; in ReadAheadIOStart() local
344 PrepareReadAhead(&source_offset, &num_ops, blocks); in ReadAheadIOStart()
345 linear_blocks = blocks.size(); in ReadAheadIOStart()
363 snapuserd_->SetFinalBlockMerged(blocks.back()); in ReadAheadIOStart()
366 uint64_t new_block = blocks.back(); in ReadAheadIOStart()
367 blocks.pop_back(); in ReadAheadIOStart()
/system/update_engine/payload_generator/
Dmapfile_filesystem.cc98 string blocks = in GetFiles() local
100 size_t dash = blocks.find('-', 0); in GetFiles()
102 if (dash == string::npos && base::StringToUint64(blocks, &block_start)) { in GetFiles()
105 base::StringToUint64(blocks.substr(0, dash), &block_start) && in GetFiles()
106 base::StringToUint64(blocks.substr(dash + 1), &block_end)) { in GetFiles()
Derofs_filesystem_unittest.cc112 ASSERT_GT(delta_generator.compressed_file_info.blocks.size(), 0UL); in TEST_F()
115 for (const auto& block : delta_generator.compressed_file_info.blocks) { in TEST_F()
Dextent_ranges_unittest.cc39 uint64_t blocks = 0; in ExpectRangeEq() local
41 blocks += expected[i]; in ExpectRangeEq()
43 ASSERT_EQ(blocks, ranges.blocks()) << "line: " << line; in ExpectRangeEq()
235 ASSERT_EQ(40U, ranges.blocks()); in TEST()
Dext2_filesystem.cc72 set<uint64_t>* blocks = static_cast<set<uint64_t>*>(priv); in AddMetadataBlocks() local
81 blocks->insert(*blocknr); in AddMetadataBlocks()
324 file.extents = ranges.GetExtentsForBlockCount(ranges.blocks()); in GetFiles()
/system/extras/boottime_tools/io_analysis/
Dcheck_verity.py109 io, verity, total, blocks = get_average_and_std_dev(l)
112 return io, verity, total, blocks
116 io, verity, total, blocks = self.dump_list ("total,", self.reads)
117 io_latency_per_1024KB = io[2] / blocks * (1024 / 4)
118 verity_latency_per_1024KB = verity[2] / blocks * (1024 / 4)
/system/core/init/
Dcompare-bootcharts.py86 blocks = f.read().split('\n\n')
87 for b in blocks:
/system/extras/libfec/
Dfec_verity.cpp250 uint32_t blocks = hashes[levels - i]; in verify_tree() local
251 debug("%u hash blocks on level %u", blocks, levels - i); in verify_tree()
254 hash_data_blocks = blocks; in verify_tree()
256 data_offset += blocks * FEC_BLOCKSIZE; in verify_tree()
276 uint32_t blocks = hashes[levels - i]; in verify_tree() local
278 for (uint32_t j = 0; j < blocks; ++j) { in verify_tree()
316 if (blocks == hash_data_blocks) { in verify_tree()
323 data_offset += blocks * FEC_BLOCKSIZE; in verify_tree()
Dfec_process.cpp63 size_t blocks = fec_div_round_up(count, FEC_BLOCKSIZE); in process() local
65 size_t count_per_thread = fec_div_round_up(blocks, threads) * FEC_BLOCKSIZE; in process()
Davb_utils.cpp128 f->ecc.blocks = fec_div_round_up(f->data_size, FEC_BLOCKSIZE); in parse_avb_image()
129 f->ecc.rounds = fec_div_round_up(f->ecc.blocks, f->ecc.rsn); in parse_avb_image()
/system/extras/perf2cfg/
DREADME.md8 - Basic blocks and assembly instructions are annotated with their contribution
10 - Basic blocks are colored according to their contribution to the method
36 The event to be used for basic blocks hotness analysis
37 (default: cpu-cycles). Basic blocks are color
61 Color basic blocks according to cache-misses events:
/system/keymaster/km_openssl/
Dckdf.cpp46 const uint32_t blocks = div_round_up(output->key_material_size, AES_BLOCK_SIZE); in DEFINE_OPENSSL_OBJECT_POINTER() local
72 for (uint32_t i = 1; i <= blocks; ++i) { in DEFINE_OPENSSL_OBJECT_POINTER()
/system/extras/verity/fec/tests/
Dfec.py36 blocks = int(math.ceil(float(size) / blocksize))
37 rounds = int(math.ceil(float(blocks) / (255 - roots)))
/system/update_engine/lz4diff/
Dlz4diff.cc45 const auto& block_info = dst_file_info.blocks; in StoreDstCompressedFileInfo()
171 for (const auto& block : src_file_info.blocks) { in StoreSrcCompressedFileInfo()
186 const auto& src_block_info = src_file_info.blocks; in Lz4Diff()
187 const auto& dst_block_info = dst_file_info.blocks; in Lz4Diff()
Dlz4diff_format.h64 std::vector<CompressedBlock> blocks; member
/system/core/libsparse/
Dsparse_read.cpp213 SparseFileSource* source, unsigned int blocks, unsigned int block, in process_raw_chunk() argument
216 int64_t len = (int64_t)blocks * s->block_size; in process_raw_chunk()
222 if (chunk_size / s->block_size != blocks) { in process_raw_chunk()
247 SparseFileSource* source, unsigned int blocks, unsigned int block, in process_fill_chunk() argument
251 int64_t len = (int64_t)blocks * s->block_size; in process_fill_chunk()
288 SparseFileSource* source __unused, unsigned int blocks, in process_skip_chunk() argument
295 int64_t len = (int64_t)blocks * s->block_size; in process_skip_chunk()
/system/incremental_delivery/libdataloader/include/
Ddataloader_inline.h134 inline int FilesystemConnector::writeBlocks(DataBlocks blocks) { in writeBlocks() argument
135 return DataLoader_FilesystemConnector_writeBlocks(this, blocks.data(), blocks.size()); in writeBlocks()
/system/core/fs_mgr/libsnapshot/
Dpartition_cow_creator_test.cpp317 void BlocksToExtents(const std::vector<uint64_t>& blocks, in BlocksToExtents() argument
319 for (uint64_t block : blocks) { in BlocksToExtents()
326 std::vector<uint64_t> blocks; in ExtentsToBlocks() local
329 blocks.push_back(extent.start_block() + offset); in ExtentsToBlocks()
332 return blocks; in ExtentsToBlocks()
/system/update_engine/
Dupdate_metadata.proto80 // - DISCARD: Discard the destination dst_extents blocks on the physical medium.
81 // the data read from those blocks is undefined.
97 // Data is packed into blocks on disk, always starting from the beginning
101 // representation of an ordered list of blocks. For example, a file stored
102 // in blocks 9, 10, 11, 2, 18, 12 (in that order) would be stored in
166 DISCARD = 7; // Discard the destination blocks, reading as undefined.
191 // Byte length of src, equal to the number of blocks in src_extents *
193 // pass that external program the number of bytes to read from the blocks we
198 // Byte length of dst, equal to the number of blocks in dst_extents *
216 // Hints to VAB snapshot to skip writing some blocks if these blocks are
[all …]
/system/update_engine/update_engine/
Dupdate_metadata.proto80 // - DISCARD: Discard the destination dst_extents blocks on the physical medium.
81 // the data read from those blocks is undefined.
97 // Data is packed into blocks on disk, always starting from the beginning
101 // representation of an ordered list of blocks. For example, a file stored
102 // in blocks 9, 10, 11, 2, 18, 12 (in that order) would be stored in
166 DISCARD = 7; // Discard the destination blocks, reading as undefined.
191 // Byte length of src, equal to the number of blocks in src_extents *
193 // pass that external program the number of bytes to read from the blocks we
198 // Byte length of dst, equal to the number of blocks in dst_extents *
216 // Hints to VAB snapshot to skip writing some blocks if these blocks are
[all …]
/system/vold/
DEncryptInplace.cpp59 void UpdateProgress(size_t blocks, bool done);
116 void InPlaceEncrypter::UpdateProgress(size_t blocks, bool done) { in UpdateProgress() argument
121 blocks_done_ += blocks; in UpdateProgress()
/system/core/fs_mgr/libfiemap/
DREADME.md30 It is easy to make block devices out of blocks on `/data` when it is not
53 Since `/data/gsi` has encryption disabled, this means the raw blocks will be
68 underlying blocks are no longer owned by the original file. Thus, when mapping

12345