/test/vts/compilation_tools/vtsc/code_gen/driver/ |
D | DriverCodeGenBase.cpp | 36 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 …]
|
D | DriverCodeGenBase.h | 40 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 …]
|
D | HalHidlCodeGen.h | 37 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 …]
|
D | HalCodeGen.cpp | 36 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 …]
|
D | HalCodeGen.h | 38 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,
|
D | HalHidlCodeGen.cpp | 37 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 …]
|
D | LibSharedCodeGen.cpp | 34 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/ |
D | email_util.py | 78 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/ |
D | py2pb.py | 23 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/vts/compilation_tools/vtsc/code_gen/profiler/ |
D | ProfilerCodeGenBase.cpp | 27 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 …]
|
D | HalHidlProfilerCodeGen.cpp | 381 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 …]
|
D | ProfilerCodeGenBase.h | 46 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,
|
D | HalHidlProfilerCodeGen.h | 100 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/ |
D | VtsCompilerUtils.cpp | 365 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 …]
|
D | VtsCompilerUtils.h | 48 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/vts/compilation_tools/vtsc/code_gen/ |
D | CodeGenBase.cpp | 80 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/utils/ |
D | InterfaceSpecUtil.cpp | 37 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/hal/common/driver_base/ |
D | DriverCallbackBase.cpp | 39 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/libdrivercomm/ |
D | VtsDriverCommUtil.cpp | 83 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()
|
D | VtsDriverCommUtil.h | 51 bool VtsSocketSendBytes(const string& message); 57 bool VtsSocketSendMessage(const google::protobuf::Message& message); 60 bool VtsSocketRecvMessage(google::protobuf::Message* message);
|
/test/vts/utils/native/libprofiling/ |
D | VtsProfilingUtil.cpp | 25 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/proto/ |
D | VtsReportMessage.proto | 64 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/mlts/benchmark/src/com/android/nn/crashtest/core/ |
D | CrashTestService.java | 53 final Messenger mMessenger = new Messenger(new Handler(message -> { 54 switch (message.what) { 56 lifecycleListener = message.replyTo; 76 final Message message = Message.obtain(null, messageType); in notify() local 80 message.setData(data); in notify() 82 lifecycleListener.send(message); in notify()
|
/test/vts/utils/python/archive/ |
D | archive_parser_test.py | 61 message = 'test file contents' 62 message_size = str(len(message)) 66 content += message 70 self.assertEquals(archive.files[file_name], message)
|
/test/vti/test_serving/gae/webapp/src/endpoint/ |
D | endpoint_base_test.py | 122 message=model.DeviceInfoMessage) 143 message=model.DeviceInfoMessage) 164 message=model.DeviceInfoMessage) 179 message=model.DeviceInfoMessage) 210 message=model.DeviceInfoMessage) 232 message=model.DeviceInfoMessage) 249 message=model.DeviceInfoMessage)
|