/system/update_engine/payload_consumer/ |
D | extent_writer_unittest.cc | 43 const size_t kBlockSize = 4096; variable 77 EXPECT_TRUE(direct_writer.Init(fd_, extents, kBlockSize)); in TEST_F() 81 EXPECT_EQ(static_cast<off_t>(kBlockSize + bytes.size()), in TEST_F() 87 brillo::Blob expected_file(kBlockSize); in TEST_F() 101 EXPECT_TRUE(direct_writer.Init(fd_, extents, kBlockSize)); in TEST_F() 107 WriteAlignedExtents(kBlockSize * 3, kBlockSize * 3); in TEST_F() 115 WriteAlignedExtents(kBlockSize * 2, kBlockSize / 2); in TEST_F() 132 brillo::Blob data(kBlockSize * 3); in WriteAlignedExtents() 136 EXPECT_TRUE(direct_writer.Init(fd_, extents, kBlockSize)); in WriteAlignedExtents() 157 data.begin() + kBlockSize, in WriteAlignedExtents() [all …]
|
D | bzip_extent_writer_unittest.cc | 38 const uint32_t kBlockSize = 4096; variable 75 EXPECT_TRUE(bzip_writer.Init(fd_, extents, kBlockSize)); in TEST_F() 108 extent.set_num_blocks((kDecompressedLength + kBlockSize - 1) / kBlockSize); in TEST_F() 113 EXPECT_TRUE(bzip_writer.Init(fd_, extents, kBlockSize)); in TEST_F()
|
D | delta_performer_integration_test.cc | 127 EXPECT_EQ(0U, image_size % kBlockSize); in CompareFilesByBlock() 135 for (size_t i = 0; i < image_size; i += kBlockSize) { in CompareFilesByBlock() 136 EXPECT_EQ(0U, i % kBlockSize); in CompareFilesByBlock() 137 brillo::Blob a_sub(&a_data[i], &a_data[i + kBlockSize]); in CompareFilesByBlock() 138 brillo::Blob b_sub(&b_data[i], &b_data[i + kBlockSize]); in CompareFilesByBlock() 139 EXPECT_TRUE(a_sub == b_sub) << "Block " << (i/kBlockSize) << " differs"; in CompareFilesByBlock() 343 while (hardtocompress.size() < 3 * kBlockSize) { in GenerateDeltaFile() 445 while (hardtocompress.size() < 3 * kBlockSize) { in GenerateDeltaFile() 984 DoSmallImageTest(false, false, false, kBlockSize, kSignatureGenerator, in TEST()
|
/system/connectivity/shill/ |
D | crypto_des_cbc.cc | 31 const unsigned int CryptoDESCBC::kBlockSize = 8; member in shill::CryptoDESCBC 49 CHECK_EQ(kBlockSize, key_.size()); in Decrypt() 50 CHECK_EQ(kBlockSize, iv_.size()); in Decrypt() 67 if (data.empty() || (data.size() % kBlockSize != 0)) { in Decrypt() 106 if (matter.size() < 2 * kBlockSize) { in LoadKeyMatter() 108 << 2 * kBlockSize; in LoadKeyMatter() 112 matter.begin() + (matter.size() - 2 * kBlockSize); in LoadKeyMatter() 113 key_.assign(matter_start + kBlockSize, matter_start + 2 * kBlockSize); in LoadKeyMatter() 114 iv_.assign(matter_start, matter_start + kBlockSize); in LoadKeyMatter()
|
D | crypto_des_cbc.h | 60 static const unsigned int kBlockSize; variable
|
/system/update_engine/payload_generator/ |
D | ab_generator_unittest.cc | 63 const size_t part_size = part_num_blocks * kBlockSize; in TestSplitReplaceOrReplaceBzOperation() 78 const size_t op_ex1_offset = op_ex1_start_block * kBlockSize; in TestSplitReplaceOrReplaceBzOperation() 79 const size_t op_ex1_size = op_ex1_num_blocks * kBlockSize; in TestSplitReplaceOrReplaceBzOperation() 80 const size_t op_ex2_offset = op_ex2_start_block * kBlockSize; in TestSplitReplaceOrReplaceBzOperation() 81 const size_t op_ex2_size = op_ex2_num_blocks * kBlockSize; in TestSplitReplaceOrReplaceBzOperation() 216 const size_t part_size = part_num_blocks * kBlockSize; in TestMergeReplaceOrReplaceBzOperations() 233 const size_t total_op_size = total_op_num_blocks * kBlockSize; in TestMergeReplaceOrReplaceBzOperations() 237 const size_t first_op_size = first_op_num_blocks * kBlockSize; in TestMergeReplaceOrReplaceBzOperations() 258 const size_t second_op_size = second_op_num_blocks * kBlockSize; in TestMergeReplaceOrReplaceBzOperations() 305 EXPECT_EQ(total_op_num_blocks * kBlockSize, new_op.dst_length()); in TestMergeReplaceOrReplaceBzOperations() [all …]
|
D | delta_diff_utils_unittest.cc | 156 size_t block_size_{kBlockSize}; 172 EXPECT_TRUE(WriteExtents(old_part_.path, old_extents, kBlockSize, data_blob)); in TEST_F() 173 EXPECT_TRUE(WriteExtents(new_part_.path, new_extents, kBlockSize, data_blob)); in TEST_F() 192 EXPECT_EQ(kBlockSize, op.src_length()); in TEST_F() 194 EXPECT_EQ(kBlockSize, op.dst_length()); in TEST_F() 228 file_data.resize(file_data.size() + kBlockSize, 'a' + i); in TEST_F() 231 EXPECT_TRUE(WriteExtents(old_part_.path, old_extents, kBlockSize, file_data)); in TEST_F() 232 EXPECT_TRUE(WriteExtents(new_part_.path, new_extents, kBlockSize, file_data)); in TEST_F() 263 EXPECT_EQ(num_blocks * kBlockSize, op.src_length()); in TEST_F() 264 EXPECT_EQ(num_blocks * kBlockSize, op.dst_length()); in TEST_F() [all …]
|
D | delta_diff_utils.cc | 145 removed_bytes += min_num_blocks * kBlockSize; in RemoveIdenticalBlockRanges() 150 if (do_remove && (nonfull_block_bytes = total_bytes % kBlockSize)) in RemoveIdenticalBlockRanges() 151 removed_bytes -= kBlockSize - nonfull_block_bytes; in RemoveIdenticalBlockRanges() 250 ExtentForRange(0, new_part.size / kBlockSize)}; in DeltaReadPartition() 257 old_unvisited.push_back(ExtentForRange(0, old_part.size / kBlockSize)); in DeltaReadPartition() 294 old_num_blocks * kBlockSize, in DeltaMovedAndZeroBlocks() 295 new_num_blocks * kBlockSize, in DeltaMovedAndZeroBlocks() 296 kBlockSize, in DeltaMovedAndZeroBlocks() 561 blocks_to_read * kBlockSize > kMaxBsdiffDestinationSize) { in ReadExtentsToDiff() 563 << blocks_to_read * kBlockSize << " bytes"; in ReadExtentsToDiff() [all …]
|
D | ab_generator.cc | 142 new_op.set_src_length(dst_ext.num_blocks() * kBlockSize); in SplitSourceCopy() 143 new_op.set_dst_length(dst_ext.num_blocks() * kBlockSize); in SplitSourceCopy() 172 uint32_t data_size = dst_ext.num_blocks() * kBlockSize; in SplitAReplaceOp() 283 kBlockSize)); in AddDataAndSetType() 312 : BlocksInExtents(aop.op.src_extents()) * kBlockSize; in AddSourceHash() 314 source_part_path, src_extents, &src_data, src_length, kBlockSize)); in AddSourceHash()
|
D | payload_generation_config.cc | 63 TEST_AND_RETURN_FALSE(size % kBlockSize == 0); in OpenFilesystem() 66 kBlockSize, in OpenFilesystem() 67 size / kBlockSize); in OpenFilesystem()
|
D | delta_diff_generator.h | 26 extern const size_t kBlockSize;
|
D | delta_diff_generator.cc | 51 const size_t kBlockSize = 4096; // bytes variable
|
D | payload_signer.cc | 232 dummy_extent->set_num_blocks((signature_blob_length + kBlockSize - 1) / in AddSignatureToManifest() 233 kBlockSize); in AddSignatureToManifest()
|
D | generate_delta_main.cc | 480 payload_config.block_size = kBlockSize; in Main()
|
D | inplace_generator.cc | 181 graph_utils::EdgeWeight(*graph, edge) * kBlockSize); in CutEdges()
|