/bootable/recovery/edify/ |
D | yydefs.h | 22 int start, end; member 29 (Current).end = YYRHSLOC(Rhs, N).end; \ 32 (Current).end = YYRHSLOC(Rhs, 0).end; \
|
D | parser.yy | 47 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);
|
D | lexer.ll | 31 #define ADVANCE do {yylloc.start=gPos; yylloc.end=gPos+yyleng; \ 59 yylloc.end = gPos;
|
/bootable/recovery/otautil/ |
D | rangeset.cpp | 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() 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 …]
|
D | sysutil.cpp | 83 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/ |
D | rangeset.h | 89 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/ |
D | build_info.cpp | 97 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()
|
D | simulator_runtime.cpp | 47 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()
|
D | target_files.cpp | 80 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()
|
D | blockimg.cpp | 484 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 …]
|
D | updater_runtime_dynamic_partitions.cpp | 261 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/ |
D | update_verifier_test.cpp | 66 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()
|
D | parse_install_logs_test.cpp | 38 ASSERT_EQ(metrics.end(), metrics.find("ota_sideload")); in TEST() 42 ASSERT_NE(metrics.end(), metrics.find("ota_sideload")); 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 | fuse_provider_test.cpp | 103 ASSERT_EQ(std::vector<uint8_t>(expected.begin(), expected.end()), result); in TEST()
|
/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 | install.cpp | 111 return (it == metadata.end()) ? "" : it->second; in get_value() 269 "--headers=" + std::string(payload_properties.begin(), payload_properties.end()), in SetUpAbUpdateCommands() 720 return std::find(list.begin(), list.end(), target_token) != list.end(); in isInStringList()
|
/bootable/recovery/edify/include/edify/ |
D | expr.h | 78 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/tools/image_generator/ |
D | ImageGenerator.java | 413 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/ |
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() 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 split_src_content.insert(split_src_content.end(), in AddSplitImageFromChunkList() 1047 src_image.file_content_.begin() + end); in AddSplitImageFromChunkList()
|
/bootable/recovery/applypatch/include/applypatch/ |
D | imgdiff_image.h | 181 std::vector<ImageChunk>::iterator end() { in end() function 182 return chunks_.end(); in end()
|
/bootable/recovery/recovery_ui/ |
D | device.cpp | 59 std::remove_if(g_menu_actions.begin(), g_menu_actions.end(), in RemoveMenuItemForAction()
|
/bootable/recovery/tests/unit/host/ |
D | update_simulator_test.cpp | 140 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()
|