Home
last modified time | relevance | path

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

/bootable/recovery/otautil/
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 …]
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/updater/
Dupdater.cpp179 for (const std::string& line : lines) { in main() local
182 if (!line.empty() && line[0] == 'E') { in main()
183 if (sscanf(line.c_str(), "E%d: ", &state.error_code) != 1) { in main()
184 LOG(ERROR) << "Failed to parse error code: [" << line << "]"; in main()
187 fprintf(cmd_pipe, "ui_print %s\n", line.c_str()); in main()
Dcommands.cpp179 Command Command::Parse(const std::string& line, size_t index, std::string* err) { in Parse() argument
180 std::vector<std::string> tokens = android::base::Split(line, " "); in Parse()
282 *err = "invalid hash tree ranges in: " + line; in Parse()
288 *err = "invalid source ranges in: " + line; in Parse()
296 *err = "invalid hash tree arguments in " + line; in Parse()
303 return Command(op, index, line, std::move(hash_tree_info)); in Parse()
309 return Command(op, index, line, patch_info, target_info, source_info, stash_info); in Parse()
439 const std::string& line = lines[i]; in Parse() local
440 if (line.empty()) continue; in Parse()
444 Command command = Command::Parse(line, cmdindex, &parsing_error); in Parse()
[all …]
Ddynamic_partitions.cpp391 for (const auto& line : lines) { in UpdateDynamicPartitionsFn() local
392 auto comment_idx = line.find('#'); in UpdateDynamicPartitionsFn()
393 auto op_and_args = comment_idx == std::string::npos ? line : line.substr(0, comment_idx); in UpdateDynamicPartitionsFn()
Dinstall.cpp74 for (auto& line : lines) { in uiPrint() local
75 if (!line.empty()) { in uiPrint()
76 fprintf(ui->cmd_pipe, "ui_print %s\n", line.c_str()); in uiPrint()
604 std::string line = android::base::Trim(lines[i]); in FileGetPropFn() local
607 if (line.empty() || line[0] == '#') { in FileGetPropFn()
610 size_t equal_pos = line.find('='); in FileGetPropFn()
616 std::string str = android::base::Trim(line.substr(0, equal_pos)); in FileGetPropFn()
621 return StringValue(android::base::Trim(line.substr(equal_pos + 1))); in FileGetPropFn()
Dblockimg.cpp1822 const std::string& line = lines[i]; in PerformBlockImageUpdate() local
1823 if (line.empty()) continue; in PerformBlockImageUpdate()
1826 params.tokens = android::base::Split(line, " "); in PerformBlockImageUpdate()
1829 params.cmdline = line; in PerformBlockImageUpdate()
1843 LOG(DEBUG) << "skip executing command [" << line << "]"; in PerformBlockImageUpdate()
1857 LOG(ERROR) << "failed to execute command [" << line << "]"; in PerformBlockImageUpdate()
/bootable/recovery/
Drecovery-persist.cpp144 char *line = NULL; in main() local
147 while ((read = getline(&line, &len, fp)) != -1) { in main()
148 if (strstr(line, " /cache ")) { in main()
153 free(line); in main()
Drecovery_main.cpp277 char* line = nullptr; in redirect_stdio() local
279 while (getline(&line, &len, pipe_fp) != -1) { in redirect_stdio()
283 if (line[0] == '\n') { in redirect_stdio()
286 fprintf(log_fp, "[%12.6lf] %s", duration, line); in redirect_stdio()
294 free(line); in redirect_stdio()
Drecovery.cpp342 for (const std::string& line : lines) { in GetWipePartitionList() local
343 std::string partition = android::base::Trim(line); in GetWipePartitionList()
348 result.push_back(line); in GetWipePartitionList()
/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.cpp630 int ScreenRecoveryUI::DrawTextLine(int x, int y, const std::string& line, bool bold) const { in DrawTextLine() argument
631 gr_text(gr_sys_font(), x, y, line.c_str(), bold); in DrawTextLine()
637 for (const auto& line : lines) { in DrawTextLines() local
638 offset += DrawTextLine(x, y + offset, line, false); in DrawTextLines()
648 for (const auto& line : lines) { in DrawWrappedTextLines() local
650 while (next_start < line.size()) { in DrawWrappedTextLines()
651 std::string sub = line.substr(next_start, text_cols + 1); in DrawWrappedTextLines()
/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/install/
Dinstall.cpp92 for (const std::string& line : android::base::Split(metadata_string, "\n")) { in ReadMetadataFromPackage() local
93 size_t eq = line.find('='); in ReadMetadataFromPackage()
95 metadata->emplace(android::base::Trim(line.substr(0, eq)), in ReadMetadataFromPackage()
96 android::base::Trim(line.substr(eq + 1))); in ReadMetadataFromPackage()
428 std::string line(buffer); in try_update_binary() local
429 size_t space = line.find_first_of(" \n"); in try_update_binary()
430 std::string command(line.substr(0, space)); in try_update_binary()
434 std::string args = space == std::string::npos ? "" : android::base::Trim(line.substr(space)); in try_update_binary()
444 LOG(ERROR) << "invalid \"progress\" parameters: " << line; in try_update_binary()
452 LOG(ERROR) << "invalid \"set_progress\" parameters: " << line; in try_update_binary()
[all …]
/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;
328 int DrawTextLine(int x, int y, const std::string& line, bool bold) const override;
/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/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/updater_sample/
DREADME.md184 e.g. add a line containing `PRODUCT_PACKAGES += SystemUpdaterSample`