Home
last modified time | relevance | path

Searched refs:paramStr (Results 1 – 12 of 12) sorted by relevance

/drivers/hdf_core/framework/tools/hdi-gen/codegen/
Djava_code_emitter.cpp47 std::string paramStr = paramSb.ToString(); in SpecificationParam() local
52 for (; curIndex < paramStr.size(); curIndex++) { in SpecificationParam()
54 StringHelper::Replace(paramStr, preIndex, replaceLen, ","); in SpecificationParam()
55 paramStr.insert(preIndex + 1, insertStr); in SpecificationParam()
57 if (paramStr[curIndex] == ',') { in SpecificationParam()
62 return paramStr; in SpecificationParam()
Dcpp_service_impl_code_emitter.cpp120 StringBuilder paramStr; in EmitServiceImplMethodDecl() local
121 paramStr.Append(prefix).AppendFormat("int32_t %s(", method->GetName().c_str()); in EmitServiceImplMethodDecl()
124 EmitInterfaceMethodParameter(param, paramStr, ""); in EmitServiceImplMethodDecl()
126 paramStr.Append(", "); in EmitServiceImplMethodDecl()
130 paramStr.Append(") override;"); in EmitServiceImplMethodDecl()
132 sb.Append(SpecificationParam(paramStr, prefix + TAB)); in EmitServiceImplMethodDecl()
194 StringBuilder paramStr; in EmitServiceImplMethodImpl() local
195paramStr.Append(prefix).AppendFormat("int32_t %sService::%s(", baseName_.c_str(), method->GetName(… in EmitServiceImplMethodImpl()
198 EmitInterfaceMethodParameter(param, paramStr, ""); in EmitServiceImplMethodImpl()
200 paramStr.Append(", "); in EmitServiceImplMethodImpl()
[all …]
Djava_client_interface_code_emitter.cpp130 StringBuilder paramStr; in EmitInterfaceMethod() local
131 paramStr.Append(prefix).AppendFormat("int %s(", MethodName(method->GetName()).c_str()); in EmitInterfaceMethod()
134 EmitInterfaceMethodParameter(param, paramStr, ""); in EmitInterfaceMethod()
136 paramStr.Append(", "); in EmitInterfaceMethod()
140 paramStr.Append(") throws RemoteException;"); in EmitInterfaceMethod()
141 sb.Append(SpecificationParam(paramStr, prefix + TAB)); in EmitInterfaceMethod()
Dcpp_client_proxy_code_emitter.cpp146 StringBuilder paramStr; in EmitProxyMethodDecl() local
147 paramStr.Append(prefix).AppendFormat("int32_t %s(", method->GetName().c_str()); in EmitProxyMethodDecl()
151 EmitProxyMethodParameter(param, paramStr, ""); in EmitProxyMethodDecl()
153 paramStr.Append(", "); in EmitProxyMethodDecl()
157 paramStr.Append(") override;"); in EmitProxyMethodDecl()
159 sb.Append(SpecificationParam(paramStr, prefix + TAB)); in EmitProxyMethodDecl()
171 StringBuilder paramStr; in EmitProxyStaticMethodDecl() local
172 paramStr.Append(prefix).AppendFormat("static int32_t %s_(", method->GetName().c_str()); in EmitProxyStaticMethodDecl()
176 EmitProxyMethodParameter(param, paramStr, ""); in EmitProxyStaticMethodDecl()
177 paramStr.Append(", "); in EmitProxyStaticMethodDecl()
[all …]
Dc_code_emitter.cpp159 std::string paramStr = paramSb.ToString(); in SpecificationParam() local
164 for (; curIndex < paramStr.size(); curIndex++) { in SpecificationParam()
166 StringHelper::Replace(paramStr, preIndex, replaceLen, ","); in SpecificationParam()
167 paramStr.insert(preIndex + 1, insertStr); in SpecificationParam()
169 if (paramStr[curIndex] == ',') { in SpecificationParam()
174 return paramStr; in SpecificationParam()
Dc_interface_code_emitter.cpp204 StringBuilder paramStr; in EmitInterfaceMethod() local
205 paramStr.Append(prefix).AppendFormat( in EmitInterfaceMethod()
209 EmitInterfaceMethodParameter(param, paramStr, ""); in EmitInterfaceMethod()
211 paramStr.Append(", "); in EmitInterfaceMethod()
215 paramStr.Append(");"); in EmitInterfaceMethod()
216 sb.Append(SpecificationParam(paramStr, prefix + TAB)); in EmitInterfaceMethod()
Djava_client_proxy_code_emitter.cpp163 StringBuilder paramStr; in EmitProxyMethodImpl() local
164paramStr.Append(prefix).AppendFormat("public int %s(", MethodName(method->GetName()).c_str()); in EmitProxyMethodImpl()
167 EmitInterfaceMethodParameter(param, paramStr, ""); in EmitProxyMethodImpl()
169 paramStr.Append(", "); in EmitProxyMethodImpl()
172 paramStr.Append(") throws RemoteException"); in EmitProxyMethodImpl()
174 sb.Append(SpecificationParam(paramStr, prefix + TAB)); in EmitProxyMethodImpl()
Dcpp_interface_code_emitter.cpp181 StringBuilder paramStr; in EmitInterfaceMethodDecl() local
182 paramStr.Append(prefix).AppendFormat("virtual int32_t %s(", method->GetName().c_str()); in EmitInterfaceMethodDecl()
185 EmitInterfaceMethodParameter(param, paramStr, ""); in EmitInterfaceMethodDecl()
187 paramStr.Append(", "); in EmitInterfaceMethodDecl()
191 paramStr.Append(") = 0;"); in EmitInterfaceMethodDecl()
192 sb.Append(SpecificationParam(paramStr, prefix + TAB)); in EmitInterfaceMethodDecl()
Dcpp_code_emitter.cpp255 std::string paramStr = paramSb.ToString(); in SpecificationParam() local
260 for (; curIndex < paramStr.size(); curIndex++) { in SpecificationParam()
262 StringHelper::Replace(paramStr, preIndex, replaceLen, ","); in SpecificationParam()
263 paramStr.insert(preIndex + 1, insertStr); in SpecificationParam()
265 if (paramStr[curIndex] == ',') { in SpecificationParam()
270 return paramStr; in SpecificationParam()
Dc_service_impl_code_emitter.cpp302 StringBuilder paramStr; in EmitServiceImplMethodImpl() local
303paramStr.Append(prefix).AppendFormat("static int32_t %s%s(struct %s *self, ", baseName_.c_str(), in EmitServiceImplMethodImpl()
307 EmitInterfaceMethodParameter(param, paramStr, ""); in EmitServiceImplMethodImpl()
309 paramStr.Append(", "); in EmitServiceImplMethodImpl()
313 paramStr.Append(")"); in EmitServiceImplMethodImpl()
314 sb.Append(SpecificationParam(paramStr, prefix + TAB)); in EmitServiceImplMethodImpl()
Dc_client_proxy_code_emitter.cpp274 StringBuilder paramStr; in EmitProxyMethodImpl() local
275paramStr.AppendFormat("static int32_t %sProxy%s(", baseName_.c_str(), method->GetName().c_str()); in EmitProxyMethodImpl()
276 paramStr.AppendFormat("struct %s *self, ", interfaceName_.c_str()); in EmitProxyMethodImpl()
279 EmitInterfaceMethodParameter(param, paramStr, ""); in EmitProxyMethodImpl()
281 paramStr.Append(", "); in EmitProxyMethodImpl()
285 paramStr.Append(")"); in EmitProxyMethodImpl()
286 sb.Append(SpecificationParam(paramStr, TAB)); in EmitProxyMethodImpl()
/drivers/hdf_core/framework/tools/hdi-gen/ast/
Dast_parameter.cpp58 StringBuilder paramStr; in EmitCParameter() local
60paramStr.AppendFormat("%s %s", type_->EmitCType(TypeMode::PARAM_IN).c_str(), name_.c_str()); in EmitCParameter()
62paramStr.AppendFormat("%s %s", type_->EmitCType(TypeMode::PARAM_OUT).c_str(), name_.c_str()); in EmitCParameter()
65 paramStr.AppendFormat(", uint32_t %sLen", name_.c_str()); in EmitCParameter()
67 return paramStr.ToString(); in EmitCParameter()
71 StringBuilder paramStr; in EmitCParameter() local
73paramStr.AppendFormat("%s %s", type_->EmitCType(TypeMode::PARAM_IN).c_str(), name_.c_str()); in EmitCParameter()
75paramStr.AppendFormat("%s %s", type_->EmitCType(TypeMode::PARAM_OUT).c_str(), name_.c_str()); in EmitCParameter()
77 paramStr.AppendFormat( in EmitCParameter()
79 return paramStr.ToString(); in EmitCParameter()