Home
last modified time | relevance | path

Searched refs:objName (Results 1 - 25 of 26) sorted by relevance

12

/foundation/ability/idl_tool/idl_tool_2/codegen/HDI/cpp/
H A Dcpp_service_driver_code_emitter.cpp110 std::string objName = StringHelper::Format("hdf%sHost", baseName_.c_str()); in EmitDriverDispatch() local
115 sb.Append(TAB).AppendFormat("auto *%s = CONTAINER_OF(", objName.c_str()); in EmitDriverDispatch()
132 "return %s->stub->SendRequest(cmdId, *dataParcel, *replyParcel, option);\n", objName.c_str()); in EmitDriverDispatch()
147 std::string objName = StringHelper::Format("hdf%sHost", baseName_.c_str()); in EmitDriverBind() local
152 sb.Append(TAB).AppendFormat("auto *%s = new (std::nothrow) Hdf%sHost;\n", objName.c_str(), baseName_.c_str()); in EmitDriverBind()
153 sb.Append(TAB).AppendFormat("if (%s == nullptr) {\n", objName.c_str()); in EmitDriverBind()
159 sb.Append(TAB).AppendFormat("%s->ioService.Dispatch = %sDriverDispatch;\n", objName.c_str(), baseName_.c_str()); in EmitDriverBind()
160 sb.Append(TAB).AppendFormat("%s->ioService.Open = NULL;\n", objName.c_str()); in EmitDriverBind()
161 sb.Append(TAB).AppendFormat("%s->ioService.Release = NULL;\n\n", objName.c_str()); in EmitDriverBind()
167 sb.Append(TAB).Append(TAB).AppendFormat("delete %s;\n", objName in EmitDriverBind()
188 std::string objName = StringHelper::Format("hdf%sHost", baseName_.c_str()); EmitDriverRelease() local
[all...]
H A Dcpp_custom_types_code_emitter.cpp183 std::string objName("dataBlock"); in EmitCustomTypeMarshallFuncDecl()
185 typeEmitter->EmitCppType().c_str(), objName.c_str()); in EmitCustomTypeMarshallFuncDecl()
187 typeEmitter->EmitCppType().c_str(), objName.c_str()); in EmitCustomTypeMarshallFuncDecl()
254 std::string objName("dataBlock"); in EmitCustomTypeMarshallingImpl()
257 typeName.c_str(), objName.c_str()); in EmitCustomTypeMarshallingImpl()
262 objName.c_str(), typeName.c_str()); in EmitCustomTypeMarshallingImpl()
268 std::string name = StringHelper::Format("%s.%s", objName.c_str(), memberName.c_str()); in EmitCustomTypeMarshallingImpl()
284 std::string objName("dataBlock"); in EmitCustomTypeUnmarshallingImpl()
287 typeName.c_str(), objName.c_str()); in EmitCustomTypeUnmarshallingImpl()
291 std::string objPtrName = StringHelper::Format("%sPtr", objName in EmitCustomTypeUnmarshallingImpl()
[all...]
H A Dcpp_client_proxy_code_emitter.cpp468 std::string objName = "proxy"; in EmitGetInstanceMethodImpl() local
488 EmitDefinitionByInterface(interface_, proxyName_).c_str(), objName.c_str(), in EmitGetInstanceMethodImpl()
492 sb.Append(prefix + TAB).AppendFormat("if (%s == nullptr) {\n", objName.c_str()); in EmitGetInstanceMethodImpl()
501 std::string objName = "proxy"; in EmitGetInstanceMethodInitProxyImpl() local
504 sb.Append(prefix + TAB).AppendFormat("%s->servMgr_ = ", objName.c_str()); in EmitGetInstanceMethodInitProxyImpl()
506 sb.Append(prefix + TAB).AppendFormat("%s->deathRecipient_ = new %s::%s(%s);\n", objName.c_str(), in EmitGetInstanceMethodInitProxyImpl()
508 devmgrDeathRecipientName_.c_str(), objName.c_str()); in EmitGetInstanceMethodInitProxyImpl()
510 objName.c_str(), objName.c_str()); in EmitGetInstanceMethodInitProxyImpl()
511 sb.Append(prefix + TAB).AppendFormat("%s->isReconnected_ = false;\n", objName in EmitGetInstanceMethodInitProxyImpl()
[all...]
/foundation/ability/idl_tool/idl_tool_2/codegen/HDI/c/
H A Dc_custom_types_code_emitter.cpp170 std::string objName("dataBlock"); in EmitCustomTypeMarshallFuncDecl()
172 typeEmitter->EmitCType().c_str(), objName.c_str()); in EmitCustomTypeMarshallFuncDecl()
174 typeEmitter->EmitCType().c_str(), objName.c_str()); in EmitCustomTypeMarshallFuncDecl()
176 typeEmitter->EmitCType().c_str(), objName.c_str()); in EmitCustomTypeMarshallFuncDecl()
240 std::string objName("dataBlock"); in EmitCustomTypeMarshallingImpl()
242 typeName.c_str(), objName.c_str()); in EmitCustomTypeMarshallingImpl()
244 EmitMarshallingVarDecl(type, objName, sb, TAB); in EmitCustomTypeMarshallingImpl()
245 EmitParamCheck(objName, sb, TAB); in EmitCustomTypeMarshallingImpl()
250 objName.c_str(), typeName.c_str()); in EmitCustomTypeMarshallingImpl()
253 objName in EmitCustomTypeMarshallingImpl()
[all...]
H A Dc_service_impl_code_emitter.cpp354 std::string objName = "service"; in EmitKernelServiceImplGetMethod() local
358 implName_.c_str(), objName.c_str(), implName_.c_str(), implName_.c_str()); in EmitKernelServiceImplGetMethod()
359 sb.Append(TAB).AppendFormat("if (%s == NULL) {\n", objName.c_str()); in EmitKernelServiceImplGetMethod()
364 sb.Append(TAB).AppendFormat("if (!%sStubConstruct(&%s->stub)) {\n", baseName_.c_str(), objName.c_str()); in EmitKernelServiceImplGetMethod()
367 sb.Append(TAB).Append(TAB).AppendFormat("OsalMemFree(%s);\n", objName.c_str()); in EmitKernelServiceImplGetMethod()
372 sb.Append(TAB).AppendFormat("%s->stub.interface.%s = %s%s;\n", objName.c_str(), method->GetName().c_str(), in EmitKernelServiceImplGetMethod()
376 sb.Append(TAB).AppendFormat("return service;\n", objName.c_str()); in EmitKernelServiceImplGetMethod()
382 std::string objName = "service"; in EmitServiceImplGetMethod() local
391 implName_.c_str(), objName.c_str(), implName_.c_str(), implName_.c_str()); in EmitServiceImplGetMethod()
392 sb.Append(TAB).AppendFormat("if (%s == NULL) {\n", objName in EmitServiceImplGetMethod()
[all...]
H A Dc_client_proxy_code_emitter.cpp477 std::string objName = "impl"; in EmitProxyConstruction() local
479 "static void %sProxyConstruct(struct %s *%s)\n", baseName_.c_str(), interfaceName_.c_str(), objName.c_str()); in EmitProxyConstruction()
483 sb.Append(TAB).AppendFormat("%s->%s = %sProxy%s;\n", objName.c_str(), method->GetName().c_str(), in EmitProxyConstruction()
488 sb.Append(TAB).AppendFormat("%s->%s = %sProxy%s;\n", objName.c_str(), getVerMethod->GetName().c_str(), in EmitProxyConstruction()
492 sb.Append(TAB).AppendFormat("%s->AsObject = %sProxyAsObject;\n", objName.c_str(), baseName_.c_str()); in EmitProxyConstruction()
532 std::string objName = "client"; in EmitKernelProxyGetInstanceMethodImpl() local
542 EmitProxyCreateProxyObject(objName, remoteName, "HdfIoServiceRecycle", sb, TAB); in EmitKernelProxyGetInstanceMethodImpl()
544 EmitProxyCheckVersion(objName, serMajorName, serMinorName, sb, TAB); in EmitKernelProxyGetInstanceMethodImpl()
546 sb.Append(TAB).AppendFormat("return %s;\n", objName.c_str()); in EmitKernelProxyGetInstanceMethodImpl()
584 std::string objName in EmitIfaceProxyGetMethodImpl() local
670 std::string objName = "client"; EmitProxyGetInstanceMethodImpl() local
[all...]
H A Dc_service_stub_code_emitter.cpp598 std::string objName = "self"; in EmitStubAsObjectMethodImpl() local
600 interfaceName_.c_str(), objName.c_str()); in EmitStubAsObjectMethodImpl()
604 sb.Append(prefix + TAB).AppendFormat("if (%s == NULL) {\n", objName.c_str()); in EmitStubAsObjectMethodImpl()
609 objName.c_str(), baseName_.c_str()); in EmitStubAsObjectMethodImpl()
651 std::string objName = "stub"; in EmitKernelStubConstruct() local
655 "bool %sConstruct(struct %s *%s)\n", stubTypeName.c_str(), stubTypeName.c_str(), objName.c_str()); in EmitKernelStubConstruct()
657 sb.Append(TAB).AppendFormat("if (%s == NULL) {\n", objName.c_str()); in EmitKernelStubConstruct()
661 sb.Append(TAB).AppendFormat("%s->OnRemoteRequest = %s;\n", objName.c_str(), funcName.c_str()); in EmitKernelStubConstruct()
/foundation/ability/ability_runtime/frameworks/js/napi/featureAbility/
H A Dfeature_ability_constant.cpp67 void SetNamedProperty(napi_env env, napi_value dstObj, const char *objName, const char *propName) in SetNamedProperty() argument
71 napi_create_string_utf8(env, objName, NAPI_AUTO_LENGTH, &prop); in SetNamedProperty()
H A Dfeature_ability_constant.h33 void SetNamedProperty(napi_env env, napi_value dstObj, const char *objName, const char *propName);
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/default_app/
H A Dnative_module.cpp26 static void SetNamedProperty(napi_env env, napi_value dstObj, const char *objName, const char *propName) in SetNamedProperty() argument
29 NAPI_CALL_RETURN_VOID(env, napi_create_string_utf8(env, objName, NAPI_AUTO_LENGTH, &prop)); in SetNamedProperty()
/foundation/resourceschedule/background_task_mgr/interfaces/kits/napi/src/
H A Dinit.cpp47 void SetNamedPropertyByInteger(napi_env env, napi_value dstObj, int32_t objName, const char *propName) in SetNamedPropertyByInteger() argument
50 if (napi_create_int32(env, objName, &prop) == napi_ok) { in SetNamedPropertyByInteger()
H A Dinit_bgtaskmgr.cpp50 void SetNamedPropertyByInteger(napi_env env, napi_value dstObj, int32_t objName, const char *propName) in SetNamedPropertyByInteger() argument
53 if (napi_create_int32(env, objName, &prop) == napi_ok) { in SetNamedPropertyByInteger()
/foundation/resourceschedule/device_standby/interfaces/kits/napi/src/
H A Dinit.cpp39 void SetNamedPropertyByInteger(napi_env env, napi_value dstObj, int32_t objName, const char *propName) in SetNamedPropertyByInteger() argument
42 if (napi_create_int32(env, objName, &prop) == napi_ok) { in SetNamedPropertyByInteger()
/foundation/ability/ability_runtime/frameworks/js/napi/wantConstant/
H A Dwant_constant.h34 void SetNamedProperty(napi_env env, napi_value dstObj, const char *objName, const char *propName);
H A Dwant_constant.cpp146 void SetNamedProperty(napi_env env, napi_value dstObj, const char *objName, const char *propName) in SetNamedProperty() argument
150 napi_create_string_utf8(env, objName, NAPI_AUTO_LENGTH, &prop); in SetNamedProperty()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_web_controller.cpp964 std::string objName; in AddJavascriptInterface() local
965 if (!ConvertFromJSValue(obj->GetProperty("name"), objName)) { in AddJavascriptInterface()
973 if (objectorMap_.find(objName) == objectorMap_.end()) { in AddJavascriptInterface()
974 objectorMap_[objName] = JSRef<JSObject>::Cast(jsClassObj); in AddJavascriptInterface()
989 webController_->AddJavascriptInterface(objName, methods); in AddJavascriptInterface()
1015 std::string objName; in SetJavascriptInterface() local
1016 if (!ConvertFromJSValue(obj->GetProperty("name"), objName)) { in SetJavascriptInterface()
1024 objectorMap_[objName] = JSRef<JSObject>::Cast(jsClassObj); in SetJavascriptInterface()
1051 methods_[objName] = methods; in SetJavascriptInterface()
1064 std::string objName; in RemoveJavascriptInterface() local
[all...]
/foundation/resourceschedule/background_task_mgr/interfaces/kits/napi/include/
H A Dinit_bgtaskmgr.h29 void SetNamedPropertyByInteger(napi_env env, napi_value dstObj, int32_t objName, const char *propName);
H A Dinit.h29 void SetNamedPropertyByInteger(napi_env env, napi_value dstObj, int32_t objName, const char *propName);
/foundation/resourceschedule/device_standby/interfaces/kits/napi/include/
H A Dinit.h29 void SetNamedPropertyByInteger(napi_env env, napi_value dstObj, int32_t objName, const char *propName);
/foundation/communication/wifi/wifi/frameworks/js/napi/src/
H A Dwifi_napi_utils.cpp425 void SetNamedPropertyByInteger(napi_env env, napi_value dstObj, int32_t objName, const char *propName) in SetNamedPropertyByInteger() argument
428 if (napi_create_int32(env, objName, &prop) == napi_ok) { in SetNamedPropertyByInteger()
/foundation/arkui/ace_engine/interfaces/napi/kits/plugincomponent/
H A Djs_plugin_util.h80 void AceSetNamedPropertyByString(napi_env env, napi_value jsObject, const char* objName, const char* propName);
H A Djs_plugin_util.cpp1091 void AceSetNamedPropertyByString(napi_env env, napi_value jsObject, const char* objName, const char* propName) in AceSetNamedPropertyByString() argument
1094 napi_create_string_utf8(env, objName, NAPI_AUTO_LENGTH, &prop); in AceSetNamedPropertyByString()
/foundation/communication/wifi/wifi/frameworks/js/napi/inc/
H A Dwifi_napi_utils.h119 void SetNamedPropertyByInteger(napi_env, napi_value dstObj, int32_t objName, const char *propName);
/foundation/communication/bluetooth/frameworks/js/napi/src/common/
H A Dnapi_bluetooth_utils.cpp252 void SetNamedPropertyByInteger(napi_env env, napi_value dstObj, int32_t objName, const char *propName) in SetNamedPropertyByInteger() argument
255 if (napi_create_int32(env, objName, &prop) == napi_ok) { in SetNamedPropertyByInteger()
/foundation/communication/bluetooth/frameworks/js/napi/include/
H A Dnapi_bluetooth_utils.h109 void SetNamedPropertyByInteger(napi_env env, napi_value dstObj, int32_t objName, const char *propName);

Completed in 17 milliseconds

12