Home
last modified time | relevance | path

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

/drivers/hdf_core/framework/tools/hdi-gen/codegen/
Dc_service_stub_code_emitter.cpp286 sb.Append(prefix + TAB).AppendFormat("int32_t %s = HDF_FAILURE;\n", errorCodeName_.c_str()); in EmitServiceStubMethodImpl()
320 … param->EmitCWriteVar(replyParcelName_, errorCodeName_, finishedLabelName_, sb, prefix + TAB); 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()
368 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_MALLOC_FAIL;\n", errorCodeName_.c_str()); in EmitReadStubMethodParameter()
371 type->EmitCStubReadVar(parcelName, param->GetName(), errorCodeName_, gotoLabel, sb, prefix); in EmitReadStubMethodParameter()
374 type->EmitCStubReadVar(parcelName, cpName, errorCodeName_, gotoLabel, sb, prefix); in EmitReadStubMethodParameter()
380 sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_MALLOC_FAIL;\n", errorCodeName_.c_str()); in EmitReadStubMethodParameter()
394 type->EmitCStubReadVar(parcelName, param->GetName(), errorCodeName_, gotoLabel, sb, prefix); in EmitReadStubMethodParameter()
397 type->EmitCStubReadVar(parcelName, name, errorCodeName_, gotoLabel, sb, prefix); in EmitReadStubMethodParameter()
[all …]
Dc_client_proxy_code_emitter.cpp296 sb.Append(prefix + TAB).AppendFormat("int32_t %s = HDF_FAILURE;\n", errorCodeName_.c_str()); in EmitProxyMethodBody()
315 … param->EmitCWriteVar(dataParcelName_, errorCodeName_, finishedLabelName_, sb, prefix + TAB); 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()
416 … sb.Append(prefix + TAB).AppendFormat("%s = HDF_ERR_INVALID_PARAM;\n", errorCodeName_.c_str()); in EmitReadProxyMethodParameter()
[all …]
Dcpp_client_proxy_code_emitter.cpp381 errorCodeName_.c_str(), objName.c_str(), serMajorName.c_str(), serMinorName.c_str()); in EmitGetInstanceMethodImpl()
382 sb.Append(prefix + TAB).AppendFormat("if (%s != HDF_SUCCESS) {\n", errorCodeName_.c_str()); in EmitGetInstanceMethodImpl()
546 … + TAB).AppendFormat("int32_t %s = remote->SendRequest(%s, %s, %s, %s);\n", errorCodeName_.c_str(), in EmitProxyStaticMethodBody()
548 sb.Append(prefix + TAB).AppendFormat("if (%s != HDF_SUCCESS) {\n", errorCodeName_.c_str()); in EmitProxyStaticMethodBody()
550 …LOGE(\"%%{public}s failed, error code is %%{public}d\", __func__, %s);\n", errorCodeName_.c_str()); in EmitProxyStaticMethodBody()
551 sb.Append(prefix + TAB + TAB).AppendFormat("return %s;\n", errorCodeName_.c_str()); in EmitProxyStaticMethodBody()
565 sb.Append(prefix + TAB).AppendFormat("return %s;\n", errorCodeName_.c_str()); in EmitProxyStaticMethodBody()
Dcpp_service_stub_code_emitter.cpp431 sb.Append(prefix + TAB).AppendFormat("return %s;\n", errorCodeName_.c_str()); in EmitStubStaticMethodImpl()
443 …sb.Append(prefix).AppendFormat("int32_t %s = impl->%s(", errorCodeName_.c_str(), method->GetName()… in EmitStubCallMethod()
453 sb.Append(prefix).AppendFormat("if (%s != HDF_SUCCESS) {\n", errorCodeName_.c_str()); in EmitStubCallMethod()
456 errorCodeName_.c_str()); in EmitStubCallMethod()
457 sb.Append(prefix + TAB).AppendFormat("return %s;\n", errorCodeName_.c_str()); in EmitStubCallMethod()
Dcode_emitter.cpp64 errorCodeName_ = prefix + "Ret"; in Reset()
91 errorCodeName_ = ""; in CleanData()
Dcode_emitter.h144 std::string errorCodeName_; variable