Home
last modified time | relevance | path

Searched refs:lines (Results 1 – 16 of 16) sorted by relevance

/bootable/recovery/update_verifier/
Dcare_map_generator.py30 def GenerateCareMapProtoFromLegacyFormat(lines, fingerprint_enabled): argument
45 assert len(lines) % step == 0, \
46 "line count must be multiple of {}: {}".format(step, len(lines))
49 for index in range(0, len(lines), step):
51 info.name = lines[index]
52 info.ranges = lines[index + 1]
54 info.id = lines[index + 2]
55 info.fingerprint = lines[index + 3]
/bootable/recovery/otautil/
Dsysutil.cpp45 std::vector<std::string> lines = android::base::Split(android::base::Trim(content), "\n"); in ParseBlockMapFile() local
46 if (lines.size() < 4) { in ParseBlockMapFile()
47 LOG(ERROR) << "Block map file is too short: " << lines.size(); in ParseBlockMapFile()
51 const std::string& block_dev = lines[0]; in ParseBlockMapFile()
55 if (sscanf(lines[1].c_str(), "%" SCNu64 "%" SCNu32, &file_size, &blksize) != 2) { in ParseBlockMapFile()
56 LOG(ERROR) << "Failed to parse file size and block size: " << lines[1]; in ParseBlockMapFile()
66 if (sscanf(lines[2].c_str(), "%zu", &range_count) != 1) { in ParseBlockMapFile()
67 LOG(ERROR) << "Failed to parse block map header: " << lines[2]; in ParseBlockMapFile()
73 lines.size() != 3 + range_count) { in ParseBlockMapFile()
75 << ", range_count " << range_count << ", lines " << lines.size(); in ParseBlockMapFile()
[all …]
Dparse_install_logs.cpp36 std::map<std::string, int64_t> ParseRecoveryUpdateMetrics(const std::vector<std::string>& lines) { in ParseRecoveryUpdateMetrics() argument
41 for (const auto& line : lines) { in ParseRecoveryUpdateMetrics()
104 std::vector<std::string> lines = android::base::Split(content, "\n"); in ParseLastInstall() local
105 auto metrics = ParseRecoveryUpdateMetrics(lines); in ParseLastInstall()
108 if (android::base::Trim(lines[0]) == "/sideload/package.zip") { in ParseLastInstall()
/bootable/recovery/updater/
Dcommands.cpp408 std::vector<std::string> lines = android::base::Split(transfer_list_str, "\n"); in Parse() local
409 if (lines.size() < kTransferListHeaderLines) { in Parse()
410 *err = android::base::StringPrintf("too few lines in the transfer list [%zu]", lines.size()); in Parse()
415 if (!android::base::ParseInt(lines[0], &result.version_, 3, 4)) { in Parse()
416 *err = "unexpected transfer list version ["s + lines[0] + "]"; in Parse()
421 if (!android::base::ParseUint(lines[1], &result.total_blocks_)) { in Parse()
422 *err = "unexpected block count ["s + lines[1] + "]"; in Parse()
427 if (!android::base::ParseUint(lines[2], &result.stash_max_entries_)) { in Parse()
432 if (!android::base::ParseUint(lines[3], &result.stash_max_blocks_)) { in Parse()
433 *err = "unexpected maximum stash blocks ["s + lines[3] + "]"; in Parse()
[all …]
Dupdater.cpp178 const std::vector<std::string> lines = android::base::Split(state.errmsg, "\n"); in main() local
179 for (const std::string& line : lines) { in main()
Dblockimg.cpp108 std::vector<std::string> lines = android::base::Split(android::base::Trim(content), "\n"); in ParseLastCommandFile() local
109 if (lines.size() != 2) { in ParseLastCommandFile()
114 if (!android::base::ParseUint(lines[0], last_command_index)) { in ParseLastCommandFile()
115 LOG(ERROR) << "Failed to parse integer in: " << lines[0]; in ParseLastCommandFile()
1733 std::vector<std::string> lines = android::base::Split(transfer_list_value->data, "\n"); in PerformBlockImageUpdate() local
1734 if (lines.size() < kTransferListHeaderLines) { in PerformBlockImageUpdate()
1736 lines.size()); in PerformBlockImageUpdate()
1741 if (!android::base::ParseInt(lines[0], &params.version, 3, 4)) { in PerformBlockImageUpdate()
1742 LOG(ERROR) << "unexpected transfer list version [" << lines[0] << "]"; in PerformBlockImageUpdate()
1750 if (!android::base::ParseUint(lines[1], &total_blocks)) { in PerformBlockImageUpdate()
[all …]
Dinstall.cpp73 std::vector<std::string> lines = android::base::Split(buffer, "\n"); in uiPrint() local
74 for (auto& line : lines) { in uiPrint()
602 std::vector<std::string> lines = android::base::Split(buffer, "\n"); in FileGetPropFn() local
603 for (size_t i = 0; i < lines.size(); i++) { in FileGetPropFn()
604 std::string line = android::base::Trim(lines[i]); in FileGetPropFn()
Ddynamic_partitions.cpp390 std::vector<std::string> lines = android::base::Split(op_list_value->data, "\n"); in UpdateDynamicPartitionsFn() local
391 for (const auto& line : lines) { in UpdateDynamicPartitionsFn()
/bootable/recovery/tests/unit/
Dparse_install_logs_test.cpp46 std::vector<std::string> lines = { in TEST() local
63 auto metrics = ParseRecoveryUpdateMetrics(lines); in TEST()
/bootable/recovery/otautil/include/otautil/
Dparse_install_logs.h30 std::map<std::string, int64_t> ParseRecoveryUpdateMetrics(const std::vector<std::string>& lines);
/bootable/recovery/recovery_ui/include/recovery_ui/
Dscreen_ui.h73 virtual int DrawTextLines(int x, int y, const std::vector<std::string>& lines) const = 0;
78 virtual int DrawWrappedTextLines(int x, int y, const std::vector<std::string>& lines) const = 0;
228 void SetTitle(const std::vector<std::string>& lines) override;
329 int DrawTextLines(int x, int y, const std::vector<std::string>& lines) const override;
330 int DrawWrappedTextLines(int x, int y, const std::vector<std::string>& lines) const override;
Dui.h148 virtual void SetTitle(const std::vector<std::string>& lines) = 0;
/bootable/recovery/
D.clang-format1 # bootable/recovery project uses repohook to apply `clang-format` to the changed lines, with the
Drecovery.cpp341 std::vector<std::string> lines = android::base::Split(partition_list_content, "\n"); in GetWipePartitionList() local
342 for (const std::string& line : lines) { in GetWipePartitionList()
/bootable/recovery/recovery_ui/
Dscreen_ui.cpp635 int ScreenRecoveryUI::DrawTextLines(int x, int y, const std::vector<std::string>& lines) const { in DrawTextLines()
637 for (const auto& line : lines) { in DrawTextLines()
644 const std::vector<std::string>& lines) const { in DrawWrappedTextLines()
648 for (const auto& line : lines) { in DrawWrappedTextLines()
672 void ScreenRecoveryUI::SetTitle(const std::vector<std::string>& lines) { in SetTitle() argument
673 title_lines_ = lines; in SetTitle()
/bootable/recovery/tools/image_generator/
DImageGenerator.java452 String[] lines = processed.split("\\\\n\\\\n"); in processAndWrapText() local
454 for (String line : lines) { in processAndWrapText()