/bootable/recovery/otautil/ |
D | parse_install_logs.cpp | 41 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 …]
|
D | sysutil.cpp | 82 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/ |
D | updater.cpp | 179 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()
|
D | commands.cpp | 179 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 …]
|
D | dynamic_partitions.cpp | 391 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()
|
D | install.cpp | 74 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()
|
D | blockimg.cpp | 1822 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/ |
D | recovery-persist.cpp | 144 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()
|
D | recovery_main.cpp | 277 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()
|
D | recovery.cpp | 342 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/ |
D | vr_ui.cpp | 48 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()
|
D | screen_ui.cpp | 630 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/ |
D | PayloadSpecs.java | 81 String line; in forNonStreaming() local 82 while ((line = br.readLine()) != null) { in forNonStreaming() 83 properties.add(line); in forNonStreaming()
|
/bootable/recovery/install/ |
D | install.cpp | 92 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/ |
D | vr_ui.h | 42 int DrawTextLine(int x, int y, const std::string& line, bool bold) const override;
|
D | screen_ui.h | 60 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/ |
D | ImageGenerator.java | 412 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()
|
D | README.md | 13 1. `imageWidth`: The number of pixels per line; and the text strings will be
|
/bootable/recovery/edify/ |
D | parser.yy | 137 printf("line %d col %d: %s\n", gLine, gColumn, s);
|
D | README.md | 40 - Comments start with "#" and run to the end of the line.
|
/bootable/recovery/updater/include/private/ |
D | commands.h | 320 static Command Parse(const std::string& line, size_t index, std::string* err);
|
/bootable/recovery/updater_sample/ |
D | README.md | 184 e.g. add a line containing `PRODUCT_PACKAGES += SystemUpdaterSample`
|