/system/media/camera/docs/ |
H A D | metadata_helpers.py | 209 # pad with spaces to make string len == size. add new line if too big 213 the string length == size. Adds a new line if the string was too big. 254 # If string is too long, insert a new line with 'col' spaces instead 258 If the string overflows the column, put the string on a new line and pad it. 270 This keeps track of the line written by Mako so far, so it will always 616 text: A multi-line string to format 646 for line in ( line.strip() for line in text.splitlines() ): 647 if not line [all...] |
/system/core/debuggerd/ |
H A D | backtrace.c | 57 _LOG(log, SCOPE_AT_FAULT, "Cmd line: %s\n", procname); 102 char line[MAX_BACKTRACE_LINE_LENGTH]; local 104 line, MAX_BACKTRACE_LINE_LENGTH); 105 _LOG(log, SCOPE_AT_FAULT, " %s\n", line);
|
H A D | tombstone.c | 242 char line[MAX_BACKTRACE_LINE_LENGTH]; variable 244 line, MAX_BACKTRACE_LINE_LENGTH); 245 _LOG(log, scopeFlags, " %s\n", line); 558 * TODO: scan for line breaks ('\n') and display each text line 559 * on a separate line, prefixed with the header, like logcat does.
|
/system/core/libutils/ |
H A D | CallStack.cpp | 136 char line[MAX_BACKTRACE_LINE_LENGTH]; local 138 line, MAX_BACKTRACE_LINE_LENGTH); 139 printer.printLine(line);
|
/system/core/cpio/ |
H A D | mkbootfs.c | 45 /* Each line in the canned file should be a path plus three ints (uid, 287 char line[CANNED_LINE_LENGTH]; local 291 while (fgets(line, CANNED_LINE_LENGTH, f) != NULL) { 292 if (!line[0]) break; 301 if (isspace(line[0])) { 303 cc->uid = atoi(strtok(line, " \n")); 305 cc->name = strdup(strtok(line, " \n"));
|
/system/extras/latencytop/ |
H A D | latencytop.c | 327 char line[MAX_LINE]; local 333 if (!fgets(line, MAX_LINE, f)) { 338 if (strcmp(line, EXPECTED_VERSION) != 0) { 340 fprintf(stderr, "But got version: %s", line); 344 while (fgets(line, MAX_LINE, f)) { 345 sscanf(line, "%ld %ld %ld %s", &count, &total, &max, reason);
|
/system/core/init/ |
H A D | parser.c | 57 snprintf(buf, 128, "%s: %d: ", state->filename, state->line); 161 /* \ <cr> <lf> -> line continuation */ 167 /* \ <lf> -> line continuation */ 168 state->line++;
|
H A D | init_parser.c | 309 ERROR("error while handling import on line '%d' in '%s'\n", 310 state->line, state->filename); 357 state.line = 0; 371 state.line++;
|
/system/core/libctest/ |
H A D | ctest.c | 150 void assertTrueWithSource(int value, const char* file, int line, char* message) { argument 154 fprintf(suite->out, "Assertion failed: [%s:%d] %s: %s\n", file, line,
|
/system/core/toolbox/ |
H A D | top.c | 367 char line[MAX_LINE]; local 369 line[0] = '\0'; 372 fgets(line, MAX_LINE, file); 374 if (strlen(line) > 0) { 375 strncpy(proc->name, line, PROC_NAME_LEN); 394 char line[MAX_LINE]; local 399 while (fgets(line, MAX_LINE, file)) { 400 sscanf(line, "Uid: %u", &uid); 401 sscanf(line, "Gid: %u", &gid);
|
H A D | getevent.c | 268 char line[2048]; local 282 while (fgets(line, sizeof(line), file)) { 284 fputs(line, stdout);
|
/system/core/toolbox/grep/ |
H A D | grep.c | 73 /* 6*/ "\t[--context[=num]] [--directories=action] [--label] [--line-buffered]\n", 97 /* Command-line flags */ 109 bool nflag; /* -n: show line numbers in front of matching lines */ 115 bool xflag; /* -x: pattern must match entire line */ 116 bool lbflag; /* --line-buffered */ 177 {"line-buffered", no_argument, NULL, LINEBUF_OPT}, 205 {"line-number", no_argument, NULL, 'n'}, 216 {"line-regexp", no_argument, NULL, 'x'}, 289 char *line; local 295 line [all...] |
H A D | grep.h | 120 /* Command line flags */ 151 void printline(struct str *line, int sep, regmatch_t *matches, int m);
|
/system/core/sh/ |
H A D | input.c | 90 int linno; /* current line */ 92 int nleft; /* number of chars left in this line */ 101 int plinno = 1; /* input line number */ 140 * Read a line from the script. 144 pfgets(char *line, int len) argument 146 char *p = line; 153 if (p == line) 162 return line;
|
H A D | parser.c | 92 int needprompt; /* true if interactive and at start of line */ 101 int startlinno; /* line # where last token started */ 124 * valid parse tree indicating a blank line.) 781 * In all cases, the variable startlinno is set to the number of the line 913 char line[EOFMARKLEN + 1]; local 951 loop: { /* for each line, until end of word */ 963 for (;;) { /* until end of line or end of word */ 1160 * is called, c is set to the first character of the next input line. If 1171 if (pfgets(line, sizeof line) ! [all...] |
/system/vold/ |
H A D | VolumeManager.cpp | 1288 char line[1024]; local 1302 while(fgets(line, sizeof(line), fp)) { 1303 line[strlen(line)-1] = '\0'; 1309 sscanf(line, "%255s %255s %255s\n", device, mount_path, rest); 1418 char line[16]; local 1419 if (fgets(line, sizeof(line), fp) && sscanf(line, " 1629 char line[1024]; local [all...] |
H A D | CommandListener.cpp | 104 char line[1024]; local 105 while (fgets(line, sizeof(line), fp)) { 106 line[strlen(line)-1] = '\0'; 107 cli->sendMsg(0, line, false);;
|
/system/extras/libpagemap/ |
H A D | pm_process.c | 233 char line[MAX_LINE], name[MAX_LINE], perms[MAX_PERMS]; local 255 while (fgets(line, MAX_LINE, maps_f)) { 273 sscanf(line, "%lx-%lx %s %lx %*s %*d %" S(MAX_LINE) "s",
|
/system/extras/cpustats/ |
H A D | cpustats.c | 188 char line[MAX_BUF_SIZE]; local 193 if (!fgets(line, MAX_BUF_SIZE, file)) die("Could not get %s contents\n", filename); 196 if (strcmp(line, "0\n") == 0) { 200 if (1 == sscanf(line, "0-%d\n", &cpu_count)) { 204 die("Unexpected input in file %s (%s).\n", filename, line);
|
/system/core/liblinenoise/ |
H A D | linenoise.c | 1 /* linenoise.c -- guerrilla line editing library against the idea that a 2 * line editing lib needs to be 20,000 lines of C code. 62 * Effect: if n is 0 or missing, clear from cursor to end of line 63 * Effect: if n is 1, clear from beginning of line to cursor 64 * Effect: if n is 2, clear entire line 94 int linenoiseHistoryAdd(const char *line); 237 case 10: /* line feed. */ 325 /* Avoid a full update of the line in the 341 case 21: /* Ctrl+u, delete the whole line. */ 346 case 11: /* Ctrl+k, delete from current to end of line 411 linenoiseHistoryAdd(const char *line) argument [all...] |