Home
last modified time | relevance | path

Searched refs:lines (Results 1 – 25 of 39) sorted by relevance

12

/system/extras/simpleperf/
Dcmd_report_test.cpp54 lines.clear(); in ReportRaw()
58 lines.push_back(s); in ReportRaw()
61 ASSERT_GE(lines.size(), 2u); in ReportRaw()
67 std::vector<std::string> lines; member in ReportCommandTest
81 while (line_index < lines.size() && lines[line_index].find("Pid") == std::string::npos) { in TEST_F()
84 ASSERT_LT(line_index + 2, lines.size()); in TEST_F()
91 while (line_index < lines.size() && lines[line_index].find("Overhead") == std::string::npos) { in TEST_F()
94 ASSERT_LT(line_index + 1, lines.size()); in TEST_F()
95 ASSERT_NE(lines[line_index].find("Command"), std::string::npos); in TEST_F()
96 ASSERT_NE(lines[line_index].find("Pid"), std::string::npos); in TEST_F()
[all …]
Dreport.py85 def parse_report_items(lines): argument
92 for line in lines:
222 lines = fh.readlines()
225 lines = [x.rstrip() for x in lines]
228 for i in range(len(lines)):
229 if not lines[i]:
233 assert blank_line_index + 1 < len(lines)
235 report_context = lines[:blank_line_index]
236 title_line = lines[blank_line_index + 1]
237 report_items = parse_report_items(lines[blank_line_index + 2:])
/system/tools/aidl/tests/
Daidl_test_sentinel_searcher.cpp36 bool ReadLines(const string& input_file_path, vector<string>* lines) { in ReadLines() argument
45 lines->push_back(line); in ReadLines()
51 bool HasSentinel(const vector<string>& lines, const string& sentinel) { in HasSentinel() argument
52 for (const auto& line : lines) { in HasSentinel()
85 vector<string> lines; in main() local
94 lines.clear(); in main()
95 ReadLines(input_file_path, &lines); in main()
97 if (HasSentinel(lines, success_sentinel)) { in main()
101 if (HasSentinel(lines, failure_sentinel)) { in main()
107 for (const auto& line : lines) { in main()
/system/connectivity/shill/
Dfile_reader_unittest.cc35 void VerifyReadLines(const FilePath& path, const vector<string>& lines) { in VerifyReadLines() argument
39 for (size_t i = 0; i < lines.size(); ++i) { in VerifyReadLines()
41 EXPECT_EQ(lines[i], line); in VerifyReadLines()
69 vector<string> lines; in TEST_F() local
70 lines.push_back("this is"); in TEST_F()
71 lines.push_back("a"); in TEST_F()
72 lines.push_back(""); in TEST_F()
73 lines.push_back("test"); in TEST_F()
74 string content = base::JoinString(lines, "\n"); in TEST_F()
84 VerifyReadLines(path, lines); in TEST_F()
[all …]
Dresolver.cc64 vector<string> lines; in SetDNSFromLists() local
68 lines.push_back("nameserver " + *iter); in SetDNSFromLists()
82 lines.push_back("search " + base::JoinString(filtered_domain_search, " ")); in SetDNSFromLists()
96 lines.push_back("options single-request timeout:1 attempts:5"); in SetDNSFromLists()
99 lines.push_back(""); in SetDNSFromLists()
101 string contents = base::JoinString(lines, "\n"); in SetDNSFromLists()
Dprofile.cc361 vector<string> lines; in SaveUserProfileList() local
367 lines.push_back(base::StringPrintf("%s %s\n", in SaveUserProfileList()
371 string content = base::JoinString(lines, ""); in SaveUserProfileList()
Dconnection_info_reader_unittest.cc72 void CreateConnectionInfoFile(const char** lines, size_t num_lines, in CreateConnectionInfoFile() argument
76 string line = lines[i]; in CreateConnectionInfoFile()
/system/core/crash_reporter/
Duser_collector_test.cc84 std::vector<std::string> SplitLines(const std::string &lines) const { in SplitLines()
85 return base::SplitString(lines, "\n", base::TRIM_WHITESPACE, in SplitLines()
213 std::vector<std::string> lines; in TEST_F() local
216 EXPECT_FALSE(collector_.GetFirstLineWithPrefix(lines, "Name:", &line)); in TEST_F()
219 lines.push_back("Name:\tls"); in TEST_F()
220 lines.push_back("State:\tR (running)"); in TEST_F()
221 lines.push_back(" Foo:\t1000"); in TEST_F()
224 EXPECT_TRUE(collector_.GetFirstLineWithPrefix(lines, "Name:", &line)); in TEST_F()
225 EXPECT_EQ(lines[0], line); in TEST_F()
228 EXPECT_TRUE(collector_.GetFirstLineWithPrefix(lines, "State:", &line)); in TEST_F()
[all …]
/system/core/init/
Dcompare-bootcharts.py88 lines = b.split('\n')
89 if not lines[0]:
93 timestamp = int(lines[0]);
114 for line in lines[1:]:
/system/tools/aidl/
Daidl_language_l.ll34 <COPYING>\n+ { extra_text += yytext; yylloc->lines(yyleng); }
39 <LONG_COMMENT>\n+ { extra_text += yytext; yylloc->lines(yyleng); }
45 \/\/.*\n { extra_text += yytext; yylloc->lines(1); yylloc->step(); }
47 \n+ { yylloc->lines(yyleng); yylloc->step(); }
/system/core/adb/
Dtest_adb.py47 lines = subprocess.check_output(['adb', 'version']).splitlines()
48 version_line = lines[0]
51 if len(lines) == 2:
54 revision_line = lines[1]
Dshell_service_test.cpp145 const std::vector<std::string>& lines) { in ExpectLinesEqual() argument
149 for (const std::string& line : lines) { in ExpectLinesEqual()
/system/update_engine/payload_consumer/
Dpostinstall_runner_action.cc219 vector<string> lines = base::SplitString( in OnProgressFdReady() local
221 if (!lines.empty()) { in OnProgressFdReady()
222 progress_buffer_ = lines.back(); in OnProgressFdReady()
223 lines.pop_back(); in OnProgressFdReady()
224 for (const auto& line : lines) { in OnProgressFdReady()
/system/netd/tests/
Dbinder_test.cpp128 std::vector<std::string> lines; in runCommand() local
133 return lines; in runCommand()
140 lines.push_back(std::string(line, linelen)); in runCommand()
146 return lines; in runCommand()
211 std::vector<std::string> lines = listIptablesRule(binary, "bw_data_saver"); in bandwidthDataSaverEnabled() local
218 EXPECT_EQ(3U, lines.size()); in bandwidthDataSaverEnabled()
219 if (lines.size() != 3) return -1; in bandwidthDataSaverEnabled()
221 EXPECT_TRUE(android::base::StartsWith(lines[2], "RETURN ") || in bandwidthDataSaverEnabled()
222 android::base::StartsWith(lines[2], "REJECT ")); in bandwidthDataSaverEnabled()
224 return android::base::StartsWith(lines[2], "REJECT"); in bandwidthDataSaverEnabled()
/system/extras/simpleperf/runtest/
Druntest.py334 lines = fh.readlines()
337 lines = [x.rstrip() for x in lines]
339 for i in range(len(lines)):
340 if not lines[i]:
343 assert blank_line_index + 1 < len(lines)
344 title_line = lines[blank_line_index + 1]
345 report_item_lines = lines[blank_line_index + 2:]
354 def _parse_report_items(self, lines, has_callgraph): argument
362 for line in lines:
/system/extras/tests/net_test/
Dnet_test.py347 lines = open(filename).readlines()
351 self.assertEqual(IPV6_SEQ_DGRAM_HEADER, lines[0])
352 lines = lines[1:]
386 for line in lines:
/system/connectivity/shill/mobile_operator_db/
Dserviceproviders_converter.py564 lines = xml_data.split(u'\n')
565 lines = [line.strip(u'\n') for line in lines]
566 lines = [line for line in lines if not line.strip() == u'']
567 lines = [line.strip(u'\n') for line in lines if line.strip()]
568 retval = u'\n'.join(lines)
/system/core/liblog/
Devent.logtags11 # Tag numbers and names are separated by whitespace. Blank lines and lines
/system/bt/
DEventLogTags.logtags11 # Tag numbers and names are separated by whitespace. Blank lines and lines
/system/core/logd/
Devent.logtags11 # Tag numbers and names are separated by whitespace. Blank lines and lines
/system/extras/tests/workloads/
Dpwrsummary.sh153 lines=$(wc -l $file 2>/dev/null | cut -f1 -d\ )
155 if [ ${lines:=0} -eq -0 ]; then
/system/update_engine/
Dtest_http_server.cc101 vector<string> lines; in ParseRequest() local
103 headers.substr(0, headers.length() - strlen(EOL EOL)), EOL, &lines); in ParseRequest()
106 vector<string> terms = base::SplitString(lines[0], base::kWhitespaceASCII, in ParseRequest()
116 for (i = 1; i < lines.size(); i++) { in ParseRequest()
117 terms = base::SplitString(lines[i], base::kWhitespaceASCII, in ParseRequest()
145 LOG(WARNING) << "ignoring HTTP attribute: `" << lines[i] << "'"; in ParseRequest()
/system/sepolicy/tools/fc_sort/
Dfc_sort.c316 int lines; in main() local
339 i = j = lines = 0; in main()
480 lines++; in main()
/system/bt/vendor_libs/test_vendor_lib/
DBUILD.gn18 # TODO(dennischeng): Ideally we should need to have the lines below for
/system/core/libnativeloader/
Dnative_loader.cpp179 std::vector<std::string> lines = base::Split(file_content, "\n"); in ReadConfig() local
181 for (auto& line : lines) { in ReadConfig()

12