Home
last modified time | relevance | path

Searched refs:str (Results 1 – 25 of 147) sorted by relevance

123456

/test/vts/drivers/hal/common/utils/
DInterfaceSpecUtil.cpp46 const string data = str_stream.str(); in ParseInterfaceSpec()
79 return prefix_ss.str(); in GetFunctionNamePrefix()
106 return out.str(); in GetVersionString()
117 return out.str(); in GetVersionString()
135 string str = type_name.substr(0, type_name.find('V') - strlen("::")); in GetPackageName() local
136 if (str.find("::") == 0) { in GetPackageName()
137 str = str.substr(strlen("::")); in GetPackageName()
139 ReplaceSubString(str, "::", "."); in GetPackageName()
140 return str; in GetPackageName()
144 string str = type_name.substr(type_name.find('V') + 1); in GetVersion() local
[all …]
/test/vts/utils/native/trace_processor/
DTraceProcessorMain.cpp43 mode_code getModeCode(const std::string& str) { in getModeCode() argument
44 if (str == "cleanup_trace") return mode_code::CLEANUP_TRACE; in getModeCode()
45 if (str == "convert_trace") return mode_code::CONVERT_TRACE; in getModeCode()
46 if (str == "dedup_trace") return mode_code::DEDUPE_TRACE; in getModeCode()
47 if (str == "get_test_list_from_trace") in getModeCode()
49 if (str == "parse_trace") return mode_code::PARSE_TRACE; in getModeCode()
50 if (str == "profiling_trace") return mode_code::PROFILING_TRACE; in getModeCode()
51 if (str == "select_trace") return mode_code::SELECT_TRACE; in getModeCode()
52 if (str == "compare_coverage") return mode_code::COMPARE_COVERAGE; in getModeCode()
53 if (str == "get_coverage_summary") return mode_code::GET_COVERGAGE_SUMMARY; in getModeCode()
[all …]
/test/vts-testcase/kernel/memory/
DMemorySystemStressTest.py39 cmd = ['chmod +x', str(self._STRESSAPPTEST)]
45 matched = re.search(r'MemFree:\s+(\d+)', str(meminfo_results[const.STDOUT]))
55 cmd = [str(self._STRESSAPPTEST), '-W ' '-M', str(self._mem), '-s', str(self._DURATION_SEC)]
58 logging.info(str(results[const.STDOUT]))
/test/vts/utils/python/coverage/
Dblock_summary.py58 output += ', Lines: ' + ', '.join(str(line) for line in self.lines)
60 output += ('\r\n\t\t' + str(self.index) + ' <-- ' + ', '.join(
61 str(a.src_block.index) for a in self.entry_arcs))
63 output += ('\r\n\t\t' + str(self.index) + ' --> ' + ', '.join(
64 str(a.dst_block.index) for a in self.exit_arcs))
Dcoverage_utils.py109 timestamp_seconds = str(int(time.time() * 1000000))
143 self._device_resource_dict[str(serial)] = str(
260 logging.debug("hal_names: %s", str(hal_names))
344 (cmd, str(results[cmd_utils.STDERR][0])))
354 timestamp_seconds = str(int(time.time() * 1000000))
382 f.write(str(coverage_report_msg))
458 if src_file_path.startswith(str(project_name)):
459 git_project_name = str(project_name)
460 git_project_path = str(project_name)
461 revision = str(revision_dict[project_name])
[all …]
Dsancov_utils.py85 serial = str(device.get(keys.ConfigKeys.IKEY_SERIAL))
86 sancov_resource_path = str(
245 if file.startswith(str(project_name)):
246 git_project_name = str(project_name)
247 git_project_path = str(project_name)
248 revision = str(rev_map[project_name])
251 parts = os.path.normpath(str(project_name)).split(
255 git_project_name = str(project_name)
257 revision = str(rev_map[project_name])
/test/vts/runners/host/
Dasserts.py50 my_msg = str(e)
72 my_msg = str(e)
167 my_msg = str(e)
321 exc_name = str(self.expected)
332 if isinstance(expected_regexp, str):
334 if not expected_regexp.search(str(exc_value)):
337 (expected_regexp.pattern, str(exc_value)),
/test/vts-testcase/fuzz/iface_fuzzer/
DProtoFuzzerMutateFns.cpp111 string str(str_size, 0); in StringRandomGen() local
113 std::generate_n(str.begin(), str_size, rand_char); in StringRandomGen()
116 string_data.set_message(str.c_str()); in StringRandomGen()
125 string str = result.string_value().message(); in StringMutate() local
132 size_t dice_roll = str.empty() ? 0 : rand_(3); in StringMutate()
137 str.insert(str.begin() + idx, RandomAsciiChar()); in StringMutate()
142 str.erase(str.begin() + idx); in StringMutate()
147 str[idx] = RandomAsciiChar(); in StringMutate()
154 result.mutable_string_value()->set_message(str); in StringMutate()
/test/vts/drivers/libdrivercomm/
DVtsDriverFileUtil.cpp35 string GetDirFromFilePath(const string& str) { in GetDirFromFilePath() argument
36 size_t found = str.find_last_of("/\\"); in GetDirFromFilePath()
41 return str.substr(0, found); in GetDirFromFilePath()
/test/vts/utils/python/file/
Dtarget_file_utils.py93 stdout = str(results[const.STDOUT][0])
167 raise ValueError("Invalid group: %s" % str(groupIndex))
170 raise ValueError("Invalid permission bits: %s" % str(permission_bits))
182 raise ValueError("Invalid permission bit: %s" % str(perm))
314 asserts.fail("Failed to assert permissions: %s" % str(e))
/test/framework/harnesses/host_controller/build/
Dbuild_provider_pab_test.py149 self.assertEqual(str(cm.exception), expected)
170 self.assertIn(expected, str(cm.exception))
190 self.assertIn('Bad XSRF token', str(cm.exception))
210 self.assertIn('Expired XSRF token', str(cm.exception))
230 self.assertIn('Unknown response from server', str(cm.exception))
270 self.assertIn('Build list not found', str(cm.exception))
297 self.assertIn("No builds found for", str(cm.exception))
313 str(cm.exception))
/test/framework/harnesses/host_controller/
Dinvocation_thread.py101 str(result), 1, 0)
104 str(result), 1, 1, error=str(result))
153 if str(e).startswith("Config error: "):
168 self._SubmitErrorEvent(error_event, str(last_error))
/test/vts-testcase/fuzz/kernel/syzkaller/
Dsyzkaller_test_case.py61 return str(test_name)
84 template_cfg = str(temp.read())
97 template_cfg = template_cfg.replace('{procs}', str(self._procs))
100 config_file_path = self._work_dir_path + str('.cfg')
/test/framework/harnesses/host_controller/command_processor/
Dcommand_upload.py311 suite_res_msg.schedule_config.manifest_branch = str(
313 build_target_msg.name = str(device_fetch_info["target"])
315 suite_res_msg.schedule_config.pab_account_id = str(
321 test_schedule_msg.gsi_branch = str(gsi_fetch_info["branch"])
322 test_schedule_msg.gsi_build_target = str(gsi_fetch_info["target"])
323 suite_res_msg.gsi_build_id = str(gsi_fetch_info["build_id"])
325 test_schedule_msg.gsi_pab_account_id = str(
327 test_schedule_msg.gsi_vendor_version = str(
329 test_schedule_msg.test_pab_account_id = str(
/test/vts/utils/python/common/
Dlist_utils.py35 return list(map(str, input_list))
62 do_str = lambda s: str(s) if to_str else s
69 return filter(lambda s: str(s) != '', result) if remove_empty else result
198 lines = map(str, lines)
/test/vts/utils/python/precondition/
Dprecondition_utils.py55 bitness = str(getattr(test_instance, keys.ConfigKeys.IKEY_ABI_BITNESS, ""))
57 hwbinder_service_name = str(
87 hal = str(
114 feature = str(
197 precond_sysprop = str(
/test/vts/testcases/template/binary_test/
Dbinary_test.py93 str, self.binary_test_working_directory)
103 self.binary_test_envp = map(str, self.binary_test_envp)
118 self.binary_test_args = map(str, self.binary_test_args)
137 str, self.precondition_file_path_prefix)
159 str, self.binary_test_ld_library_path)
178 str, self.binary_test_profiling_library_path)
238 tag = str(tag)
244 str(source[0]),
401 return str(src), str(dst), tag
497 test_func=self.RunTestCase, settings=self.testcases, name_func=str)
/test/vts/testcases/host/kernel_proc_file_api_test/
Dtarget_file_utils.py39 raise ValueError("Invalid group: %s" % str(groupIndex))
42 raise ValueError("Invalid permission bits: %s" % str(permission_bits))
54 raise ValueError("Invalid permission bit: %s" % str(perm))
/test/vts-testcase/kernel/ltp/testcase/tools/
Dltp_test_cases.py101 n_bit_string = str(n_bit) if arch == 'arm' else ('_'+str(n_bit))
108 str(is_low_mem).lower(),
109 str(is_hwasan).lower())
200 test_display_name = "{}_{}bit".format(str(testcase), n_bit)
216 if ((self._ltp_tests_filter.IsInExcludeFilter(str(testcase)) or
/test/vts/testcases/host/shell/
DSampleShellTest.py39 logging.info(str(results[const.STDOUT]))
49 logging.info(str(results[const.STDOUT]))
61 logging.info(str(results[const.STDOUT]))
109 logging.info(str(results[const.STDOUT]))
/test/vts/utils/python/web/
Dweb_utils.py73 service_json_path = str(
85 self.report_msg.test = str(
112 setattr(dev_info, elem, str(device_spec[elem]))
115 str(getattr(self, keys.ConfigKeys.IKEY_ABI_NAME)))
117 str(getattr(self, keys.ConfigKeys.IKEY_ABI_BITNESS)))
447 build_id = str(build[keys.ConfigKeys.IKEY_BUILD_ID])
468 str(self.report_msg.start_timestamp))
/test/suite_harness/common/util/src/com/android/compatibility/common/util/
DBackupUtils.java266 String str; in executeShellCommandAndReturnOutput() local
268 while ((str = br.readLine()) != null) { in executeShellCommandAndReturnOutput()
269 out.append(str).append("\n"); in executeShellCommandAndReturnOutput()
317 String str; in getLineString() local
319 str = reader.readLine(); in getLineString()
323 return str; in getLineString()
/test/vts/testcases/host/shell_binary_crash_test/
DShellBinaryCrashTest.py43 logging.info(str(results[const.STDOUT]))
58 logging.info(str(results[const.STDOUT]))
77 logging.info(str(results[const.STDOUT]))
/test/vts/testcases/template/hal_hidl_replay_test/
Dhal_hidl_replay_test.py71 self.abi_bitness = str(self.abi_bitness)
72 self.trace_paths = map(str, self.hal_hidl_replay_test_trace_paths)
81 trace_file_name = str(os.path.basename(trace_path))
158 trace_file_name = str(os.path.basename(trace_path))
208 line = str(line)
/test/vti/test_serving/gae/webapp/src/utils/
Dlogger.py43 if msg and type(msg) is not str:
44 msg = str(msg)

123456