Home
last modified time | relevance | path

Searched refs:Append (Results 1 – 25 of 52) sorted by relevance

123

/drivers/hdf_core/framework/tools/hdi-gen/codegen/
Dc_service_driver_code_emitter.cpp65 sb.Append("\n"); in EmitLowDriverSourceFile()
67 sb.Append("\n"); in EmitLowDriverSourceFile()
69 sb.Append("\n"); in EmitLowDriverSourceFile()
71 sb.Append("\n"); in EmitLowDriverSourceFile()
73 sb.Append("\n"); in EmitLowDriverSourceFile()
75 sb.Append("\n"); in EmitLowDriverSourceFile()
99 sb.Append("{\n"); in EmitLowDriverBind()
100 sb.Append(TAB).Append("HDF_LOGI(\"%s: driver bind start\", __func__);\n"); in EmitLowDriverBind()
101 …sb.Append(TAB).AppendFormat("struct %s *serviceImpl = %sGet();\n", implName_.c_str(), implName_.c_… in EmitLowDriverBind()
102 sb.Append(TAB).Append("if (serviceImpl == NULL) {\n"); in EmitLowDriverBind()
[all …]
Dcpp_service_driver_code_emitter.cpp49 sb.Append("\n"); in EmitDriverSourceFile()
51 sb.Append("\n"); in EmitDriverSourceFile()
53 sb.Append("\n"); in EmitDriverSourceFile()
55 sb.Append("\n"); in EmitDriverSourceFile()
57 sb.Append("\n"); in EmitDriverSourceFile()
59 sb.Append("\n"); in EmitDriverSourceFile()
61 sb.Append("\n"); in EmitDriverSourceFile()
63 sb.Append("\n"); in EmitDriverSourceFile()
96 sb.Append(TAB).Append("struct IDeviceIoService ioService;\n"); in EmitDriverServiceDecl()
97 sb.Append(TAB).Append("OHOS::sptr<OHOS::IRemoteObject> stub;\n"); in EmitDriverServiceDecl()
[all …]
Dc_client_proxy_code_emitter.cpp59 sb.Append("\n"); in EmitPassthroughProxySourceFile()
61 sb.Append("\n"); in EmitPassthroughProxySourceFile()
63 sb.Append("\n"); in EmitPassthroughProxySourceFile()
65 sb.Append("\n"); in EmitPassthroughProxySourceFile()
67 sb.Append("\n"); in EmitPassthroughProxySourceFile()
90 sb.Append("{\n"); in EmitPassthroughGetInstanceMethod()
92 sb.Append(TAB).Append("return NULL;\n"); in EmitPassthroughGetInstanceMethod()
93 sb.Append("}\n"); in EmitPassthroughGetInstanceMethod()
100 sb.Append("{\n"); in EmitPassthroughReleaseInstanceMethod()
101 sb.Append(TAB).Append("if (instance == NULL) {\n"); in EmitPassthroughReleaseInstanceMethod()
[all …]
Dc_service_stub_code_emitter.cpp55 sb.Append("\n"); in EmitServiceStubHeaderFile()
57 sb.Append("\n"); in EmitServiceStubHeaderFile()
59 sb.Append("\n"); in EmitServiceStubHeaderFile()
62 sb.Append("\n"); in EmitServiceStubHeaderFile()
65 sb.Append("\n"); in EmitServiceStubHeaderFile()
67 sb.Append("\n"); in EmitServiceStubHeaderFile()
96 sb.Append(TAB).AppendFormat("struct %s interface;\n", interfaceName_.c_str()); in EmitCbServiceStubDef()
97 …sb.Append(TAB).AppendFormat("int32_t (*OnRemoteRequest)(struct %s *serviceImpl, ", interfaceName_.… in EmitCbServiceStubDef()
98 sb.Append("int code, struct HdfSBuf *data, struct HdfSBuf *reply);\n"); in EmitCbServiceStubDef()
100 sb.Append(TAB).Append("struct HdfRemoteService *remote;\n"); in EmitCbServiceStubDef()
[all …]
Djava_client_proxy_code_emitter.cpp46 sb.Append("\n"); in EmitProxyFile()
48 sb.Append("\n"); in EmitProxyFile()
74 sb.Append("import java.util.List;\n"); in EmitProxyCorelibImports()
81 sb.Append("import java.util.Map;\n"); in EmitProxyCorelibImports()
82 sb.Append("import java.util.HashMap;\n"); in EmitProxyCorelibImports()
103 sb.Append("import ohos.hiviewdfx.HiLog;\n"); in EmitProxyDBinderImports()
104 sb.Append("import ohos.hiviewdfx.HiLogLabel;\n"); in EmitProxyDBinderImports()
105 sb.Append("import ohos.rpc.IRemoteObject;\n"); in EmitProxyDBinderImports()
106 sb.Append("import ohos.rpc.RemoteException;\n"); in EmitProxyDBinderImports()
107 sb.Append("import ohos.rpc.MessageParcel;\n"); in EmitProxyDBinderImports()
[all …]
Dc_service_impl_code_emitter.cpp64 sb.Append("\n"); in EmitLowServiceImplHeaderFile()
68 sb.Append("\n"); in EmitLowServiceImplHeaderFile()
70 sb.Append("\n"); in EmitLowServiceImplHeaderFile()
72 sb.Append("\n"); in EmitLowServiceImplHeaderFile()
74 sb.Append("\n"); in EmitLowServiceImplHeaderFile()
76 sb.Append("\n"); in EmitLowServiceImplHeaderFile()
97 sb.Append(TAB).AppendFormat("struct %s super;\n", interfaceName_.c_str()); in EmitLowServiceImplDefinition()
98 sb.Append(TAB).Append("// please add private data here\n"); in EmitLowServiceImplDefinition()
99 sb.Append("};\n"); in EmitLowServiceImplDefinition()
111 sb.Append("\n"); in EmitLowServiceImplSourceFile()
[all …]
Dcpp_client_proxy_code_emitter.cpp58 sb.Append("\n"); in EmitProxyHeaderFile()
60 sb.Append("\n"); in EmitProxyHeaderFile()
62 sb.Append("\n"); in EmitProxyHeaderFile()
64 sb.Append("\n"); in EmitProxyHeaderFile()
66 sb.Append("\n"); in EmitProxyHeaderFile()
101 sb.Append("public:\n"); in EmitProxyDecl()
103 sb.Append("\n"); in EmitProxyDecl()
105 sb.Append("\n"); in EmitProxyDecl()
106 sb.Append("private:\n"); in EmitProxyDecl()
108 sb.Append("};\n"); in EmitProxyDecl()
[all …]
Dcpp_service_stub_code_emitter.cpp48 sb.Append("\n"); in EmitStubHeaderFile()
50 sb.Append("\n"); in EmitStubHeaderFile()
52 sb.Append("\n"); in EmitStubHeaderFile()
89 sb.Append("\n"); in EmitStubDecl()
93 sb.Append("};\n"); in EmitStubDecl()
99 sb.Append("using namespace OHOS;\n"); in EmitStubUsingNamespace()
104 sb.Append("public:\n"); in EmitStubBody()
106 sb.Append("\n"); in EmitStubBody()
108 sb.Append("\n"); in EmitStubBody()
110 sb.Append("\n"); in EmitStubBody()
[all …]
Dc_custom_types_code_emitter.cpp59 sb.Append("\n"); in EmitPassthroughCustomTypesHeaderFile()
61 sb.Append("\n"); in EmitPassthroughCustomTypesHeaderFile()
63 sb.Append("\n"); in EmitPassthroughCustomTypesHeaderFile()
66 sb.Append("\n"); in EmitPassthroughCustomTypesHeaderFile()
96 sb.Append("\n"); in EmitCustomTypesHeaderFile()
98 sb.Append("\n"); in EmitCustomTypesHeaderFile()
100 sb.Append("\n"); in EmitCustomTypesHeaderFile()
102 sb.Append("\n"); in EmitCustomTypesHeaderFile()
104 sb.Append("\n"); in EmitCustomTypesHeaderFile()
106 sb.Append("\n"); in EmitCustomTypesHeaderFile()
[all …]
/drivers/hdf_core/framework/tools/hdi-gen/ast/
Dast_array_type.cpp87 …sb.Append(prefix).AppendFormat("if (!WritePodArray(%s, %s, sizeof(%s), %s)) {\n", parcelName.c_str… in EmitCWriteVar()
89 sb.Append(prefix + TAB) in EmitCWriteVar()
91 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCWriteVar()
92 sb.Append(prefix + TAB).AppendFormat("goto %s;\n", gotoLabel.c_str()); in EmitCWriteVar()
93 sb.Append(prefix).Append("}\n"); in EmitCWriteVar()
96 sb.Append(prefix).AppendFormat( in EmitCWriteVar()
98 sb.Append(prefix + TAB) in EmitCWriteVar()
100 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCWriteVar()
101 sb.Append(prefix + TAB).AppendFormat("goto %s;\n", gotoLabel.c_str()); in EmitCWriteVar()
102 sb.Append(prefix).Append("}\n"); in EmitCWriteVar()
[all …]
Dast_fd_type.cpp68 …sb.Append(prefix).AppendFormat("if (!WriteFileDescriptor(%s, %s)) {\n", parcelName.c_str(), name.c… in EmitCWriteVar()
69 …sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: write %s failed!\", __func__);\n", n… in EmitCWriteVar()
70 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCWriteVar()
71 sb.Append(prefix + TAB).AppendFormat("goto %s;\n", gotoLabel.c_str()); in EmitCWriteVar()
72 sb.Append(prefix).Append("}\n"); in EmitCWriteVar()
79 …sb.Append(prefix).AppendFormat("if (!ReadFileDescriptor(%s, &%s)) {\n", parcelName.c_str(), name.c… in EmitCProxyReadVar()
81 …sb.Append(prefix).AppendFormat("if (!ReadFileDescriptor(%s, %s)) {\n", parcelName.c_str(), name.c_… in EmitCProxyReadVar()
83 …sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: read %s failed!\", __func__);\n", na… in EmitCProxyReadVar()
84 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCProxyReadVar()
85 sb.Append(prefix + TAB).AppendFormat("goto %s;\n", gotoLabel.c_str()); in EmitCProxyReadVar()
[all …]
Dast_interface_type.cpp74 sb.Append(prefix); in Dump()
75 sb.Append(prefix).Append(attr_->Dump(prefix)).Append(" "); in Dump()
79 sb.Append(info); in Dump()
81 sb.Append('\n'); in Dump()
84 sb.Append(prefix).Append("}\n"); in Dump()
150 sb.Append(prefix).AppendFormat("if (!WriteInterface(%s, %s, %s)) {\n", parcelName.c_str(), in EmitCWriteVar()
152 …sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: write %s failed!\", __func__);\n", n… in EmitCWriteVar()
153 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCWriteVar()
154 sb.Append(prefix + TAB).AppendFormat("goto %s;\n", gotoLabel.c_str()); in EmitCWriteVar()
155 sb.Append(prefix).Append("}\n"); in EmitCWriteVar()
[all …]
Dast_string_type.cpp68 …sb.Append(prefix).AppendFormat("if (!HdfSbufWriteString(%s, %s)) {\n", parcelName.c_str(), name.c_… in EmitCWriteVar()
69 …sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: write %s failed!\", __func__);\n", n… in EmitCWriteVar()
70 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCWriteVar()
71 sb.Append(prefix + TAB).AppendFormat("goto %s;\n", gotoLabel.c_str()); in EmitCWriteVar()
72 sb.Append(prefix).Append("}\n"); in EmitCWriteVar()
79 sb.Append(prefix).AppendFormat("if (%s == NULL || %s == 0) {\n", name.c_str(), lenName.c_str()); in EmitCProxyWriteOutVar()
80 …sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: %s is invalid\", __func__);\n", name… in EmitCProxyWriteOutVar()
81 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCProxyWriteOutVar()
82 sb.Append(prefix + TAB).AppendFormat("goto %s;\n", gotoLabel.c_str()); in EmitCProxyWriteOutVar()
83 sb.Append(prefix).Append("}\n\n"); in EmitCProxyWriteOutVar()
[all …]
Dast_union_type.cpp33 sb.Append(prefix).Append(attr_->Dump(prefix)).Append(" "); in Dump()
37 sb.Append(prefix + " "); in Dump()
41 sb.Append(prefix).Append("};\n"); in Dump()
96 sb.Append(TAB).AppendFormat("%s %s;\n", member->EmitCType().c_str(), memberName.c_str()); in EmitCTypeDecl()
98 sb.Append(TAB).AppendFormat("uint32_t %sLen;\n", memberName.c_str()); in EmitCTypeDecl()
102 sb.Append("} __attribute__ ((aligned(8)));"); in EmitCTypeDecl()
114 sb.Append(TAB).AppendFormat("%s %s;\n", member->EmitCppType().c_str(), memberName.c_str()); in EmitCppTypeDecl()
117 sb.Append("} __attribute__ ((aligned(8)));"); in EmitCppTypeDecl()
132 … sb.Append(prefix).AppendFormat("if (!HdfSbufWriteBuffer(%s, (const void *)%s, sizeof(%s))) {\n", in EmitCWriteVar()
135 …sb.Append(prefix).AppendFormat("if (!HdfSbufWriteUnpadBuffer(%s, (const uint8_t *)%s, sizeof(%s)))… in EmitCWriteVar()
[all …]
Dast_enum_type.cpp35 sb.Append(prefix).Append(attr_->Dump(prefix)).Append(" "); in Dump()
46 sb.Append(" ").AppendFormat("%s,\n", it->GetName().c_str()); in Dump()
48 … sb.Append(" ").AppendFormat("%s = %s,\n", it->GetName().c_str(), value->Dump("").c_str()); in Dump()
53 sb.Append(prefix).Append("};\n"); in Dump()
108 sb.Append(TAB).AppendFormat("%s,\n", it->GetName().c_str()); in EmitCTypeDecl()
110 …sb.Append(TAB).AppendFormat("%s = %s,\n", it->GetName().c_str(), it->GetExprValue()->EmitCode().c_… in EmitCTypeDecl()
114 sb.Append("};"); in EmitCTypeDecl()
129 sb.Append(TAB).AppendFormat("%s,\n", it->GetName().c_str()); in EmitCppTypeDecl()
131 …sb.Append(TAB).AppendFormat("%s = %s,\n", it->GetName().c_str(), it->GetExprValue()->EmitCode().c_… in EmitCppTypeDecl()
135 sb.Append("};"); in EmitCppTypeDecl()
[all …]
Dast_ulong_type.cpp69 …sb.Append(prefix).AppendFormat("if (!HdfSbufWriteUint64(%s, %s)) {\n", parcelName.c_str(), name.c_… in EmitCWriteVar()
70 …sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: write %s failed!\", __func__);\n", n… in EmitCWriteVar()
71 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCWriteVar()
72 sb.Append(prefix + TAB).AppendFormat("goto %s;\n", gotoLabel.c_str()); in EmitCWriteVar()
73 sb.Append(prefix).Append("}\n"); in EmitCWriteVar()
79 …sb.Append(prefix).AppendFormat("if (!HdfSbufReadUint64(%s, %s)) {\n", parcelName.c_str(), name.c_s… in EmitCProxyReadVar()
80 …sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: read %s failed!\", __func__);\n", na… in EmitCProxyReadVar()
81 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCProxyReadVar()
82 sb.Append(prefix + TAB).AppendFormat("goto %s;\n", gotoLabel.c_str()); in EmitCProxyReadVar()
83 sb.Append(prefix).Append("}\n"); in EmitCProxyReadVar()
[all …]
Dast_uchar_type.cpp69 …sb.Append(prefix).AppendFormat("if (!HdfSbufWriteUint8(%s, %s)) {\n", parcelName.c_str(), name.c_s… in EmitCWriteVar()
70 …sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: write %s failed!\", __func__);\n", n… in EmitCWriteVar()
71 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCWriteVar()
72 sb.Append(prefix + TAB).AppendFormat("goto %s;\n", gotoLabel.c_str()); in EmitCWriteVar()
73 sb.Append(prefix).Append("}\n"); in EmitCWriteVar()
79 …sb.Append(prefix).AppendFormat("if (!HdfSbufReadUint8(%s, %s)) {\n", parcelName.c_str(), name.c_st… in EmitCProxyReadVar()
80 …sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: read %s failed!\", __func__);\n", na… in EmitCProxyReadVar()
81 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCProxyReadVar()
82 sb.Append(prefix + TAB).AppendFormat("goto %s;\n", gotoLabel.c_str()); in EmitCProxyReadVar()
83 sb.Append(prefix).Append("}\n"); in EmitCProxyReadVar()
[all …]
Dast_ushort_type.cpp69 …sb.Append(prefix).AppendFormat("if (!HdfSbufWriteUint16(%s, %s)) {\n", parcelName.c_str(), name.c_… in EmitCWriteVar()
70 …sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: write %s failed!\", __func__);\n", n… in EmitCWriteVar()
71 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCWriteVar()
72 sb.Append(prefix + TAB).AppendFormat("goto %s;\n", gotoLabel.c_str()); in EmitCWriteVar()
73 sb.Append(prefix).Append("}\n"); in EmitCWriteVar()
79 …sb.Append(prefix).AppendFormat("if (!HdfSbufReadUint16(%s, %s)) {\n", parcelName.c_str(), name.c_s… in EmitCProxyReadVar()
80 …sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: read %s failed!\", __func__);\n", na… in EmitCProxyReadVar()
81 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCProxyReadVar()
82 sb.Append(prefix + TAB).AppendFormat("goto %s;\n", gotoLabel.c_str()); in EmitCProxyReadVar()
83 sb.Append(prefix).Append("}\n"); in EmitCProxyReadVar()
[all …]
Dast_uint_type.cpp69 …sb.Append(prefix).AppendFormat("if (!HdfSbufWriteUint32(%s, %s)) {\n", parcelName.c_str(), name.c_… in EmitCWriteVar()
70 …sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: write %s failed!\", __func__);\n", n… in EmitCWriteVar()
71 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCWriteVar()
72 sb.Append(prefix + TAB).AppendFormat("goto %s;\n", gotoLabel.c_str()); in EmitCWriteVar()
73 sb.Append(prefix).Append("}\n"); in EmitCWriteVar()
79 …sb.Append(prefix).AppendFormat("if (!HdfSbufReadUint32(%s, %s)) {\n", parcelName.c_str(), name.c_s… in EmitCProxyReadVar()
80 …sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: read %s failed!\", __func__);\n", na… in EmitCProxyReadVar()
81 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCProxyReadVar()
82 sb.Append(prefix + TAB).AppendFormat("goto %s;\n", gotoLabel.c_str()); in EmitCProxyReadVar()
83 sb.Append(prefix).Append("}\n"); in EmitCProxyReadVar()
[all …]
Dast_struct_type.cpp36 sb.Append(prefix).Append(attr_->Dump(prefix)).Append(" "); in Dump()
40 sb.Append(prefix + " "); in Dump()
44 sb.Append(prefix).Append("};\n"); in Dump()
99 sb.Append(TAB).AppendFormat("%s %s;\n", member->EmitCType().c_str(), memberName.c_str()); in EmitCTypeDecl()
101 sb.Append(TAB).AppendFormat("uint32_t %sLen;\n", memberName.c_str()); in EmitCTypeDecl()
105 sb.Append("}"); in EmitCTypeDecl()
107 sb.Append(" __attribute__ ((aligned(8)))"); in EmitCTypeDecl()
109 sb.Append(";"); in EmitCTypeDecl()
122 sb.Append(TAB).AppendFormat("%s %s;\n", member->EmitCppType().c_str(), memberName.c_str()); in EmitCppTypeDecl()
125 sb.Append("}"); in EmitCppTypeDecl()
[all …]
Dast_native_buffer_type.cpp63 …sb.Append(prefix).AppendFormat("if (!HdfSbufWriteNativeBufferHandle(%s, %s)) {\n", parcelName.c_st… in EmitCWriteVar()
65 …sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: failed to write %s\", __func__);\n",… in EmitCWriteVar()
66 sb.Append(prefix + TAB).Append("return HDF_ERR_INVALID_PARAM;\n"); in EmitCWriteVar()
67 sb.Append(prefix).Append("}\n"); in EmitCWriteVar()
73 sb.Append(prefix); in EmitCProxyReadVar()
75 sb.Append("*"); in EmitCProxyReadVar()
78 sb.Append(prefix).AppendFormat("if (%s == NULL) {\n", name.c_str()); in EmitCProxyReadVar()
79 …sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: read %s failed!\", __func__);\n", na… in EmitCProxyReadVar()
80 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCProxyReadVar()
81 sb.Append(prefix + TAB).AppendFormat("goto %s;\n", gotoLabel.c_str()); in EmitCProxyReadVar()
[all …]
Dast_double_type.cpp68 …sb.Append(prefix).AppendFormat("if (!HdfSbufWriteDouble(%s, %s)) {\n", parcelName.c_str(), name.c_… in EmitCWriteVar()
69 …sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: write %s failed!\", __func__);\n", n… in EmitCWriteVar()
70 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCWriteVar()
71 sb.Append(prefix + TAB).AppendFormat("goto %s;\n", gotoLabel.c_str()); in EmitCWriteVar()
72 sb.Append(prefix).Append("}\n"); in EmitCWriteVar()
78 …sb.Append(prefix).AppendFormat("if (!HdfSbufReadDouble(%s, %s)) {\n", parcelName.c_str(), name.c_s… in EmitCProxyReadVar()
79 …sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: read %s failed!\", __func__);\n", na… in EmitCProxyReadVar()
80 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCProxyReadVar()
81 sb.Append(prefix + TAB).AppendFormat("goto %s;\n", gotoLabel.c_str()); in EmitCProxyReadVar()
82 sb.Append(prefix).Append("}\n"); in EmitCProxyReadVar()
[all …]
Dast_short_type.cpp68 …sb.Append(prefix).AppendFormat("if (!HdfSbufWriteInt16(%s, %s)) {\n", parcelName.c_str(), name.c_s… in EmitCWriteVar()
69 …sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: write %s failed!\", __func__);\n", n… in EmitCWriteVar()
70 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCWriteVar()
71 sb.Append(prefix + TAB).AppendFormat("goto %s;\n", gotoLabel.c_str()); in EmitCWriteVar()
72 sb.Append(prefix).Append("}\n"); in EmitCWriteVar()
78 …sb.Append(prefix).AppendFormat("if (!HdfSbufReadInt16(%s, %s)) {\n", parcelName.c_str(), name.c_st… in EmitCProxyReadVar()
79 …sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: read %s failed!\", __func__);\n", na… in EmitCProxyReadVar()
80 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCProxyReadVar()
81 sb.Append(prefix + TAB).AppendFormat("goto %s;\n", gotoLabel.c_str()); in EmitCProxyReadVar()
82 sb.Append(prefix).Append("}\n"); in EmitCProxyReadVar()
[all …]
Dast_byte_type.cpp68 …sb.Append(prefix).AppendFormat("if (!HdfSbufWriteInt8(%s, %s)) {\n", parcelName.c_str(), name.c_st… in EmitCWriteVar()
69 …sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: write %s failed!\", __func__);\n", n… in EmitCWriteVar()
70 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCWriteVar()
71 sb.Append(prefix + TAB).AppendFormat("goto %s;\n", gotoLabel.c_str()); in EmitCWriteVar()
72 sb.Append(prefix).Append("}\n"); in EmitCWriteVar()
78 …sb.Append(prefix).AppendFormat("if (!HdfSbufReadInt8(%s, %s)) {\n", parcelName.c_str(), name.c_str… in EmitCProxyReadVar()
79 …sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: read %s failed!\", __func__);\n", na… in EmitCProxyReadVar()
80 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCProxyReadVar()
81 sb.Append(prefix + TAB).AppendFormat("goto %s;\n", gotoLabel.c_str()); in EmitCProxyReadVar()
82 sb.Append(prefix).Append("}\n"); in EmitCProxyReadVar()
[all …]
Dast_boolean_type.cpp68 …sb.Append(prefix).AppendFormat("if (!HdfSbufWriteInt8(%s, %s ? 1 : 0)) {\n", parcelName.c_str(), n… in EmitCWriteVar()
69 …sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: write %s failed!\", __func__);\n", n… in EmitCWriteVar()
70 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCWriteVar()
71 sb.Append(prefix + TAB).AppendFormat("goto %s;\n", gotoLabel.c_str()); in EmitCWriteVar()
72 sb.Append(prefix).Append("}\n"); in EmitCWriteVar()
78 …sb.Append(prefix).AppendFormat("if (!HdfSbufReadInt8(%s, (int8_t *)%s)) {\n", parcelName.c_str(), … in EmitCProxyReadVar()
79 …sb.Append(prefix + TAB).AppendFormat("HDF_LOGE(\"%%{public}s: read %s failed!\", __func__);\n", na… in EmitCProxyReadVar()
80 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", ecName.c_str()); in EmitCProxyReadVar()
81 sb.Append(prefix + TAB).AppendFormat("goto %s;\n", gotoLabel.c_str()); in EmitCProxyReadVar()
82 sb.Append(prefix).Append("}\n"); in EmitCProxyReadVar()
[all …]

123