Home
last modified time | relevance | path

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

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