Home
last modified time | relevance | path

Searched refs:seq_len (Results 1 – 5 of 5) sorted by relevance

/system/core/fs_mgr/libsnapshot/libsnapshot_cow/
Dtest_v3.cpp591 constexpr int seq_len = std::numeric_limits<uint16_t>::max() / sizeof(uint32_t) + 1; in TEST_F() local
592 options.op_count_max = seq_len; in TEST_F()
597 uint32_t sequence[seq_len]; in TEST_F()
598 for (int i = 0; i < seq_len; i++) { in TEST_F()
602 ASSERT_TRUE(writer->AddSequenceData(seq_len, sequence)); in TEST_F()
603 ASSERT_TRUE(writer->AddZeroBlocks(1, seq_len - 1)); in TEST_F()
608 ASSERT_TRUE(writer->AddRawBlocks(seq_len, data.data(), data.size())); in TEST_F()
617 for (int i = 0; i < seq_len; i++) { in TEST_F()
621 ASSERT_EQ(op->new_block, seq_len - i); in TEST_F()
622 if (op->new_block == seq_len) { in TEST_F()
[all …]
Dinspect_cow.cpp224 size_t seq_len = op->data_length / sizeof(uint32_t); in Inspect() local
225 merge_op_blocks.resize(seq_len); in Inspect()
232 for (size_t i = 0; i < seq_len; i++) { in Inspect()
234 if ((i + 1) % 10 == 0 || i + 1 == seq_len) std::cout << "\n"; in Inspect()
Dtest_v2.cpp1254 const int seq_len = std::numeric_limits<uint16_t>::max() / sizeof(uint32_t) + 1; in TEST_F() local
1255 uint32_t sequence[seq_len]; in TEST_F()
1256 for (int i = 0; i < seq_len; i++) { in TEST_F()
1262 ASSERT_TRUE(writer.AddSequenceData(seq_len, sequence)); in TEST_F()
1263 ASSERT_TRUE(writer.AddZeroBlocks(1, seq_len)); in TEST_F()
1272 for (int i = 0; i < seq_len; i++) { in TEST_F()
1276 ASSERT_EQ(op->new_block, seq_len - i); in TEST_F()
1286 const int seq_len = 10; in TEST_F() local
1287 uint32_t sequence[seq_len]; in TEST_F()
1288 for (int i = 0; i < seq_len; i++) { in TEST_F()
[all …]
Dcow_reader.cpp367 size_t seq_len = current_op.data_length / sizeof(uint32_t); in GetSequenceDataV2() local
369 merge_op_blocks->resize(merge_op_blocks->size() + seq_len); in GetSequenceDataV2()
375 for (size_t j = num_seqs; j < num_seqs + seq_len; j++) { in GetSequenceDataV2()
378 num_seqs += seq_len; in GetSequenceDataV2()
/system/core/fs_mgr/libsnapshot/snapuserd/user-space-merge/
Dsnapuserd_test.cpp1001 size_t seq_len = num_blocks_per_op; in CreateV3CowDeviceForVariableBlockSize() local
1002 uint32_t sequence[seq_len]; in CreateV3CowDeviceForVariableBlockSize()
1003 size_t xor_block_start = seq_len * 3; in CreateV3CowDeviceForVariableBlockSize()
1004 for (size_t i = 0; i < seq_len; i++) { in CreateV3CowDeviceForVariableBlockSize()
1007 ASSERT_TRUE(writer->AddSequenceData(seq_len, sequence)); in CreateV3CowDeviceForVariableBlockSize()