/bootable/recovery/tools/ota/ |
D | add-property-tag.c | 31 int should_tag(const char *line, const char *propname) { in should_tag() argument 32 const char *prop = strstr(line, propname); in should_tag() 37 for (ptr = line; ptr < prop && isspace(*ptr); ++ptr) ; in should_tag() 45 int remove_tag(char *line, const char *tag) { in remove_tag() argument 46 char *pos = strstr(line, tag); in remove_tag() 56 void write_tagged(FILE *out, const char *line, const char *tag, int number) { in write_tagged() argument 57 const char *end = line + strlen(line); in write_tagged() 58 while (end > line && isspace(end[-1])) --end; in write_tagged() 60 fprintf(out, "%.*s%s%d%s", (int)(end - line), line, tag, number, end); in write_tagged() 62 fprintf(out, "%.*s%s%s", (int)(end - line), line, tag, end); in write_tagged() [all …]
|
D | check-lost+found.c | 127 char *saveptr, *line; in main() local 129 for (line = strtok_r(dmesg, "\n", &saveptr); line != NULL; in main() 130 line = strtok_r(NULL, "\n", &saveptr)) { in main() 131 if (strstr(line, "yaffs: dev is")) in_yaffs = 1; in main() 134 strstr(line, "yaffs") || in main() 135 strstr(line, "mtd") || in main() 136 strstr(line, "msm_nand")) { in main() 137 fprintf(out, "%s\n", line); in main() 140 if (strstr(line, "yaffs_read_super: isCheckpointed")) in_yaffs = 0; in main()
|
/bootable/recovery/updater/ |
D | updater.c | 148 char* line = strtok(state.errmsg, "\n"); in main() local 149 while (line) { in main() 150 fprintf(cmd_pipe, "ui_print %s\n", line); in main() 151 line = strtok(NULL, "\n"); in main()
|
D | blockimg.c | 1524 char* line = NULL; in PerformBlockImageUpdate() local 1640 line = strtok_r(transfer_list, "\n", &linesave); in PerformBlockImageUpdate() 1641 params.version = strtol(line, NULL, 0); in PerformBlockImageUpdate() 1644 fprintf(stderr, "unexpected transfer list version [%s]\n", line); in PerformBlockImageUpdate() 1651 line = strtok_r(NULL, "\n", &linesave); in PerformBlockImageUpdate() 1652 total_blocks = strtol(line, NULL, 0); in PerformBlockImageUpdate() 1655 ErrorAbort(state, "unexpected block count [%s]\n", line); in PerformBlockImageUpdate() 1664 line = strtok_r(NULL, "\n", &linesave); in PerformBlockImageUpdate() 1665 fprintf(stderr, "maximum stash entries %s\n", line); in PerformBlockImageUpdate() 1668 line = strtok_r(NULL, "\n", &linesave); in PerformBlockImageUpdate() [all …]
|
D | install.c | 57 char* line = strtok(buffer, "\n"); in uiPrint() local 59 while (line) { in uiPrint() 60 fprintf(ui->cmd_pipe, "ui_print %s\n", line); in uiPrint() 61 line = strtok(NULL, "\n"); in uiPrint() 987 char* line = strtok(buffer, "\n"); in FileGetPropFn() local 990 while (*line && isspace(*line)) ++line; in FileGetPropFn() 993 if (*line == '\0' || *line == '#') continue; in FileGetPropFn() 995 char* equal = strchr(line, '='); in FileGetPropFn() 1002 while (key_end > line && isspace(*key_end)) --key_end; in FileGetPropFn() 1006 if (strcmp(key, line) != 0) continue; in FileGetPropFn() [all …]
|
/bootable/recovery/ |
D | screen_ui.h | 132 void DrawTextLine(int* y, const char* line, bool bold);
|
D | screen_ui.cpp | 214 void ScreenRecoveryUI::DrawTextLine(int* y, const char* line, bool bold) { in DrawTextLine() argument 215 gr_text(4, *y, line, bold); in DrawTextLine()
|
/bootable/recovery/edify/ |
D | README | 37 - Comments start with "#" and run to the end of the line.
|