/drivers/hdf_core/framework/tools/hdi-gen/codegen/ |
D | cpp_service_stub_code_emitter.cpp | 66 if (interface_->GetExtendsInterface() != nullptr) { in EmitStubHeaderInclusions() 68 EmitHeaderNameByInterface(interface_->GetExtendsInterface(), stubName_)); in EmitStubHeaderInclusions() 128 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitStubMethodDecls() 132 if (interface_->GetExtendsInterface() == nullptr) { in EmitStubMethodDecls() 133 EmitStubStaticMethodDecl(interface_->GetVersionMethod(), sb, prefix); in EmitStubMethodDecls() 138 AutoPtr<ASTInterfaceType> interface = interface_; in EmitStubMethodDecls() 146 EmitStubMethodDecl(interface_->GetVersionMethod(), sb, prefix); in EmitStubMethodDecls() 164 optionName_.c_str(), EmitDefinitionByInterface(interface_, interfaceName_).c_str()); in EmitStubStaticMethodDecl() 170 EmitDefinitionByInterface(interface_, stubName_).c_str(), in EmitStubPrivateData() 171 EmitDefinitionByInterface(interface_, interfaceName_).c_str()); in EmitStubPrivateData() [all …]
|
D | cpp_client_proxy_code_emitter.cpp | 35 if (!interface_->IsSerializable()) { in EmitCode() 80 if (interface_->GetExtendsInterface() != nullptr) { in EmitProxyHeaderInclusions() 82 …HeaderFileType::OWN_HEADER_FILE, EmitHeaderNameByInterface(interface_->GetExtendsInterface(), prox… in EmitProxyHeaderInclusions() 100 EmitDefinitionByInterface(interface_, interfaceName_).c_str()); in EmitProxyDecl() 115 …" : IProxyBroker<%s>(remote) {}\n\n", EmitDefinitionByInterface(interface_, interfaceName_).c_str(… in EmitProxyConstructor() 121 AutoPtr<ASTInterfaceType> interface = interface_; in EmitProxyMethodDecls() 129 EmitProxyMethodDecl(interface_->GetVersionMethod(), sb, prefix); in EmitProxyMethodDecls() 130 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitProxyMethodDecls() 134 if (interface_->GetExtendsInterface() == nullptr) { in EmitProxyMethodDecls() 136 EmitProxyStaticMethodDecl(interface_->GetVersionMethod(), sb, prefix); in EmitProxyMethodDecls() [all …]
|
D | cpp_interface_code_emitter.cpp | 64 if (interface_->GetExtendsInterface() == nullptr) { in EmitInterfaceHeaderFile() 111 AutoPtr<ASTInterfaceType> interface = interface_->GetExtendsInterface(); in EmitInterfaceDefinition() 123 if (!interface_->IsSerializable()) { in EmitInterfaceDefinition() 135 AutoPtr<ASTInterfaceType> interface = interface_->GetExtendsInterface(); in EmitGetDescMethod() 155 …sb.Append(prefix).AppendFormat("static %s Get(bool isStub = false);\n", interface_->EmitCppType().… in EmitGetMethodDecl() 157 …"static %s Get(const std::string &serviceName, bool isStub = false);\n", interface_->EmitCppType()… in EmitGetMethodDecl() 162 sb.Append(prefix).AppendFormat("virtual ~%s() = default;\n", interface_->GetName().c_str()); in EmitInterfaceDestruction() 167 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitInterfaceMethodsDecl() 199 AutoPtr<ASTMethod> method = interface_->GetVersionMethod(); in EmitInterfaceGetVersionMethod() 200 if (interface_->GetExtendsInterface() == nullptr) { in EmitInterfaceGetVersionMethod() [all …]
|
D | c_interface_code_emitter.cpp | 64 if (!interface_->IsSerializable()) { in EmitLowModeInterfaceHeaderFile() 70 if (!interface_->IsSerializable()) { in EmitLowModeInterfaceHeaderFile() 164 …sb.AppendFormat("#define %s \"%s\"\n", interface_->EmitDescMacroName().c_str(), interfaceFullName_… in EmitInterfaceDesc() 176 if (mode_ == GenMode::LOW && !interface_->IsSerializable()) { in EmitInterfaceDefinition() 185 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitInterfaceMethods() 190 EmitInterfaceMethod(interface_->GetVersionMethod(), sb, prefix); in EmitInterfaceMethods() 228 if (Options::GetInstance().DoPassthrough() && interface_->IsSerializable()) { in EmitExternalMethod() 248 if (interface_->IsSerializable()) { in EmitInterfaceGetMethodDecl() 267 if (interface_->IsCallback()) { in EmitInterfaceReleaseMethodDecl() 271 } else if (interface_->IsSerializable()) { in EmitInterfaceReleaseMethodDecl()
|
D | code_emitter.cpp | 39 interface_ = ast_->GetInterfaceDef(); in Reset() 40 interfaceName_ = interface_->GetName(); in Reset() 41 interfaceFullName_ = interface_->GetNamespace()->ToString() + interfaceName_; in Reset() 44 proxyFullName_ = interface_->GetNamespace()->ToString() + proxyName_; in Reset() 47 stubFullName_ = interface_->GetNamespace()->ToString() + stubName_; in Reset() 50 implFullName_ = interface_->GetNamespace()->ToString() + implName_; in Reset() 77 interface_ = nullptr; in CleanData() 149 … sb.Append(prefix + TAB).Append(EmitMethodCmdID(interface_->GetVersionMethod())).Append(" = 0,\n"); in EmitInterfaceMethodCommands() 151 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitInterfaceMethodCommands()
|
D | c_service_impl_code_emitter.cpp | 41 if (interface_->IsSerializable()) { in EmitCode() 137 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitLowServiceImplGetMethod() 142 AutoPtr<ASTMethod> method = interface_->GetVersionMethod(); in EmitLowServiceImplGetMethod() 166 } else if (interface_->IsSerializable()) { in EmitServiceImplHeaderFile() 204 instTypeName = interface_->IsSerializable() ? interfaceName_ : implName_; in EmitServiceImplExternalMethodsDecl() 221 if (mode_ != GenMode::KERNEL && !interface_->IsSerializable()) { in EmitServiceImplSourceFile() 250 if (mode_ == GenMode::KERNEL || mode_ == GenMode::LOW || interface_->IsSerializable()) { in EmitServiceImplSourceInclusions() 287 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitServiceImplMethodImpls() 325 AutoPtr<ASTMethod> method = interface_->GetVersionMethod(); in EmitServiceImplGetVersionMethod() 364 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitKernelServiceImplGetMethod() [all …]
|
D | cpp_service_impl_code_emitter.cpp | 81 EmitDefinitionByInterface(interface_, interfaceName_).c_str()); in EmitServiceImplDecl() 104 AutoPtr<ASTInterfaceType> interface = interface_; in EmitServiceImplMethodDecls() 178 AutoPtr<ASTInterfaceType> interface = interface_; in EmitServiceImplMethodImpls() 217 if (!interface_->IsSerializable()) { in EmitServiceImplGetMethodImpl()
|
D | c_service_stub_code_emitter.cpp | 123 if (mode_ != GenMode::KERNEL && !interface_->IsSerializable()) { in EmitServiceStubSourceFile() 143 if (!interface_->IsSerializable()) { in EmitServiceStubSourceFile() 183 if (!interface_->IsSerializable()) { in GetSourceOtherLibInclusions() 235 interfaceName_.c_str(), interface_->EmitDescMacroName().c_str()); in EmitGetInstanceMehtodImpl() 261 …sb.Append(TAB).AppendFormat("UnloadHdiImpl(%s, instName, instance);\n", interface_->EmitDescMacroN… in EmitReleaseInstanceMethodImpl() 267 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitServiceStubMethodImpls() 272 EmitStubGetVerMethodImpl(interface_->GetVersionMethod(), sb, prefix); in EmitServiceStubMethodImpls() 541 if (interface_->IsSerializable()) { in EmitStubAsObjectMethodImpl() 566 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitKernelStubOnRequestMethodImpl() 572 AutoPtr<ASTMethod> getVerMethod = interface_->GetVersionMethod(); in EmitKernelStubOnRequestMethodImpl() [all …]
|
D | c_client_proxy_code_emitter.cpp | 35 if (!interface_->IsSerializable()) { in EmitCode() 171 if (!interface_->IsSerializable()) { in GetHeaderOtherLibInclusions() 177 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in GetHeaderOtherLibInclusions() 255 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitProxyMethodImpls() 260 EmitProxyMethodImpl(interface_->GetVersionMethod(), sb); in EmitProxyMethodImpls() 474 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitProxyConstruction() 479 AutoPtr<ASTMethod> getVerMethod = interface_->GetVersionMethod(); in EmitProxyConstruction() 505 } else if (interface_->IsSerializable()) { in EmitProxyExternalMethodImpl() 509 if (interface_->IsCallback()) { in EmitProxyExternalMethodImpl() 688 interface_->EmitDescMacroName().c_str()); in EmitProxySetInterfaceDesc() [all …]
|
D | cpp_service_driver_code_emitter.cpp | 34 if (!interface_->IsSerializable()) { in EmitCode() 89 std::string nspace = EmitPackageToNameSpace(interface_->GetNamespace()->ToString()); in EmitDriverUsings() 157 …"auto serviceImpl = %s::Get(true);\n", EmitDefinitionByInterface(interface_, interfaceName_).c_str… in EmitDriverBind() 167 "%s::GetDescriptor());\n", EmitDefinitionByInterface(interface_, interfaceName_).c_str()); in EmitDriverBind()
|
D | java_client_interface_code_emitter.cpp | 111 sb.AppendFormat("public interface %s extends IRemoteBroker {\n", interface_->GetName().c_str()); in EmitInterfaceDefinition() 118 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitInterfaceMethods()
|
D | java_code_emitter.cpp | 28 auto methods = interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()); in EmitInterfaceMethodCommands()
|
D | c_service_driver_code_emitter.cpp | 43 if (!interface_->IsSerializable()) { in EmitCode() 304 interface_->EmitDescMacroName().c_str()); in EmitDriverBind() 327 sb.AppendFormat("%s, serviceImpl);\n", interface_->EmitDescMacroName().c_str()); in EmitDriverBind() 376 interface_->EmitDescMacroName().c_str(), hostName_.c_str()); in EmitDriverRelease()
|
D | code_emitter.h | 126 AutoPtr<ASTInterfaceType> interface_ = nullptr; variable
|
D | cpp_code_emitter.cpp | 164 …std::vector<std::string> cppNamespaceVec = EmitCppNameSpaceVec(interface_->GetNamespace()->ToStrin… in EmitBeginNamespace() 172 …std::vector<std::string> cppNamespaceVec = EmitCppNameSpaceVec(interface_->GetNamespace()->ToStrin… in EmitEndNamespace()
|
D | java_client_proxy_code_emitter.cpp | 149 …for (const auto &method : interface_->GetMethodsBySystem(Options::GetInstance().GetSystemLevel()))… in EmitProxyMethodImpls()
|