Home
last modified time | relevance | path

Searched refs:out (Results 1 – 25 of 82) sorted by relevance

1234

/test/vts/compilation_tools/vtsc/code_gen/profiler/
DHalHidlProfilerCodeGen.cpp26 Formatter& out, const VariableSpecificationMessage& val, in GenerateProfilerForScalarVariable() argument
28 out << arg_name << "->set_type(TYPE_SCALAR);\n"; in GenerateProfilerForScalarVariable()
29 out << arg_name << "->mutable_scalar_value()->set_" << val.scalar_type() in GenerateProfilerForScalarVariable()
34 Formatter& out, const VariableSpecificationMessage&, in GenerateProfilerForStringVariable() argument
36 out << arg_name << "->set_type(TYPE_STRING);\n"; in GenerateProfilerForStringVariable()
37 out << arg_name << "->mutable_string_value()->set_message" in GenerateProfilerForStringVariable()
39 out << arg_name << "->mutable_string_value()->set_length" in GenerateProfilerForStringVariable()
44 Formatter& out, const VariableSpecificationMessage& val, in GenerateProfilerForEnumVariable() argument
46 out << arg_name << "->set_type(TYPE_ENUM);\n"; in GenerateProfilerForEnumVariable()
52 out << "profile__" << predefined_type << "(" << arg_name << ", " in GenerateProfilerForEnumVariable()
[all …]
DProfilerCodeGenBase.cpp33 Formatter& out, const ComponentSpecificationMessage& message) { in GenerateHeaderFile() argument
35 out << "#ifndef __VTS_PROFILER_" << component_fq_name.tokenName() in GenerateHeaderFile()
37 out << "#define __VTS_PROFILER_" << component_fq_name.tokenName() in GenerateHeaderFile()
39 out << "\n\n"; in GenerateHeaderFile()
40 GenerateHeaderIncludeFiles(out, message); in GenerateHeaderFile()
41 GenerateUsingDeclaration(out, message); in GenerateHeaderFile()
42 GenerateOpenNameSpaces(out, message); in GenerateHeaderFile()
49 GenerateProfilerMethodDeclForAttribute(out, attribute); in GenerateHeaderFile()
52 out << "extern \"C\" {\n"; in GenerateHeaderFile()
53 out.indent(); in GenerateHeaderFile()
[all …]
DProfilerCodeGenBase.h49 virtual void GenerateHeaderFile(Formatter &out,
53 virtual void GenerateSourceFile(Formatter &out,
58 virtual void GenerateProfilerForScalarVariable(Formatter& out,
63 virtual void GenerateProfilerForStringVariable(Formatter& out,
68 virtual void GenerateProfilerForEnumVariable(Formatter& out,
73 virtual void GenerateProfilerForVectorVariable(Formatter& out,
78 virtual void GenerateProfilerForArrayVariable(Formatter& out,
83 virtual void GenerateProfilerForStructVariable(Formatter& out,
88 virtual void GenerateProfilerForUnionVariable(Formatter& out,
94 Formatter& out, const VariableSpecificationMessage& val,
[all …]
DHalHidlProfilerCodeGen.h32 virtual void GenerateProfilerForScalarVariable(Formatter& out,
36 virtual void GenerateProfilerForStringVariable(Formatter& out,
40 virtual void GenerateProfilerForEnumVariable(Formatter& out,
44 virtual void GenerateProfilerForVectorVariable(Formatter& out,
48 virtual void GenerateProfilerForArrayVariable(Formatter& out,
52 virtual void GenerateProfilerForStructVariable(Formatter& out,
56 virtual void GenerateProfilerForUnionVariable(Formatter& out,
61 Formatter& out, const VariableSpecificationMessage& val,
64 virtual void GenerateProfilerForHidlCallbackVariable(Formatter& out,
68 virtual void GenerateProfilerForHidlInterfaceVariable(Formatter& out,
[all …]
/test/vts/compilation_tools/vtsc/code_gen/driver/
DHalCodeGen.cpp36 Formatter& out, const ComponentSpecificationMessage& message, in GenerateCppBodyInterfaceImpl() argument
48 out << "static string callback_socket_name_;" << "\n"; in GenerateCppBodyInterfaceImpl()
51 out << "\n"; in GenerateCppBodyInterfaceImpl()
52 out << "class " << name << " : public DriverCallbackBase {" in GenerateCppBodyInterfaceImpl()
54 out << " public:" << "\n"; in GenerateCppBodyInterfaceImpl()
55 out.indent(); in GenerateCppBodyInterfaceImpl()
56 out << name << "(const string& callback_socket_name) {" << "\n"; in GenerateCppBodyInterfaceImpl()
57 out.indent(); in GenerateCppBodyInterfaceImpl()
58 out << "callback_socket_name_ = callback_socket_name;" << "\n"; in GenerateCppBodyInterfaceImpl()
59 out.unindent(); in GenerateCppBodyInterfaceImpl()
[all …]
DHalHidlCodeGen.cpp37 Formatter& out, const ComponentSpecificationMessage& message, in GenerateCppBodyInterfaceImpl() argument
39 out << "\n"; in GenerateCppBodyInterfaceImpl()
44 out << "::android::hardware::Return<" in GenerateCppBodyInterfaceImpl()
47 out << "::android::hardware::Return<void> "; in GenerateCppBodyInterfaceImpl()
52 out << full_method_name << "(\n"; in GenerateCppBodyInterfaceImpl()
53 out.indent(); in GenerateCppBodyInterfaceImpl()
56 out << GetCppVariableType(arg, IsConstType(arg.type())) << " arg" << index in GenerateCppBodyInterfaceImpl()
58 if (index != (api.arg_size() - 1)) out << ",\n"; in GenerateCppBodyInterfaceImpl()
61 out << ") {\n"; in GenerateCppBodyInterfaceImpl()
63 out << (api.arg_size() != 0 ? ", " : ""); in GenerateCppBodyInterfaceImpl()
[all …]
DDriverCodeGenBase.cpp42 Formatter& out, const ComponentSpecificationMessage& message) { in GenerateHeaderFile() argument
67 out << "#ifndef __VTS_DRIVER__" << component_name_token << "__\n"; in GenerateHeaderFile()
68 out << "#define __VTS_DRIVER__" << component_name_token << "__\n"; in GenerateHeaderFile()
69 out << "\n"; in GenerateHeaderFile()
71 out << "#undef LOG_TAG\n"; in GenerateHeaderFile()
72 out << "#define LOG_TAG \"" << fuzzer_extended_class_name << "\"\n"; in GenerateHeaderFile()
74 GenerateHeaderIncludeFiles(out, message, fuzzer_extended_class_name); in GenerateHeaderFile()
76 GenerateOpenNameSpaces(out, message); in GenerateHeaderFile()
77 GenerateClassHeader(out, message, fuzzer_extended_class_name); in GenerateHeaderFile()
78 out << "\n\n"; in GenerateHeaderFile()
[all …]
DLibSharedCodeGen.cpp34 Formatter& out, const ComponentSpecificationMessage& message, in GenerateCppBodyFuzzFunction() argument
36 out << "bool " << fuzzer_extended_class_name << "::Fuzz(" << "\n"; in GenerateCppBodyFuzzFunction()
37 out << " FunctionSpecificationMessage* func_msg," << "\n"; in GenerateCppBodyFuzzFunction()
38 out << " void** result, const string& callback_socket_name) {" << "\n"; in GenerateCppBodyFuzzFunction()
39 out.indent(); in GenerateCppBodyFuzzFunction()
40 out << "const char* func_name = func_msg->name().c_str();" << "\n"; in GenerateCppBodyFuzzFunction()
41 out << "LOG(INFO) << \"Function: \" << func_name;\n"; in GenerateCppBodyFuzzFunction()
46 out << "if (!strcmp(func_name, \"" << api.name() << "\")) {" << "\n"; in GenerateCppBodyFuzzFunction()
56 out << " " << GetCppVariableType(arg) << " " in GenerateCppBodyFuzzFunction()
58 out << "reinterpret_cast<" << GetCppVariableType(arg) << ">(" in GenerateCppBodyFuzzFunction()
[all …]
DHalHidlCodeGen.h36 void GenerateClassHeader(Formatter& out,
40 void GenerateClassImpl(Formatter& out,
44 void GenerateCppBodyFuzzFunction(Formatter& out,
48 virtual void GenerateDriverFunctionImpl(Formatter& out,
52 void GenerateVerificationFunctionImpl(Formatter& out,
56 void GenerateCppBodyGetAttributeFunction(Formatter& out,
61 Formatter& out, const ComponentSpecificationMessage& message) override;
64 Formatter& out, const ComponentSpecificationMessage& message,
67 void GenerateClassConstructionFunction(Formatter& out,
71 void GenerateHeaderGlobalFunctionDeclarations(Formatter& out,
[all …]
DDriverCodeGenBase.h44 Formatter& out, const ComponentSpecificationMessage& message);
48 Formatter& out, const ComponentSpecificationMessage& message);
53 virtual void GenerateClassHeader(Formatter& out,
58 virtual void GenerateClassImpl(Formatter& out,
63 virtual void GenerateCppBodyFuzzFunction(Formatter& out,
68 virtual void GenerateCppBodyGetAttributeFunction(Formatter& out,
73 virtual void GenerateDriverFunctionImpl(Formatter& out,
78 virtual void GenerateVerificationFunctionImpl(Formatter& out,
102 virtual void GenerateHeaderGlobalFunctionDeclarations(Formatter& out,
107 virtual void GenerateCppBodyGlobalFunctions(Formatter& out,
[all …]
DHalCodeGen.h37 void GenerateCppBodyFuzzFunction(Formatter& out,
41 void GenerateCppBodyGetAttributeFunction(Formatter& out,
46 Formatter& out, const ComponentSpecificationMessage& message,
49 void GenerateClassConstructionFunction(Formatter& out,
53 void GenerateSubStructFuzzFunctionCall(Formatter& out,
56 void GenerateSubStructGetAttributeFunctionCall(Formatter& out,
59 void GenerateCppBodyFuzzFunction(Formatter& out,
64 void GenerateCppBodyGetAttributeFunction(Formatter& out,
/test/vts/compilation_tools/vtsc/code_gen/fuzzer/
DHalHidlFuzzerCodeGen.cpp31 void HalHidlFuzzerCodeGen::GenerateSourceIncludeFiles(Formatter &out) { in GenerateSourceIncludeFiles() argument
32 out << "#include <iostream>\n\n"; in GenerateSourceIncludeFiles()
33 out << "#include \"FuncFuzzerUtils.h\"\n"; in GenerateSourceIncludeFiles()
34 out << "#include <" << GetPackagePath(comp_spec_) << "/" in GenerateSourceIncludeFiles()
37 out << "\n"; in GenerateSourceIncludeFiles()
40 void HalHidlFuzzerCodeGen::GenerateUsingDeclaration(Formatter &out) { in GenerateUsingDeclaration() argument
41 out << "using std::cerr;\n"; in GenerateUsingDeclaration()
42 out << "using std::endl;\n"; in GenerateUsingDeclaration()
43 out << "using std::string;\n\n"; in GenerateUsingDeclaration()
49 out << "using namespace ::" << package_path << "::" << comp_version << ";\n"; in GenerateUsingDeclaration()
[all …]
DFuzzerCodeGenBase.cpp38 void FuzzerCodeGenBase::GenerateSourceFile(Formatter &out) { in GenerateSourceFile() argument
42 GenerateWarningComment(out); in GenerateSourceFile()
43 GenerateSourceIncludeFiles(out); in GenerateSourceFile()
44 GenerateUsingDeclaration(out); in GenerateSourceFile()
45 GenerateOpenNameSpaces(out); in GenerateSourceFile()
46 GenerateGlobalVars(out); in GenerateSourceFile()
47 GenerateLLVMFuzzerInitialize(out); in GenerateSourceFile()
48 GenerateLLVMFuzzerTestOneInput(out); in GenerateSourceFile()
49 GenerateCloseNameSpaces(out); in GenerateSourceFile()
52 void FuzzerCodeGenBase::GenerateOpenNameSpaces(Formatter &out) { in GenerateOpenNameSpaces() argument
[all …]
DFuzzerCodeGenBase.h43 void GenerateHeaderFile(Formatter &out);
45 void GenerateSourceFile(Formatter &out);
49 virtual void GenerateSourceIncludeFiles(Formatter &out) = 0;
51 virtual void GenerateUsingDeclaration(Formatter &out) = 0;
53 virtual void GenerateGlobalVars(Formatter &out) = 0;
55 virtual void GenerateLLVMFuzzerInitialize(Formatter &out) = 0;
57 virtual void GenerateLLVMFuzzerTestOneInput(Formatter &out) = 0;
58 virtual void GenerateOpenNameSpaces(Formatter &out);
59 virtual void GenerateCloseNameSpaces(Formatter &out);
62 virtual void GenerateWarningComment(Formatter &out);
DHalHidlFuzzerCodeGen.h31 void GenerateSourceIncludeFiles(Formatter &out) override;
32 void GenerateUsingDeclaration(Formatter &out) override;
33 void GenerateGlobalVars(Formatter &out) override;
34 void GenerateLLVMFuzzerInitialize(Formatter &out) override;
35 void GenerateLLVMFuzzerTestOneInput(Formatter &out) override;
39 void GenerateReturnCallback(Formatter &out,
42 void GenerateHalFunctionCall(Formatter &out,
/test/vts-testcase/vndk/
Dutils.py55 out, err = proc.communicate()
57 if not isinstance(out, str):
58 out = out.decode("utf-8")
61 return out, err, proc.returncode
75 out, err, return_code = self.Execute("getprop", name)
78 (name, out, err))
79 return out.strip()
91 out = self._GetProp("ro.product.cpu.abilist" + str(bitness))
92 return out.lower().split(",") if out else []
197 out, err, return_code = self.Execute("id")
[all …]
/test/vti/dashboard/src/main/webapp/WEB-INF/jsp/
Dshow_suite_release.jsp64 …var url = '<c:out value="${requestScope['javax.servlet.forward.servlet_path']}" escapeXml="false">…
65 …var params = $.deparam('<c:out value="${requestScope['javax.servlet.forward.query_string']}" escap…
121 <b>Plan: </b><span><c:out value="${plan}"></c:out></span>
130 …<input id="deviceBranch" type="text" value="<c:out value="${branch}"></c:out>" autocomplete="off" …
134 … <input id="host" type="text" value="<c:out value="${hostName}"></c:out>" autocomplete="off" />
138 …<input id="deviceBuildId" type="text" value="<c:out value="${buildId}"></c:out>" autocomplete="off…
144 …<input id="deviceName" type="text" value="<c:out value="${deviceName}"></c:out>" autocomplete="off…
164 …<a class="<c:out value="${testCategoryType == '1' ? 'active' : 'inactive'}"></c:out>" href="${requ…
167 …<a class="<c:out value="${testCategoryType == '4' ? 'active' : 'inactive'}"></c:out>" href="${requ…
170 …<a class="<c:out value="${testCategoryType == '2' ? 'active' : 'inactive'}"></c:out>" href="${requ…
[all …]
Dshow_green_suite_release.jsp56 <td> <c:out value="${branchList.key}"></c:out> </td>
60 <c:out value="${deviceBuildInfo.deviceBuildTarget}"></c:out> :
63 <c:out value="${deviceBuildInfo.candidateBuildId}"></c:out>
66 <c:out value="${deviceBuildInfo.candidateBuildId}"></c:out>
80 <c:out value="${deviceBuildInfo.greenBuildId}"></c:out>
83 <c:out value="${deviceBuildInfo.greenBuildId}"></c:out>
Dshow_green_plan_release.jsp55 <td> <c:out value="${branchList.key}"></c:out> </td>
59 <c:out value="${deviceBuildInfo.deviceBuildTarget}"></c:out> :
62 <c:out value="${deviceBuildInfo.candidateBuildId}"></c:out>
66 <c:out value="${deviceBuildInfo.candidateBuildId}"></c:out>
81 <c:out value="${deviceBuildInfo.greenBuildId}"></c:out>
85 <c:out value="${deviceBuildInfo.greenBuildId}"></c:out>
/test/app_compat/csuite/tools/script/
Dgenerate_module_test.py31 out = io.StringIO()
34 'a.package.name', out)
36 self.assertIn('Copyright', out.getvalue())
37 self.assertIn('Android Open Source Project', out.getvalue())
40 out = io.StringIO()
43 'a.package.name', out)
45 self.assert_valid_xml(out.getvalue())
49 out = io.StringIO()
52 'a.package.name', out)
54 self.assertIn(package_name, out.getvalue())
[all …]
/test/vts-testcase/kernel/checkpoint/
Dvts_kernel_checkpoint_test.py44 out, err, return_code = self.dut.Execute("getprop ro.boot." + prop)
45 extension = out
50 out, err, return_code = self.dut.Execute("cat " + filename + extension)
54 return out
98 out, err, return_code = self.dut.Execute("getprop sys.boot_completed")
100 boot_completed = int(out)
109 out, err, return_code = self.dut.Execute("getprop ro.product.first_api_level")
111 first_api_level = int(out)
130 out, err, return_code = self.dut.Execute("vdc checkpoint startCheckpoint 1")
139 out, err, return_code = self.dut.Execute("cat " + self._CHECKPOINTTESTFILE)
[all …]
/test/vts/drivers/hal/common/utils/
DInterfaceSpecUtil.cpp86 std::ostringstream out; in GetVersionString() local
88 out << "V"; in GetVersionString()
91 out << (version_long / DEFAULT_FACTOR); in GetVersionString()
93 out << "."; in GetVersionString()
95 out << "_"; in GetVersionString()
101 out << (version_long / factor); in GetVersionString()
106 return out.str(); in GetVersionString()
110 std::ostringstream out; in GetVersionString() local
112 if (for_macro) out << "V"; in GetVersionString()
114 out << version_major; in GetVersionString()
[all …]
/test/vts-testcase/kernel/ltp/testcase/
DAndroid.bp30 out: ["vts_ltp_test_arm_64.xml"],
36 …NDROID_BUILD_TOP=$$(pwd) && python3 $(location tools/gen_ltp_config.py) arm 64 False False $(out)",
48 out: ["vts_ltp_test_arm_64_lowmem.xml"],
54 …ANDROID_BUILD_TOP=$$(pwd) && python3 $(location tools/gen_ltp_config.py) arm 64 True False $(out)",
66 out: ["vts_ltp_test_arm_64_hwasan.xml"],
72 …ANDROID_BUILD_TOP=$$(pwd) && python3 $(location tools/gen_ltp_config.py) arm 64 False True $(out)",
84 out: ["vts_ltp_test_arm_64_lowmem_hwasan.xml"],
90 … ANDROID_BUILD_TOP=$$(pwd) && python3 $(location tools/gen_ltp_config.py) arm 64 True True $(out)",
102 out: ["vts_ltp_test_arm.xml"],
108 …NDROID_BUILD_TOP=$$(pwd) && python3 $(location tools/gen_ltp_config.py) arm 32 False False $(out)",
[all …]
/test/vts/testcases/host/kernel_proc_file_api_test/
Dproc_utils.py82 out, err, r_code = self.shell.Execute('stat -c %%a %s' % filepath)
85 (filepath, out, err))
86 return out.strip()
137 out, err, r_code = self.shell.Execute("id -un")
138 if r_code == 0 and not err.strip() and out.strip() == "root":
155 out, err, r_code = self.shell.Execute(cmd)
161 return out
172 (out, err) = proc.communicate()
177 return out.decode('UTF-8'), err.decode('UTF-8'), proc.returncode
182 return out.decode('ISO-8859-1'), err.decode('ISO-8859-1'), proc.returncode
/test/vts/utils/python/controllers/
Dandroid_device.py181 out = adb.AdbProxy().devices()
182 return _parse_device_list(out, "device")
192 out = fastboot.FastbootProxy().devices()
193 return _parse_device_list(out, "fastboot")
202 out = adb.AdbProxy().devices()
203 return _parse_device_list(out, "unauthorized")
457 out = self.fastboot.getvar(_FASTBOOT_VAR_HAS_VBMETA).strip()
458 if ("%s: yes" % _FASTBOOT_VAR_HAS_VBMETA) in out:
472 out = self.fastboot.getvar("is-userspace").strip()
473 if ("is-userspace: yes") in out:
[all …]

1234