/bootable/recovery/otautil/ |
D | rangeset.cpp | 116 std::fill_n(blocks_per_group.begin(), blocks_ % groups, mean + 1); in Split() 151 for (const auto& [begin, end] : ranges_) { in ToString() 152 result += android::base::StringPrintf(",%zu,%zu", begin, end); in ToString() 162 for (const auto& [begin, end] : ranges_) { in GetBlockNumber() 163 if (idx < end - begin) { in GetBlockNumber() 164 return begin + idx; in GetBlockNumber() 166 idx -= (end - begin); in GetBlockNumber() 176 for (const auto& [begin, end] : ranges_) { in Overlaps() 179 if (!(other_begin >= end || begin >= other_end)) { in Overlaps() 241 std::sort(ranges_.begin(), ranges_.end()); in SortedRangeSet() [all …]
|
D | sysutil.cpp | 243 std::transform(args.cbegin(), args.cend(), result.begin(), in StringVectorToNullTerminatedArray()
|
/bootable/recovery/tests/unit/ |
D | fuse_provider_test.cpp | 72 ASSERT_EQ(std::vector<uint8_t>(content.begin() + 4096, content.begin() + 6096), result); in TEST() 76 ASSERT_EQ(std::vector<uint8_t>(content.begin(), content.begin() + 20000), result); in TEST() 103 ASSERT_EQ(std::vector<uint8_t>(expected.begin(), expected.end()), result); in TEST()
|
D | package_test.cpp | 68 ASSERT_EQ(file_content_, std::string(buffer.begin(), buffer.end())); in TEST_F() 71 ASSERT_EQ(file_content_.substr(10), std::string(buffer.begin(), buffer.end() - 10)); in TEST_F() 114 ASSERT_EQ(entry_name, std::string(extracted.begin(), extracted.end())); in TEST_F()
|
D | verifier_test.cpp | 48 std::vector<uint8_t>(testkey_string.begin(), testkey_string.end()), cert)); in LoadKeyFromFile() 54 Package::CreateMemoryPackage(std::vector<uint8_t>(content.begin(), content.end()), nullptr); in VerifyFile() 103 std::vector<uint8_t>(testkey_string.begin(), testkey_string.end()), &cert)); in TEST()
|
D | commands_test.cpp | 443 std::fill_n(block_buffer->begin(), src.blocks() * kBlockSize, 'a'); in TEST() 462 std::fill_n(block_buffer->begin(), src.blocks() * kBlockSize, 'a'); in TEST() 466 std::fill_n(stash_buffer->begin(), kBlockSize, 'b'); in TEST()
|
D | install_test.cpp | 102 std::vector<uint8_t>(wipe_package.begin(), wipe_package.end()), nullptr); in TEST() 402 std::shuffle(serial_numbers.begin(), serial_numbers.end(), std::default_random_engine()); in TEST()
|
D | applypatch_test.cpp | 176 std::sort(file_list.begin(), file_list.end()); in FindFilesInDir()
|
/bootable/recovery/otautil/include/otautil/ |
D | rangeset.h | 85 std::vector<Range>::iterator begin() { in begin() function 86 return ranges_.begin(); in begin() 93 std::vector<Range>::const_iterator begin() const { in begin() function 94 return ranges_.begin(); in begin()
|
/bootable/recovery/install/ |
D | fuse_install.cpp | 84 std::sort(dirs.begin(), dirs.end()); in BrowseDirectory() 85 std::sort(entries.begin(), entries.end()); in BrowseDirectory() 88 entries.insert(entries.end(), dirs.begin(), dirs.end()); in BrowseDirectory()
|
D | wipe_device.cpp | 147 std::vector<uint8_t>(wipe_package.begin(), wipe_package.end()), nullptr); in ReadWipePackage()
|
D | install.cpp | 276 "--headers=" + std::string(payload_properties.begin(), payload_properties.end()), in SetUpAbUpdateCommands() 733 return std::find(list.begin(), list.end(), target_token) != list.end(); in isInStringList()
|
D | verifier.cpp | 109 std::copy(sig_der_ptr, sig_der_ptr + sig_der_length, sig_der->begin()); in read_pkcs7()
|
/bootable/recovery/updater/ |
D | blockimg.cpp | 484 for (const auto& [begin, end] : src) { in ReadBlocks() 485 if (!check_lseek(fd, static_cast<off64_t>(begin) * BLOCKSIZE, SEEK_SET)) { in ReadBlocks() 489 size_t size = (end - begin) * BLOCKSIZE; in ReadBlocks() 504 for (const auto& [begin, end] : tgt) { in WriteBlocks() 505 off64_t offset = static_cast<off64_t>(begin) * BLOCKSIZE; in WriteBlocks() 506 size_t size = (end - begin) * BLOCKSIZE; in WriteBlocks() 1290 for (const auto& [begin, end] : tgt) { in PerformCommandZero() 1291 off64_t offset = static_cast<off64_t>(begin) * BLOCKSIZE; in PerformCommandZero() 1292 size_t size = (end - begin) * BLOCKSIZE; in PerformCommandZero() 1301 for (size_t j = begin; j < end; ++j) { in PerformCommandZero() [all …]
|
D | dynamic_partitions.cpp | 61 std::transform(args.begin(), args.end(), std::back_inserter(ret), in ReadStringArgs()
|
D | target_files.cpp | 80 tokens.erase(std::remove(tokens.begin(), tokens.end(), ""), tokens.end()); in ParseFstab()
|
D | updater_runtime_dynamic_partitions.cpp | 261 std::transform(partitions.begin(), partitions.end(), std::back_inserter(partition_names), in ListPartitionNamesInGroup()
|
/bootable/recovery/applypatch/ |
D | freecache.cpp | 116 return std::vector<std::string>(files.begin(), files.end()); in FindExpendableFiles() 223 std::sort(files.begin(), files.end(), comparator); in RemoveFilesInDirectory()
|
D | imgdiff.cpp | 309 uncompressed_data_.insert(uncompressed_data_.end(), bonus_data.begin(), bonus_data.end()); in SetBonusData() 609 chunks_.erase(chunks_.begin() + merged_last, chunks_.end()); in MergeAdjacentNormalChunks() 698 std::sort(temp_entries.begin(), temp_entries.end(), in InitializeChunks() 1049 aligned_tgt_chunks.insert(aligned_tgt_chunks.end(), split_tgt_chunks.begin() + i + 1, in AddSplitImageFromChunkList() 1072 src_image.file_content_.begin() + r.first * BLOCK_SIZE, in AddSplitImageFromChunkList() 1073 src_image.file_content_.begin() + end); in AddSplitImageFromChunkList()
|
/bootable/recovery/applypatch/include/applypatch/ |
D | imgdiff_image.h | 177 std::vector<ImageChunk>::iterator begin() { in begin() function 178 return chunks_.begin(); in begin()
|
/bootable/recovery/recovery_ui/ |
D | device.cpp | 59 std::remove_if(g_menu_actions.begin(), g_menu_actions.end(), in RemoveMenuItemForAction()
|
/bootable/recovery/minadbd/ |
D | minadbd_services.cpp | 147 const auto begin = std::chrono::steady_clock::now(); in WaitForSocketClose() local 148 const auto end = begin + timeout; in WaitForSocketClose()
|
/bootable/recovery/ |
D | recovery_main.cpp | 129 for (auto it = tokens.begin() + 1; it != tokens.end(); it++) { in get_args() 147 for (auto it = tokens.begin(); it != tokens.end(); it++) { in get_args()
|
/bootable/recovery/tests/unit/host/ |
D | imgdiff_test.cpp | 756 std::vector<uint8_t>(content.begin(), content.begin() + 82520)); in TEST() 769 std::vector<uint8_t>(content.begin(), content.begin() + 137880)); in TEST()
|
D | update_simulator_test.cpp | 181 std::transform(fstab_info.begin(), fstab_info.end(), std::back_inserter(transformed), in TEST_F()
|