Home
last modified time | relevance | path

Searched refs:begin (Results 1 – 25 of 31) sorted by relevance

12

/bootable/recovery/otautil/
Drangeset.cpp116 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 …]
Dsysutil.cpp243 std::transform(args.cbegin(), args.cend(), result.begin(), in StringVectorToNullTerminatedArray()
/bootable/recovery/tests/unit/
Dfuse_provider_test.cpp72 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()
Dpackage_test.cpp68 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()
Dverifier_test.cpp48 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()
Dcommands_test.cpp443 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()
Dinstall_test.cpp102 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()
Dapplypatch_test.cpp176 std::sort(file_list.begin(), file_list.end()); in FindFilesInDir()
/bootable/recovery/otautil/include/otautil/
Drangeset.h85 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/
Dfuse_install.cpp84 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()
Dwipe_device.cpp147 std::vector<uint8_t>(wipe_package.begin(), wipe_package.end()), nullptr); in ReadWipePackage()
Dinstall.cpp276 "--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()
Dverifier.cpp109 std::copy(sig_der_ptr, sig_der_ptr + sig_der_length, sig_der->begin()); in read_pkcs7()
/bootable/recovery/updater/
Dblockimg.cpp484 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 …]
Ddynamic_partitions.cpp61 std::transform(args.begin(), args.end(), std::back_inserter(ret), in ReadStringArgs()
Dtarget_files.cpp80 tokens.erase(std::remove(tokens.begin(), tokens.end(), ""), tokens.end()); in ParseFstab()
Dupdater_runtime_dynamic_partitions.cpp261 std::transform(partitions.begin(), partitions.end(), std::back_inserter(partition_names), in ListPartitionNamesInGroup()
/bootable/recovery/applypatch/
Dfreecache.cpp116 return std::vector<std::string>(files.begin(), files.end()); in FindExpendableFiles()
223 std::sort(files.begin(), files.end(), comparator); in RemoveFilesInDirectory()
Dimgdiff.cpp309 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/
Dimgdiff_image.h177 std::vector<ImageChunk>::iterator begin() { in begin() function
178 return chunks_.begin(); in begin()
/bootable/recovery/recovery_ui/
Ddevice.cpp59 std::remove_if(g_menu_actions.begin(), g_menu_actions.end(), in RemoveMenuItemForAction()
/bootable/recovery/minadbd/
Dminadbd_services.cpp147 const auto begin = std::chrono::steady_clock::now(); in WaitForSocketClose() local
148 const auto end = begin + timeout; in WaitForSocketClose()
/bootable/recovery/
Drecovery_main.cpp129 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/
Dimgdiff_test.cpp756 std::vector<uint8_t>(content.begin(), content.begin() + 82520)); in TEST()
769 std::vector<uint8_t>(content.begin(), content.begin() + 137880)); in TEST()
Dupdate_simulator_test.cpp181 std::transform(fstab_info.begin(), fstab_info.end(), std::back_inserter(transformed), in TEST_F()

12