/system/update_engine/payload_generator/ |
D | extent_ranges.cc | 41 return a.start_block() + a.num_blocks() >= b.start_block(); in ExtentsOverlapOrTouch() 43 return b.start_block() + b.num_blocks() >= a.start_block(); in ExtentsOverlapOrTouch() 53 return a.start_block() + a.num_blocks() > b.start_block(); in ExtentsOverlap() 55 return b.start_block() + b.num_blocks() > a.start_block(); in ExtentsOverlap() 73 uint64_t end = std::max(first.start_block() + first.num_blocks(), in UnionOverlappingExtents() 74 second.start_block() + second.num_blocks()); in UnionOverlappingExtents() 81 if (extent.start_block() == kSparseHole || extent.num_blocks() == 0) in AddExtent() 93 del_blocks += it->num_blocks(); in AddExtent() 103 blocks_ += extent.num_blocks(); in AddExtent() 115 uint64_t base_end = base.start_block() + base.num_blocks(); in SubtractOverlappingExtents() [all …]
|
D | extent_utils.cc | 44 : extent.start_block() + extent.num_blocks(); in AppendBlockToExtents() 46 extent.set_num_blocks(extent.num_blocks() + 1); in AppendBlockToExtents() 95 static_cast<uint64_t>(e.num_blocks())); in ExtentsToString() 107 if (last_ext.start_block() + last_ext.num_blocks() == in NormalizeExtents() 110 last_ext.set_num_blocks(last_ext.num_blocks() + curr_ext.num_blocks()); in NormalizeExtents() 131 if (scanned_blocks + extent.num_blocks() > block_offset) { in ExtentsSublist() 135 uint64_t new_num_blocks = extent.num_blocks(); in ExtentsSublist() 147 scanned_blocks += extent.num_blocks(); in ExtentsSublist() 155 return a.start_block() == b.start_block() && a.num_blocks() == b.num_blocks(); in operator ==()
|
D | deflate_utils.cc | 83 size_t num_blocks = 0; in RealignSplittedFiles() local 91 num_blocks += utils::BlocksInExtents(in_file.extents); in RealignSplittedFiles() 95 TEST_AND_RETURN_FALSE(utils::BlocksInExtents(file.extents) == num_blocks); in RealignSplittedFiles() 102 ((extent.start_block() + extent.num_blocks()) * kBlockSize); in IsBitExtentInExtent() 136 last_end_block = base_ext.start_block() + base_ext.num_blocks(); in ShiftExtentsOverExtents() 140 base_ext.start_block() + base_ext.num_blocks()) { in ShiftExtentsOverExtents() 141 if (over_ext->start_block() + over_ext->num_blocks() <= in ShiftExtentsOverExtents() 142 base_ext.start_block() + base_ext.num_blocks()) { in ShiftExtentsOverExtents() 147 auto new_blocks = base_ext.start_block() + base_ext.num_blocks() - in ShiftExtentsOverExtents() 152 over_ext->num_blocks() - new_blocks)}; in ShiftExtentsOverExtents() [all …]
|
D | graph_utils_unittest.cc | 52 EXPECT_EQ(3U, extents[0].num_blocks()); in TEST() 54 EXPECT_EQ(1U, extents[1].num_blocks()); in TEST() 67 EXPECT_EQ(1U, extent.num_blocks()); in TEST() 74 EXPECT_EQ(2U, extent.num_blocks()); in TEST() 82 EXPECT_EQ(2U, extent.num_blocks()); in TEST()
|
D | inplace_generator_unittest.cc | 65 vector<Extent> VectOfExt(uint64_t start_block, uint64_t num_blocks) { in VectOfExt() argument 66 return vector<Extent>(1, ExtentForRange(start_block, num_blocks)); in VectOfExt() 170 EXPECT_EQ(1U, op.src_extents(0).num_blocks()); in TEST_F() 172 EXPECT_EQ(1U, op.src_extents(1).num_blocks()); in TEST_F() 174 EXPECT_EQ(1U, op.src_extents(2).num_blocks()); in TEST_F() 176 EXPECT_EQ(4U, op.src_extents(3).num_blocks()); in TEST_F() 178 EXPECT_EQ(1U, op.src_extents(4).num_blocks()); in TEST_F() 180 EXPECT_EQ(1U, op.src_extents(5).num_blocks()); in TEST_F() 182 EXPECT_EQ(2U, op.src_extents(6).num_blocks()); in TEST_F() 259 EXPECT_EQ(2U, graph.back().aop.op.dst_extents(0).num_blocks()); in TEST_F() [all …]
|
D | ab_generator.cc | 122 uint64_t blocks_left = dst_ext.num_blocks(); in SplitSourceCopy() 124 if (curr_src_ext.num_blocks() <= blocks_left) { in SplitSourceCopy() 126 blocks_left -= curr_src_ext.num_blocks(); in SplitSourceCopy() 140 curr_src_ext.set_num_blocks(curr_src_ext.num_blocks() - blocks_left); in SplitSourceCopy() 142 blocks_left -= first_ext.num_blocks(); in SplitSourceCopy() 176 uint64_t data_size = dst_ext.num_blocks() * kBlockSize; in SplitAReplaceOp() 218 last_aop.op.dst_extents(last_dst_idx).num_blocks(); in MergeOperations() 221 last_aop.op.dst_extents(last_dst_idx).num_blocks() + in MergeOperations() 222 curr_aop.op.dst_extents(0).num_blocks(); in MergeOperations()
|
D | mapfile_filesystem.cc | 57 off_t num_blocks = file_size / kMapfileBlockSize; in CreateFromFile() local 64 return base::WrapUnique(new MapfileFilesystem(mapfile_filename, num_blocks)); in CreateFromFile() 68 off_t num_blocks) in MapfileFilesystem() argument 69 : mapfile_filename_(mapfile_filename), num_blocks_(num_blocks) {} in MapfileFilesystem()
|
D | boot_img_filesystem_unittest.cc | 69 EXPECT_EQ(1u, files[0].extents[0].num_blocks()); in TEST_F() 75 EXPECT_EQ(2u, files[1].extents[0].num_blocks()); in TEST_F() 107 EXPECT_EQ(2u, files[0].extents[0].num_blocks()); in TEST_F() 113 EXPECT_EQ(1u, files[1].extents[0].num_blocks()); in TEST_F()
|
D | squashfs_filesystem_unittest.cc | 57 EXPECT_LE(extent.start_block() + extent.num_blocks(), total_blocks); in ExpectBlocksInRange() 102 return a.extents[0].start_block() + a.extents[0].num_blocks() > in CheckSquashfs() 190 EXPECT_EQ(files[0].extents[0].num_blocks(), 1u); in TEST_F() 204 EXPECT_EQ(files[0].extents[0].num_blocks(), 1u); in TEST_F() 205 EXPECT_EQ(files[1].extents[0].num_blocks(), 2u); in TEST_F() 220 EXPECT_EQ(files[0].extents[0].num_blocks(), 2u); in TEST_F() 235 EXPECT_EQ(files[0].extents[0].num_blocks(), 2u); in TEST_F()
|
D | payload_generation_config_android.cc | 78 if (part.verity.hash_tree_extent.num_blocks() != 0) { in VerifyVerityConfig() 84 part.verity.hash_tree_data_extent.num_blocks() * block_size; in VerifyVerityConfig() 87 tree_size == part.verity.hash_tree_extent.num_blocks() * block_size); in VerifyVerityConfig() 114 if (part.verity.fec_extent.num_blocks() != 0) { in VerifyVerityConfig() 118 part.verity.fec_data_extent.num_blocks() * block_size, in VerifyVerityConfig() 120 part.verity.fec_extent.num_blocks() * block_size, in VerifyVerityConfig()
|
D | delta_diff_utils.cc | 98 uint64_t num_blocks = (*extents)[idx].num_blocks(); in ProcessExtentBlockRange() local 102 if (range_size == num_blocks) { in ProcessExtentBlockRange() 105 } else if (range_end == num_blocks) { in ProcessExtentBlockRange() 107 (*extents)[idx].set_num_blocks(num_blocks - range_size); in ProcessExtentBlockRange() 112 (*extents)[idx].set_num_blocks(num_blocks - range_size); in ProcessExtentBlockRange() 118 e.set_num_blocks(num_blocks - range_end); in ProcessExtentBlockRange() 122 } else if (range_end == num_blocks) { in ProcessExtentBlockRange() 151 uint64_t src_num_blocks = (*src_extents)[src_idx].num_blocks(); in RemoveIdenticalBlockRanges() 152 uint64_t dst_num_blocks = (*dst_extents)[dst_idx].num_blocks(); in RemoveIdenticalBlockRanges() 548 uint64_t num_blocks = std::min(old_num_blocks, new_num_blocks); in DeltaMovedAndZeroBlocks() local [all …]
|
D | extent_utils.h | 42 ret.resize(ret.size() + extent.num_blocks(), kSparseHole); in ExpandExtents() 45 block < (extent.start_block() + extent.num_blocks()); in ExpandExtents()
|
D | delta_diff_utils_unittest.cc | 60 std::min(static_cast<uint64_t>(extent.num_blocks()) * block_size, in WriteExtents() 64 offset += extent.num_blocks() * block_size; in WriteExtents() 92 size_t num_blocks = part.size / block_size; in InitializePartitionWithUniqueBlocks() local 94 for (size_t i = 0; i < num_blocks; ++i) { in InitializePartitionWithUniqueBlocks() 253 uint64_t num_blocks = utils::BlocksInExtents(old_extents); in TEST_F() local 254 EXPECT_EQ(num_blocks, utils::BlocksInExtents(new_extents)); in TEST_F() 259 for (uint64_t i = 0; i < num_blocks; ++i) { in TEST_F() 291 num_blocks = utils::BlocksInExtents(old_extents); in TEST_F() 293 EXPECT_EQ(num_blocks * kBlockSize, op.src_length()); in TEST_F() 294 EXPECT_EQ(num_blocks * kBlockSize, op.dst_length()); in TEST_F() [all …]
|
D | block_mapping.cc | 60 size_t num_blocks, in AddManyDiskBlocks() argument 63 block_ids->resize(num_blocks); in AddManyDiskBlocks() 64 for (size_t block = 0; block < num_blocks; block++) { in AddManyDiskBlocks()
|
D | full_update_generator.cc | 161 size_t num_blocks = in GenerateOperations() local 171 dst_extent->set_num_blocks(num_blocks); in GenerateOperations() 177 num_blocks * config.block_size, in GenerateOperations()
|
D | extent_utils_unittest.cc | 47 EXPECT_EQ(1U, extents[0].num_blocks()); in TEST() 49 EXPECT_EQ(1U, extents[1].num_blocks()); in TEST() 51 EXPECT_EQ(2U, extents[2].num_blocks()); in TEST()
|
/system/update_engine/scripts/ |
D | payload_info.py | 139 num_blocks = sum([ext.num_blocks for ext in extents]) 141 '(%s,%s)' % (ext.start_block, ext.num_blocks) for ext in extents) 145 block_plural = 's' if num_blocks > 1 else '' 147 (name, len(extents), extent_plural, num_blocks, block_plural)) 181 read_blocks += sum([ext.num_blocks for ext in curr_op.src_extents]) 182 written_blocks += sum([ext.num_blocks for ext in curr_op.dst_extents]) 186 last_ext.start_block + last_ext.num_blocks):
|
D | blockdiff.py | 51 num_blocks = extent_start = extent_length = 0 67 extent_start = num_blocks 79 num_blocks += 1
|
/system/update_engine/payload_consumer/ |
D | extent_reader.cc | 44 total_size_ += extent.num_blocks() * block_size_; in Init() 75 cur_extent_->num_blocks() * block_size_ - cur_extent_bytes_read_; in Read() 92 if (cur_extent_bytes_read_ == cur_extent_->num_blocks() * block_size_) { in Read()
|
D | extent_writer.cc | 40 cur_extent_->num_blocks() * block_size_ - extent_bytes_written_; in Write() 59 CHECK_EQ(extent_bytes_written_, cur_extent_->num_blocks() * block_size_); in Write()
|
/system/nfc/src/nfc/tags/ |
D | ce_t3t.cc | 216 for (i = 0; i < p_cb->cur_cmd.num_blocks; i++) { in ce_t3t_handle_update_cmd() 240 if (p_cb->cur_cmd.num_blocks > p_cb->ndef_info.nbw) { in ce_t3t_handle_update_cmd() 243 p_cb->cur_cmd.num_blocks, p_cb->ndef_info.nbw); in ce_t3t_handle_update_cmd() 396 UINT8_TO_STREAM(p_dst, p_cb->cur_cmd.num_blocks); in ce_t3t_handle_check_cmd() 398 for (i = 0; i < p_cb->cur_cmd.num_blocks; i++) { in ce_t3t_handle_check_cmd() 416 if (p_cb->cur_cmd.num_blocks > p_cb->ndef_info.nbr) { in ce_t3t_handle_check_cmd() 420 p_cb->cur_cmd.num_blocks, p_cb->ndef_info.nbr); in ce_t3t_handle_check_cmd() 708 STREAM_TO_UINT8(p_cb->cur_cmd.num_blocks, p); in ce_t3t_data_cback() 711 for (i = 0; i < p_cb->cur_cmd.num_blocks; i++) { in ce_t3t_data_cback() 769 if (remaining < p_cb->cur_cmd.num_blocks * T3T_MSG_BLOCKSIZE) { in ce_t3t_data_cback() [all …]
|
/system/nfc/src/nfa/rw/ |
D | nfa_rw_api.cc | 715 tNFA_STATUS NFA_RwT3tRead(uint8_t num_blocks, tNFA_T3T_BLOCK_DESC* t3t_blocks) { in NFA_RwT3tRead() argument 720 << StringPrintf("num_blocks to read: %i", num_blocks); in NFA_RwT3tRead() 723 if ((num_blocks == 0) || (t3t_blocks == nullptr)) in NFA_RwT3tRead() 727 sizeof(tNFA_RW_OPERATION) + (num_blocks * sizeof(tNFA_T3T_BLOCK_DESC)))); in NFA_RwT3tRead() 736 p_msg->params.t3t_read.num_blocks = num_blocks; in NFA_RwT3tRead() 741 (num_blocks * sizeof(tNFA_T3T_BLOCK_DESC))); in NFA_RwT3tRead() 766 tNFA_STATUS NFA_RwT3tWrite(uint8_t num_blocks, tNFA_T3T_BLOCK_DESC* t3t_blocks, in NFA_RwT3tWrite() argument 772 << StringPrintf("num_blocks to write: %i", num_blocks); in NFA_RwT3tWrite() 775 if ((num_blocks == 0) || (t3t_blocks == nullptr) | (p_data == nullptr)) in NFA_RwT3tWrite() 780 (num_blocks * (sizeof(tNFA_T3T_BLOCK_DESC) + 16)))); in NFA_RwT3tWrite() [all …]
|
/system/keymaster/km_openssl/ |
D | hkdf.cpp | 60 const size_t num_blocks = (output_len + digest_size_ - 1) / digest_size_; in GenerateKey() local 61 if (num_blocks >= 256u) in GenerateKey() 73 for (size_t i = 0; i < num_blocks; i++) { in GenerateKey()
|
D | iso18033kdf.cpp | 40 size_t num_blocks = (output_len + digest_size_ - 1) / digest_size_; in GenerateKey() local 44 for (size_t block = 0; block < num_blocks; block++) { in GenerateKey()
|
/system/update_engine/scripts/update_payload/ |
D | applier.py | 117 read_length = min(max_length, ex.num_blocks * block_size) 151 write_length = min(data_length, ex.num_blocks * block_size) 194 num_bytes = ex.num_blocks * block_size 274 num_blocks = ex.num_blocks 275 count = num_blocks * block_size 282 if (start_block + num_blocks) * block_size > part_size: 353 part_file.write('\0' * (ex.num_blocks * block_size)) 396 length += ex.num_blocks * self.block_size
|