Home
last modified time | relevance | path

Searched refs:message (Results 1 – 25 of 114) sorted by relevance

12345

/test/vts/compilation_tools/vtsc/code_gen/driver/
DDriverCodeGenBase.cpp36 const ComponentSpecificationMessage& message) { in GenerateAll() argument
37 GenerateHeaderFile(header_out, message); in GenerateAll()
38 GenerateSourceFile(source_out, message); in GenerateAll()
42 Formatter& out, const ComponentSpecificationMessage& message) { in GenerateHeaderFile() argument
43 string component_name = GetComponentName(message); in GenerateHeaderFile()
51 if (message.component_class() == HAL_HIDL) { in GenerateHeaderFile()
52 FQName component_fq_name = GetFQName(message); in GenerateHeaderFile()
55 string version = GetVersion(message, true); in GenerateHeaderFile()
57 ComponentClassToString(message.component_class()) + "_" + in GenerateHeaderFile()
58 ComponentTypeToString(message.component_type()) + "_" + version; in GenerateHeaderFile()
[all …]
DDriverCodeGenBase.h40 const ComponentSpecificationMessage& message);
44 Formatter& out, const ComponentSpecificationMessage& message);
48 Formatter& out, const ComponentSpecificationMessage& message);
54 const ComponentSpecificationMessage& message,
59 const ComponentSpecificationMessage& message,
64 const ComponentSpecificationMessage& message,
69 const ComponentSpecificationMessage& message,
74 const ComponentSpecificationMessage& message,
79 const ComponentSpecificationMessage& message,
103 const ComponentSpecificationMessage& message,
[all …]
DHalHidlCodeGen.h37 const ComponentSpecificationMessage& message,
41 const ComponentSpecificationMessage& message,
45 const ComponentSpecificationMessage& message,
49 const ComponentSpecificationMessage& message,
53 const ComponentSpecificationMessage& message,
57 const ComponentSpecificationMessage& message,
61 Formatter& out, const ComponentSpecificationMessage& message) override;
64 Formatter& out, const ComponentSpecificationMessage& message,
68 const ComponentSpecificationMessage& message,
72 const ComponentSpecificationMessage& message,
[all …]
DHalCodeGen.cpp36 Formatter& out, const ComponentSpecificationMessage& message, in GenerateCppBodyInterfaceImpl() argument
40 for (int i = 0; i < message.interface().attribute_size(); i++) { in GenerateCppBodyInterfaceImpl()
41 const VariableSpecificationMessage& attribute = message.interface().attribute(i); in GenerateCppBodyInterfaceImpl()
266 Formatter& out, const ComponentSpecificationMessage& message, in GenerateCppBodyFuzzFunction() argument
268 for (auto const& sub_struct : message.interface().sub_struct()) { in GenerateCppBodyFuzzFunction()
270 message.original_data_structure_name(), in GenerateCppBodyFuzzFunction()
283 if (message.interface().sub_struct().size() > 0) { in GenerateCppBodyFuzzFunction()
286 for (auto const& sub_struct : message.interface().sub_struct()) { in GenerateCppBodyFuzzFunction()
293 out << message.original_data_structure_name() in GenerateCppBodyFuzzFunction()
295 out << "reinterpret_cast<" << message.original_data_structure_name() in GenerateCppBodyFuzzFunction()
[all …]
DHalCodeGen.h38 const ComponentSpecificationMessage& message,
42 const ComponentSpecificationMessage& message,
46 Formatter& out, const ComponentSpecificationMessage& message,
50 const ComponentSpecificationMessage& message,
54 const StructSpecificationMessage& message, const string& parent_path);
57 const StructSpecificationMessage& message, const string& parent_path);
60 const StructSpecificationMessage& message,
65 const StructSpecificationMessage& message,
DHalHidlCodeGen.cpp37 Formatter& out, const ComponentSpecificationMessage& message, in GenerateCppBodyInterfaceImpl() argument
40 FQName component_fq_name = GetFQName(message); in GenerateCppBodyInterfaceImpl()
41 for (const auto& api : message.interface().api()) { in GenerateCppBodyInterfaceImpl()
167 const ComponentSpecificationMessage& message, in GenerateDriverFunctionImpl() argument
169 if (message.component_name() != "types") { in GenerateDriverFunctionImpl()
186 for (auto const& api : message.interface().api()) { in GenerateDriverFunctionImpl()
324 Formatter& out, const ComponentSpecificationMessage& message, in GenerateCppBodyGetAttributeFunction() argument
326 if (message.component_name() != "types") { in GenerateCppBodyGetAttributeFunction()
342 const ComponentSpecificationMessage& message, in GenerateClassConstructionFunction() argument
345 if (message.component_name() != "types") { in GenerateClassConstructionFunction()
[all …]
DLibSharedCodeGen.cpp34 Formatter& out, const ComponentSpecificationMessage& message, in GenerateCppBodyFuzzFunction() argument
43 for (auto const& api : message.interface().api()) { in GenerateCppBodyFuzzFunction()
53 message.original_data_structure_name().c_str(), in GenerateCppBodyFuzzFunction()
54 message.original_data_structure_name().length()) && in GenerateCppBodyFuzzFunction()
55 message.original_data_structure_name().length() > 0) { in GenerateCppBodyFuzzFunction()
/test/vti/test_serving/gae/webapp/src/utils/
Demail_util.py78 message = ""
79 message += SEND_DEVICE_NOTIFICATION_HEADER.format(lab)
80 message += "\n\n"
84 message += "hostname\n"
85 message += host
86 message += "\n\ndevices\n"
87 message += "\n".join(devices[lab][host])
88 message += "\n\n\n"
89 message += "\n\n"
90 message += SEND_NOTIFICATION_FOOTER.format(lab)
[all …]
/test/vts/utils/python/mirror/
Dpy2pb.py23 def PyValue2PbEnum(message, pb_spec, py_value): argument
37 message.name = pb_spec.name
38 message.type = CompSpecMsg.TYPE_ENUM
43 setattr(message.scalar_value, scalar_type, py_value)
47 setattr(message.scalar_value, "int32_t", py_value)
50 def PyValue2PbScalar(message, pb_spec, py_value): argument
64 message.name = pb_spec.name
65 message.type = CompSpecMsg.TYPE_SCALAR
66 message.scalar_type = pb_spec.scalar_type
67 setattr(message.scalar_value, pb_spec.scalar_type, py_value)
[all …]
/test/suite_harness/common/host-side/util/src/com/android/compatibility/common/util/
DMetricsReportLog.java84 public void addValue(String source, String message, double value, ResultType type, in addValue() argument
86 super.addValue(source, message, value, type, unit); in addValue()
88 store.addResult(message, value); in addValue()
98 public void addValue(String message, double value, ResultType type, ResultUnit unit) { in addValue() argument
99 super.addValue(message, value, type, unit); in addValue()
101 store.addResult(message, value); in addValue()
112 public void addValues(String source, String message, double[] values, ResultType type, in addValues() argument
114 super.addValues(source, message, values, type, unit); in addValues()
116 store.addArrayResult(message, values); in addValues()
126 public void addValues(String message, double[] values, ResultType type, ResultUnit unit) { in addValues() argument
[all …]
/test/vts/compilation_tools/vtsc/code_gen/profiler/
DProfilerCodeGenBase.cpp27 const ComponentSpecificationMessage& message) { in GenerateAll() argument
28 GenerateHeaderFile(header_out, message); in GenerateAll()
29 GenerateSourceFile(source_out, message); in GenerateAll()
33 Formatter& out, const ComponentSpecificationMessage& message) { in GenerateHeaderFile() argument
34 FQName component_fq_name = GetFQName(message); in GenerateHeaderFile()
40 GenerateHeaderIncludeFiles(out, message); in GenerateHeaderFile()
41 GenerateUsingDeclaration(out, message); in GenerateHeaderFile()
42 GenerateOpenNameSpaces(out, message); in GenerateHeaderFile()
44 if (message.has_interface()) { in GenerateHeaderFile()
45 InterfaceSpecificationMessage interface = message.interface(); in GenerateHeaderFile()
[all …]
DHalHidlProfilerCodeGen.cpp381 ComponentSpecificationMessage message; in GenerateProfilerForMethod() local
470 Formatter& out, const ComponentSpecificationMessage& message) { in GenerateHeaderIncludeFiles() argument
487 out << "#include <" << GetPackagePath(message) << "/" << GetVersion(message) in GenerateHeaderIncludeFiles()
488 << "/" << GetComponentName(message) << ".h>\n"; in GenerateHeaderIncludeFiles()
491 for (const auto& import : message.import()) { in GenerateHeaderIncludeFiles()
519 Formatter& out, const ComponentSpecificationMessage& message) { in GenerateSourceIncludeFiles() argument
521 out << "#include \"" << GetPackagePath(message) << "/" << GetVersion(message) in GenerateSourceIncludeFiles()
522 << "/" << GetComponentBaseName(message) << ".vts.h\"\n"; in GenerateSourceIncludeFiles()
524 if (IncludeHidlNativeType(message, TYPE_HANDLE)) { in GenerateSourceIncludeFiles()
529 if (IncludeHidlNativeType(message, TYPE_FMQ_SYNC) || in GenerateSourceIncludeFiles()
[all …]
DProfilerCodeGenBase.h46 const ComponentSpecificationMessage& message);
50 const ComponentSpecificationMessage &message);
54 const ComponentSpecificationMessage &message);
143 const ComponentSpecificationMessage& message) = 0;
146 const ComponentSpecificationMessage& message) = 0;
149 const ComponentSpecificationMessage& message) = 0;
181 const ComponentSpecificationMessage& message);
183 const ComponentSpecificationMessage& message);
187 bool IncludeHidlNativeType(const ComponentSpecificationMessage& message,
DHalHidlProfilerCodeGen.h100 const ComponentSpecificationMessage& message) override;
102 const ComponentSpecificationMessage& message) override;
104 const ComponentSpecificationMessage& message) override;
106 const ComponentSpecificationMessage& message) override;
108 Formatter& out, const ComponentSpecificationMessage& message) override;
110 const ComponentSpecificationMessage& message) override;
/test/vts/compilation_tools/vtsc/
DVtsCompilerUtils.cpp365 const ComponentSpecificationMessage* message) { in GetCppInstanceType() argument
467 if (!message || message->component_class() != HAL_HIDL) { in GetCppInstanceType()
497 return message->component_name() + "::" + arg.predefined_type() + "()"; in GetCppInstanceType()
568 string GetPackageName(const ComponentSpecificationMessage& message) { in GetPackageName() argument
569 if (!message.package().empty()) { in GetPackageName()
570 return message.package(); in GetPackageName()
575 string GetPackagePath(const ComponentSpecificationMessage& message) { in GetPackagePath() argument
576 string package_path = GetPackageName(message); in GetPackagePath()
581 string GetPackageNamespaceToken(const ComponentSpecificationMessage& message) { in GetPackageNamespaceToken() argument
582 string package_token = GetPackageName(message); in GetPackageNamespaceToken()
[all …]
DVtsCompilerUtils.h48 const ComponentSpecificationMessage* message = NULL);
68 string GetPackageName(const ComponentSpecificationMessage& message);
71 string GetPackagePath(const ComponentSpecificationMessage& message);
75 string GetPackageNamespaceToken(const ComponentSpecificationMessage& message);
79 std::string GetVersion(const ComponentSpecificationMessage& message,
83 int GetMajorVersion(const ComponentSpecificationMessage& message);
86 int GetMinorVersion(const ComponentSpecificationMessage& message);
89 std::string GetComponentBaseName(const ComponentSpecificationMessage& message);
92 string GetComponentName(const ComponentSpecificationMessage& message);
95 FQName GetFQName(const ComponentSpecificationMessage& message);
/test/suite_harness/common/util/src/com/android/compatibility/common/util/
DReportLog.java64 Metric(String source, String message, double value, ResultType type, ResultUnit unit) { in Metric() argument
65 this(source, message, new double[] { value }, type, unit); in Metric()
79 Metric(String source, String message, double[] values, ResultType type, ResultUnit unit) { in Metric() argument
87 int messageLength = message.length(); in Metric()
90 mMessage = message.substring(0, MAX_MESSAGE_LENGTH); in Metric()
92 mMessage = message; in Metric()
144 String message = parser.getAttributeValue(null, MESSAGE_ATTR); in parse() local
161 return new Metric(source, message, values, type, unit); in parse()
177 public void addValues(String message, double[] values, ResultType type, ResultUnit unit) { in addValues() argument
184 public void addValues(String source, String message, double[] values, ResultType type, in addValues() argument
[all …]
/test/vts/compilation_tools/vtsc/code_gen/
DCodeGenBase.cpp80 ComponentSpecificationMessage message; in TranslateToFile() local
81 if (!ParseInterfaceSpec(input_vts_file_path, &message)) { in TranslateToFile()
97 switch (message.component_class()) { in TranslateToFile()
106 << message.component_class(); in TranslateToFile()
110 code_generator->GenerateHeaderFile(out, message); in TranslateToFile()
112 code_generator->GenerateSourceFile(out, message); in TranslateToFile()
119 switch (message.component_class()) { in TranslateToFile()
122 fuzzer_generator = make_unique<HalHidlFuzzerCodeGen>(message); in TranslateToFile()
127 << message.component_class(); in TranslateToFile()
140 switch (message.component_class()) { in TranslateToFile()
[all …]
/test/vts/drivers/hal/common/driver_base/
DDriverCallbackBase.cpp39 bool DriverCallbackBase::Register(const VariableSpecificationMessage& message) { in Register() argument
40 LOG(DEBUG) << "type = " << message.type(); in Register()
41 if (!message.is_callback()) { in Register()
46 if (!message.has_type() || message.type() != TYPE_FUNCTION_POINTER) { in Register()
51 for (const auto& func_pt : message.function_pointer()) { in Register()
66 const AndroidSystemCallbackRequestMessage& message, in RpcCallToAgent() argument
68 LOG(DEBUG) << " id = '" << message.id() << "'"; in RpcCallToAgent()
69 if (message.id().empty() || callback_socket_name.empty()) { in RpcCallToAgent()
75 util.VtsSocketSendMessage(message); in RpcCallToAgent()
/test/vts/drivers/hal/common/utils/
DInterfaceSpecUtil.cpp37 ComponentSpecificationMessage* message) { in ParseInterfaceSpec() argument
48 message->Clear(); in ParseInterfaceSpec()
49 if (!google::protobuf::TextFormat::MergeFromString(data, message)) { in ParseInterfaceSpec()
56 string GetFunctionNamePrefix(const ComponentSpecificationMessage& message) { in GetFunctionNamePrefix() argument
58 if (message.component_class() != HAL_HIDL) { in GetFunctionNamePrefix()
60 << message.component_class() << "_" << message.component_type() in GetFunctionNamePrefix()
62 << GetVersionString(message.component_type_version_major(), in GetFunctionNamePrefix()
63 message.component_type_version_minor(), in GetFunctionNamePrefix()
68 string package_as_function_name(message.package()); in GetFunctionNamePrefix()
71 << message.component_class() << "_" << package_as_function_name in GetFunctionNamePrefix()
[all …]
/test/vts/drivers/libdrivercomm/
DVtsDriverCommUtil.cpp83 bool VtsDriverCommUtil::VtsSocketSendBytes(const string& message) { in VtsSocketSendBytes() argument
89 header << message.length() << "\n"; in VtsSocketSendBytes()
90 LOG(DEBUG) << "[agent->driver] len = " << message.length(); in VtsSocketSendBytes()
98 int msg_len = message.length(); in VtsSocketSendBytes()
100 n = write(sockfd_, &message.c_str()[bytes_sent], msg_len - bytes_sent); in VtsSocketSendBytes()
157 const google::protobuf::Message& message) { in VtsSocketSendMessage() argument
164 if (!message.SerializeToString(&message_string)) { in VtsSocketSendMessage()
172 google::protobuf::Message* message) { in VtsSocketRecvMessage() argument
184 return message->ParseFromString(message_string); in VtsSocketRecvMessage()
/test/vts/utils/native/libprofiling/
DVtsProfilingUtil.cpp25 bool writeOneDelimited(const google::protobuf::MessageLite& message, in writeOneDelimited() argument
31 const int size = message.ByteSize(); in writeOneDelimited()
38 message.SerializeWithCachedSizesToArray(buffer); in writeOneDelimited()
41 message.SerializeWithCachedSizes(&output); in writeOneDelimited()
50 bool readOneDelimited(google::protobuf::MessageLite* message, in readOneDelimited() argument
67 if (!message->MergeFromCodedStream(&input)) { in readOneDelimited()
/test/vts/agents/hal/
DSocketServerForDriver.cpp36 const AndroidSystemCallbackRequestMessage& message) { in RpcCallToRunner() argument
66 if (!util.VtsSocketSendMessage(message)) return; in RpcCallToRunner()
70 AndroidSystemCallbackRequestMessage message; in Start() local
71 if (!VtsSocketRecvMessage(&message)) return; in Start()
72 LOG(INFO) << "Start server for driver with callback ID: " << message.id(); in Start()
73 RpcCallToRunner(message); in Start()
/test/vts/proto/
DVtsReportMessage.proto64 message AndroidDeviceInfoMessage {
98 message AndroidBuildInfo {
117 message VtsHostInfo {
124 message TestCaseReportMessage {
141 // systrace report message per file
151 message ProfilingReportMessage {
175 message SystraceReportMessage {
187 message CoverageReportMessage {
221 message HalInterfaceMessage {
235 message ApiCoverageReportMessage {
[all …]
/test/vts/utils/python/archive/
Darchive_parser_test.py61 message = 'test file contents'
62 message_size = str(len(message))
66 content += message
70 self.assertEquals(archive.files[file_name], message)

12345