Home
last modified time | relevance | path

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

12

/bootable/recovery/edify/
Dyydefs.h22 int start, end; member
29 (Current).end = YYRHSLOC(Rhs, N).end; \
32 (Current).end = YYRHSLOC(Rhs, 0).end; \
Dparser.yy47 Expr* e = new Expr(fn, "(operator)", loc.start, loc.end);
92 $$ = new Expr(Literal, $1, @$.start, @$.end);
94 | '(' expr ')' { $$ = $2; $$->start=@$.start; $$->end=@$.end; }
95 | expr ';' { $$ = $1; $$->start=@1.start; $$->end=@1.end; }
97 | error ';' expr { $$ = $3; $$->start=@$.start; $$->end=@$.end; }
113 $$ = new Expr(fn, $1, @$.start, @$.end);
Dlexer.ll31 #define ADVANCE do {yylloc.start=gPos; yylloc.end=gPos+yyleng; \
59 yylloc.end = gPos;
/bootable/recovery/otautil/
Drangeset.cpp151 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()
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()
256 std::copy(rs.begin(), rs.end(), std::back_inserter(temp)); in Insert()
257 std::sort(temp.begin(), temp.end()); in Insert()
[all …]
Dsysutil.cpp83 uint64_t start, end; in ParseBlockMapFile() local
84 if (sscanf(line.c_str(), "%" SCNu64 "%" SCNu64, &start, &end) != 2) { in ParseBlockMapFile()
88 uint64_t range_blocks = end - start; in ParseBlockMapFile()
89 if (end <= start || range_blocks > remaining_blocks) { in ParseBlockMapFile()
90 LOG(ERROR) << "Invalid range: " << start << " " << end; in ParseBlockMapFile()
93 ranges.PushBack({ start, end }); in ParseBlockMapFile()
157 for (const auto& [start, end] : block_map_data.block_ranges()) { in MapBlockFile()
158 size_t range_size = (end - start) * blksize; in MapBlockFile()
162 PLOG(ERROR) << "failed to map range " << start << ": " << end; in MapBlockFile()
/bootable/recovery/otautil/include/otautil/
Drangeset.h89 std::vector<Range>::iterator end() { in end() function
90 return ranges_.end(); in end()
97 std::vector<Range>::const_iterator end() const { in end() function
98 return ranges_.end(); in end()
/bootable/recovery/updater/
Dbuild_info.cpp97 if (ro_product_props.find(key) != ro_product_props.end()) { in GetProperty()
102 if (auto entry = build_props_.find(resolved_key); entry != build_props_.end()) { in GetProperty()
123 if (entry == build_props_.end()) { in GetProperty()
133 if (entry == blockdev_map_.end()) { in FindBlockDeviceName()
Dsimulator_runtime.cpp47 mounted_location != mounted_partitions_.end() && mounted_location->second != location) { in Mount()
57 return mounted_partitions_.find(mount_point) != mounted_partitions_.end(); in IsMounted()
126 if (commands.find(tokens[0]) == commands.end()) { in UpdateDynamicPartitions()
Dtarget_files.cpp80 tokens.erase(std::remove(tokens.begin(), tokens.end(), ""), tokens.end()); in ParseFstab()
221 if (auto it = props_map->find(key); it != props_map->end() && it->second != value) { in GetBuildProps()
239 if (fstab_info.fs_type == "emmc" || misc_info_.find("extfs_sparse_flag") == misc_info_.end()) { in ExtractImage()
Dblockimg.cpp484 for (const auto& [begin, end] : src) { in ReadBlocks()
489 size_t size = (end - begin) * BLOCKSIZE; in ReadBlocks()
504 for (const auto& [begin, end] : tgt) { in WriteBlocks()
506 size_t size = (end - begin) * BLOCKSIZE; in WriteBlocks()
638 if (stash_map.find(id) == stash_map.end()) { in PrintHashForMissingStashedBlocks()
740 if (stash_map.find(id) != stash_map.end()) { in LoadStash()
795 if (stash_map.find(id) == stash_map.end()) { in LoadStash()
1290 for (const auto& [begin, end] : tgt) { in PerformCommandZero()
1292 size_t size = (end - begin) * BLOCKSIZE; in PerformCommandZero()
1301 for (size_t j = begin; j < end; ++j) { in PerformCommandZero()
[all …]
Dupdater_runtime_dynamic_partitions.cpp261 std::transform(partitions.begin(), partitions.end(), std::back_inserter(partition_names), in ListPartitionNamesInGroup()
332 if (it == op_map.end()) { in UpdateDynamicPartitions()
/bootable/recovery/tests/unit/
Dparse_install_logs_test.cpp38 ASSERT_EQ(metrics.end(), metrics.find("ota_sideload")); in TEST()
42 ASSERT_NE(metrics.end(), metrics.find("ota_sideload")); in TEST()
Dupdate_verifier_test.cpp66 if (partition.find("name") != partition.end()) { in ConstructProto()
69 if (partition.find("ranges") != partition.end()) { in ConstructProto()
72 if (partition.find("id") != partition.end()) { in ConstructProto()
75 if (partition.find("fingerprint") != partition.end()) { in ConstructProto()
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()
Dfuse_provider_test.cpp103 ASSERT_EQ(std::vector<uint8_t>(expected.begin(), expected.end()), result); in TEST()
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()
/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.cpp142 std::vector<uint8_t>(wipe_package.begin(), wipe_package.end()), nullptr); in ReadWipePackage()
/bootable/recovery/edify/include/edify/
Dexpr.h78 int start, end; member
80 Expr(Function fn, const std::string& name, int start, int end) : in Expr()
84 end(end) {} in Expr()
/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()
1023 aligned_tgt_chunks.insert(aligned_tgt_chunks.end(), split_tgt_chunks.begin() + i + 1, in AddSplitImageFromChunkList()
1024 split_tgt_chunks.end()); in AddSplitImageFromChunkList()
1044 size_t end = std::min(src_image.file_content_.size(), r.second * BLOCK_SIZE); in AddSplitImageFromChunkList() local
1045 src_content.insert(src_content.end(), src_image.file_content_.begin() + r.first * BLOCK_SIZE, in AddSplitImageFromChunkList()
1046 src_image.file_content_.begin() + end); in AddSplitImageFromChunkList()
/bootable/recovery/recovery_ui/
Ddevice.cpp59 std::remove_if(g_menu_actions.begin(), g_menu_actions.end(), in RemoveMenuItemForAction()
/bootable/recovery/tools/image_generator/
DImageGenerator.java413 for (int end = lineBoundary.next(); end != BreakIterator.DONE; in wrapText()
414 start = end, end = lineBoundary.next()) { in wrapText()
415 String token = text.substring(start, end); in wrapText()
/bootable/recovery/applypatch/include/applypatch/
Dimgdiff_image.h181 std::vector<ImageChunk>::iterator end() { in end() function
182 return chunks_.end(); in end()
/bootable/recovery/tests/unit/host/
Dupdate_simulator_test.cpp140 sparse_system_string_ = string(SPARSE_SYSTEM_HEADER, std::end(SPARSE_SYSTEM_HEADER)) + in SetUp()
181 std::transform(fstab_info.begin(), fstab_info.end(), std::back_inserter(transformed), in TEST_F()

12