Home
last modified time | relevance | path

Searched refs:line (Results 1 – 25 of 358) sorted by relevance

12345678910>>...15

/system/extras/memory_replay/tests/
DAllocTest.cpp26 std::string line = "1234: malloc 0xabd0000 20"; in TEST() local
28 AllocGetData(line, &entry); in TEST()
37 std::string line = "1234: malloc 0xabd0000"; in TEST() local
39 EXPECT_DEATH(AllocGetData(line, &entry), ""); in TEST()
41 line = "1234: malloc"; in TEST()
42 EXPECT_DEATH(AllocGetData(line, &entry), ""); in TEST()
46 std::string line = "1235: free 0x5000"; in TEST() local
48 AllocGetData(line, &entry); in TEST()
57 std::string line = "1234: free"; in TEST() local
59 EXPECT_DEATH(AllocGetData(line, &entry), ""); in TEST()
[all …]
/system/linkerconfig/contents/tests/configuration/include/
Dlinkerconfigparser.h34 inline void ParseDirPath(const std::string& line, Configuration& conf) { in ParseDirPath() argument
38 ASSERT_TRUE(std::regex_match(line, match, dir_regex)) << line; in ParseDirPath()
39 ASSERT_EQ(3u, match.size()) << line; in ParseDirPath()
69 const std::string& line) { in ParseNamespacePath() argument
91 ASSERT_NE(nullptr, target_path) << line; in ParseNamespacePath()
94 << line; in ParseNamespacePath()
102 Section& current_section, const std::string& line) { in ParseLinkList() argument
108 << "Link to " << namespace_to << " is already defined : " << line; in ParseLinkList()
111 << " is not defined in section : " << line; in ParseLinkList()
123 const std::string& line) { in ParseLink() argument
[all …]
/system/core/init/
Dhost_builtin_map.py20 for line in check_file:
21 match = CHECK_REGEX.match(line)
28 for line in builtins_file:
29 if '// Builtin-function-map start' in line:
31 elif '// Builtin-function-map end' in line:
34 function_map.append(line)
38 for line in function_map:
39 match = DO_REGEX.match(line)
42 line = line.replace('do_', 'check_') variable
44 line = FUNCTION_REGEX.sub('check_stub', line) variable
[all …]
/system/linkerconfig/devicetest/src/android/linkerconfig/gts/utils/elements/
DSection.java55 public void parseConfiguration(String line) { in parseConfiguration() argument
56 Matcher additionalNamespacesMatcher = sAdditionalNamespacesPattern.matcher(line); in parseConfiguration()
69 Matcher namespaceMatcher = sNamespacePattern.matcher(line); in parseConfiguration()
70 assertTrue("Cannot parse : " + line, namespaceMatcher.matches()); in parseConfiguration()
81 assertTrue("Invalid command : " + namespaceMatcher.group(2) + " from " + line, in parseConfiguration()
85 assertEquals("Invalid command : " + line, 1, commands.length); in parseConfiguration()
89 assertEquals("Invalid command : " + line, 1, commands.length); in parseConfiguration()
93 assertEquals("Invalid command : " + line, 2, commands.length); in parseConfiguration()
94 assertEquals("Invalid command : " + line, "paths", commands[1]); in parseConfiguration()
100 assertEquals("Invalid command : " + line, 2, commands.length); in parseConfiguration()
[all …]
/system/tools/aidl/
Dcomments.cpp78 for (auto& line : Split(stripped, "\n")) { in TrimmedLines() local
81 for (; idx < line.size() && isspace(line[idx]); idx++) in TrimmedLines()
83 if (idx < line.size() && line[idx] == '*') idx++; in TrimmedLines()
84 if (idx < line.size() && line[idx] == ' ') idx++; in TrimmedLines()
86 const std::string& sanitized_line = line.substr(idx); in TrimmedLines()
128 for (const auto& line : TrimmedLines(c)) { in BlockTags() local
131 for (; idx < line.size() && isspace(line[idx]); idx++) in BlockTags()
134 if (idx == line.size()) { in BlockTags()
136 } else if (line[idx] == '@') { in BlockTags()
141 for (; end_idx < line.size() && isalpha(line[end_idx]); end_idx++) in BlockTags()
[all …]
/system/extras/boottime_tools/bootanalyze/
Dbugreport_anayze.py161 def match_an_event(self, event_patterns, line): argument
163 m = event_pattern.search(line)
168 def get_event_time(self, line, is_kernel): argument
170 m = self.re_time_dmesg.search(line)
172 print "Cannot get time from log:", line
176 m = self.re_time_logcat.search(line)
178 print "Cannot get time from log:", line
198 line = orig_line
202 while len(line) > 0:
203 m = self.re_native_crash_start.search(line)
[all …]
/system/extras/perf_tools/
Dprogress_report.py59 for line in fp:
60 if "boot_progress_start" in line:
61 start = line
62 if "boot_progress_enable_screen" in line and len(start):
63 end = line
76 def replace_timestamp_abs(line, timestamp_str, date_time_obj0): argument
77 index = line.find(" ", 6)
79 return line
80 substr0 = line[:index]
81 substr1 = line[index:]
[all …]
Dparse_timestamp.py27 for line in fp:
28 newline = replace_timestamp_abs(line, timestamp_str, date_time_obj)
35 def replace_timestamp_abs(line, timestamp_str, date_time_obj0): argument
36 if line[:5] != timestamp_str[:5]:
37 return line
39 index = line.find(" ", 6)
41 return line
42 substr0 = line[:index]
43 substr1 = line[index:]
48 return line
/system/libufdt/utils/src/
Dmkdtimg_cfg_create.c41 static char *trim_line(char *line) { in trim_line() argument
43 char *end = line; in trim_line()
49 } while (end >= line && isspace(*end)); in trim_line()
53 while (isspace(*line)) { in trim_line()
54 line++; in trim_line()
56 return line; in trim_line()
63 char line[1024]; in parse_config_entry_count() local
64 while (fgets(line, sizeof(line), cfg_fp) != NULL) { in parse_config_entry_count()
65 char c = line[0]; in parse_config_entry_count()
80 char line[1024]; in output_img_with_config() local
[all …]
/system/extras/perf2cfg/perf2cfg/
Dedit.py133 line = raw_line.strip()
135 self.parse_line(line)
159 for lineno, line in enumerate(self.input_stream, 1):
160 if line:
161 yield lineno, line
163 def parse_line(self, line: str) -> None:
173 if line == EOF_MARKER:
175 elif line == 'begin_compilation':
182 method_name = parse.parse_name(line)
195 if line == EOF_MARKER:
[all …]
Dparse.py55 def parse_address(line: str) -> int:
71 parts = line.split(':', 1)
80 def parse_flags(line: str) -> List[str]:
97 parts = line.split(None, 1)
107 def parse_name(line: str) -> str:
123 parts = line.split(None, 1)
/system/extras/memory_replay/
DAllocParser.cpp25 void AllocGetData(const std::string& line, AllocEntry* entry) { in AllocGetData() argument
34 if (sscanf(line.c_str(), "%d: %127s %" SCNx64 " %n", &entry->tid, name, &entry->ptr, in AllocGetData()
36 errx(1, "File Error: Failed to process %s", line.c_str()); in AllocGetData()
43 const char* args_beg = &line[op_prefix_pos]; in AllocGetData()
48 errx(1, "File Error: Failed to read malloc data %s", line.c_str()); in AllocGetData()
60 errx(1, "File Error: Failed to read calloc data %s", line.c_str()); in AllocGetData()
68 errx(1, "File Error: Failed to read realloc data %s", line.c_str()); in AllocGetData()
76 errx(1, "File Error: Failed to read memalign data %s", line.c_str()); in AllocGetData()
89 errx(1, "File Error: Failed to read timestamps %s", line.c_str()); in AllocGetData()
/system/tools/hidl/
DDocComment.cpp37 const std::string& line = lines[l]; in DocComment() local
41 for (; idx < line.size() && isspace(line[idx]); idx++) in DocComment()
43 if (idx < line.size() && line[idx] == '*') idx++; in DocComment()
44 if (idx < line.size() && line[idx] == ' ') idx++; in DocComment()
46 const std::string& sanitizedLine = line.substr(idx); in DocComment()
95 for (const std::string& line : mLines) { in emit() local
96 out << (line.empty() && isMultiline ? "" : " ") << line << "\n"; in emit()
/system/extras/ioblame/
DuidProcessMapper.py72 for line in dump.split("\n"):
73 if line.startswith("Name:"):
74 name = self.match_re(self.nameReMatcher, line)
76 elif line.startswith("Pid:"):
77 pid = self.match_re(self.pidReMatcher, line)
79 elif line.startswith("Uid:"):
80 uid = self.match_re(self.uidReMatcher, line)
86 for line in dump.split("\n"):
87 if line == "":
90 match = self.packageUidMatcher.match(line)
[all …]
/system/extras/simpleperf/scripts/
Dreport.py110 line = lines[line_id]
111 if not line or line.find('Event:') == 0:
113 common_report_context.append(line)
126 for line in lines[line_id:]:
127 if not line:
134 cur_event_report.context.append(line)
135 if line.find('Event:') == 0:
140 cur_event_report.title_line = line
141 elif not line[0].isspace():
142 cur_report_item = ReportItem(line)
[all …]
/system/memory/libmeminfo/
Dprocmeminfo.cpp91 static bool parse_smaps_field(const char* line, MemUsage* stats) { in parse_smaps_field() argument
92 const char *end = line; in parse_smaps_field()
96 if (*end && end > line && *(end - 1) == ':') { in parse_smaps_field()
99 switch (line[0]) { in parse_smaps_field()
101 if (strncmp(line, "Pss:", 4) == 0) { in parse_smaps_field()
103 } else if (strncmp(line, "Private_Clean:", 14) == 0) { in parse_smaps_field()
107 } else if (strncmp(line, "Private_Dirty:", 14) == 0) { in parse_smaps_field()
111 } else if (strncmp(line, "Private_Hugetlb:", 16) == 0) { in parse_smaps_field()
116 if (strncmp(line, "Size:", 5) == 0) { in parse_smaps_field()
118 } else if (strncmp(line, "Shared_Clean:", 13) == 0) { in parse_smaps_field()
[all …]
/system/core/healthd/
DAnimationParser.cpp40 bool remove_prefix(std::string_view line, const char* prefix, const char** rest) { in remove_prefix() argument
41 const char* str = line.data(); in remove_prefix()
90 for (const auto& line : base::Split(content, "\n")) { in parse_animation_desc() local
94 if (can_ignore_line(line.c_str())) { in parse_animation_desc()
96 } else if (remove_prefix(line, animation_prefix, &rest)) { in parse_animation_desc()
101 LOGE("Bad animation format: %s\n", line.c_str()); in parse_animation_desc()
106 } else if (remove_prefix(line, fail_prefix, &rest)) { in parse_animation_desc()
108 } else if (remove_prefix(line, clock_prefix, &rest)) { in parse_animation_desc()
110 LOGE("Bad clock_display format: %s\n", line.c_str()); in parse_animation_desc()
113 } else if (remove_prefix(line, percent_prefix, &rest)) { in parse_animation_desc()
[all …]
/system/chre/util/nanoapp/
Ddebug.cc32 char line[32]; in logBuffer() local
49 snprintf(&line[offset], sizeof(line) - offset, "%02x ", buffer[i - 1])); in logBuffer()
54 LOGD(" %s\t%s", line, lineChars); in logBuffer()
59 snprintf(&line[offset], sizeof(line) - offset, " ")); in logBuffer()
71 LOGD(" %s%s%s", line, tabs, lineChars); in logBuffer()
/system/extras/perf_tools/bats/
Dlcan.py49 def appendLine(self, line): argument
50 self.lines.append(line)
90 for line in self.lines:
91 print(" {}{}".format(prefix, line))
110 def parseLineWithTook(self, line): argument
114 words = line.split(" ")
115 dataTimeO = self.lCTimeProcessor.parseTimeStamp(line)
116 if line.find("took to complete") != -1:
118 tookIndex = line.find(" took to complete:")
119 uptoEnd= line[:tookIndex]
[all …]
/system/dmesgd/
Ddmesg_parser.cpp56 void DmesgParser::ProcessLine(const std::string& line) { in ProcessLine() argument
62 if (std::regex_search(line, m, bug_pattern_)) { in ProcessLine()
68 current_report_ = this->StripSensitiveData(line); in ProcessLine()
74 if (std::regex_search(line, task_delimiter_pattern_)) { in ProcessLine()
79 if (std::regex_search(line, task_line_pattern_)) current_report_ += StripSensitiveData(line); in ProcessLine()
152 std::string DmesgParser::StripSensitiveData(const std::string& line) const { in StripSensitiveData()
153 if (std::regex_search(line, ignore_pattern_)) return ""; in StripSensitiveData()
155 std::string ret = line; in StripSensitiveData()
/system/extras/tests/lib/testUtil/
DtestUtil.c145 char line[MAXSTR]; in testPrint() local
149 vsnprintf(line, sizeof(line), fmt, args); in testPrint()
151 ALOG(LOG_ERROR, logCatTag, "%s", line); in testPrint()
153 ALOG(LOG_INFO, logCatTag, "%s", line); in testPrint()
322 char line[MAXSTR]; in testXDump() local
325 char *linep = line; in testXDump()
329 if (linep != line) { in testXDump()
330 testPrintE("%s", line); in testXDump()
332 linep = line; in testXDump()
333 rv = snprintf(linep, ALEN(line) - (linep - line), in testXDump()
[all …]
/system/chre/tools/
Dtodo_checker.py72 for line in diff_result_lines:
73 if line.startswith('+') and not line.startswith('+++') and \
74 'TODO' in line and not re.findall(regex, line):
77 print(line)
140 [line for line in commit_msg_lines_list if \
141 any(word in line.lower() for word in ['bug:', 'fixes:'])][0]
/system/teeui/libteeui/src/
Dutils.cpp36 Color pixelLineIntersect(Point<pxs> line, pxs dist, Color c) { in pixelLineIntersect() argument
37 TEEUI_LOG << "Line: " << line << " Dist: " << dist; in pixelLineIntersect()
49 auto dist_vec = line * dist; in pixelLineIntersect()
92 auto line = a - b; in drawLinePoint() local
93 auto len = line.length(); in drawLinePoint()
94 auto l = line / len; in drawLinePoint()
110 line = Point<pxs>(-line.y(), line.x()) / len; in drawLinePoint()
111 dist = (line * (px_origin - a)).abs() - width + .5_px; in drawLinePoint()
114 return pixelLineIntersect(line, dist, c); in drawLinePoint()
118 auto line = px_origin - center; in drawCirclePoint() local
[all …]
/system/core/libutils/
DPrinter_fuzz.cpp30 std::string line = dataProvider.ConsumeRandomLengthString(MAX_STR_SIZE); in LLVMFuzzerTestOneInput() local
45 printer.printLine(line.c_str()); in LLVMFuzzerTestOneInput()
46 printer.printFormatLine("%s", line.c_str()); in LLVMFuzzerTestOneInput()
47 logPrinter.printLine(line.c_str()); in LLVMFuzzerTestOneInput()
48 logPrinter.printFormatLine("%s", line.c_str()); in LLVMFuzzerTestOneInput()
49 filePrinter.printLine(line.c_str()); in LLVMFuzzerTestOneInput()
50 filePrinter.printFormatLine("%s", line.c_str()); in LLVMFuzzerTestOneInput()
/system/sepolicy/tests/
Dcheck_prop_prefix.py27 def parse_line(line): argument
28 matched = line_regex.match(line)
30 raise ValueError('malformed entry "' + line + '" in property_contexts')
55 for line in lines:
56 tokens = line.strip()
61 prop, context = parse_line(line)
72 violations.append(line)

12345678910>>...15