Home
last modified time | relevance | path

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

/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()
189 std::sort(ranges_.begin(), ranges_.end()); in SortedRangeSet()
[all …]
Dsysutil.cpp227 std::transform(args.cbegin(), args.cend(), result.begin(), in StringVectorToNullTerminatedArray()
/bootable/recovery/otautil/include/otautil/
Drangeset.h78 std::vector<Range>::iterator begin() { in begin() function
79 return ranges_.begin(); in begin()
86 std::vector<Range>::const_iterator begin() const { in begin() function
87 return ranges_.begin(); in begin()
/bootable/recovery/tests/unit/
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()
115 ASSERT_EQ(entry_name, std::string(extracted.begin(), extracted.end())); in TEST_F()
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()
Dapplypatch_test.cpp176 std::sort(file_list.begin(), file_list.end()); in FindFilesInDir()
/bootable/recovery/install/
Dfuse_sdcard_install.cpp82 std::sort(dirs.begin(), dirs.end()); in BrowseDirectory()
83 std::sort(entries.begin(), entries.end()); in BrowseDirectory()
86 entries.insert(entries.end(), dirs.begin(), dirs.end()); in BrowseDirectory()
Dverifier.cpp109 std::copy(sig_der_ptr, sig_der_ptr + sig_der_length, sig_der->begin()); in read_pkcs7()
Dinstall.cpp266 "--headers=" + std::string(payload_properties.begin(), payload_properties.end()), in SetUpAbUpdateCommands()
/bootable/recovery/updater/
Dblockimg.cpp479 for (const auto& [begin, end] : src) { in ReadBlocks()
480 if (!check_lseek(fd, static_cast<off64_t>(begin) * BLOCKSIZE, SEEK_SET)) { in ReadBlocks()
484 size_t size = (end - begin) * BLOCKSIZE; in ReadBlocks()
499 for (const auto& [begin, end] : tgt) { in WriteBlocks()
500 off64_t offset = static_cast<off64_t>(begin) * BLOCKSIZE; in WriteBlocks()
501 size_t size = (end - begin) * BLOCKSIZE; in WriteBlocks()
1285 for (const auto& [begin, end] : tgt) { in PerformCommandZero()
1286 off64_t offset = static_cast<off64_t>(begin) * BLOCKSIZE; in PerformCommandZero()
1287 size_t size = (end - begin) * BLOCKSIZE; in PerformCommandZero()
1296 for (size_t j = begin; j < end; ++j) { in PerformCommandZero()
[all …]
Ddynamic_partitions.cpp87 std::transform(args.begin(), args.end(), std::back_inserter(ret), in ReadStringArgs()
297 std::transform(partitions.begin(), partitions.end(), std::back_inserter(partition_names), in ListPartitionNamesInGroup()
Dinstall.cpp902 args.insert(args.begin(), "tune2fs"); in Tune2FsFn()
/bootable/recovery/recovery_ui/
Ddevice.cpp58 std::remove_if(g_menu_actions.begin(), g_menu_actions.end(), in RemoveMenuItemForAction()
Dscreen_ui.cpp949 std::sort(intro_frame_names.begin(), intro_frame_names.end()); in LoadAnimation()
950 std::sort(loop_frame_names.begin(), loop_frame_names.end()); in LoadAnimation()
/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()
699 std::sort(temp_entries.begin(), temp_entries.end(), in InitializeChunks()
1024 aligned_tgt_chunks.insert(aligned_tgt_chunks.end(), split_tgt_chunks.begin() + i + 1, in AddSplitImageFromChunkList()
1046 src_content.insert(src_content.end(), src_image.file_content_.begin() + r.first * BLOCK_SIZE, in AddSplitImageFromChunkList()
1047 src_image.file_content_.begin() + end); in AddSplitImageFromChunkList()
Dapplypatch.cpp64 file->data = std::vector<unsigned char>(data.begin(), data.end()); in LoadFileContents()
/bootable/recovery/
Dfsck_unshare_blocks.cpp87 std::transform(args.cbegin(), args.cend(), argv.begin(), in run_e2fsck()
Drecovery_main.cpp123 for (auto it = tokens.begin() + 1; it != tokens.end(); it++) { in get_args()
141 for (auto it = tokens.begin(); it != tokens.end(); it++) { in get_args()
Drecovery.cpp279 std::vector<uint8_t>(wipe_package.begin(), wipe_package.end()), nullptr); in ReadWipePackage()
837 title_lines.insert(std::begin(title_lines), "Android Recovery"); in start_recovery()
/bootable/recovery/applypatch/include/applypatch/
Dimgdiff_image.h177 std::vector<ImageChunk>::iterator begin() { in begin() function
178 return chunks_.begin(); in begin()
/bootable/recovery/tests/component/
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()
Dinstall_test.cpp124 std::vector<uint8_t>(wipe_package.begin(), wipe_package.end()), nullptr); in TEST()
483 std::shuffle(serial_numbers.begin(), serial_numbers.end(), std::default_random_engine()); in TEST()
Dimgdiff_test.cpp757 std::vector<uint8_t>(content.begin(), content.begin() + 82520)); in TEST()
770 std::vector<uint8_t>(content.begin(), content.begin() + 137880)); in TEST()
Dupdater_test.cpp424 hash_tree.insert(hash_tree.end(), updated.begin() + 128 * 4096, updated.end()); in TEST_F()