Home
last modified time | relevance | path

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

1234

/test/framework/harnesses/host_controller/campaigns/testdata/
Ddefault_testcase.py111 def ReplaceChars(line): argument
112 line = line.replace('{{test_suite}}', test_suite)
113 line = line.replace('{{test_plan}}', test_plan)
115 line = line.replace(' --primary_abi_only', '')
118 line = line.replace('--shards', "--shard-count")
120 line = line.replace('{{retry_plan}}',
123 line = line.replace('{{retry_plan}}', '--retry_plan=retry')
124 line = line.replace('{{cleanup_device}}',
127 line = line.replace('{{retry_plan}}', '')
128 line = line.replace('{{cleanup_device}}', '')
[all …]
/test/vts/utils/native/trace_processor/
DVtsCoverageProcessor.cpp49 for (int line = 0; line < ref_msg.line_coverage_vector_size(); line++) { in UpdateCoverageData() local
50 if (line < msg_to_be_updated->line_coverage_vector_size()) { in UpdateCoverageData()
51 if (ref_msg.line_coverage_vector(line) > 0 && in UpdateCoverageData()
52 msg_to_be_updated->line_coverage_vector(line) > 0) { in UpdateCoverageData()
53 msg_to_be_updated->set_line_coverage_vector(line, 0); in UpdateCoverageData()
162 int line = 0; in CompareCoverage() local
163 for (; line < new_coverage.line_coverage_vector_size(); line++) { in CompareCoverage()
164 if (new_coverage.line_coverage_vector(line) > 0 && in CompareCoverage()
165 ref_coverage.line_coverage_vector(line) == 0) { in CompareCoverage()
168 new_coverage_map[new_coverage.file_path()].push_back(line); in CompareCoverage()
[all …]
/test/vts-testcase/kernel/ltp/
Dtest_cases_parser.py48 def ValidateDefinition(self, line): argument
62 for item in line.split(ltp_enums.Delimiters.TESTCASE_DEFINITION)
90 for line in run_scritp:
91 items = self.ValidateDefinition(line)
175 lines_gen = (line.strip() for line in f)
177 line for line in lines_gen
178 if line and not line.startswith('#'))
193 for line in open(testsuite_script, 'r'):
194 line = line.strip()
195 if not line or line.startswith('#'):
[all …]
/test/framework/harnesses/host_controller/acloud/
Dacloud_config.py74 for line in f:
75 line = line.strip()
77 if not line or line.startswith('#'):
80 idx = line.find(separator)
82 if idx < 1 or not line.endswith('"'):
84 'acloud config file %s' % (line, file_path))
88 key = line[:idx]
89 val = line[len(separator) + idx : -1]
/test/vts/utils/python/coverage/
Dcoverage_report.py65 for line in block.lines:
66 if line > len(src_lines_counts):
68 (line - len(src_lines_counts)))
69 if src_lines_counts[line - 1] < 0:
70 src_lines_counts[line - 1] = 0
71 src_lines_counts[line - 1] += block.count
93 for line in src_lines_counts:
94 if line < 0:
97 if line > 0:
/test/vts-testcase/kernel/api/proc/
DProcFsFileTests.py47 for line in contents.split('\n')[:-1]:
48 parsed = line.split(' ')
54 for line in parse_results:
55 if len(line[3]) < 1 or line[3][0] not in {'rw', 'ro'}:
58 if line[4] != '0' or line[5] != '0':
81 for line in contents.split('\n')[:-1]:
82 parsed = line.split('\t')
DProcMemInfoTest.py82 return [self.parse_line("{:name}: {:lu}{:^kb}", line,
83 dict(name=token_name, lu=token_lu, kb=token_kb)) for line in lines[:-1]]
87 for line in parse_result:
88 if line[0] in required_fields:
89 required_fields.remove(line[0])
DProcCpuFileTests.py68 for line in parse_result:
69 if len(line) > 0:
70 if line[0] in expected_fields:
71 expected_fields.remove(line[0])
/test/vts/utils/python/common/
Dlist_utils.py202 def RemoveComment(line): argument
203 idx = line.find(comment_char)
205 return line
207 return line[:idx]
212 lines = map(lambda line: line.strip(), lines)
215 lines = filter(lambda line: not line.strip().startswith(comment_char),
/test/framework/host_setup/
Dfabfile.py82 for line in gce_list_out.split("\n")[1:]:
83 if line.startswith(gce_instance_name):
84 env.hosts.append("%s@%s" % (account, line.strip().split()[-2]))
244 for line in lines:
245 req = line.rstrip()
299 for line in lines:
300 if "(Detached)" in line:
301 screen_name = line.split("\t")[1]
381 for line in lines:
382 if "(Detached)" in line:
[all …]
/test/vts/testcases/template/gtest_binary_test/
Dgtest_binary_test.py113 for line in cmd_results[const.STDOUT][1].split('\n'):
114 line = str(line)
115 if not len(line.strip()):
117 elif line.startswith(' '): # Test case name
118 test_name = line.split('#')[0].strip()
126 test_suite = line.strip()
177 for line in stderr.split('\n'):
178 logging.error(line)
199 for line in stdout.split('\n'):
201 logging.debug(line)
[all …]
/test/suite_harness/common/util/src/com/android/compatibility/common/util/
DBackupUtils.java180 String line = in.nextLine(); in assertBackupNotAllowed() local
182 if (line.contains(packageName)) { in assertBackupNotAllowed()
183 String result = line.split(":")[1].trim(); in assertBackupNotAllowed()
204 String line; in assertBackupIsSuccessful() local
205 while ((line = reader.readLine()) != null) { in assertBackupIsSuccessful()
206 if (line.contains(packageName)) { in assertBackupIsSuccessful()
207 String result = line.split(":")[1].trim().toLowerCase(); in assertBackupIsSuccessful()
247 String line; in assertRestoreIsSuccessful() local
248 while ((line = reader.readLine()) != null) { in assertRestoreIsSuccessful()
249 if (line.contains("restoreFinished: 0")) { in assertRestoreIsSuccessful()
[all …]
/test/vts/harnesses/tradefed/tests/res/testtype/
Dvts_multi_device_test_parser_output_error.txt9 …sr/local/yim/cloudandroid/android/master-real/test/vts/runners/host/base_test.py", line 510, in run
11 …/yim/cloudandroid/android/master-real/test/vts/runners/host/base_test.py", line 112, in _setUpClass
13 …roid/android/master-real/test/vts/testcases/host/sample/SampleLightTest.py", line 33, in setUpClass
15 …dandroid/android/master-real/test/vts/utils/python/mirror/hal_mirror.py", line 106, in InitConvent…
17 …dandroid/android/master-real/test/vts/utils/python/mirror/hal_mirror.py", line 173, in _CreateMirr…
19 …ndroid/android/master-real/test/vts/runners/host/tcp_client/vts_tcp_client.py", line 92, in Connect
21 …/android/master-real/test/vts/runners/host/tcp_client/vts_tcp_client.py", line 263, in RecvResponse
23 …viceTestResultParser: Standard output: File "/usr/lib/python2.7/socket.py", line 447, in readline
52 …File "/usr/local/yim/cloudandroid/android/master-real/test/vts/runners/host/base_test.py", line 51…
54 …File "/usr/local/yim/cloudandroid/android/master-real/test/vts/runners/host/base_test.py", line 11…
[all …]
/test/vts-testcase/hal/script/
Dupdate_hal_tests.py43 for line in configure_file.readlines():
44 if "test-timeout" in line:
45 temp = line[(line.find("value") + 7):]
62 for line in configure_file.readlines():
63 if "binary-test-disable-framework" in line:
/test/vts/script/
Dupdate_hal_tests.py43 for line in configure_file.readlines():
44 if "test-timeout" in line:
45 temp = line[(line.find("value") + 7):]
62 for line in configure_file.readlines():
63 if "binary-test-disable-framework" in line:
Dtest_time_breakdown.py14 def AnalyzeJavaLog(line): argument
26 tokens = line.split()
45 def AnalyzePythonLog(line): argument
58 tokens = line.split()
81 assert False, "Error at '%s'" % line
143 for line in log_file:
145 timestamp) = AnalyzeJavaLog(line)
156 timestamp) = AnalyzePythonLog(line)
/test/vts-testcase/vndk/open_libraries/
DVtsVndkOpenLibrariesTest.py62 for line in lines[1:]:
63 cmd = line[cmd_begin:]
66 pid = line[:pid_end].lstrip()
88 for line in lines[1:]:
89 name = line[name_begin:]
92 pid_begin = line.rindex(" ", 0, pid_end) + 1
93 pid = line[pid_begin:pid_end]
/test/suite_harness/common/util/tests/src/com/android/compatibility/common/util/
DReadElfTest.java146 String line; in getDynamicDependencies() local
148 while ((line = buffReader.readLine()) != null && keepGoing) { in getDynamicDependencies()
150 if (line.startsWith("Dynamic section")) { in getDynamicDependencies()
183 String line; in chkDynSymbol() local
185 while ((line = buffReader.readLine()) != null && keepGoing) { in chkDynSymbol()
187 if (line.startsWith("Symbol table '.dynsym'")) { in chkDynSymbol()
243 String line; in getRoStrings() local
245 while ((line = buffReader.readLine()) != null && keepGoing) { in getRoStrings()
247 if (line.startsWith("String dump of section '.rodata':")) { in getRoStrings()
/test/vts/harnesses/tradefed/src/com/android/tradefed/testtype/
DVtsFuzzTestResultParser.java115 for (String line : lines) { in processNewLines()
116 if (line.contains(Prefixes.PASSED_MARKER)) { in processNewLines()
118 } else if (line.contains(Prefixes.FAILED_MARKER) in processNewLines()
119 || line.contains(Prefixes.TIMEOUT_MARKER)) { in processNewLines()
122 mStackTrace.append(line + "\r\n"); in processNewLines()
124 Log.v(LOG_TAG, line); in processNewLines()
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/targetprep/
DCrashReporter.java122 private void processLogLine(String line) { in processLogLine() argument
123 mLogcatChunk.append(line); in processLogLine()
126 if ((m = CrashUtils.sNewTestPattern.matcher(line)).find()) { in processLogLine()
130 } else if (CrashUtils.sEndofCrashPattern.matcher(line).find()) { in processLogLine()
133 } else if (CrashUtils.sUploadRequestPattern.matcher(line).find()) { in processLogLine()
141 for (String line : lines) { in processNewLines()
142 processLogLine(line); in processNewLines()
/test/vts/testcases/template/hal_hidl_replay_test/
Dhal_hidl_replay_test.py140 for line in stdout.split('\n'):
141 logging.debug(line)
147 for line in stderr.split('\n'):
148 logging.error(line)
207 for line in results[const.STDOUT][0].split('\n'):
208 line = str(line)
209 if line.startswith('hal_service: '):
210 service = line[len('hal_service: '):]
/test/framework/harnesses/host_controller/command_processor/
Dcommand_device.py86 for line in lines_adb:
87 if (len(line.strip()) and not (line.startswith("* ")
88 or line.startswith("List "))):
90 device["serial"] = line.split()[0]
95 and line.split()[1] == "device"):
119 lines_fastboot.append(line)
123 for line in lines_fastboot:
124 if len(line.strip()):
126 device["serial"] = line.split()[0]
/test/vts/runners/host/
Dconfig_parser.py199 for line in f:
200 line = line.strip()
201 if not line:
204 tf[-1] += line
206 tf.append(line)
/test/vts-testcase/performance/audio_loopback_test/
DAudioLoopbackTest.py119 for line in stdout_lines:
120 if line.startswith("LatencyMs"):
123 float(line.replace("LatencyMs = ", "")) * 1000000))
124 if line.startswith("LatencyConfidence"):
126 float(line.replace("LatencyConfidence = ", "")))
/test/vts/harnesses/tradefed/src/com/android/tradefed/device/metric/
DVtsHalTraceCollector.java112 for (String line : out.split("\n")) { in pullTraceFiles()
113 line = line.trim(); in pullTraceFiles()
115 localTracedDir.getAbsolutePath(), line.substring(VTS_TMP_DIR.length())); in pullTraceFiles()
116 device.pullFile(line, trace_file); in pullTraceFiles()

1234