Home
last modified time | relevance | path

Searched refs:Format (Results 1 – 25 of 50) sorted by relevance

12

/drivers/hdf_core/framework/tools/hdi-gen/parser/
Dparser.cpp129 …LogError(token, StringHelper::Format("expected 'package' before '%s' token", token.value.c_str())); in ParsePackage()
136 …LogError(token, StringHelper::Format("expected name of package before '%s' token", token.value.c_s… in ParsePackage()
145 … LogError(token, StringHelper::Format("expected ';' before '%s' token", token.value.c_str())); in ParsePackage()
154 LogError(StringHelper::Format( in ParsePackage()
160 … LogError(StringHelper::Format("parse package '%s' infomation failed.", packageName.c_str())); in ParsePackage()
194 …LogError(token, StringHelper::Format("expected identifier before '%s' token", token.value.c_str())… in ParseImports()
209 LogError(token, StringHelper::Format("expected ';' before '%s'.", token.value.c_str())); in ParseImports()
225 LogError(token, StringHelper::Format("import name is empty")); in ParseImportInfo()
230 LogError(token, StringHelper::Format("import name is illegal")); in ParseImportInfo()
237 …LogError(token, StringHelper::Format("can not find idl file from import name '%s'", importName.c_s… in ParseImportInfo()
[all …]
/drivers/hdf_core/framework/tools/hdi-gen/ast/
Dast_map_type.cpp45 …return StringHelper::Format("Map<%s, %s>", keyType_->ToString().c_str(), valueType_->ToString().c_… in ToString()
63 return StringHelper::Format( in EmitCppType()
66 return StringHelper::Format( in EmitCppType()
69 return StringHelper::Format( in EmitCppType()
72 return StringHelper::Format( in EmitCppType()
81 return StringHelper::Format( in EmitJavaType()
92 std::string elementName = StringHelper::Format("it%d", innerLevel++); in EmitCppWriteVar()
95 std::string keyName = StringHelper::Format("(%s.first)", elementName.c_str()); in EmitCppWriteVar()
96 std::string valueName = StringHelper::Format("(%s.second)", elementName.c_str()); in EmitCppWriteVar()
114 std::string keyName = StringHelper::Format("key%d", innerLevel); in EmitCppReadVar()
[all …]
Dast_smq_type.cpp33 return StringHelper::Format("SharedMemQueue<%s>", innerType_->ToString().c_str()); in ToString()
45 …return StringHelper::Format("std::shared_ptr<SharedMemQueue<%s>>", innerType_->EmitCppType().c_str… in EmitCppType()
47 return StringHelper::Format( in EmitCppType()
50 …return StringHelper::Format("std::shared_ptr<SharedMemQueue<%s>>&", innerType_->EmitCppType().c_st… in EmitCppType()
52 …return StringHelper::Format("std::shared_ptr<SharedMemQueue<%s>>", innerType_->EmitCppType().c_str… in EmitCppType()
72 std::string metaVarName = StringHelper::Format("%sMeta_", name.c_str()); in EmitCppReadVar()
108 std::string metaVarName = StringHelper::Format("%sMeta_", memberName.c_str()); in EmitCppUnMarshalling()
148 return StringHelper::Format("sptr<Ashmem>"); in EmitCppType()
150 return StringHelper::Format("const sptr<Ashmem>&"); in EmitCppType()
152 return StringHelper::Format("sptr<Ashmem>&"); in EmitCppType()
[all …]
Dast_interface_type.cpp101 return StringHelper::Format("%s_INTERFACE_DESC", StringHelper::StrToUpper(name_).c_str()); in EmitDescMacroName()
108 return StringHelper::Format("struct %s", name_.c_str()); in EmitCType()
110 return StringHelper::Format("struct %s*", name_.c_str()); in EmitCType()
112 return StringHelper::Format("struct %s**", name_.c_str()); in EmitCType()
114 return StringHelper::Format("struct %s*", name_.c_str()); in EmitCType()
128 …return StringHelper::Format("%s<%s>", pointerName.c_str(), GetNameWithNamespace(namespace_, name_)… in EmitCppType()
130 return StringHelper::Format( in EmitCppType()
133 return StringHelper::Format( in EmitCppType()
136 …return StringHelper::Format("%s<%s>", pointerName.c_str(), GetNameWithNamespace(namespace_, name_)… in EmitCppType()
246 std::string methodName = StringHelper::Format("Read%s", name_.c_str()); in RegisterReadMethod()
[all …]
Dast_array_type.cpp33 return StringHelper::Format("%s[]", elementType_->ToString().c_str()); in ToString()
45 return StringHelper::Format("%s*", elementType_->EmitCType(TypeMode::NO_MODE).c_str()); in EmitCType()
48 … return StringHelper::Format("%s*", elementType_->EmitCType(TypeMode::NO_MODE).c_str()); in EmitCType()
50 … return StringHelper::Format("const %s*", elementType_->EmitCType(TypeMode::NO_MODE).c_str()); in EmitCType()
53 return StringHelper::Format("%s*", elementType_->EmitCType(TypeMode::NO_MODE).c_str()); in EmitCType()
55 return StringHelper::Format("%s*", elementType_->EmitCType(TypeMode::NO_MODE).c_str()); in EmitCType()
65 …return StringHelper::Format("std::vector<%s>", elementType_->EmitCppType(TypeMode::NO_MODE).c_str(… in EmitCppType()
67 …return StringHelper::Format("const std::vector<%s>&", elementType_->EmitCppType(TypeMode::NO_MODE)… in EmitCppType()
69 …return StringHelper::Format("std::vector<%s>&", elementType_->EmitCppType(TypeMode::NO_MODE).c_str… in EmitCppType()
71 …return StringHelper::Format("std::vector<%s>", elementType_->EmitCppType(TypeMode::NO_MODE).c_str(… in EmitCppType()
[all …]
Dast_struct_type.cpp57 return StringHelper::Format("struct %s", name_.c_str()); in EmitCType()
59 return StringHelper::Format("const struct %s*", name_.c_str()); in EmitCType()
61 return StringHelper::Format("struct %s*", name_.c_str()); in EmitCType()
63 return StringHelper::Format("struct %s*", name_.c_str()); in EmitCType()
73 return StringHelper::Format("%s", name_.c_str()); in EmitCppType()
75 return StringHelper::Format("const %s&", name_.c_str()); in EmitCppType()
77 return StringHelper::Format("%s&", name_.c_str()); in EmitCppType()
79 return StringHelper::Format("%s", name_.c_str()); in EmitCppType()
Dast_sequenceable_type.cpp61 return StringHelper::Format("sptr<%s>", name_.c_str()); in EmitCppType()
63 return StringHelper::Format("const sptr<%s>&", name_.c_str()); in EmitCppType()
65 return StringHelper::Format("sptr<%s>&", name_.c_str()); in EmitCppType()
67 return StringHelper::Format("sptr<%s>", name_.c_str()); in EmitCppType()
Dast_union_type.cpp54 return StringHelper::Format("union %s", name_.c_str()); in EmitCType()
56 return StringHelper::Format("const union %s*", name_.c_str()); in EmitCType()
58 return StringHelper::Format("union %s*", name_.c_str()); in EmitCType()
60 return StringHelper::Format("union %s*", name_.c_str()); in EmitCType()
70 return StringHelper::Format("%s", name_.c_str()); in EmitCppType()
72 return StringHelper::Format("const %s&", name_.c_str()); in EmitCppType()
74 return StringHelper::Format("%s&", name_.c_str()); in EmitCppType()
76 return StringHelper::Format("%s", name_.c_str()); in EmitCppType()
284 std::string varName = isClient ? StringHelper::Format("*%s", name.c_str()) : name; in EmitMemoryRecycle()
Dast_enum_type.cpp67 return StringHelper::Format("enum %s", name_.c_str()); in EmitCType()
69 return StringHelper::Format("enum %s", name_.c_str()); in EmitCType()
71 return StringHelper::Format("enum %s*", name_.c_str()); in EmitCType()
73 return StringHelper::Format("enum %s", name_.c_str()); in EmitCType()
83 return StringHelper::Format("%s", name_.c_str()); in EmitCppType()
85 return StringHelper::Format("%s", name_.c_str()); in EmitCppType()
87 return StringHelper::Format("%s&", name_.c_str()); in EmitCppType()
89 return StringHelper::Format("%s", name_.c_str()); in EmitCppType()
Dast_parameter.cpp82 return StringHelper::Format("unknow type %s", name_.c_str()); in EmitCParameter()
90 …return StringHelper::Format("%s %s", type_->EmitCppType(TypeMode::PARAM_IN).c_str(), name_.c_str()… in EmitCppParameter()
92 …return StringHelper::Format("%s %s", type_->EmitCppType(TypeMode::PARAM_OUT).c_str(), name_.c_str(… in EmitCppParameter()
122 …return StringHelper::Format("%s %s", type_->EmitJavaType(TypeMode::NO_MODE, false).c_str(), name_.… in EmitJavaParameter()
125 return StringHelper::Format("unknow type %s", name_.c_str()); in EmitJavaParameter()
Dast_fd_type.cpp186 std::string methodName = StringHelper::Format("Write%s", ToString().c_str()); in RegisterWriteMethod()
202 std::string methodName = StringHelper::Format("Read%s", ToString().c_str()); in RegisterReadMethod()
218 …std::string methodName = StringHelper::Format("%sWrite%s", methodPrefix.c_str(), ToString().c_str(… in EmitCWriteMethods()
240 …std::string methodName = StringHelper::Format("%sRead%s", methodPrefix.c_str(), ToString().c_str()… in EmitCReadMethods()
281 …std::string methodName = StringHelper::Format("%sWrite%s", methodPrefix.c_str(), ToString().c_str(… in EmitCppWriteMethods()
309 …std::string methodName = StringHelper::Format("%sRead%s", methodPrefix.c_str(), ToString().c_str()… in EmitCppReadMethods()
Dast_attribute.cpp70 return StringHelper::Format("[%s]", (value_ == ParamAttr::PARAM_IN) ? "in" : "out"); in ToString()
/drivers/hdf_core/framework/tools/hdi-gen/codegen/
Dcode_emitter.h53 return StringHelper::Format("#include \"%s.h\"", fileName_.c_str()); in ToString()
57 return StringHelper::Format("#include <%s.h>", fileName_.c_str()); in ToString()
59 return StringHelper::Format("#include <%s>", fileName_.c_str()); in ToString()
61 return StringHelper::Format("//"); in ToString()
Dcode_emitter.cpp57 majorVerName_ = StringHelper::Format("%s_MAJOR_VERSION", ConstantName(interfaceName_).c_str()); in Reset()
58 minorVerName_ = StringHelper::Format("%s_MINOR_VERSION", ConstantName(interfaceName_).c_str()); in Reset()
60 …std::string prefix = StringHelper::Format("%c%s", tolower(baseName_[0]), baseName_.substr(1).c_str… in Reset()
121 return File::AdapterPath(StringHelper::Format("%s/", outPath.c_str(), subPath.c_str())); in GetFileParentPath()
123 return File::AdapterPath(StringHelper::Format("%s/%s/", outPath.c_str(), subPath.c_str())); in GetFileParentPath()
143 …return StringHelper::Format("CMD_%s_%s", ConstantName(baseName_).c_str(), ConstantName(method->Get… in EmitMethodCmdID()
160 …return StringHelper::Format("v%u_%u/%s", ast_->GetMajorVer(), ast_->GetMinorVer(), FileName(name).… in EmitVersionHeaderName()
Dcpp_custom_types_code_emitter.cpp49 …File::AdapterPath(StringHelper::Format("%s/%s.h", directory_.c_str(), FileName(baseName_).c_str())… in EmitPassthroughCustomTypesHeaderFile()
51 …std::string marcoName = StringHelper::Format("%s.%s", ast_->GetPackageName().c_str(), baseName_.c_… in EmitPassthroughCustomTypesHeaderFile()
90 …File::AdapterPath(StringHelper::Format("%s/%s.h", directory_.c_str(), FileName(baseName_).c_str())… in EmitCustomTypesHeaderFile()
92 …std::string marcoName = StringHelper::Format("%s.%s", ast_->GetPackageName().c_str(), baseName_.c_… in EmitCustomTypesHeaderFile()
217 …File::AdapterPath(StringHelper::Format("%s/%s.cpp", directory_.c_str(), FileName(baseName_).c_str(… in EmitCustomTypesSourceFile()
296 std::string name = StringHelper::Format("%s.%s", objName.c_str(), memberName.c_str()); in EmitCustomTypeMarshallingImpl()
318 std::string objPtrName = StringHelper::Format("%sPtr", objName.c_str()); in EmitCustomTypeUnmarshallingImpl()
332 std::string name = StringHelper::Format("%s.%s", objName.c_str(), memberName.c_str()); in EmitCustomTypeUnmarshallingImpl()
338 std::string cpName = StringHelper::Format("%sCp", memberName.c_str()); in EmitCustomTypeUnmarshallingImpl()
348 std::string cpName = StringHelper::Format("%sCp", memberName.c_str()); in EmitCustomTypeUnmarshallingImpl()
Djava_code_emitter.cpp40 return StringHelper::Format("%c%s", tolower(name[0]), name.substr(1).c_str()); in MethodName()
51 std::string insertStr = StringHelper::Format("\n%s", prefix.c_str()); in SpecificationParam()
Dc_custom_types_code_emitter.cpp53 …File::AdapterPath(StringHelper::Format("%s/%s.h", directory_.c_str(), FileName(baseName_).c_str())… in EmitPassthroughCustomTypesHeaderFile()
90 …File::AdapterPath(StringHelper::Format("%s/%s.h", directory_.c_str(), FileName(baseName_).c_str())… in EmitCustomTypesHeaderFile()
214 …File::AdapterPath(StringHelper::Format("%s/%s.c", directory_.c_str(), FileName(baseName_).c_str())… in EmitCustomTypesSourceFile()
296 std::string name = StringHelper::Format("%s->%s", objName.c_str(), memberName.c_str()); in EmitCustomTypeMarshallingImpl()
384 std::string objPtrName = StringHelper::Format("%sPtr", name.c_str()); in EmitPodTypeUnmarshalling()
386 std::string lenName = StringHelper::Format("%sLen", name.c_str()); in EmitPodTypeUnmarshalling()
416 std::string varName = StringHelper::Format("%s->%s", name.c_str(), memberName.c_str()); in EmitMemberUnmarshalling()
423 std::string paramName = StringHelper::Format("&%s", varName.c_str()); in EmitMemberUnmarshalling()
429 std::string tmpName = StringHelper::Format("%sCp", memberName.c_str()); in EmitMemberUnmarshalling()
454 std::string tmpName = StringHelper::Format("%sCp", memberName.c_str()); in EmitStringMemberUnmarshalling()
[all …]
Dcpp_service_driver_code_emitter.cpp43 … StringHelper::Format("%s/%s.cpp", directory_.c_str(), FileName(baseName_ + "Driver").c_str())); in EmitDriverSourceFile()
103 std::string objName = StringHelper::Format("hdf%sHost", baseName_.c_str()); in EmitDriverDispatch()
140 std::string objName = StringHelper::Format("hdf%sHost", baseName_.c_str()); in EmitDriverBind()
181 std::string objName = StringHelper::Format("hdf%sHost", baseName_.c_str()); in EmitDriverRelease()
Dc_service_stub_code_emitter.cpp49 …File::AdapterPath(StringHelper::Format("%s/%s.h", directory_.c_str(), FileName(stubName_).c_str())… in EmitServiceStubHeaderFile()
115 …File::AdapterPath(StringHelper::Format("%s/%s.c", directory_.c_str(), FileName(stubName_).c_str())… in EmitServiceStubSourceFile()
373 std::string cpName = StringHelper::Format("%sCp", param->GetName().c_str()); in EmitReadStubMethodParameter()
396 std::string name = StringHelper::Format("&%s", param->GetName().c_str()); in EmitReadStubMethodParameter()
405 std::string cloneName = StringHelper::Format("%sCp", param->GetName().c_str()); in EmitReadCStringStubMethodParameter()
560 std::string funcName = StringHelper::Format("%sOnRemoteRequest", baseName_.c_str()); in EmitKernelStubOnRequestMethodImpl()
588 std::string stubTypeName = StringHelper::Format("%sStub", baseName_.c_str()); in EmitKernelStubConstruct()
590 std::string funcName = StringHelper::Format("%sOnRemoteRequest", baseName_.c_str()); in EmitKernelStubConstruct()
608 std::string funcName = StringHelper::Format("%sOnRemoteRequest", baseName_.c_str()); in EmitStubOnRequestMethodImpl()
650 …std::string dispatcherName = StringHelper::Format("g_%sDispatcher", StringHelper::StrToLower(baseN… in EmitStubRemoteDispatcher()
[all …]
/drivers/interface/display/buffer/v1_0/
DDisplayBufferType.idl26 unsigned int format; /**< Format of the requested memory */
38 unsigned int format; /**< Format of the memory to allocate */
/drivers/hdf_core/framework/tools/hdi-gen/lexer/
Dtoken.cpp33 …return StringHelper::Format("%s:%zu:%zu", fileName.c_str(), token.location.row, token.location.col… in LocInfo()
Dlexer.cpp392 std::string symbol = StringHelper::Format("%c", c); in ReadShiftLeftOp()
409 std::string symbol = StringHelper::Format("%c", c); in ReadShiftRightOp()
426 std::string symbol = StringHelper::Format("%c", c); in ReadPPlusOp()
443 std::string symbol = StringHelper::Format("%c", c); in ReadMMinusOp()
461 std::string symbol = StringHelper::Format("%c", c); in ReadComment()
509 std::string symbol = StringHelper::Format("%c", c); in ReadSymbolToken()
/drivers/interface/nnrt/v1_0/
DNnrtTypes.idl60 enum Format : byte {
92 enum Format format;
/drivers/hdf_core/framework/tools/hdi-gen/util/
Dstring_helper.h45 static std::string Format(const char *format, ...);
/drivers/hdf_core/framework/tools/hdi-gen/preprocessor/
Dpreprocessor.h26 return StringHelper::Format("%s.%s", packageName_.c_str(), fileName_.c_str()); in GetFullName()

12