/bootable/recovery/update_verifier/ |
D | care_map_generator.py | 30 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/ |
D | sysutil.cpp | 45 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 …]
|
/bootable/recovery/tests/unit/ |
D | fuse_provider_test.cpp | 36 std::vector<std::string> lines = { in TEST() local 41 android::base::WriteStringToFile(android::base::Join(lines, '\n'), temp_file.path); in TEST() 60 std::vector<std::string> lines = { in TEST() local 67 android::base::WriteStringToFile(android::base::Join(lines, '\n'), temp_file.path); in TEST() 88 std::vector<std::string> lines = { in TEST() local 92 ASSERT_TRUE(android::base::WriteStringToFile(android::base::Join(lines, '\n'), block_map.path)); in TEST()
|
D | parse_install_logs_test.cpp | 46 std::vector<std::string> lines = { in TEST() local 63 auto metrics = ParseRecoveryUpdateMetrics(lines); in TEST()
|
D | updater_test.cpp | 187 auto lines = android::base::Split(pipe_content, "\n"); in RunBlockImageUpdate() local 188 for (std::string_view line : lines) { in RunBlockImageUpdate()
|
/bootable/recovery/recovery_utils/ |
D | parse_install_logs.cpp | 36 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/ |
D | commands.cpp | 407 std::vector<std::string> lines = android::base::Split(transfer_list_str, "\n"); in Parse() local 408 if (lines.size() < kTransferListHeaderLines) { in Parse() 409 *err = android::base::StringPrintf("too few lines in the transfer list [%zu]", lines.size()); in Parse() 414 if (!android::base::ParseInt(lines[0], &result.version_, 3, 4)) { in Parse() 415 *err = "unexpected transfer list version ["s + lines[0] + "]"; in Parse() 420 if (!android::base::ParseUint(lines[1], &result.total_blocks_)) { in Parse() 421 *err = "unexpected block count ["s + lines[1] + "]"; in Parse() 426 if (!android::base::ParseUint(lines[2], &result.stash_max_entries_)) { in Parse() 431 if (!android::base::ParseUint(lines[3], &result.stash_max_blocks_)) { in Parse() 432 *err = "unexpected maximum stash blocks ["s + lines[3] + "]"; in Parse() [all …]
|
D | updater.cpp | 108 std::vector<std::string> lines = android::base::Split(std::string(message), "\n"); in UiPrint() local 109 for (const auto& line : lines) { in UiPrint() 132 const std::vector<std::string> lines = android::base::Split(state->errmsg, "\n"); in ParseAndReportErrorCode() local 133 for (const std::string& line : lines) { in ParseAndReportErrorCode()
|
D | target_files.cpp | 58 std::vector<std::string> lines = android::base::Split(std::string(prop_content), "\n"); in ParsePropertyFile() local 59 for (const auto& line : lines) { in ParsePropertyFile() 74 std::vector<std::string> lines = android::base::Split(std::string(fstab), "\n"); in ParseFstab() local 75 for (const auto& line : lines) { in ParseFstab()
|
D | update_simulator_main.cpp | 121 auto lines = android::base::Split(content, "\n"); in main() local 122 for (const auto& line : lines) { in main()
|
D | simulator_runtime.cpp | 122 std::vector<std::string> lines = android::base::Split(std::string(op_list_value), "\n"); in UpdateDynamicPartitions() local 123 for (const auto& line : lines) { in UpdateDynamicPartitions()
|
D | blockimg.cpp | 113 std::vector<std::string> lines = android::base::Split(android::base::Trim(content), "\n"); in ParseLastCommandFile() local 114 if (lines.size() != 2) { in ParseLastCommandFile() 119 if (!android::base::ParseUint(lines[0], last_command_index)) { in ParseLastCommandFile() 120 LOG(ERROR) << "Failed to parse integer in: " << lines[0]; in ParseLastCommandFile() 1738 std::vector<std::string> lines = android::base::Split(transfer_list_value->data, "\n"); in PerformBlockImageUpdate() local 1739 if (lines.size() < kTransferListHeaderLines) { in PerformBlockImageUpdate() 1741 lines.size()); in PerformBlockImageUpdate() 1746 if (!android::base::ParseInt(lines[0], ¶ms.version, 3, 4)) { in PerformBlockImageUpdate() 1747 LOG(ERROR) << "unexpected transfer list version [" << lines[0] << "]"; in PerformBlockImageUpdate() 1755 if (!android::base::ParseUint(lines[1], &total_blocks)) { in PerformBlockImageUpdate() [all …]
|
D | updater_runtime_dynamic_partitions.cpp | 322 std::vector<std::string> lines = android::base::Split(std::string(op_list_value), "\n"); in UpdateDynamicPartitions() local 323 for (const auto& line : lines) { in UpdateDynamicPartitions()
|
D | install.cpp | 577 std::vector<std::string> lines = android::base::Split(buffer, "\n"); in FileGetPropFn() local 578 for (size_t i = 0; i < lines.size(); i++) { in FileGetPropFn() 579 std::string line = android::base::Trim(lines[i]); in FileGetPropFn()
|
/bootable/recovery/recovery_ui/ |
D | ethernet_ui.cpp | 21 void EthernetRecoveryUI::SetTitle(const std::vector<std::string>& lines) { in SetTitle() argument 22 ScreenRecoveryUI::SetTitle(lines); in SetTitle()
|
D | screen_ui.cpp | 638 int ScreenRecoveryUI::DrawTextLines(int x, int y, const std::vector<std::string>& lines) const { in DrawTextLines() 640 for (const auto& line : lines) { in DrawTextLines() 647 const std::vector<std::string>& lines) const { in DrawWrappedTextLines() 651 for (const auto& line : lines) { in DrawWrappedTextLines() 675 void ScreenRecoveryUI::SetTitle(const std::vector<std::string>& lines) { in SetTitle() argument 676 title_lines_ = lines; in SetTitle()
|
/bootable/recovery/recovery_ui/include/recovery_ui/ |
D | screen_ui.h | 73 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; 332 int DrawTextLines(int x, int y, const std::vector<std::string>& lines) const override; 333 int DrawWrappedTextLines(int x, int y, const std::vector<std::string>& lines) const override;
|
D | ethernet_ui.h | 25 void SetTitle(const std::vector<std::string>& lines) override;
|
D | ui.h | 150 virtual void SetTitle(const std::vector<std::string>& lines) = 0;
|
/bootable/recovery/recovery_utils/include/recovery_utils/ |
D | parse_install_logs.h | 30 std::map<std::string, int64_t> ParseRecoveryUpdateMetrics(const std::vector<std::string>& lines);
|
/bootable/recovery/install/ |
D | wipe_device.cpp | 80 auto lines = android::base::Split(partition_list_content, "\n"); in GetWipePartitionList() local 81 for (const auto& line : lines) { in GetWipePartitionList()
|
/bootable/recovery/ |
D | .clang-format | 1 # bootable/recovery project uses repohook to apply `clang-format` to the changed lines, with the
|
/bootable/recovery/tools/image_generator/ |
D | ImageGenerator.java | 452 String[] lines = processed.split("\\\\n\\\\n"); in processAndWrapText() local 454 for (String line : lines) { in processAndWrapText()
|