/system/bt/btif/src/ |
D | btif_sock_util.c | 189 char *line; in dump_bin() local 196 line = line_buff; in dump_bin() 197 *line++ = ' '; in dump_bin() 198 *line++ = ' '; in dump_bin() 199 *line++ = ' '; in dump_bin() 200 *line++ = ' '; in dump_bin() 201 *line++ = ' '; in dump_bin() 202 *line++ = ' '; in dump_bin() 205 byte2hex((const char*)&j, &line); in dump_bin() 206 *line++ = ' '; in dump_bin() [all …]
|
/system/core/libbacktrace/ |
D | map_info.c | 35 static backtrace_map_info_t* parse_vmmap_line(const char* line) { in parse_vmmap_line() argument 40 if (sscanf(line, "%*21c %lx-%lx [%*13c] %3c/%*3c SM=%*3c %n", in parse_vmmap_line() 45 const char* name = line + name_pos; in parse_vmmap_line() 76 char line[1024]; in backtrace_create_map_info_list() local 78 while (fgets(line, sizeof(line), fp) != NULL) { in backtrace_create_map_info_list() 79 backtrace_map_info_t* mi = parse_vmmap_line(line); in backtrace_create_map_info_list() 95 static backtrace_map_info_t* parse_maps_line(const char* line) in parse_maps_line() argument 101 if (sscanf(line, "%lx-%lx %4s %*x %*x:%*x %*d%n", &start, &end, in parse_maps_line() 106 while (isspace(line[name_pos])) { in parse_maps_line() 109 const char* name = line + name_pos; in parse_maps_line() [all …]
|
D | BacktraceMap.cpp | 48 bool BacktraceMap::ParseLine(const char* line, backtrace_map_t* map) { argument 59 if (sscanf(line, "%*21c %lx-%lx [%*13c] %3c/%*3c SM=%*3c %n", 66 if (sscanf(line, "%lx-%lx %4s %*x %*x:%*x %*d%n", 85 while (isspace(line[name_pos])) { 88 map->name = line+name_pos; 105 char line[1024]; local 120 while(fgets(line, sizeof(line), fp)) { 122 if (ParseLine(line, &map)) {
|
D | Backtrace.cpp | 104 std::string line(StringPrintf("#%02zu pc %" PRIPTR " %s", frame->num, relative_pc, map_name)); in FormatFrameData() local 108 line += " (offset " + StringPrintf("0x%" PRIxPTR, frame->map.offset) + ")"; in FormatFrameData() 111 line += " (" + frame->func_name; in FormatFrameData() 113 line += StringPrintf("+%" PRIuPTR, frame->func_offset); in FormatFrameData() 115 line += ')'; in FormatFrameData() 118 return line; in FormatFrameData()
|
D | GetPss.cpp | 65 char line[4096]; in GetPssBytes() local 68 while (fgets(line, sizeof(line), maps)) { in GetPssBytes() 70 if (sscanf(line, "%" SCNxPTR "-%" SCNxPTR " ", &start, &end) != 2) { in GetPssBytes()
|
/system/extras/tests/sdcard/ |
D | plot_sdcard.py | 50 def __init__(self, line): argument 52 'duration ([0-9.]+). Samples: ([0-9]+)'), line) 97 def Parse(self, line): argument 98 if line.startswith('# Kernel:'): 99 self.kernel = re.search('Linux version ([0-9.]+-[^ ]+)', line).group(1) 100 elif line.startswith('# Command:'): 101 self.command_line = re.search('# Command: [/\w_]+ (.*)', line).group(1) 105 elif line.startswith('# Iterations'): 106 self.iterations = int(re.search('# Iterations: ([0-9]+)', line).group(1)) 107 elif line.startswith('# Fadvise'): [all …]
|
/system/extras/perfprofd/quipper/base/ |
D | logging.cc | 60 LogMessage::LogMessage(const char* file, int line, LogSeverity severity) in LogMessage() argument 61 : severity_(severity), file_(file), line_(line) { in LogMessage() 62 Init(file, line); in LogMessage() 65 LogMessage::LogMessage(const char* file, int line, std::string* result) in LogMessage() argument 66 : severity_(LOG_FATAL), file_(file), line_(line) { in LogMessage() 67 Init(file, line); in LogMessage() 72 LogMessage::LogMessage(const char* file, int line, LogSeverity severity, in LogMessage() argument 74 : severity_(severity), file_(file), line_(line) { in LogMessage() 75 Init(file, line); in LogMessage()
|
/system/core/logd/ |
D | LogCommand.cpp | 85 char line[1024]; in clientHasLogCredentials() local 86 while (fgets(line, sizeof(line), file)) { in clientHasLogCredentials() 91 if (strncmp(groups_string, line, strlen(groups_string)) == 0) { in clientHasLogCredentials() 92 ret = groupIsLog(line + strlen(groups_string)); in clientHasLogCredentials() 96 } else if (strncmp(uid_string, line, strlen(uid_string)) == 0) { in clientHasLogCredentials() 99 sscanf(line + strlen(uid_string), "%u\t%u\t%u\t%u", in clientHasLogCredentials() 108 } else if (strncmp(gid_string, line, strlen(gid_string)) == 0) { in clientHasLogCredentials() 111 sscanf(line + strlen(gid_string), "%u\t%u\t%u\t%u", in clientHasLogCredentials()
|
/system/extras/tests/lib/testUtil/ |
D | testUtil.c | 148 char line[MAXSTR]; in testPrint() local 152 vsnprintf(line, sizeof(line), fmt, args); in testPrint() 154 ALOG(LOG_ERROR, logCatTag, "%s", line); in testPrint() 156 ALOG(LOG_INFO, logCatTag, "%s", line); in testPrint() 324 char line[MAXSTR]; in testXDump() local 327 char *linep = line; in testXDump() 331 if (linep != line) { in testXDump() 332 testPrintE("%s", line); in testXDump() 334 linep = line; in testXDump() 335 rv = snprintf(linep, ALEN(line) - (linep - line), in testXDump() [all …]
|
/system/extras/showmap/ |
D | showmap.c | 40 static int parse_header(const char* line, const mapinfo* prev, mapinfo** mi) { in parse_header() argument 47 if (sscanf(line, "%lx-%lx %*s %*x %*x:%*x %*d%n", &start, &end, &name_pos) != 2) { in parse_header() 52 while (isspace(line[name_pos])) { in parse_header() 56 if (line[name_pos]) { in parse_header() 57 strlcpy(name, line + name_pos, sizeof(name)); in parse_header() 87 static int parse_field(mapinfo* mi, const char* line) { in parse_field() argument 91 if (sscanf(line, "%63s %n", field, &len) == 1 in parse_field() 94 if (sscanf(line + len, "%d kB", &size) == 1) { in parse_field() 167 char line[1024]; in load_maps() local 179 while (fgets(line, sizeof(line), fp) != 0) { in load_maps() [all …]
|
/system/core/adb/ |
D | adb_utils.cpp | 71 std::string line; in dump_hex() local 73 android::base::StringAppendF(&line, "%02x", p[i]); in dump_hex() 75 line.push_back(' '); in dump_hex() 82 line.push_back(c); in dump_hex() 85 DR("%s\n", line.c_str()); in dump_hex()
|
/system/extras/simpleperf/ |
D | environment.cpp | 42 char* line; in GetOnlineCpus() local 43 if ((line = reader.ReadLine()) != nullptr) { in GetOnlineCpus() 44 result = GetOnlineCpusFromString(line); in GetOnlineCpus() 84 char* line; in ProcessKernelSymbols() local 85 while ((line = reader.ReadLine()) != nullptr) { in ProcessKernelSymbols() 92 if (sscanf(line, "%" PRIx64 " %c %s%s", &symbol.addr, &symbol.type, name, module) < 3) { in ProcessKernelSymbols() 149 char* line; in GetLoadedModules() local 150 while ((line = reader.ReadLine()) != nullptr) { in GetLoadedModules() 154 if (sscanf(line, "%s%*lu%*u%*s%*s 0x%" PRIx64, name, &addr) == 2) { in GetLoadedModules() 260 char* line; in ReadThreadNameAndTgid() local [all …]
|
/system/core/base/ |
D | logging.cpp | 78 unsigned int line, const char* message) { in StderrLogger() argument 83 severity_char, getpid(), gettid(), file, line, message); in StderrLogger() 106 const char* file, unsigned int line, in operator ()() argument 116 __android_log_buf_print(lg_id, priority, tag, "%s:%u] %s", file, line, in operator ()() 193 LogMessageData(const char* file, unsigned int line, LogId id, in LogMessageData() argument 196 line_number_(line), in LogMessageData() 243 LogMessage::LogMessage(const char* file, unsigned int line, LogId id, in LogMessage() argument 245 : data_(new LogMessageData(file, line, id, severity, error)) { in LogMessage() 287 void LogMessage::LogLine(const char* file, unsigned int line, LogId id, in LogLine() argument 291 gLogger(id, severity, tag, file, line, message); in LogLine()
|
/system/core/debuggerd/ |
D | tombstone.cpp | 244 std::string line; in dump_stack_segment() local 246 line = " "; in dump_stack_segment() 249 line += android::base::StringPrintf("#%02d ", label); in dump_stack_segment() 251 line += " "; in dump_stack_segment() 253 line += android::base::StringPrintf("%" PRIPTR " %" PRIPTR, *sp, stack_data[i]); in dump_stack_segment() 258 line += " " + map.name; in dump_stack_segment() 262 line += " (" + func_name; in dump_stack_segment() 264 line += android::base::StringPrintf("+%" PRIuPTR, offset); in dump_stack_segment() 266 line += ')'; in dump_stack_segment() 269 _LOG(log, logtype::STACK, "%s\n", line.c_str()); in dump_stack_segment() [all …]
|
D | debuggerd.cpp | 119 char line[1024]; in get_process_info() local 120 while (fgets(line, sizeof(line), fp)) { in get_process_info() 121 size_t len = strlen(line); in get_process_info() 122 if (len > 6 && !memcmp(line, "Tgid:\t", 6)) { in get_process_info() 123 *out_pid = atoi(line + 6); in get_process_info() 125 } else if (len > 5 && !memcmp(line, "Uid:\t", 5)) { in get_process_info() 126 *out_uid = atoi(line + 5); in get_process_info() 128 } else if (len > 5 && !memcmp(line, "Gid:\t", 5)) { in get_process_info() 129 *out_gid = atoi(line + 5); in get_process_info()
|
/system/extras/tests/workloads/ |
D | defs.sh | 230 ${ADB}dumpsys gfxinfo $_gfxapp | tr "\r" " " | egrep "9[059]th| frames" | while read line 232 if echo $line | grep -q "Total frames"; then 233 set -- $line 235 elif echo $line | grep -q "Janky frames"; then 236 set -- $line 238 elif echo $line | grep -q "90th"; then 239 set -- $(echo $line | tr m " ") 241 elif echo $line | grep -q "95th"; then 242 set -- $(echo $line | tr m " ") 244 elif echo $line | grep -q "99th"; then [all …]
|
/system/core/toolbox/upstream-netbsd/usr.bin/grep/ |
D | util.c | 444 printline(struct str *line, int sep, regmatch_t *matches, int m) in printline() argument 451 fputs(line->file, stdout); in printline() 453 printf("%s", line->file); in printline() 461 printf("%d", line->line_no); in printline() 467 printf("%lld", (long long)line->off); in printline() 476 fwrite(line->dat + a, matches[i].rm_so - a, 1, in printline() 481 fwrite(line->dat + matches[i].rm_so, in printline() 491 if (line->len - a > 0) in printline() 492 fwrite(line->dat + a, line->len - a, 1, stdout); in printline() 496 fwrite(line->dat, line->len, 1, stdout); in printline()
|
/system/core/fs_mgr/ |
D | fs_mgr_fstab.c | 217 char *line = NULL; in fs_mgr_read_fstab() local 232 while ((len = getline(&line, &alloc_len, fstab_file)) != -1) { in fs_mgr_read_fstab() 234 if (line[len - 1] == '\n') { in fs_mgr_read_fstab() 235 line[len - 1] = '\0'; in fs_mgr_read_fstab() 238 p = line; in fs_mgr_read_fstab() 262 while ((len = getline(&line, &alloc_len, fstab_file)) != -1) { in fs_mgr_read_fstab() 264 if (line[len - 1] == '\n') { in fs_mgr_read_fstab() 265 line[len - 1] = '\0'; in fs_mgr_read_fstab() 269 p = line; in fs_mgr_read_fstab() 286 if (!(p = strtok_r(line, delim, &save_ptr))) { in fs_mgr_read_fstab() [all …]
|
/system/core/lmkd/ |
D | lmkd.c | 455 static void zoneinfo_parse_line(char *line, struct sysmeminfo *mip) { in zoneinfo_parse_line() argument 456 char *cp = line; in zoneinfo_parse_line() 460 cp = strtok_r(line, " ", &save_ptr); in zoneinfo_parse_line() 485 char *line; in zoneinfo_parse() local 504 for (line = strtok_r(buf, "\n", &save_ptr); line; line = strtok_r(NULL, "\n", &save_ptr)) in zoneinfo_parse() 505 zoneinfo_parse_line(line, mip); in zoneinfo_parse() 513 char line[LINE_MAX]; in proc_get_size() local 524 ret = read_all(fd, line, sizeof(line) - 1); in proc_get_size() 530 sscanf(line, "%d %d ", &total, &rss); in proc_get_size() 537 static char line[LINE_MAX]; in proc_get_name() local [all …]
|
/system/extras/ext4_utils/ |
D | canned_fs_config.c | 50 char line[PATH_MAX + 200]; in load_canned_fs_config() local 51 while (fgets(line, sizeof(line), f)) { in load_canned_fs_config() 57 p->path = strdup(strtok(line, " ")); in load_canned_fs_config()
|
/system/core/logwrapper/ |
D | logwrap.c | 105 char *line, ssize_t line_len) in add_line_to_linear_buf() argument 113 memcpy(b_buf->buf + b_buf->used_len, line, line_len); in add_line_to_linear_buf() 121 char *line, ssize_t line_len) in add_line_to_circular_buf() argument 149 memcpy(e_buf->buf + e_buf->write, line, cnt); in add_line_to_circular_buf() 151 memcpy(e_buf->buf, line + cnt, line_len - cnt); in add_line_to_circular_buf() 158 static void do_log_line(struct log_info *log_info, char *line) { in do_log_line() argument 160 klog_write(6, log_info->klog_fmt, line); in do_log_line() 163 ALOG(LOG_INFO, log_info->btag, "%s", line); in do_log_line() 166 fprintf(log_info->fp, "%s\n", line); in do_log_line() 173 static void log_line(struct log_info *log_info, char *line, int len) { in log_line() argument [all …]
|
/system/core/gpttool/ |
D | gpttool.c | 319 char line[256], *p; in main() local 326 while (fgets(line, sizeof(line), f)) { in main() 327 p = line + strlen(line); in main() 328 while (p > line) { in main() 334 p = line; in main()
|
/system/bt/test/bluedroidtest/ |
D | bluedroidtest.c | 664 char line[128]; in do_help() local 669 pos = sprintf(line, "%s", (char*)console_cmd_list[i].name); in do_help() 670 bdt_log("%s %s\n", (char*)line, (char*)console_cmd_list[i].help); in do_help() 804 char line[128]; in main() local 810 fgets (line, 128, stdin); in main() 812 if (line[0]!= '\0') in main() 815 line[strlen(line)-1] = 0; in main() 817 process_cmd(line, 0); in main() 818 memset(line, '\0', 128); in main()
|
/system/core/adb/tests/ |
D | test_adb.py | 59 def is_init_line(line): argument 60 if (len(line) >= 3) and (line[0] == "*") and (line[-2] == "*"): 65 return [line for line in out_list if not is_init_line(line)] 71 for line in output[1:]: 72 if line.strip() == "": 74 device, _ = line.split()
|
/system/extras/showslab/ |
D | showslab.c | 64 char line[SLABINFO_LINE_LEN]; in get_slabinfo() local 73 if (!fgets(line, SLABINFO_LINE_LEN, slabfile)) { in get_slabinfo() 78 if (sscanf(line, "slabinfo - version: %u.%u", &major, &minor) != 2) { in get_slabinfo() 90 while (fgets(line, SLABINFO_LINE_LEN, slabfile)) { in get_slabinfo() 94 if (line[0] == '#') in get_slabinfo() 106 ret = sscanf(line, "%" STRINGIFY(SLABINFO_NAME_LEN) "s" in get_slabinfo()
|