Home
last modified time | relevance | path

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

12

/bootable/recovery/recovery_utils/
Dparse_install_logs.cpp41 for (const auto& line : lines) { in ParseRecoveryUpdateMetrics() local
42 size_t num_index = line.find(':'); in ParseRecoveryUpdateMetrics()
44 LOG(WARNING) << "Skip parsing " << line; in ParseRecoveryUpdateMetrics()
48 std::string num_string = android::base::Trim(line.substr(num_index + 1)); in ParseRecoveryUpdateMetrics()
51 LOG(ERROR) << "Failed to parse numbers in " << line; in ParseRecoveryUpdateMetrics()
55 if (android::base::StartsWith(line, "bytes_written")) { in ParseRecoveryUpdateMetrics()
57 } else if (android::base::StartsWith(line, "bytes_stashed")) { in ParseRecoveryUpdateMetrics()
59 } else if (android::base::StartsWith(line, "time")) { in ParseRecoveryUpdateMetrics()
61 } else if (android::base::StartsWith(line, "uncrypt_time")) { in ParseRecoveryUpdateMetrics()
63 } else if (android::base::StartsWith(line, "source_build")) { in ParseRecoveryUpdateMetrics()
[all …]
/bootable/recovery/updater/
Dupdater.cpp109 for (const auto& line : lines) { in UiPrint() local
110 if (!line.empty()) { in UiPrint()
111 fprintf(cmd_pipe_.get(), "ui_print %s\n", line.c_str()); in UiPrint()
133 for (const std::string& line : lines) { in ParseAndReportErrorCode() local
136 if (!line.empty() && line[0] == 'E') { in ParseAndReportErrorCode()
137 if (sscanf(line.c_str(), "E%d: ", &state->error_code) != 1) { in ParseAndReportErrorCode()
138 LOG(ERROR) << "Failed to parse error code: [" << line << "]"; in ParseAndReportErrorCode()
141 fprintf(cmd_pipe_.get(), "ui_print %s\n", line.c_str()); in ParseAndReportErrorCode()
Dtarget_files.cpp59 for (const auto& line : lines) { in ParsePropertyFile() local
60 if (line.empty() || line[0] == '#') continue; in ParsePropertyFile()
61 auto pos = line.find('='); in ParsePropertyFile()
63 std::string key = line.substr(0, pos); in ParsePropertyFile()
64 std::string value = line.substr(pos + 1); in ParsePropertyFile()
75 for (const auto& line : lines) { in ParseFstab() local
76 if (line.empty() || line[0] == '#') continue; in ParseFstab()
79 std::vector<std::string> tokens = android::base::Split(line, " "); in ParseFstab()
83 << "Error parsing fstab line: " << line; in ParseFstab()
97 LOG(WARNING) << "Unsupported fs_type in " << line; in ParseFstab()
Dsimulator_runtime.cpp123 for (const auto& line : lines) { in UpdateDynamicPartitions() local
124 if (line.empty() || line[0] == '#') continue; in UpdateDynamicPartitions()
125 auto tokens = android::base::Split(line, " "); in UpdateDynamicPartitions()
127 LOG(ERROR) << "Unknown operation in op_list: " << line; in UpdateDynamicPartitions()
Dcommands.cpp178 Command Command::Parse(const std::string& line, size_t index, std::string* err) { in Parse() argument
179 std::vector<std::string> tokens = android::base::Split(line, " "); in Parse()
281 *err = "invalid hash tree ranges in: " + line; in Parse()
287 *err = "invalid source ranges in: " + line; in Parse()
295 *err = "invalid hash tree arguments in " + line; in Parse()
302 return Command(op, index, line, std::move(hash_tree_info)); in Parse()
308 return Command(op, index, line, patch_info, target_info, source_info, stash_info); in Parse()
438 const std::string& line = lines[i]; in Parse() local
439 if (line.empty()) continue; in Parse()
443 Command command = Command::Parse(line, cmdindex, &parsing_error); in Parse()
[all …]
Dupdate_simulator_main.cpp122 for (const auto& line : lines) { in main() local
123 if (line.empty() || android::base::StartsWith(line, "#")) { in main()
126 RegisterFunction(line, SimulatorPlaceHolderFn); in main()
Dupdater_runtime_dynamic_partitions.cpp323 for (const auto& line : lines) { in UpdateDynamicPartitions() local
324 auto comment_idx = line.find('#'); in UpdateDynamicPartitions()
325 auto op_and_args = comment_idx == std::string::npos ? line : line.substr(0, comment_idx); in UpdateDynamicPartitions()
Dinstall.cpp579 std::string line = android::base::Trim(lines[i]); in FileGetPropFn() local
582 if (line.empty() || line[0] == '#') { in FileGetPropFn()
585 size_t equal_pos = line.find('='); in FileGetPropFn()
591 std::string str = android::base::Trim(line.substr(0, equal_pos)); in FileGetPropFn()
596 return StringValue(android::base::Trim(line.substr(equal_pos + 1))); in FileGetPropFn()
Dblockimg.cpp1827 const std::string& line = lines[i]; in PerformBlockImageUpdate() local
1828 if (line.empty()) continue; in PerformBlockImageUpdate()
1831 params.tokens = android::base::Split(line, " "); in PerformBlockImageUpdate()
1834 params.cmdline = line; in PerformBlockImageUpdate()
1848 LOG(DEBUG) << "skip executing command [" << line << "]"; in PerformBlockImageUpdate()
1862 LOG(ERROR) << "failed to execute command [" << line << "]"; in PerformBlockImageUpdate()
/bootable/recovery/
Drecovery-persist.cpp128 char *line = NULL; in main() local
131 while ((read = getline(&line, &len, fp)) != -1) { in main()
132 if (strstr(line, " /cache ")) { in main()
137 free(line); in main()
Drecovery_main.cpp283 char* line = nullptr; in redirect_stdio() local
285 while (getline(&line, &len, pipe_fp) != -1) { in redirect_stdio()
289 if (line[0] == '\n') { in redirect_stdio()
292 fprintf(log_fp, "[%12.6lf] %s", duration, line); in redirect_stdio()
300 free(line); in redirect_stdio()
/bootable/recovery/recovery_ui/
Dvr_ui.cpp48 int VrRecoveryUI::DrawTextLine(int x, int y, const std::string& line, bool bold) const { in DrawTextLine() argument
49 gr_text(gr_sys_font(), x + stereo_offset_, y, line.c_str(), bold); in DrawTextLine()
50 gr_text(gr_sys_font(), x - stereo_offset_ + ScreenWidth(), y, line.c_str(), bold); in DrawTextLine()
Dscreen_ui.cpp633 int ScreenRecoveryUI::DrawTextLine(int x, int y, const std::string& line, bool bold) const { in DrawTextLine() argument
634 gr_text(gr_sys_font(), x, y, line.c_str(), bold); in DrawTextLine()
640 for (const auto& line : lines) { in DrawTextLines() local
641 offset += DrawTextLine(x, y + offset, line, false); in DrawTextLines()
651 for (const auto& line : lines) { in DrawWrappedTextLines() local
653 while (next_start < line.size()) { in DrawWrappedTextLines()
654 std::string sub = line.substr(next_start, text_cols + 1); in DrawWrappedTextLines()
/bootable/recovery/install/
Dinstall.cpp96 for (const std::string& line : android::base::Split(metadata_string, "\n")) { in ReadMetadataFromPackage() local
97 size_t eq = line.find('='); in ReadMetadataFromPackage()
99 metadata->emplace(android::base::Trim(line.substr(0, eq)), in ReadMetadataFromPackage()
100 android::base::Trim(line.substr(eq + 1))); in ReadMetadataFromPackage()
459 std::string line(buffer); in TryUpdateBinary() local
460 size_t space = line.find_first_of(" \n"); in TryUpdateBinary()
461 std::string command(line.substr(0, space)); in TryUpdateBinary()
465 std::string args = space == std::string::npos ? "" : android::base::Trim(line.substr(space)); in TryUpdateBinary()
475 LOG(ERROR) << "invalid \"progress\" parameters: " << line; in TryUpdateBinary()
483 LOG(ERROR) << "invalid \"set_progress\" parameters: " << line; in TryUpdateBinary()
[all …]
Dwipe_device.cpp81 for (const auto& line : lines) { in GetWipePartitionList() local
82 auto partition = android::base::Trim(line); in GetWipePartitionList()
87 result.push_back(line); in GetWipePartitionList()
/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/util/
DPayloadSpecs.java81 String line; in forNonStreaming() local
82 while ((line = br.readLine()) != null) { in forNonStreaming()
83 properties.add(line); in forNonStreaming()
/bootable/recovery/tools/image_generator/
DImageGenerator.java412 StringBuilder line = new StringBuilder(); in wrapText() local
424 info.addLine(line.toString(), lineWidth, metrics.getFont(), mDefaultFont); in wrapText()
426 line = new StringBuilder(); in wrapText()
429 line.append(token); in wrapText()
433 info.addLine(line.toString(), lineWidth, metrics.getFont(), mDefaultFont); in wrapText()
454 for (String line : lines) { in processAndWrapText()
455 result.addLines(wrapText(line, metrics)); in processAndWrapText()
DREADME.md13 1. `imageWidth`: The number of pixels per line; and the text strings will be
/bootable/recovery/otautil/
Dsysutil.cpp82 const std::string& line = lines[i + 3]; in ParseBlockMapFile() local
84 if (sscanf(line.c_str(), "%" SCNu64 "%" SCNu64, &start, &end) != 2) { in ParseBlockMapFile()
85 LOG(ERROR) << "failed to parse range " << i << ": " << line; in ParseBlockMapFile()
/bootable/recovery/recovery_ui/include/recovery_ui/
Dvr_ui.h42 int DrawTextLine(int x, int y, const std::string& line, bool bold) const override;
Dscreen_ui.h60 virtual int DrawTextLine(int x, int y, const std::string& line, bool bold) const = 0;
331 int DrawTextLine(int x, int y, const std::string& line, bool bold) const override;
/bootable/recovery/edify/
Dparser.yy137 printf("line %d col %d: %s\n", gLine, gColumn, s);
DREADME.md40 - Comments start with "#" and run to the end of the line.
/bootable/recovery/updater/include/private/
Dcommands.h320 static Command Parse(const std::string& line, size_t index, std::string* err);
/bootable/recovery/tests/unit/
Dupdater_test.cpp188 for (std::string_view line : lines) { in RunBlockImageUpdate() local
189 if (android::base::ConsumePrefix(&line, "log cause: ")) { in RunBlockImageUpdate()
190 ASSERT_TRUE(android::base::ParseInt(line.data(), &received_cause_code)); in RunBlockImageUpdate()

12