Searched refs:line_buf (Results 1 - 10 of 10) sorted by relevance

/external/libnfc-nci/halimpl/bcm2079x/adaptation/
H A Dandroid_logmsg.cpp65 char line_buf[(MAX_NCI_PACKET_SIZE*2)+1]; local
68 for(i = 0, j = 0; i < len && j < sizeof(line_buf)-3; i++)
70 line_buf[j++] = sTable[(*data >> 4) & 0xf];
71 line_buf[j++] = sTable[*data & 0xf];
74 line_buf[j] = '\0';
76 __android_log_write(ANDROID_LOG_DEBUG, (is_recv) ? "BrcmNciR": "BrcmNciX", line_buf);
/external/libselinux/src/
H A Dlabel_android_property.c84 const char *path, char *line_buf,
94 len = strlen(line_buf);
95 if (line_buf[len - 1] == '\n')
96 line_buf[len - 1] = 0;
97 buf_p = line_buf;
103 items = sscanf(line_buf, "%255s %255s", prop, context);
149 char line_buf[BUFSIZ]; local
183 while (fgets(line_buf, sizeof line_buf - 1, fp)
185 if (process_line(rec, path, line_buf, pas
83 process_line(struct selabel_handle *rec, const char *path, char *line_buf, int pass, unsigned lineno) argument
[all...]
H A Dlabel_file.c279 char *line_buf, int pass, unsigned lineno)
288 len = strlen(line_buf);
289 if (line_buf[len - 1] == '\n')
290 line_buf[len - 1] = 0;
291 buf_p = line_buf;
297 items = sscanf(line_buf, "%255s %255s %255s", regex, type, context);
406 char line_buf[BUFSIZ]; local
459 while (fgets(line_buf, sizeof line_buf - 1, fp)
461 if (process_line(rec, path, prefix, line_buf,
277 process_line(struct selabel_handle *rec, const char *path, const char *prefix, char *line_buf, int pass, unsigned lineno) argument
[all...]
H A Dandroid.c137 char line_buf[BUFSIZ]; local
154 while (fgets(line_buf, sizeof line_buf - 1, fp)) {
155 p = line_buf;
170 while (fgets(line_buf, sizeof line_buf - 1, fp)) {
171 len = strlen(line_buf);
172 if (line_buf[len - 1] == '\n')
173 line_buf[len - 1] = 0;
174 p = line_buf;
[all...]
/external/v8/src/
H A Dv8utils.cc63 char line_buf[256]; local
69 if (fgets(line_buf, sizeof(line_buf), stdin) == NULL) {
76 int len = StrLength(line_buf);
78 line_buf[len - 2] == '\\' &&
79 line_buf[len - 1] == '\n') {
82 line_buf[len - 2] = '\n';
83 line_buf[len - 1] = 0;
85 } else if ((len > 0) && (line_buf[len - 1] == '\n')) {
104 memcpy(result + offset, line_buf, le
[all...]
/external/libnfc-nci/src/adaptation/
H A Dlibmain.c471 char line_buf[(MAX_NCI_PACKET_SIZE*2)+1]; local
474 for(i = 0, j = 0; i < len && j < sizeof(line_buf)-3; i++)
476 line_buf[j++] = sTable[(*data >> 4) & 0xf];
477 line_buf[j++] = sTable[*data & 0xf];
480 line_buf[j] = '\0';
482 __android_log_write(ANDROID_LOG_DEBUG, (is_recv) ? "BrcmNciR": "BrcmNciX", line_buf);
532 char line_buf[400]; local
537 if (nBytes > sizeof(line_buf))
544 for(i = 0, j = 0; i < len && j < sizeof(line_buf)-3; i++)
546 line_buf[
[all...]
/external/sepolicy/tools/
H A Dcheck_seapp.c852 char line_buf[BUFSIZ]; local
860 while (fgets(line_buf, sizeof line_buf - 1, input_file)) {
864 len = strlen(line_buf);
865 if (line_buf[len - 1] == '\n')
866 line_buf[len - 1] = '\0';
867 p = line_buf;
/external/e2fsprogs/misc/
H A Dbadblocks.c197 char diff_buf[32], line_buf[128]; local
201 len = snprintf(line_buf, sizeof(line_buf),
207 len = mbstowcs(NULL, line_buf, sizeof(line_buf));
209 fputs(line_buf, stderr);
210 memset(line_buf, '\b', len);
211 line_buf[len] = 0;
212 fputs(line_buf, stderr);
/external/qemu/
H A Dgdbstub.c279 char line_buf[MAX_PACKET_LENGTH]; member in struct:GDBState
1591 static int gdb_handle_packet(GDBState *s, const char *line_buf) argument
1603 printf("command='%s'\n", line_buf);
1605 p = line_buf;
2110 } else if (s->line_buf_index >= sizeof(s->line_buf) - 1) {
2113 s->line_buf[s->line_buf_index++] = ch;
2117 s->line_buf[s->line_buf_index] = '\0';
2125 csum += s->line_buf[i];
2134 s->state = gdb_handle_packet(s, s->line_buf);
/external/grub/stage2/
H A Dbuiltins.c4641 unsigned char *line_buf = base_buf + scanline * y;
4645 unsigned char *buf = line_buf + bpp * x;
4586 unsigned char *line_buf = base_buf + scanline * y; local

Completed in 226 milliseconds