Searched refs:random_buffer (Results 1 – 2 of 2) sorted by relevance
/system/core/fs_mgr/libsnapshot/snapuserd/user-space-merge/ |
D | snapuserd_test.cpp | 118 std::unique_ptr<uint8_t[]> random_buffer = std::make_unique<uint8_t[]>(1_MiB); in CreateBaseDevice() local 121 ASSERT_EQ(ReadFullyAtOffset(rnd_fd, (char*)random_buffer.get(), 1_MiB, 0), true); in CreateBaseDevice() 122 ASSERT_EQ(android::base::WriteFully(base_fd_, random_buffer.get(), 1_MiB), true); in CreateBaseDevice() 1035 std::string random_buffer; in CreateV3CowDeviceForVariableBlockSize() local 1036 random_buffer.resize(total_random_data_blocks * BLOCK_SZ, '\0'); in CreateV3CowDeviceForVariableBlockSize() 1038 android::base::ReadFullyAtOffset(rnd_fd, random_buffer.data(), random_buffer.size(), 0), in CreateV3CowDeviceForVariableBlockSize() 1041 ASSERT_TRUE(writer->AddRawBlocks(source_block, random_buffer.data(), random_buffer.size())); in CreateV3CowDeviceForVariableBlockSize() 1086 std::memcpy((char*)orig_buffer_.get() + offset, random_buffer.c_str(), random_buffer.size()); in CreateV3CowDeviceForVariableBlockSize() 1087 offset += random_buffer.size(); in CreateV3CowDeviceForVariableBlockSize() 1376 std::string random_buffer; in SetUpV3Cow() local [all …]
|
/system/core/fs_mgr/libsnapshot/libsnapshot_cow/ |
D | test_v3.cpp | 867 std::string random_buffer; in TEST_P() local 868 random_buffer.resize(65536, '\0'); in TEST_P() 869 ASSERT_EQ(android::base::ReadFullyAtOffset(rnd_fd, random_buffer.data(), 65536, 0), true); in TEST_P() 870 ASSERT_TRUE(writer.AddRawBlocks(12000, random_buffer.data(), 65536)); in TEST_P() 924 random_buffer.resize(options.block_size); in TEST_P() 927 ASSERT_EQ(sink, random_buffer); in TEST_P()
|