/ohos5.0/drivers/hdf_core/framework/tools/hdi-gen/codegen/ |
H A D | c_service_stub_code_emitter.cpp | 286 sb.Append(prefix + TAB).AppendFormat("int32_t %s = HDF_FAILURE;\n", errorCodeName_.c_str()); in EmitServiceStubMethodImpl() 326 sb.Append(prefix + TAB).AppendFormat("return %s;\n", errorCodeName_.c_str()); in EmitServiceStubMethodImpl() 339 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitReadFlagVariable() 374 type->EmitCStubReadVar(parcelName, cpName, errorCodeName_, gotoLabel, sb, prefix); in EmitReadStubMethodParameter() 397 type->EmitCStubReadVar(parcelName, name, errorCodeName_, gotoLabel, sb, prefix); in EmitReadStubMethodParameter() 406 type->EmitCStubReadVar(parcelName, cloneName, errorCodeName_, gotoLabel, sb, prefix); in EmitReadCStringStubMethodParameter() 461 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_NOT_SUPPORT;\n", errorCodeName_.c_str()); in EmitStubCallMethod() 481 sb.Append(prefix).AppendFormat("if (%s != HDF_SUCCESS) {\n", errorCodeName_.c_str()); in EmitStubCallMethod() 484 errorCodeName_.c_str()); in EmitStubCallMethod() 521 sb.Append(prefix + TAB).AppendFormat("int32_t %s = HDF_SUCCESS;\n", errorCodeName_.c_str()); in EmitStubGetVerMethodImpl() [all …]
|
H A D | c_client_proxy_code_emitter.cpp | 296 sb.Append(prefix + TAB).AppendFormat("int32_t %s = HDF_FAILURE;\n", errorCodeName_.c_str()); in EmitProxyMethodBody() 318 dataParcelName_, errorCodeName_, finishedLabelName_, sb, prefix + TAB)) { in EmitProxyMethodBody() 339 sb.Append(prefix + TAB).AppendFormat("return %s;\n", errorCodeName_.c_str()); in EmitProxyMethodBody() 357 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_MALLOC_FAIL;\n", errorCodeName_.c_str()); in EmitCreateBuf() 366 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_OBJECT;\n", errorCodeName_.c_str()); in EmitCheckThisPointer() 377 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitWriteInterfaceToken() 388 … sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitWriteFlagOfNeedSetMem() 411 … type->EmitCProxyReadVar(parcelName, cloneName, false, errorCodeName_, gotoLabel, sb, prefix); in EmitReadProxyMethodParameter() 423 type->EmitCProxyReadVar(parcelName, cpName, false, errorCodeName_, gotoLabel, sb, prefix); in EmitReadProxyMethodParameter() 446 sb.Append(prefix).AppendFormat("if (%s != HDF_SUCCESS) {\n", errorCodeName_.c_str()); in EmitStubCallMethod() [all …]
|
H A D | cpp_client_proxy_code_emitter.cpp | 517 errorCodeName_.c_str(), objName.c_str(), serMajorName.c_str(), serMinorName.c_str()); in EmitGetInstanceMethodInitProxyImpl() 518 sb.Append(prefix + TAB).AppendFormat("if (%s != HDF_SUCCESS) {\n", errorCodeName_.c_str()); in EmitGetInstanceMethodInitProxyImpl() 694 errorCodeName_.c_str(), serMajorName.c_str(), serMinorName.c_str()); in EmitProxyCastFromMethodImplTemplate() 695 sb.Append(prefix + TAB).AppendFormat("if (%s != HDF_SUCCESS) {\n", errorCodeName_.c_str()); in EmitProxyCastFromMethodImplTemplate() 811 … + TAB).AppendFormat("int32_t %s = remote->SendRequest(%s, %s, %s, %s);\n", errorCodeName_.c_str(), in EmitProxyStaticMethodBody() 813 sb.Append(prefix + TAB).AppendFormat("if (%s != HDF_SUCCESS) {\n", errorCodeName_.c_str()); in EmitProxyStaticMethodBody() 815 …LOGE(\"%%{public}s failed, error code is %%{public}d\", __func__, %s);\n", errorCodeName_.c_str()); in EmitProxyStaticMethodBody() 816 sb.Append(prefix + TAB + TAB).AppendFormat("return %s;\n", errorCodeName_.c_str()); in EmitProxyStaticMethodBody() 830 sb.Append(prefix + TAB).AppendFormat("return %s;\n", errorCodeName_.c_str()); in EmitProxyStaticMethodBody()
|
/ohos5.0/foundation/ability/idl_tool/idl_tool_2/codegen/HDI/type/ |
H A D | hdi_string_type_emitter.cpp | 68 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCWriteVar() 79 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCProxyWriteOutVar() 84 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCProxyWriteOutVar() 95 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCProxyReadVar() 107 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCStubReadVar() 122 …sb.Append(prefix + TAB + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()… in EmitCStubReadOutVar() 126 …CHECK_VALUE_RET_GOTO_MACRO, lenName.c_str(), MAX_BUFF_SIZE_MACRO, errorCodeName_.c_str(), gotoLabe… in EmitCStubReadOutVar() 134 …sb.Append(prefix + TAB + TAB + TAB).AppendFormat("%s = HDF_ERR_MALLOC_FAIL;\n", errorCodeName_.c_s… in EmitCStubReadOutVar() 144 … sb.Append(prefix + TAB + TAB).AppendFormat("%s = HDF_ERR_MALLOC_FAIL;\n", errorCodeName_.c_str()); in EmitCStubReadOutVar()
|
H A D | hdi_union_type_emitter.cpp | 115 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCWriteVar() 129 … sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCProxyReadVar() 140 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCProxyReadVar() 154 … sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCStubReadVar() 165 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCStubReadVar()
|
H A D | hdi_uchar_type_emitter.cpp | 69 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCWriteVar() 79 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCProxyReadVar() 89 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCStubReadVar()
|
H A D | hdi_uint_type_emitter.cpp | 69 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCWriteVar() 79 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCProxyReadVar() 89 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCStubReadVar()
|
H A D | hdi_ulong_type_emitter.cpp | 69 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCWriteVar() 79 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCProxyReadVar() 89 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCStubReadVar()
|
H A D | hdi_ushort_type_emitter.cpp | 69 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCWriteVar() 79 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCProxyReadVar() 89 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCStubReadVar()
|
H A D | hdi_array_type_emitter.cpp | 78 … sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCWriteVar() 96 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCWriteVar() 103 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCWriteVar() 130 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCProxyWriteOutVar() 135 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCProxyWriteOutVar() 165 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCProxyReadVar() 171 errorCodeName_.c_str(), gotoLabel.c_str()); in EmitCProxyReadVar() 217 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCStubReadVar() 222 errorCodeName_.c_str(), gotoLabel.c_str()); in EmitCStubReadVar() 262 errorCodeName_.c_str(), gotoLabel.c_str()); in EmitCStubReadOutVar() [all …]
|
H A D | hdi_enum_type_emitter.cpp | 110 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCWriteVar() 124 …sb.Append(prefix + TAB + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()… in EmitCProxyReadVar() 130 …sb.Append(prefix + TAB + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()… in EmitCProxyReadVar() 146 …sb.Append(prefix + TAB + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()… in EmitCStubReadVar()
|
H A D | hdi_boolean_type_emitter.cpp | 68 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCWriteVar() 79 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCProxyReadVar() 90 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCStubReadVar()
|
H A D | hdi_byte_type_emitter.cpp | 68 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCWriteVar() 78 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCProxyReadVar() 88 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCStubReadVar()
|
H A D | hdi_double_type_emitter.cpp | 68 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCWriteVar() 78 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCProxyReadVar() 88 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCStubReadVar()
|
H A D | hdi_float_type_emitter.cpp | 69 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCWriteVar() 79 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCProxyReadVar() 89 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCStubReadVar()
|
H A D | hdi_int_type_emitter.cpp | 69 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCWriteVar() 79 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCProxyReadVar() 89 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCStubReadVar()
|
H A D | hdi_long_type_emitter.cpp | 68 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCWriteVar() 78 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCProxyReadVar() 88 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCStubReadVar()
|
H A D | hdi_short_type_emitter.cpp | 68 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCWriteVar() 78 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCProxyReadVar() 88 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCStubReadVar()
|
H A D | hdi_struct_type_emitter.cpp | 112 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCWriteVar() 123 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCProxyReadVar() 134 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCStubReadVar()
|
H A D | hdi_interface_type_emitter.cpp | 81 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCWriteVar() 92 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCProxyReadVar() 103 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCStubReadVar()
|
H A D | hdi_native_buffer_type_emitter.cpp | 78 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCProxyReadVar() 89 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitCStubReadVar()
|
/ohos5.0/foundation/ability/idl_tool/idl_tool_2/codegen/HDI/c/ |
H A D | c_service_stub_code_emitter.cpp | 292 …(prefix + TAB).AppendFormat("int32_t %s = HDF_FAILURE;\n", HdiTypeEmitter::errorCodeName_.c_str()); in EmitServiceStubMethodImpl() 333 sb.Append(prefix + TAB).AppendFormat("return %s;\n", HdiTypeEmitter::errorCodeName_.c_str()); in EmitServiceStubMethodImpl() 357 …refix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", HdiTypeEmitter::errorCodeName_.c_str()); in EmitReadFlagVariable() 428 …(prefix + TAB).AppendFormat("%s = HDF_ERR_MALLOC_FAIL;\n", HdiTypeEmitter::errorCodeName_.c_str()); in EmitReadStubMethodParameter() 440 …(prefix + TAB).AppendFormat("%s = HDF_ERR_MALLOC_FAIL;\n", HdiTypeEmitter::errorCodeName_.c_str()); in EmitReadStubMethodParameter() 514 …efix + TAB).AppendFormat("%s = HDF_ERR_INVALID_OBJECT;\n", HdiTypeEmitter::errorCodeName_.c_str()); in EmitStubCallMethod() 521 …(prefix + TAB).AppendFormat("%s = HDF_ERR_NOT_SUPPORT;\n", HdiTypeEmitter::errorCodeName_.c_str()); in EmitStubCallMethod() 541 …sb.Append(prefix).AppendFormat("if (%s != HDF_SUCCESS) {\n", HdiTypeEmitter::errorCodeName_.c_str(… in EmitStubCallMethod() 544 HdiTypeEmitter::errorCodeName_.c_str()); in EmitStubCallMethod() 583 …(prefix + TAB).AppendFormat("int32_t %s = HDF_SUCCESS;\n", HdiTypeEmitter::errorCodeName_.c_str()); in EmitStubGetVerMethodImpl() [all …]
|
H A D | c_client_proxy_code_emitter.cpp | 301 …(prefix + TAB).AppendFormat("int32_t %s = HDF_FAILURE;\n", HdiTypeEmitter::errorCodeName_.c_str()); in EmitProxyMethodBody() 344 sb.Append(prefix + TAB).AppendFormat("return %s;\n", HdiTypeEmitter::errorCodeName_.c_str()); in EmitProxyMethodBody() 362 …(prefix + TAB).AppendFormat("%s = HDF_ERR_MALLOC_FAIL;\n", HdiTypeEmitter::errorCodeName_.c_str()); in EmitCreateBuf() 371 …efix + TAB).AppendFormat("%s = HDF_ERR_INVALID_OBJECT;\n", HdiTypeEmitter::errorCodeName_.c_str()); in EmitCheckThisPointer() 382 …refix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", HdiTypeEmitter::errorCodeName_.c_str()); in EmitWriteInterfaceToken() 393 …refix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", HdiTypeEmitter::errorCodeName_.c_str()); in EmitWriteFlagOfNeedSetMem() 449 …nd(prefix).AppendFormat("%s = %sCall(self, %s, %s, %s);\n", HdiTypeEmitter::errorCodeName_.c_str(), in EmitStubCallMethod() 453 …sb.Append(prefix).AppendFormat("if (%s != HDF_SUCCESS) {\n", HdiTypeEmitter::errorCodeName_.c_str(… in EmitStubCallMethod() 456 HdiTypeEmitter::errorCodeName_.c_str()); in EmitStubCallMethod() 754 …HdiTypeEmitter::errorCodeName_.c_str(), clientObjName.c_str(), clientObjName.c_str(), serMajorName… in EmitProxyCheckVersion() [all …]
|
/ohos5.0/foundation/ability/idl_tool/idl_tool_2/codegen/HDI/cpp/ |
H A D | cpp_client_proxy_code_emitter.cpp | 517 …HdiTypeEmitter::errorCodeName_.c_str(), objName.c_str(), serMajorName.c_str(), serMinorName.c_str(… in EmitGetInstanceMethodInitProxyImpl() 518 …d(prefix + TAB).AppendFormat("if (%s != HDF_SUCCESS) {\n", HdiTypeEmitter::errorCodeName_.c_str()); in EmitGetInstanceMethodInitProxyImpl() 705 HdiTypeEmitter::errorCodeName_.c_str(), serMajorName.c_str(), serMinorName.c_str()); in EmitProxyCastFromMethodImplTemplate() 706 …d(prefix + TAB).AppendFormat("if (%s != HDF_SUCCESS) {\n", HdiTypeEmitter::errorCodeName_.c_str()); in EmitProxyCastFromMethodImplTemplate() 823 HdiTypeEmitter::errorCodeName_.c_str(), EmitMethodCmdID(method).c_str(), in EmitProxyStaticMethodBody() 825 …d(prefix + TAB).AppendFormat("if (%s != HDF_SUCCESS) {\n", HdiTypeEmitter::errorCodeName_.c_str()); in EmitProxyStaticMethodBody() 828 HdiTypeEmitter::errorCodeName_.c_str()); in EmitProxyStaticMethodBody() 829 …sb.Append(prefix + TAB + TAB).AppendFormat("return %s;\n", HdiTypeEmitter::errorCodeName_.c_str()); in EmitProxyStaticMethodBody() 843 sb.Append(prefix + TAB).AppendFormat("return %s;\n", HdiTypeEmitter::errorCodeName_.c_str()); in EmitProxyStaticMethodBody()
|
H A D | cpp_service_stub_code_emitter.cpp | 459 sb.Append(prefix + TAB).AppendFormat("return %s;\n", HdiTypeEmitter::errorCodeName_.c_str()); in EmitStubStaticMethodImpl() 471 sb.Append(prefix).AppendFormat("int32_t %s = impl->%s(", HdiTypeEmitter::errorCodeName_.c_str(), in EmitStubCallMethod() 482 …sb.Append(prefix).AppendFormat("if (%s != HDF_SUCCESS) {\n", HdiTypeEmitter::errorCodeName_.c_str(… in EmitStubCallMethod() 485 HdiTypeEmitter::errorCodeName_.c_str()); in EmitStubCallMethod() 486 sb.Append(prefix + TAB).AppendFormat("return %s;\n", HdiTypeEmitter::errorCodeName_.c_str()); in EmitStubCallMethod()
|