Home
last modified time | relevance | path

Searched refs:line (Results 1 – 25 of 372) 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
84 ASSERT_NE(nullptr, target_path) << line; in ParseNamespacePath()
87 << line; in ParseNamespacePath()
95 Section& current_section, const std::string& line) { in ParseLinkList() argument
101 << "Link to " << namespace_to << " is already defined : " << line; in ParseLinkList()
103 << "Target namespace is not defined in section : " << line; in ParseLinkList()
115 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 print line.replace('do_', 'check_'),
44 print FUNCTION_REGEX.sub('check_stub', line),
[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/bt/gd/storage/
Dlegacy_config_file.cc44 std::string line; in Read() local
46 while (std::getline(config_file, line)) { in Read()
48 line = common::StringTrim(std::move(line)); in Read()
49 if (line.front() == '\0' || line.front() == '#') { in Read()
52 if (line.front() == '[') { in Read()
53 if (line.back() != ']') { in Read()
58 section = line.substr(1, line.size() - 2); in Read()
60 auto tokens = common::StringSplit(line, "=", 2); in Read()
/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/tools/aidl/
Dcomments.cpp77 for (auto& line : Split(stripped, "\n")) { in TrimmedLines() local
80 for (; idx < line.size() && isspace(line[idx]); idx++) in TrimmedLines()
82 if (idx < line.size() && line[idx] == '*') idx++; in TrimmedLines()
83 if (idx < line.size() && line[idx] == ' ') idx++; in TrimmedLines()
85 const std::string& sanitized_line = line.substr(idx); in TrimmedLines()
127 for (const auto& line : TrimmedLines(c)) { in BlockTags() local
130 for (; idx < line.size() && isspace(line[idx]); idx++) in BlockTags()
133 if (idx == line.size()) { in BlockTags()
135 } else if (line[idx] == '@') { in BlockTags()
140 for (; end_idx < line.size() && isalpha(line[end_idx]); end_idx++) in BlockTags()
[all …]
/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/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/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/memory/libmeminfo/libdmabufinfo/
Ddmabufinfo.cpp67 char* line = nullptr; in ReadDmaBufFdInfo() local
69 while (getline(&line, &len, fp.get()) > 0) { in ReadDmaBufFdInfo()
70 switch (line[0]) { in ReadDmaBufFdInfo()
72 if (strncmp(line, "count:", 6) == 0) { in ReadDmaBufFdInfo()
73 char* c = line + 6; in ReadDmaBufFdInfo()
78 if (strncmp(line, "exp_name:", 9) == 0) { in ReadDmaBufFdInfo()
79 char* c = line + 9; in ReadDmaBufFdInfo()
85 if (strncmp(line, "name:", 5) == 0) { in ReadDmaBufFdInfo()
86 char* c = line + 5; in ReadDmaBufFdInfo()
91 if (strncmp(line, "size:", 5) == 0) { in ReadDmaBufFdInfo()
[all …]
/system/netd/libnetdutils/
DDumpWriter.cpp51 void DumpWriter::println(const std::string& line) { in println() argument
52 if (!line.empty()) { in println()
56 ::write(mFd, line.c_str(), line.size()); in println()
63 std::string line; in println() local
66 StringAppendV(&line, fmt, ap); in println()
68 println(line); in println()
/system/extras/simpleperf/scripts/
Dreport.py109 line = lines[line_id]
110 if not line or line.find('Event:') == 0:
112 common_report_context.append(line)
125 for line in lines[line_id:]:
126 if not line:
133 cur_event_report.context.append(line)
134 if line.find('Event:') == 0:
139 cur_event_report.title_line = line
140 elif not line[0].isspace():
141 cur_report_item = ReportItem(line)
[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/sepolicy/tests/
Dfc_sort.py15 line = None variable in FileContextsNode
16 def __init__(self, path, fileType, context, meta, stemLen, strLen, line): argument
24 self.line = line
56 def CreateNode(line): argument
58 if (len(line) == 0) or (line[0] == '#'):
61 split = line.split()
71 return FileContextsNode(path, fileType, context, meta, stemLen, strLen, line)
77 for line in fd:
78 node = CreateNode(line.strip())
130 f.write(node.line + "\n")
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)
/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/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/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/fastboot/
Dfastboot_test.cpp63 extern bool ParseRequirementLine(const std::string& line, std::string* name, std::string* product,
66 static void ParseRequirementLineTest(const std::string& line, const std::string& expected_name, in ParseRequirementLineTest() argument
74 EXPECT_TRUE(ParseRequirementLine(line, &name, &product, &invert, &options)) << line; in ParseRequirementLineTest()
76 EXPECT_EQ(expected_name, name) << line; in ParseRequirementLineTest()
77 EXPECT_EQ(expected_product, product) << line; in ParseRequirementLineTest()
78 EXPECT_EQ(expected_invert, invert) << line; in ParseRequirementLineTest()
79 EXPECT_EQ(expected_options, options) << line; in ParseRequirementLineTest()
173 static void ParseRequirementLineTestMalformed(const std::string& line) { in ParseRequirementLineTestMalformed() argument
179 EXPECT_FALSE(ParseRequirementLine(line, &name, &product, &invert, &options)) << line; in ParseRequirementLineTestMalformed()
/system/tools/hidl/lint/lints/
DmethodDocComment.cpp37 std::string line = str; in getFirstWordAfterPrefix() local
38 if (base::StartsWith(line, prefix)) { in getFirstWordAfterPrefix()
39 line = StringHelper::LTrim(line, prefix); in getFirstWordAfterPrefix()
42 if (!base::StartsWith(line, " ")) { in getFirstWordAfterPrefix()
47 line = StringHelper::LTrimAll(line, " "); in getFirstWordAfterPrefix()
49 std::vector<std::string> words = base::Split(line, " "); in getFirstWordAfterPrefix()
96 for (const std::string& line : docComment->lines()) { in methodDocComments() local
99 if (bool foundPrefix = getFirstWordAfterPrefix(line, "@return", &returnName); in methodDocComments()
128 if (bool foundPrefix = getFirstWordAfterPrefix(line, "@param", &returnName); in methodDocComments()
/system/logging/logd/
DLogPermissions.cpp93 char* line = nullptr; in clientHasLogCredentials() local
95 while (getline(&line, &len, file) > 0) { in clientHasLogCredentials()
100 if (strncmp(groups_string, line, sizeof(groups_string) - 1) == 0) { in clientHasLogCredentials()
101 if (groupIsLog(line + sizeof(groups_string) - 1)) { in clientHasLogCredentials()
104 } else if (strncmp(uid_string, line, sizeof(uid_string) - 1) == 0) { in clientHasLogCredentials()
107 sscanf(line + sizeof(uid_string) - 1, "%u\t%u\t%u\t%u", &u[0], in clientHasLogCredentials()
115 } else if (strncmp(gid_string, line, sizeof(gid_string) - 1) == 0) { in clientHasLogCredentials()
118 sscanf(line + sizeof(gid_string) - 1, "%u\t%u\t%u\t%u", &g[0], in clientHasLogCredentials()
128 free(line); in clientHasLogCredentials()
/system/core/fs_mgr/
Dfs_mgr_boot_config.cpp68 for (auto& line : android::base::Split(cmdline, "\n")) { in fs_mgr_parse_proc_bootconfig() local
69 line.erase(std::remove(line.begin(), line.end(), quote), line.end()); in fs_mgr_parse_proc_bootconfig()
70 auto equal_sign = line.find('='); in fs_mgr_parse_proc_bootconfig()
71 if (equal_sign == line.npos) { in fs_mgr_parse_proc_bootconfig()
72 if (!line.empty()) { in fs_mgr_parse_proc_bootconfig()
74 result.emplace_back(std::move(line), ""); in fs_mgr_parse_proc_bootconfig()
77 result.emplace_back(android::base::Trim(line.substr(0, equal_sign)), in fs_mgr_parse_proc_bootconfig()
78 android::base::Trim(line.substr(equal_sign + 1))); in fs_mgr_parse_proc_bootconfig()
/system/security/keystore/tests/
Dlist_auth_bound_keys_test.sh62 while read -r line; do
63 echo $line
64 if [ "$line" == "$USER2_ID" ]; then
67 if [ "$line" == "$USER1_ID" ]; then

12345678910>>...15