/foundation/ability/idl_tool/idl_tool_2/codegen/HDI/c/ |
H A D | c_service_driver_code_emitter.cpp | 67 File::AdapterPath(StringHelper::Format("%s/%s.c", directory_.c_str(), FileName(baseName_ + "Driver").c_str()));
in EmitLowDriverSourceFile() 75 EmitLogTagMacro(sb, FileName(baseName_ + "Driver"));
in EmitLowDriverSourceFile() 105 sb.AppendFormat("static int Hdf%sDriverBind(struct HdfDeviceObject *deviceObject)\n", baseName_.c_str());
in EmitLowDriverBind() 120 sb.AppendFormat("static void Hdf%sDriverRelease(struct HdfDeviceObject *deviceObject)\n", baseName_.c_str());
in EmitLowDriverRelease() 139 File::AdapterPath(StringHelper::Format("%s/%s.c", directory_.c_str(), FileName(baseName_ + "Driver").c_str()));
in EmitDriverSourceFile() 146 EmitLogTagMacro(sb, FileName(baseName_ + "Driver"));
in EmitDriverSourceFile() 208 sb.AppendFormat("struct Hdf%sHost {\n", baseName_.c_str());
in EmitDriverServiceDecl() 222 "static int32_t %sDriverDispatch(struct HdfDeviceIoClient *client, int cmdId,\n", baseName_.c_str());
in EmitKernelDriverDispatch() 225 sb.Append(TAB).AppendFormat("struct Hdf%sHost *%s = CONTAINER_OF(\n", baseName_.c_str(), hostName_.c_str());
in EmitKernelDriverDispatch() 227 "client->device->service, struct Hdf%sHost, ioService);\n", baseName_ in EmitKernelDriverDispatch() [all...] |
H A D | c_service_impl_code_emitter.cpp | 135 sb.AppendFormat("struct %s *%sServiceGet(void)\n", implName_.c_str(), baseName_.c_str());
in EmitLowServiceImplGetMethod() 146 baseName_.c_str(), method->GetName().c_str());
in EmitLowServiceImplGetMethod() 151 baseName_.c_str(), method->GetName().c_str());
in EmitLowServiceImplGetMethod() 160 File::AdapterPath(StringHelper::Format("%s/%s.h", directory_.c_str(), FileName(baseName_ + "Service").c_str()));
in EmitServiceImplHeaderFile() 213 sb.AppendFormat("struct %s *%sServiceGet(void);\n\n", instTypeName.c_str(), baseName_.c_str());
in EmitServiceImplExternalMethodsDecl() 214 sb.AppendFormat("void %sServiceRelease(struct %s *instance);\n", baseName_.c_str(), instTypeName.c_str());
in EmitServiceImplExternalMethodsDecl() 279 sb.AppendFormat("struct %sService {\n", baseName_.c_str());
in EmitKernelServiceImplDef() 280 sb.Append(TAB).AppendFormat("struct %sStub stub;\n\n", baseName_.c_str());
in EmitKernelServiceImplDef() 287 sb.AppendFormat("struct %sService {\n", baseName_.c_str());
in EmitServiceImplDef() 306 sb.Append(prefix).AppendFormat("static int32_t %s%s(struct %s *self)\n", baseName_ in EmitServiceImplMethodImpl() [all...] |
H A D | c_client_proxy_code_emitter.cpp | 196 sb.AppendFormat("struct %sProxy {\n", baseName_.c_str());
in EmitProxyDefinition() 210 baseName_.c_str(), interfaceName_.c_str());
in EmitProxyCallMethodImpl() 237 baseName_.c_str(), interfaceName_.c_str());
in EmitProxyKernelCallMethodImpl() 243 baseName_.c_str(), baseName_.c_str(), remoteName.c_str());
in EmitProxyKernelCallMethodImpl() 276 sb.AppendFormat("static int32_t %sProxy%s(struct %s *self)\n", baseName_.c_str(), method->GetName().c_str(),
in EmitProxyMethodImpl() 280 paramStr.AppendFormat("static int32_t %sProxy%s(", baseName_.c_str(), method->GetName().c_str());
in EmitProxyMethodImpl() 463 sb.AppendFormat("static struct HdfRemoteService *%sProxyAsObject(struct %s *self)\n", baseName_.c_str(),
in EmitProxyAsObjectMethodImpl() 470 "struct %sProxy *proxy = CONTAINER_OF(self, struct %sProxy, impl);\n", baseName_.c_str(), baseName_ in EmitProxyAsObjectMethodImpl() [all...] |
H A D | c_service_stub_code_emitter.cpp | 101 sb.AppendFormat("struct %sStub {\n", baseName_.c_str());
in EmitCbServiceStubDef() 116 sb.AppendFormat("bool %sStubConstruct(struct %sStub *stub);\n", baseName_.c_str(), baseName_.c_str());
in EmitCbServiceStubMethodsDcl() 599 sb.Append(prefix).AppendFormat("static struct HdfRemoteService *%sStubAsObject(struct %s *%s)\n", baseName_.c_str(),
in EmitStubAsObjectMethodImpl() 608 "struct %sStub *stub = CONTAINER_OF(%s, struct %sStub, interface);\n", baseName_.c_str(),
in EmitStubAsObjectMethodImpl() 609 objName.c_str(), baseName_.c_str());
in EmitStubAsObjectMethodImpl() 622 std::string funcName = StringHelper::Format("%sOnRemoteRequest", baseName_.c_str());
in EmitKernelStubOnRequestMethodImpl() 650 std::string stubTypeName = StringHelper::Format("%sStub", baseName_.c_str());
in EmitKernelStubConstruct() 652 std::string funcName = StringHelper::Format("%sOnRemoteRequest", baseName_.c_str());
in EmitKernelStubConstruct() 670 std::string funcName = StringHelper::Format("%sOnRemoteRequest", baseName_ in EmitStubOnRequestMethodImpl() [all...] |
H A D | c_custom_types_code_emitter.cpp | 60 File::AdapterPath(StringHelper::Format("%s/%s.h", directory_.c_str(), FileName(baseName_).c_str()));
in EmitPassthroughCustomTypesHeaderFile() 65 EmitHeadMacro(sb, baseName_);
in EmitPassthroughCustomTypesHeaderFile() 74 EmitTailMacro(sb, baseName_);
in EmitPassthroughCustomTypesHeaderFile() 97 File::AdapterPath(StringHelper::Format("%s/%s.h", directory_.c_str(), FileName(baseName_).c_str()));
in EmitCustomTypesHeaderFile() 102 EmitHeadMacro(sb, baseName_);
in EmitCustomTypesHeaderFile() 118 EmitTailMacro(sb, baseName_);
in EmitCustomTypesHeaderFile() 182 File::AdapterPath(StringHelper::Format("%s/%s.c", directory_.c_str(), FileName(baseName_).c_str()));
in EmitCustomTypesSourceFile() 204 headerFiles.emplace(HeaderFileType::OWN_HEADER_FILE, EmitVersionHeaderName(baseName_));
in EmitSoucreInclusions()
|
/foundation/ability/idl_tool/idl_tool_2/codegen/HDI/cpp/ |
H A D | cpp_service_driver_code_emitter.cpp | 50 StringHelper::Format("%s/%s.cpp", directory_.c_str(), FileName(baseName_ + "Driver").c_str()));
in EmitDriverSourceFile() 57 EmitLogTagMacro(sb, FileName(baseName_ + "Driver"));
in EmitDriverSourceFile() 102 sb.AppendFormat("struct Hdf%sHost {\n", baseName_.c_str());
in EmitDriverServiceDecl() 110 std::string objName = StringHelper::Format("hdf%sHost", baseName_.c_str());
in EmitDriverDispatch() 111 sb.AppendFormat("static int32_t %sDriverDispatch(", baseName_.c_str());
in EmitDriverDispatch() 116 sb.AppendFormat("client->device->service, struct Hdf%sHost, ioService);\n\n", baseName_.c_str());
in EmitDriverDispatch() 138 sb.AppendFormat("static int Hdf%sDriverInit(struct HdfDeviceObject *deviceObject)\n", baseName_.c_str());
in EmitDriverInit() 147 std::string objName = StringHelper::Format("hdf%sHost", baseName_.c_str());
in EmitDriverBind() 148 sb.AppendFormat("static int Hdf%sDriverBind(struct HdfDeviceObject *deviceObject)\n", baseName_.c_str());
in EmitDriverBind() 152 sb.Append(TAB).AppendFormat("auto *%s = new (std::nothrow) Hdf%sHost;\n", objName.c_str(), baseName_ in EmitDriverBind() [all...] |
H A D | cpp_custom_types_code_emitter.cpp | 57 File::AdapterPath(StringHelper::Format("%s/%s.h", directory_.c_str(), FileName(baseName_).c_str()));
in EmitPassthroughCustomTypesHeaderFile() 59 std::string marcoName = StringHelper::Format("%s.%s", ast_->GetPackageName().c_str(), baseName_.c_str());
in EmitPassthroughCustomTypesHeaderFile() 98 File::AdapterPath(StringHelper::Format("%s/%s.h", directory_.c_str(), FileName(baseName_).c_str()));
in EmitCustomTypesHeaderFile() 100 std::string marcoName = StringHelper::Format("%s.%s", ast_->GetPackageName().c_str(), baseName_.c_str());
in EmitCustomTypesHeaderFile() 193 File::AdapterPath(StringHelper::Format("%s/%s.cpp", directory_.c_str(), FileName(baseName_).c_str()));
in EmitCustomTypesSourceFile() 220 headerFiles.emplace(HeaderFileType::OWN_HEADER_FILE, EmitVersionHeaderName(baseName_));
in EmitSourceFileInclusions()
|
H A D | cpp_service_impl_code_emitter.cpp | 87 sb.AppendFormat("class %sService : public %s {\n", baseName_.c_str(),
in EmitServiceImplDecl() 199 sb.Append(prefix).AppendFormat("int32_t %sService::%s()\n", baseName_.c_str(), method->GetName().c_str());
in EmitServiceImplMethodImpl() 202 paramStr.Append(prefix).AppendFormat("int32_t %sService::%s(", baseName_.c_str(), method->GetName().c_str());
in EmitServiceImplMethodImpl() 226 "extern \"C\" %s *%sImplGetInstance(void)\n", interfaceName_.c_str(), baseName_.c_str());
in EmitServiceImplGetMethodImpl()
|
H A D | cpp_service_stub_code_emitter.cpp | 354 baseName_.c_str(), getVerMethod->GetName().c_str(), getVerMethod->GetMethodIdentifier().c_str());
in EmitStubOnRequestMethodImpl() 361 baseName_.c_str(), method->GetName().c_str(), method->GetMethodIdentifier().c_str());
in EmitStubOnRequestMethodImpl()
|
H A D | cpp_client_proxy_code_emitter.cpp | 61 File::AdapterPath(StringHelper::Format("%s/%s.h", directory_.c_str(), FileName(baseName_ + "Proxy").c_str()));
in EmitProxyHeaderFile()
|
/foundation/ability/idl_tool/idl_tool_2/codegen/HDI/ |
H A D | hdi_code_emitter.cpp | 91 baseName_ = StringHelper::StartWith(interfaceName_, "I") ? interfaceName_.substr(1) : interfaceName_;
in Reset() 92 proxyName_ = baseName_ + "Proxy";
in Reset() 95 stubName_ = baseName_ + "Stub";
in Reset() 98 implName_ = baseName_ + "Service";
in Reset() 101 baseName_ = ast_->GetName();
in Reset() 103 baseName_ = ast_->GetName();
in Reset() 109 std::string prefix = StringHelper::Format("%c%s", tolower(baseName_[0]), baseName_.substr(1).c_str());
in Reset() 130 baseName_ = "";
in CleanData()
|
/foundation/ability/idl_tool/idl_tool_2/codegen/SA/ |
H A D | sa_code_emitter.cpp | 82 baseName_ = StringHelper::StartWith(interfaceName_, "I") ? interfaceName_.substr(1) : interfaceName_;
in Reset() 83 proxyName_ = baseName_ + "Proxy";
in Reset() 86 stubName_ = baseName_ + "Stub";
in Reset() 114 baseName_ = "";
in CleanData()
|
/foundation/ability/idl_tool/idl_tool_2/codegen/ |
H A D | code_emitter.h | 143 std::string baseName_;
member in OHOS::Idl::CodeEmitter
|
H A D | code_emitter.cpp | 105 ConstantName(baseName_).c_str(), ConstantName(method->GetName()).c_str(),
in EmitMethodCmdID()
|
/foundation/ability/idl_tool/idl_tool_2/codegen/SA/ts/ |
H A D | sa_ts_client_proxy_code_emitter.cpp | 45 File::AdapterPath(StringHelper::Format("%s/%s.ts", directory_.c_str(), FileName(baseName_ + "Proxy").c_str()));
in EmitInterfaceProxyFile()
|
/foundation/ability/idl_tool/idl_tool_2/codegen/SA/cpp/ |
H A D | sa_cpp_client_proxy_code_emitter.cpp | 32 File::AdapterPath(StringHelper::Format("%s/%s.h", directory_.c_str(), FileName(baseName_ + "Proxy").c_str()));
in EmitInterfaceProxyHeaderFile()
|