/system/core/adb/ |
H A D | adb_trace.cpp | 41 const char* tag, const char* file, unsigned int line, 43 android::base::StderrLogger(id, severity, tag, file, line, message); 48 gLogdLogger(id, severity, tag, file, line, message); 40 AdbLogger(android::base::LogId id, android::base::LogSeverity severity, const char* tag, const char* file, unsigned int line, const char* message) argument
|
H A D | adb_utils.cpp | 169 std::string line; local 171 android::base::StringAppendF(&line, "%02x", p[i]); 173 line.push_back(' '); 177 line.push_back(isprint(ch) ? ch : '.'); 181 line += " [truncated]"; 184 return line;
|
/system/core/logwrapper/ |
H A D | logwrap.c | 104 char *line, ssize_t line_len) 112 memcpy(b_buf->buf + b_buf->used_len, line, line_len); 120 char *line, ssize_t line_len) 144 /* Copy the line into the circular buffer, dealing with possible 148 memcpy(e_buf->buf + e_buf->write, line, cnt); 150 memcpy(e_buf->buf, line + cnt, line_len - cnt); 157 static void do_log_line(struct log_info *log_info, char *line) { argument 159 klog_write(6, log_info->klog_fmt, line); 162 ALOG(LOG_INFO, log_info->btag, "%s", line); 165 fprintf(log_info->fp, "%s\n", line); 103 add_line_to_linear_buf(struct beginning_buf *b_buf, char *line, ssize_t line_len) argument 119 add_line_to_circular_buf(struct ending_buf *e_buf, char *line, ssize_t line_len) argument 172 log_line(struct log_info *log_info, char *line, int len) argument [all...] |
/system/core/toolbox/upstream-netbsd/usr.bin/grep/ |
H A D | util.c | 184 * Opens a file and processes it. Each file is processed line-by-line 244 /* Process the file line-by-line */ 280 * Processes a line comparing it with the specified patterns. Each pattern 295 /* Loop to process the whole line */ 441 * Prints a matching line according to the command line options. 444 printline(struct str *line, int sep, regmatch_t *matches, int m) argument 451 fputs(line [all...] |
/system/extras/pagecache/ |
H A D | pagecache.py | 126 text_file: If True, the file will be read one line at a time, and 127 chunk_size will be ignored. If False, line breaks are ignored and 146 # Read a text file one line at a time. 147 for line in self._file_object: 148 self._output_queue.put(line) 192 device_serial: if not empty, will add the appropriate command-line 230 def parse_atrace_line(line, pagecache_stats, app_name): 232 m = re.match('.* (mm_filemap_add_to_page_cache|mm_filemap_delete_from_page_cache): dev (\d+):(\d+) ino ([0-9a-z]+) page=([0-9a-z]+) pfn=\d+ ofs=(\d+).*', line) 249 for line in text: 250 result = re.match('([0-9]+)d? ([0-9]+) ([0-9]+) (.*)', line) [all...] |
/system/core/debuggerd/libdebuggerd/ |
H A D | tombstone.cpp | 140 std::string line; local 142 line = " "; 145 line += StringPrintf("#%02d ", label); 147 line += " "; 149 line += StringPrintf("%" PRIPTR " %" PRIPTR, *sp, static_cast<uint64_t>(stack_data[i])); 155 line += " " + map_name; 159 line += " (" + func_name; 161 line += StringPrintf("+%" PRIu64, offset); 163 line += ')'; 166 _LOG(log, logtype::STACK, "%s\n", line 277 std::string line; local [all...] |
/system/extras/boottime_tools/bootanalyze/ |
H A D | bootanalyze.py | 525 def handle_zygote_event(zygote_pids, events, event, line): 526 words = line.split() 555 events[event] = line 578 line = process.stdout.readline().lstrip().rstrip() 579 if not line: 581 lines.append(line) 582 event = get_boot_event(line, shutdown_events_pattern); 585 time = extract_a_time(line, TIME_LOGCAT, float) 587 print "cannot get time from: " + line 635 line [all...] |
/system/extras/simpleperf/scripts/ |
H A D | pprof_proto_generator.py | 129 for i in range(len(location.line)): 131 self.show_line(location.line[i], sub_space) 151 def show_line(self, line, space=''): 153 print('%sfunction_id: %d' % (space, line.function_id)) 154 self.show_function_id(line.function_id, sub_space) 155 print('%sline: %d' % (space, line.line)) 219 self.line = 0 326 # 2. Generate line info for locations and functions. 394 # Default line inf [all...] |
H A D | utils.py | 389 """ Use addr2line to convert (dso_path, func_addr, addr) to (source_file, line) pairs. 392 line information. However, we want to assign the instruction to the nearest line before 394 Instead of finding the exact line of the instruction in an address, we find the nearest 395 line to the instruction in an address. If an address doesn't have a line info, we find 396 the line info of address - 1. If still no line info, then use address - 2, address - 3, 402 2. Convert addrs to (source_file, line) pairs for each dso_path as below: 407 2.3 Use addr2line to find line inf [all...] |
/system/bt/tools/scripts/ |
H A D | btsnooz.py | 151 for line in iterator: 153 if line.find('--- END:BTSNOOP_LOG_SUMMARY') != -1: 156 base64_string += line.strip() 158 if line.find('--- BEGIN:BTSNOOP_LOG_SUMMARY') != -1:
|
/system/core/init/ |
H A D | action_parser.cpp | 114 const std::string& filename, int line) { 138 auto action = std::make_unique<Action>(false, action_subcontext, filename, line, event_trigger, 145 Result<Success> ActionParser::ParseLineSection(std::vector<std::string>&& args, int line) { argument 146 return action_ ? action_->AddCommand(std::move(args), line) : Success(); 113 ParseSection(std::vector<std::string>&& args, const std::string& filename, int line) argument
|
/system/extras/memory_replay/ |
H A D | Thread.h | 39 Action* CreateAction(uintptr_t key_pointer, const char* type, const char* line);
|
/system/tools/aidl/tests/ |
H A D | integration-test.py | 49 for line in self.stdout.splitlines(): 50 output.append(' > %s' % line) 52 for line in self.stderr.splitlines(): 53 output.append(' > %s' % line)
|
/system/core/init/test_service/ |
H A D | test_service.cpp | 37 // command-line arguments is even. 39 LOG(FATAL) << "need even number of command-line arguments"; 50 for (const auto& line : lines) { 51 std::vector<std::string> tokens = android::base::Split(line, ":");
|
/system/core/toolbox/ |
H A D | generate-input.h-labels.py | 43 for line in f: 44 m = r.match(line)
|
/system/extras/showslab/ |
H A D | showslab.c | 13 #define SLABINFO_LINE_LEN 512 /* size of longest line */ 18 /* object representing a slab cache (each line of slabinfo) */ 64 char line[SLABINFO_LINE_LEN]; local 73 if (!fgets(line, SLABINFO_LINE_LEN, slabfile)) { 78 if (sscanf(line, "slabinfo - version: %u.%u", &major, &minor) != 2) { 90 while (fgets(line, SLABINFO_LINE_LEN, slabfile)) { 94 if (line[0] == '#') 106 ret = sscanf(line, "%" STRINGIFY(SLABINFO_NAME_LEN) "s" 215 * Sort Routines. Each of these should be associated with a command-line
|
/system/tools/hidl/docs/src/lexer/ |
H A D | HidlLexer.kt | 30 //match line to '*/', check for anything after on same line 41 //strip line comments 59 val line = scanner.nextLine() 61 val matches = matchToDocEnd.find(line)?.groups 64 throw ParseException("No text after '*/' on same line: ${line}", 0) 70 sb.appendln(line)
|
/system/core/libbacktrace/ |
H A D | backtrace_offline_test.cpp | 207 for (const auto& line : lines) { 208 if (android::base::StartsWith(line, "pid:")) { 209 sscanf(line.c_str(), "pid: %d tid: %d", &testdata->pid, &testdata->tid); 210 } else if (android::base::StartsWith(line, "map:")) { 214 sscanf(line.c_str(), 218 map.name = android::base::Trim(line.substr(pos)); 219 } else if (android::base::StartsWith(line, "ucontext:")) { 223 sscanf(line.c_str(), "ucontext: %zu %n", &size, &pos); 224 HexStringToRawData(&line[pos], &testdata->ucontext, size); 225 } else if (android::base::StartsWith(line, "stac [all...] |
/system/extras/simpleperf/runtest/ |
H A D | runtest.py | 415 for line in lines: 416 if not line: 418 if not line[0].isspace(): 420 items = line.split(None, 6) 429 items = line.split(None, 5) 439 for i in range(len(line)): 440 if line[i] == '|': 444 if not line.strip('| \t'): 446 if line.find('-') == -1: 447 function_name = line [all...] |
/system/core/lmkd/ |
H A D | lmkd.c | 700 static void memory_stat_parse_line(char *line, struct memory_stat *mem_st) { argument 704 sscanf(line, "%" STRINGIFY(LINE_MAX) "s %" SCNd64 "", key, &value); 761 static bool zoneinfo_parse_line(char *line, union zoneinfo *zi) { argument 762 char *cp = line; 768 cp = strtok_r(line, " ", &save_ptr); 808 char *line; local 816 for (line = strtok_r(buf, "\n", &save_ptr); line; 817 line = strtok_r(NULL, "\n", &save_ptr)) { 818 if (!zoneinfo_parse_line(line, z 829 meminfo_parse_line(char *line, union meminfo *mi) argument 862 char *line; local 885 char line[LINE_MAX]; local 909 static char line[LINE_MAX]; local [all...] |
/system/tools/aidl/ |
H A D | aidl.cpp | 75 unsigned line) { 130 filename.c_str(), line, name.c_str(), expected.c_str()); 452 bool ParsePreprocessedLine(const string& line, string* decl, argument 455 const size_t end = line.find_last_not_of(" ;\t"); 459 if (line.rfind(';', end) != string::npos) { 465 vector<string> pieces = Split(line.substr(0, end + 1), " \t"); 510 string line; local 512 for ( ; line_reader->ReadLine(&line); ++lineno) { 513 if (line.empty() || line 72 check_filename(const std::string& filename, const std::string& package, const std::string& name, unsigned line) argument 541 << " malformed preprocessed file line: '" << line << "'"; local 763 string line; local [all...] |
/system/extras/simpleperf/ |
H A D | cmd_debug_unwind.cpp | 64 for (auto& line : lines) { 65 if (android::base::StartsWith(line, "VmPeak:")) { 66 stat->vm_peak = android::base::Trim(line.substr(strlen("VmPeak:"))); 67 } else if (android::base::StartsWith(line, "VmSize:")) { 68 stat->vm_size = android::base::Trim(line.substr(strlen("VmSize:"))); 69 } else if (android::base::StartsWith(line, "VmHWM:")) { 70 stat->vm_hwm = android::base::Trim(line.substr(strlen("VmHWM:"))); 71 } else if (android::base::StartsWith(line, "VmRSS:")) { 72 stat->vm_rss = android::base::Trim(line.substr(strlen("VmRSS:")));
|
/system/tools/hidl/ |
H A D | Hash.cpp | 135 std::string line; local 136 while(std::getline(stream, line)) { 138 bool valid = std::regex_match(line, match, kHashLine); 141 *err = "Error reading line from " + path + ": " + line; 156 *err = "Hash or fqName empty on " + path + ": " + line;
|
/system/libufdt/utils/src/ |
H A D | mkdtboimg.py | 43 arg: String containing the argument provided on the command line. 451 Parses command line arguments for single DT image file while 457 arglist: Command line argument list for this DtEntry. 487 """Parse all DT entries from command line. 490 command line 495 arg_list: The remainder of the command line after global options 499 A List of DtEntry objects created after parsing the command line 530 def parse_config_option(line, is_global, dt_keys, global_keys): 531 """Parses a single line from the configuration file. 534 line [all...] |
/system/iot/attestation/at-factory-tool/ |
H A D | fastbootsh.py | 200 for line in lines: 201 if line.startswith(var + ': '): 202 value = line.replace(var + ': ', '')
|