Home
last modified time | relevance | path

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

12345678910>>...14

/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/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/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/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()
DLocation.cpp24 Position::Position(std::string filename, size_t line, size_t column) in Position() argument
25 : mFilename(filename), mLine(line), mColumn(column) {} in Position()
31 size_t Position::line() const { in line() function in android::Position
51 return ostr << pos.line() << "." << pos.column(); in operator <<()
95 Position last = Position(loc.end().filename(), loc.end().line(), in operator <<()
100 } else if (loc.begin().line() != last.line()) { in operator <<()
101 ostr << "-" << last.line() << "." << last.column(); in operator <<()
/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/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.py108 line = lines[line_id]
109 if not line or line.find('Event:') == 0:
111 common_report_context.append(line)
124 for line in lines[line_id:]:
125 if not line:
132 cur_event_report.context.append(line)
133 if line.find('Event:') == 0:
138 cur_event_report.title_line = line
139 elif not line[0].isspace():
140 cur_report_item = ReportItem(line)
[all …]
/system/core/healthd/
DAnimationParser.cpp40 bool remove_prefix(const std::string& line, const char* prefix, const char** rest) { in remove_prefix() argument
41 const char* str = line.c_str(); 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/core/logd/
DLogPermissions.cpp97 char* line = nullptr; in clientHasLogCredentials() local
99 while (getline(&line, &len, file) > 0) { in clientHasLogCredentials()
104 if (strncmp(groups_string, line, sizeof(groups_string) - 1) == 0) { in clientHasLogCredentials()
105 if (groupIsLog(line + sizeof(groups_string) - 1)) { in clientHasLogCredentials()
108 } else if (strncmp(uid_string, line, sizeof(uid_string) - 1) == 0) { in clientHasLogCredentials()
111 sscanf(line + sizeof(uid_string) - 1, "%u\t%u\t%u\t%u", &u[0], in clientHasLogCredentials()
119 } else if (strncmp(gid_string, line, sizeof(gid_string) - 1) == 0) { in clientHasLogCredentials()
122 sscanf(line + sizeof(gid_string) - 1, "%u\t%u\t%u\t%u", &g[0], in clientHasLogCredentials()
132 free(line); in clientHasLogCredentials()
/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")
/system/core/adb/client/
Dbugreport.cpp82 for (const auto& line : invalid_lines_) { in Done() local
83 fprintf(stderr, "\t%s\n", line.c_str()); in Done()
134 void ProcessLine(const std::string& line) { in ProcessLine() argument
135 if (line.empty()) return; in ProcessLine()
137 if (android::base::StartsWith(line, BUGZ_BEGIN_PREFIX)) { in ProcessLine()
138 SetSrcFile(&line[strlen(BUGZ_BEGIN_PREFIX)]); in ProcessLine()
139 } else if (android::base::StartsWith(line, BUGZ_OK_PREFIX)) { in ProcessLine()
140 SetSrcFile(&line[strlen(BUGZ_OK_PREFIX)]); in ProcessLine()
141 } else if (android::base::StartsWith(line, BUGZ_FAIL_PREFIX)) { in ProcessLine()
142 const char* error_message = &line[strlen(BUGZ_FAIL_PREFIX)]; in ProcessLine()
[all …]
/system/memory/libmeminfo/libdmabufinfo/
Ddmabufinfo.cpp55 char* line = nullptr; in ReadDmaBufFdInfo() local
57 while (getline(&line, &len, fp.get()) > 0) { in ReadDmaBufFdInfo()
58 switch (line[0]) { in ReadDmaBufFdInfo()
60 if (strncmp(line, "count:", 6) == 0) { in ReadDmaBufFdInfo()
61 char* c = line + 6; in ReadDmaBufFdInfo()
66 if (strncmp(line, "exp_name:", 9) == 0) { in ReadDmaBufFdInfo()
67 char* c = line + 9; in ReadDmaBufFdInfo()
72 if (strncmp(line, "name:", 5) == 0) { in ReadDmaBufFdInfo()
73 char* c = line + 5; in ReadDmaBufFdInfo()
80 free(line); in ReadDmaBufFdInfo()
[all …]
/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()
321 char line[MAXSTR]; in testXDump() local
324 char *linep = line; in testXDump()
328 if (linep != line) { in testXDump()
329 testPrintE("%s", line); in testXDump()
331 linep = line; in testXDump()
332 rv = snprintf(linep, ALEN(line) - (linep - line), in testXDump()
[all …]
/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/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
/system/tools/aidl/
Dline_reader.cpp48 bool ReadLine(string* line) override { in ReadLine() argument
52 line->clear(); in ReadLine()
53 std::getline(input_stream_, *line); in ReadLine()
72 bool ReadLine(string* line) override { in ReadLine() argument
76 line->clear(); in ReadLine()
77 std::getline(input_stream_, *line); in ReadLine()
/system/tools/hidl/test/error_test/
Dhidl_error_test.sh24 echo "$output" | while read line; do echo "test output: $line"; done
35 echo "$output" | while read line; do echo "test output: $line"; done
/system/nfc/utils/
Dconfig.cc125 string line; in parseFromString() local
126 while (getline(ss, line)) { in parseFromString()
127 line = Trim(line); in parseFromString()
128 if (line.empty()) continue; in parseFromString()
129 if (line.at(0) == '#') continue; in parseFromString()
130 if (line.at(0) == 0) continue; in parseFromString()
132 auto search = line.find('='); in parseFromString()
135 string key(Trim(line.substr(0, search))); in parseFromString()
136 string value_string(Trim(line.substr(search + 1, string::npos))); in parseFromString()
/system/core/libprocinfo/
Dprocess.cpp87 char* line = nullptr; in GetProcessInfoFromProcPidFd() local
90 while (getline(&line, &len, fp.get()) != -1 && field_bitmap != finished_bitmap) { in GetProcessInfoFromProcPidFd()
91 char* tab = strchr(line, '\t'); in GetProcessInfoFromProcPidFd()
96 size_t header_len = tab - line; in GetProcessInfoFromProcPidFd()
97 std::string header = std::string(line, header_len); in GetProcessInfoFromProcPidFd()
99 std::string name = line + header_len + 1; in GetProcessInfoFromProcPidFd()
130 free(line); in GetProcessInfoFromProcPidFd()

12345678910>>...14