/system/tools/aidl/tests/ |
H A D | aidl_test_sentinel_searcher.cpp | 36 bool ReadLines(const string& input_file_path, vector<string>* lines) { argument 45 lines->push_back(line); 51 bool HasSentinel(const vector<string>& lines, const string& sentinel) { argument 52 for (const auto& line : lines) { 85 vector<string> lines; local 92 // Ignore errors when reading lines. The file may not immediately exist 94 lines.clear(); 95 ReadLines(input_file_path, &lines); 97 if (HasSentinel(lines, success_sentinel)) { 101 if (HasSentinel(lines, failure_sentine [all...] |
/system/connectivity/shill/ |
H A D | file_reader_unittest.cc | 35 void VerifyReadLines(const FilePath& path, const vector<string>& lines) { argument 39 for (size_t i = 0; i < lines.size(); ++i) { 41 EXPECT_EQ(lines[i], line); 69 vector<string> lines; local 70 lines.push_back("this is"); 71 lines.push_back("a"); 72 lines.push_back(""); 73 lines.push_back("test"); 74 string content = base::JoinString(lines, "\n"); 84 VerifyReadLines(path, lines); [all...] |
H A D | resolver.cc | 64 vector<string> lines; local 68 lines.push_back("nameserver " + *iter); 82 lines.push_back("search " + base::JoinString(filtered_domain_search, " ")); 96 lines.push_back("options single-request timeout:1 attempts:5"); 99 lines.push_back(""); 101 string contents = base::JoinString(lines, "\n");
|
H A D | connection_info_reader_unittest.cc | 72 void CreateConnectionInfoFile(const char** lines, size_t num_lines, argument 76 string line = lines[i];
|
H A D | profile.cc | 361 vector<string> lines; local 367 lines.push_back(base::StringPrintf("%s %s\n", 371 string content = base::JoinString(lines, "");
|
H A D | socket_info_reader_unittest.cc | 88 void CreateSocketInfoFile(const char** lines, size_t num_lines, argument 92 string line = lines[i];
|
/system/extras/simpleperf/ |
H A D | cmd_report_test.cpp | 54 lines.clear(); 58 lines.push_back(s); 61 ASSERT_GE(lines.size(), 2u); 67 std::vector<std::string> lines; member in class:ReportCommandTest 81 while (line_index < lines.size() && lines[line_index].find("Pid") == std::string::npos) { 84 ASSERT_LT(line_index + 2, lines.size()); 91 while (line_index < lines.size() && lines[line_index].find("Overhead") == std::string::npos) { 94 ASSERT_LT(line_index + 1, lines 122 CheckCalleeMode(std::vector<std::string>& lines) argument 135 CheckCallerMode(std::vector<std::string>& lines) argument 160 AllItemsWithString(std::vector<std::string>& lines, const std::vector<std::string>& strs) argument [all...] |
H A D | report.py | 85 def parse_report_items(lines): 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_inde [all...] |
/system/core/init/ |
H A D | compare-bootcharts.py | 88 lines = b.split('\n') 89 if not lines[0]: 93 timestamp = int(lines[0]); 114 for line in lines[1:]:
|
/system/core/crash_reporter/ |
H A D | user_collector_test.cc | 84 std::vector<std::string> SplitLines(const std::string &lines) const { 85 return base::SplitString(lines, "\n", base::TRIM_WHITESPACE, 213 std::vector<std::string> lines; local 216 EXPECT_FALSE(collector_.GetFirstLineWithPrefix(lines, "Name:", &line)); 219 lines.push_back("Name:\tls"); 220 lines.push_back("State:\tR (running)"); 221 lines.push_back(" Foo:\t1000"); 224 EXPECT_TRUE(collector_.GetFirstLineWithPrefix(lines, "Name:", &line)); 225 EXPECT_EQ(lines[0], line); 228 EXPECT_TRUE(collector_.GetFirstLineWithPrefix(lines, "Stat [all...] |
H A D | user_collector.h | 110 // Returns, via |line|, the first line in |lines| that starts with |prefix|. 112 bool GetFirstLineWithPrefix(const std::vector<std::string> &lines, 116 // the line starting with |prefix|. |status_lines| contains the lines in 124 // contains the lines in the status file. Returns true if the process state
|
H A D | user_collector.cc | 131 const std::vector<std::string> &lines, 134 for (line_iterator = lines.begin(); line_iterator != lines.end(); 130 GetFirstLineWithPrefix( const std::vector<std::string> &lines, const char *prefix, std::string *line) argument
|
/system/core/adb/ |
H A D | test_adb.py | 47 lines = subprocess.check_output(['adb', 'version']).splitlines() 48 version_line = lines[0] 51 if len(lines) == 2: 54 revision_line = lines[1]
|
H A D | shell_service_test.cpp | 142 // Checks if each line in |lines| exists in the same order in |output|. Blank 143 // lines in |output| are ignored for simplicity. 145 const std::vector<std::string>& lines) { 149 for (const std::string& line : lines) { 150 // Skip empty lines in output. 155 ADD_FAILURE() << "Ran out of output lines"; 165 EXPECT_EQ(i, output_lines.size()) << "Found unmatched output lines"; 144 ExpectLinesEqual(const std::string& output, const std::vector<std::string>& lines) argument
|
/system/netd/tests/ |
H A D | binder_test.cpp | 93 std::vector<std::string> lines; local 98 return lines; 105 lines.push_back(std::string(line, linelen)); 111 return lines; 176 std::vector<std::string> lines = listIptablesRule(binary, "bw_data_saver"); local 183 EXPECT_EQ(3U, lines.size()); 184 if (lines.size() != 3) return -1; 186 EXPECT_TRUE(android::base::StartsWith(lines[2], "RETURN ") || 187 android::base::StartsWith(lines[2], "REJECT ")); 189 return android::base::StartsWith(lines[ [all...] |
/system/update_engine/payload_consumer/ |
H A D | postinstall_runner_action.cc | 219 vector<string> lines = base::SplitString( local 221 if (!lines.empty()) { 222 progress_buffer_ = lines.back(); 223 lines.pop_back(); 224 for (const auto& line : lines) {
|
/system/extras/simpleperf/runtest/ |
H A D | runtest.py | 334 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): 362 for line in lines [all...] |
/system/extras/tests/net_test/ |
H A D | net_test.py | 347 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/ |
H A D | serviceproviders_converter.py | 564 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/extras/tests/workloads/ |
H A D | pwrsummary.sh | 153 lines=$(wc -l $file 2>/dev/null | cut -f1 -d\ ) 155 if [ ${lines:=0} -eq -0 ]; then
|
/system/sepolicy/tools/fc_sort/ |
H A D | fc_sort.c | 316 int lines; local 339 i = j = lines = 0; 480 lines++;
|
/system/update_engine/ |
H A D | test_http_server.cc | 100 // Break header into lines. 101 vector<string> lines; local 103 headers.substr(0, headers.length() - strlen(EOL EOL)), EOL, &lines); 106 vector<string> terms = base::SplitString(lines[0], base::kWhitespaceASCII, 114 // Decode remaining lines. 116 for (i = 1; i < lines.size(); i++) { 117 terms = base::SplitString(lines[i], base::kWhitespaceASCII, 145 LOG(WARNING) << "ignoring HTTP attribute: `" << lines[i] << "'"; 219 // Writes a predetermined payload of lines of ascending bytes to a file. The 227 LOG(INFO) << "writing payload: " << line_len << "-byte lines startin [all...] |
/system/core/libnativeloader/ |
H A D | native_loader.cpp | 176 std::vector<std::string> lines = base::Split(file_content, "\n"); local 178 for (const auto& line : lines) {
|
/system/core/metricsd/ |
H A D | metrics_collector.cc | 530 vector<std::string> lines = local 539 iline < lines.size() && ifield < fields->size(); 542 base::SplitString(lines[iline], ": ", base::KEEP_WHITESPACE,
|
/system/media/camera/src/ |
H A D | camera_metadata.c | 930 int lines = count / values_per_line[type]; local 931 if (count % values_per_line[type] != 0) lines++; 935 for (j = 0; j < lines; j++) {
|