Home
last modified time | relevance | path

Searched refs:errorCodeName_ (Results 1 – 25 of 32) sorted by relevance

12

/ohos5.0/drivers/hdf_core/framework/tools/hdi-gen/codegen/
H A Dc_service_stub_code_emitter.cpp286 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 Dc_client_proxy_code_emitter.cpp296 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 Dcpp_client_proxy_code_emitter.cpp517 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 Dhdi_string_type_emitter.cpp68 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 Dhdi_union_type_emitter.cpp115 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 Dhdi_uchar_type_emitter.cpp69 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 Dhdi_uint_type_emitter.cpp69 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 Dhdi_ulong_type_emitter.cpp69 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 Dhdi_ushort_type_emitter.cpp69 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 Dhdi_array_type_emitter.cpp78 … 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 Dhdi_enum_type_emitter.cpp110 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 Dhdi_boolean_type_emitter.cpp68 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 Dhdi_byte_type_emitter.cpp68 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 Dhdi_double_type_emitter.cpp68 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 Dhdi_float_type_emitter.cpp69 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 Dhdi_int_type_emitter.cpp69 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 Dhdi_long_type_emitter.cpp68 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 Dhdi_short_type_emitter.cpp68 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 Dhdi_struct_type_emitter.cpp112 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 Dhdi_interface_type_emitter.cpp81 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 Dhdi_native_buffer_type_emitter.cpp78 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 Dc_service_stub_code_emitter.cpp292 …(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 Dc_client_proxy_code_emitter.cpp301 …(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 Dcpp_client_proxy_code_emitter.cpp517 …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 Dcpp_service_stub_code_emitter.cpp459 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()

12