Home
last modified time | relevance | path

Searched refs:retCode (Results 1 – 25 of 197) sorted by relevance

12345678

/foundation/ai/ai_engine/services/server/communication_adapter/source/
Dsa_server.c85 int retCode = UnParcelDataInfo(request, &dataInfo); in UnParcelClientInfo() local
86 if (retCode == RETCODE_SUCCESS) { in UnParcelClientInfo()
93 return retCode; in UnParcelClientInfo()
115 int retCode = UnParcelDataInfo(request, &dataInfo); in UnParcelAlgorithmInfo() local
116 if (retCode == RETCODE_SUCCESS) { in UnParcelAlgorithmInfo()
123 return retCode; in UnParcelAlgorithmInfo()
146 int retCode = UnParcelClientInfo(req, clientInfo); in UnParcelInfo() local
147 if (retCode != RETCODE_SUCCESS) { in UnParcelInfo()
148 HILOGE("[SaServer]UnParcelClientInfo failed, retCode[%d].", retCode); in UnParcelInfo()
149 return retCode; in UnParcelInfo()
[all …]
/foundation/ai/ai_engine/services/client/client_executor/source/
Dclient_factory.cpp55 int retCode = RETCODE_SUCCESS; in ClientInit() local
57 retCode = InitAiServer(configInfo, clientInfo, algorithmInfo); in ClientInit()
58 if (retCode != RETCODE_SUCCESS) { in ClientInit()
60 clientId_, clientInfo.sessionId, retCode); in ClientInit()
61 return retCode; in ClientInit()
64 retCode = WaitConnection(); in ClientInit()
65 CHK_RET(retCode != RETCODE_SUCCESS, retCode); in ClientInit()
83 int retCode = RETCODE_SUCCESS; in ClientPrepare() local
90 retCode = RegisterCb(clientInfo.sessionId, cb); in ClientPrepare()
91 if (retCode != RETCODE_SUCCESS) { in ClientPrepare()
[all …]
/foundation/ai/ai_engine/services/client/algorithm_sdk/asr/keyword_spotting/source/
Dkws_sdk_impl.cpp73 int32_t retCode = AieClientInit(configInfo_, clientInfo_, algorithmInfo_, nullptr); in Create() local
74 if (retCode != RETCODE_SUCCESS) { in Create()
75 HILOGE("[KWSSdkImpl]AieClientInit failed. Error code[%d]", retCode); in Create()
84 retCode = AieClientPrepare(clientInfo_, algorithmInfo_, inputInfo, outputInfo, nullptr); in Create()
85 if (retCode != RETCODE_SUCCESS) { in Create()
86 HILOGE("[KWSSdkImpl]AieClientPrepare failed. Error code[%d]", retCode); in Create()
94 retCode = EncdecFacade::ProcessDecode(outputInfo, kwsHandle_); in Create()
95 if (retCode != RETCODE_SUCCESS) { in Create()
124 int32_t retCode = pcmIterator_->SetInput(input); in SyncExecute() local
125 if (retCode != RETCODE_SUCCESS) { in SyncExecute()
[all …]
/foundation/ai/ai_engine/services/client/algorithm_sdk/cv/image_classification/source/
Dic_sdk_impl.cpp45 int32_t retCode = AieClientInit(configInfo_, clientInfo_, algorithmInfo_, nullptr); in Create() local
46 if (retCode != RETCODE_SUCCESS) { in Create()
49 HILOGE("[IcSdkImpl]AieClientInit failed. Error code[%d]", retCode); in Create()
60 retCode = AieClientPrepare(clientInfo_, algorithmInfo_, inputInfo, outputInfo, nullptr); in Create()
61 if (retCode != RETCODE_SUCCESS) { in Create()
64 HILOGE("[IcSdkImpl]AieClientPrepare failed. Error code[%d]", retCode); in Create()
74 retCode = EncdecFacade::ProcessDecode(outputInfo, icHandle_); in Create()
75 if (retCode != RETCODE_SUCCESS) { in Create()
99 int32_t retCode = RETCODE_SUCCESS; in OnSyncExecute() local
107 retCode = EncdecFacade::ProcessEncode(inputInfo, icHandle_, offset, tmpImage); in OnSyncExecute()
[all …]
/foundation/communication/netmanager_base/services/netconnmanager/src/stub/
Dnet_interface_callback_proxy.cpp69 int32_t retCode = remote->SendRequest( in OnInterfaceAddressUpdated() local
72 if (retCode != ERR_NONE) { in OnInterfaceAddressUpdated()
73 NETMGR_LOG_E("proxy SendRequest failed, retCode: [%{public}d]", retCode); in OnInterfaceAddressUpdated()
74 return retCode; in OnInterfaceAddressUpdated()
111 int32_t retCode = remote->SendRequest( in OnInterfaceAddressRemoved() local
114 if (retCode != ERR_NONE) { in OnInterfaceAddressRemoved()
115 NETMGR_LOG_E("proxy SendRequest failed, retCode: [%{public}d]", retCode); in OnInterfaceAddressRemoved()
116 return retCode; in OnInterfaceAddressRemoved()
140 …int32_t retCode = remote->SendRequest(static_cast<uint32_t>(InterfaceCallbackInterfaceCode::CMD_ON… in OnInterfaceAdded() local
142 if (retCode != ERR_NONE) { in OnInterfaceAdded()
[all …]
/foundation/ai/ai_engine/services/common/utils/encdec/include/
Dencdec_facade.h57 int retCode = dataEncoder.Init(); in ProcessEncode() local
58 if (retCode != RETCODE_SUCCESS) { in ProcessEncode()
60 return retCode; in ProcessEncode()
62 retCode = dataEncoder.RecursiveEncode(arg, args...); in ProcessEncode()
63 if (retCode != RETCODE_SUCCESS) { in ProcessEncode()
65 return retCode; in ProcessEncode()
67 retCode = dataEncoder.GetSerializedData(dataInfo); in ProcessEncode()
68 if (retCode != RETCODE_SUCCESS) { in ProcessEncode()
70 return retCode; in ProcessEncode()
99 int retCode = dataDecoder.RecursiveDecode(arg, args...); in ProcessDecode() local
[all …]
/foundation/communication/netmanager_ext/frameworks/native/mdnsclient/src/proxy/
Dmdns_event_stub.cpp39 int32_t retCode = 0; in OnRemoteRequest() local
40 if (!data.ReadInt32(retCode)) { in OnRemoteRequest()
46 HandleRegister(*serviceInfo, retCode); in OnRemoteRequest()
48 HandleUnRegister(*serviceInfo, retCode); in OnRemoteRequest()
50 HandleRegisterResult(*serviceInfo, retCode); in OnRemoteRequest()
72 int32_t retCode = 0; in OnRemoteRequest() local
73 if (!data.ReadInt32(retCode)) { in OnRemoteRequest()
79 HandleStartDiscover(*serviceInfo, retCode); in OnRemoteRequest()
81 HandleStopDiscover(*serviceInfo, retCode); in OnRemoteRequest()
83 HandleServiceFound(*serviceInfo, retCode); in OnRemoteRequest()
[all …]
Dmdns_service_proxy.cpp63 int32_t retCode = reply.ReadInt32(); in RegisterService() local
64 if (retCode != NETMANAGER_EXT_SUCCESS) { in RegisterService()
65 NETMGR_EXT_LOG_E("MDnsService::RegisterService return: [%{public}d]", retCode); in RegisterService()
67 return retCode; in RegisterService()
96 int32_t retCode = reply.ReadInt32(); in UnRegisterService() local
97 if (retCode != NETMANAGER_EXT_SUCCESS) { in UnRegisterService()
98 NETMGR_EXT_LOG_E("MDnsService::UnRegisterService return: [%{public}d]", retCode); in UnRegisterService()
100 return retCode; in UnRegisterService()
133 int32_t retCode = reply.ReadInt32(); in StartDiscoverService() local
134 if (retCode != NETMANAGER_EXT_SUCCESS) { in StartDiscoverService()
[all …]
/foundation/ai/ai_engine/services/server/plugin/cv/image_classification/source/
Dic_plugin.cpp134 int32_t retCode = EncdecFacade::ProcessDecode(inputInfo, handle); in Release() local
135 if (retCode != RETCODE_SUCCESS) { in Release()
145 retCode = adapter_->ReleaseHandle(handle); in Release()
146 if (retCode != RETCODE_SUCCESS) { in Release()
152 retCode = adapter_->Deinit(); in Release()
153 if (retCode != RETCODE_SUCCESS) { in Release()
193 int32_t retCode = RETCODE_SUCCESS; in SetOption() local
198 retCode = EncdecFacade::ProcessDecode(inputInfo, handle, tmpUInt32Val); in SetOption()
199 if (retCode != RETCODE_SUCCESS) { in SetOption()
201 return retCode; in SetOption()
[all …]
/foundation/communication/netmanager_ext/interfaces/innerkits/mdnsclient/include/
Di_mdns_event.h30 virtual void HandleRegister(const MDnsServiceInfo &serviceInfo, int32_t retCode) = 0;
31 virtual void HandleUnRegister(const MDnsServiceInfo &serviceInfo, int32_t retCode) = 0;
32 virtual void HandleRegisterResult(const MDnsServiceInfo &serviceInfo, int32_t retCode) = 0;
38 virtual void HandleStartDiscover(const MDnsServiceInfo &serviceInfo, int32_t retCode) = 0;
39 virtual void HandleStopDiscover(const MDnsServiceInfo &serviceInfo, int32_t retCode) = 0;
40 virtual void HandleServiceFound(const MDnsServiceInfo &serviceInfo, int32_t retCode) = 0;
41 virtual void HandleServiceLost(const MDnsServiceInfo &serviceInfo, int32_t retCode) = 0;
47 virtual void HandleResolveResult(const MDnsServiceInfo &serviceInfo, int32_t retCode) = 0;
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/common/include/
Dav_trans_log.h51 …bool retCode = (exec); …
52 …if (retCode) { …
62 …bool retCode = (exec); …
63 …if (retCode) { …
72 …bool retCode = (exec); …
73 …if (retCode) { …
83 …bool retCode = (exec); …
84 …if (retCode) { …
94 …bool retCode = (exec); …
95 …if (retCode) { …
/foundation/communication/netmanager_base/frameworks/native/netpolicyclient/src/proxy/
Dnet_policy_service_proxy.cpp34 int32_t retCode = remote->SendRequest(code, data, reply, option); in SendRequest() local
35 if (retCode != NETMANAGER_SUCCESS) { in SendRequest()
96 int32_t retCode = in GetPolicyByUid() local
98 if (retCode != 0) { in GetPolicyByUid()
99 NETMGR_LOG_E("proxy SendRequest failed, error code: [%{public}d]", retCode); in GetPolicyByUid()
100 return retCode; in GetPolicyByUid()
108 return retCode; in GetPolicyByUid()
132 …int32_t retCode = SendRequest(remote, static_cast<uint32_t>(PolicyInterfaceCode::CMD_NPS_GET_UIDS_… in GetUidsByPolicy() local
134 if (retCode != 0) { in GetUidsByPolicy()
135 NETMGR_LOG_E("proxy SendRequest failed, error code: [%{public}d]", retCode); in GetUidsByPolicy()
[all …]
/foundation/communication/netmanager_ext/frameworks/js/napi/mdns/src/
Dmdns_callback_observer.cpp28 static int32_t ErrorCodeTrans(int32_t retCode) in ErrorCodeTrans() argument
30 NETMANAGER_EXT_LOGE("ErrorCodeTrans init value %{public}d", retCode); in ErrorCodeTrans()
31 switch (retCode) { in ErrorCodeTrans()
41 void MDnsRegistrationObserver::HandleRegister(const MDnsServiceInfo &serviceInfo, int32_t retCode) … in HandleRegister() argument
43 void MDnsRegistrationObserver::HandleUnRegister(const MDnsServiceInfo &serviceInfo, int32_t retCode in HandleUnRegister() argument
45 …sRegistrationObserver::HandleRegisterResult(const MDnsServiceInfo &serviceInfo, int32_t retCode) {} in HandleRegisterResult() argument
47 void MDnsDiscoveryObserver::HandleStartDiscover(const MDnsServiceInfo &serviceInfo, int32_t retCode in HandleStartDiscover() argument
49 void MDnsDiscoveryObserver::HandleStopDiscover(const MDnsServiceInfo &serviceInfo, int32_t retCode)… in HandleStopDiscover() argument
51 void MDnsDiscoveryObserver::EmitStartDiscover(const MDnsServiceInfo &serviceInfo, int32_t retCode) in EmitStartDiscover() argument
63 if (retCode == 0) { in EmitStartDiscover()
[all …]
/foundation/ai/ai_engine/services/common/platform/threadpool/source/
Daie_thread_unix.cpp32 errno_t retCode = memset_s(&tr, sizeof(PthreadData), 0, sizeof(PthreadData)); in InitThread() local
33 if (retCode != EOK) { in InitThread()
34 HILOGE("[AieThreadUnix]Failed to memory set, retCode[%d].", retCode); in InitThread()
72 int retCode = pthread_attr_init(&pthreadAttr); in CreateOneThread() local
73 if (retCode != 0) { in CreateOneThread()
74 HILOGE("[AieThreadUnix]Failed to run pthread_attr_init, retCode[%d].", retCode); in CreateOneThread()
75 return retCode; in CreateOneThread()
89 retCode = pthread_create(&(pthreadHandleT->handle), &pthreadAttr, func, param); in CreateOneThread()
91 return retCode; in CreateOneThread()
/foundation/ai/ai_engine/services/server/server_executor/source/
Dengine_worker.cpp37 int retCode = queue.PopFront(task); in ClearQueue() local
38 if (retCode != RETCODE_SUCCESS) { in ClearQueue()
58 int retCode = queue_.PopFront(task); in OneAction() local
59 if (retCode != RETCODE_SUCCESS) { in OneAction()
60 HILOGE("[EngineWorker]Fetch task from queue failed. error code is [%d].", retCode); in OneAction()
69 retCode = task.handler->Process(task); in OneAction()
70 if (retCode != RETCODE_SUCCESS) { in OneAction()
Dengine_manager.cpp68 int retCode = CreateEngineWithCheck(engineKey, engine); in StartEngine() local
69 if (retCode != RETCODE_SUCCESS) { in StartEngine()
71 transactionId, retCode); in StartEngine()
72 return retCode; in StartEngine()
80 int retCode = plugin->GetPluginAlgorithm()->Prepare(transactionId, inputInfo, outputInfo); in StartEngine() local
81 if (retCode != RETCODE_SUCCESS) { in StartEngine()
83 return retCode; in StartEngine()
106 int retCode = plugin->GetPluginAlgorithm()->Release(isFullUnload, transactionId, inputInfo); in StopEngine() local
107 if (retCode != RETCODE_SUCCESS) { in StopEngine()
109 return retCode; in StopEngine()
[all …]
/foundation/communication/netmanager_ext/services/mdnsmanager/include/stub/
Dmdns_event_proxy.h30 void HandleRegister(const MDnsServiceInfo &serviceInfo, int32_t retCode) override;
31 void HandleUnRegister(const MDnsServiceInfo &serviceInfo, int32_t retCode) override;
32 void HandleRegisterResult(const MDnsServiceInfo &serviceInfo, int32_t retCode) override;
43 void HandleStartDiscover(const MDnsServiceInfo &serviceInfo, int32_t retCode) override;
44 void HandleStopDiscover(const MDnsServiceInfo &serviceInfo, int32_t retCode) override;
45 void HandleServiceFound(const MDnsServiceInfo &serviceInfo, int32_t retCode) override;
46 void HandleServiceLost(const MDnsServiceInfo &serviceInfo, int32_t retCode) override;
57 void HandleResolveResult(const MDnsServiceInfo &serviceInfo, int32_t retCode) override;
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_p2p/
Dp2p_enabled_state.cpp166 WifiErrorNo retCode = WifiP2PHalInterface::GetInstance().P2pStopFind(); in ProcessCmdStopDiscPeer() local
167 if (retCode == WifiErrorNo::WIFI_IDL_OPT_OK) { in ProcessCmdStopDiscPeer()
254 WifiErrorNo retCode = WifiP2PHalInterface::GetInstance().SetP2pDeviceName(deviceName); in P2pConfigInitialization() local
255 if (retCode == WifiErrorNo::WIFI_IDL_OPT_FAILED) { in P2pConfigInitialization()
260 retCode = WifiP2PHalInterface::GetInstance().SetP2pSsidPostfix(ssidPostfixName); in P2pConfigInitialization()
261 if (retCode == WifiErrorNo::WIFI_IDL_OPT_FAILED) { in P2pConfigInitialization()
267 retCode = WifiP2PHalInterface::GetInstance().SetP2pDeviceType(primaryDeviceType); in P2pConfigInitialization()
268 if (retCode == WifiErrorNo::WIFI_IDL_OPT_FAILED) { in P2pConfigInitialization()
278 retCode = WifiP2PHalInterface::GetInstance().SetP2pSecondaryDeviceType(secDeviceType); in P2pConfigInitialization()
279 if (retCode == WifiErrorNo::WIFI_IDL_OPT_FAILED) { in P2pConfigInitialization()
[all …]
/foundation/multimedia/media_lite/interfaces/kits/player_lite/js/builtin/src/
Daudio_player.cpp103 …int retCode = pthread_create(&threadId, &attr, AudioPlayerCallback::PlaybackCompleteHandler, audio… in OnPlaybackComplete() local
104 if (retCode != 0) { in OnPlaybackComplete()
105 MEDIA_ERR_LOG("fork thread failed: %d.", retCode); in OnPlaybackComplete()
160 int retCode = pthread_mutex_init(&lock_, nullptr); in ForkUpdateTimeThread() local
161 if (retCode != 0) { in ForkUpdateTimeThread()
162 MEDIA_ERR_LOG("init mutex lock failed: %d.", retCode); in ForkUpdateTimeThread()
165 retCode = pthread_cond_init(&condition_, nullptr); in ForkUpdateTimeThread()
166 if (retCode != 0) { in ForkUpdateTimeThread()
167 MEDIA_ERR_LOG("init condition failed: %d.", retCode); in ForkUpdateTimeThread()
171 retCode = pthread_create(&threadId, nullptr, AudioPlayer::UpdateTimeHandler, this); in ForkUpdateTimeThread()
[all …]
/foundation/communication/dsoftbus/tests/sdk/bus_center/demo/bus_center/
Djoin_lnn_demo.c32 static void OnJoinLnnDone(ConnectionAddr *addr, const char *networkId, int32_t retCode) in OnJoinLnnDone() argument
38 if (retCode == 0) { in OnJoinLnnDone()
45 printf("[demo]OnJoinLnnDone failed, retCode = %d\n", retCode); in OnJoinLnnDone()
50 static void OnLeaveLnnDone(const char *networkId, int32_t retCode) in OnLeaveLnnDone() argument
52 if (retCode == 0) { in OnLeaveLnnDone()
55 printf("[demo]OnLeaveLnnDone failed, retCode = %d\n", retCode); in OnLeaveLnnDone()
/foundation/communication/netmanager_ext/frameworks/js/napi/mdns/include/
Dmdns_callback_observer.h40 void HandleRegister(const MDnsServiceInfo &serviceInfo, int32_t retCode) override;
41 void HandleUnRegister(const MDnsServiceInfo &serviceInfo, int32_t retCode) override;
42 void HandleRegisterResult(const MDnsServiceInfo &serviceInfo, int32_t retCode) override;
49 void HandleStartDiscover(const MDnsServiceInfo &serviceInfo, int32_t retCode) override;
50 void HandleStopDiscover(const MDnsServiceInfo &serviceInfo, int32_t retCode) override;
51 void HandleServiceFound(const MDnsServiceInfo &serviceInfo, int32_t retCode) override;
52 void HandleServiceLost(const MDnsServiceInfo &serviceInfo, int32_t retCode) override;
54 void EmitStartDiscover(const MDnsServiceInfo &serviceInfo, int32_t retCode);
55 void EmitStopDiscover(const MDnsServiceInfo &serviceInfo, int32_t retCode);
90 void HandleResolveResult(const MDnsServiceInfo &serviceInfo, int32_t retCode) override;
/foundation/communication/dsoftbus/tests/core/bus_center/lnn/ipc/
Dbus_center_client_proxy_standard_test.cpp102 int32_t retCode = 0; variable
105 …t = clientProxy->BusCenterClientProxy::OnJoinMetaNodeResult(addr, addrTypeLen, networkId, retCode);
107 retCode = 1;
108 …lientProxy->BusCenterClientProxy::OnJoinMetaNodeResult(addr, addrTypeLen, networkIdValue, retCode);
110 …roxy->BusCenterClientProxy::OnJoinMetaNodeResult(&addrValue, addrTypeLen, networkIdValue, retCode);
125 int32_t retCode = 0; variable
127 int32_t ret = clientProxy->BusCenterClientProxy::OnLeaveMetaNodeResult(networkId, retCode);
129 ret = clientProxy->BusCenterClientProxy::OnLeaveMetaNodeResult(networkIdValue, retCode);
/foundation/bundlemanager/bundle_framework/test/fuzztest/parse_fuzzer/
Dparse_fuzzer.cpp28 int retCode = 0; variable
42 retCode = fputs(reinterpret_cast<const char*>(data), pFile); in DoSomethingInterestingWithMyAPI()
43 if (retCode != FILE_RETURN_SUCCESS) { in DoSomethingInterestingWithMyAPI()
47 retCode = fclose(pFile); in DoSomethingInterestingWithMyAPI()
48 if (retCode != FILE_RETURN_SUCCESS) { in DoSomethingInterestingWithMyAPI()
/foundation/multimedia/camera_framework/frameworks/native/camera/src/input/
Dcamera_manager.cpp145 int32_t retCode = CAMERA_OK; in CreateCaptureSession() local
152 retCode = serviceProxy_->CreateCaptureSession(session); in CreateCaptureSession()
153 if (retCode == CAMERA_OK) { in CreateCaptureSession()
161 … MEDIA_ERR_LOG("Failed to get capture session object from hcamera service!, %{public}d", retCode); in CreateCaptureSession()
162 return ServiceToCameraError(retCode); in CreateCaptureSession()
195 int32_t retCode = CAMERA_OK; in CreatePhotoOutput() local
211 retCode = serviceProxy_->CreatePhotoOutput(surface, metaFormat, profile.GetSize().width, in CreatePhotoOutput()
213 if (retCode == CAMERA_OK) { in CreatePhotoOutput()
218 … MEDIA_ERR_LOG("Failed to get stream capture object from hcamera service!, %{public}d", retCode); in CreatePhotoOutput()
219 return ServiceToCameraError(retCode); in CreatePhotoOutput()
[all …]
/foundation/bundlemanager/bundle_framework/test/fuzztest/parsesyscap_fuzzer/
Dparsesyscap_fuzzer.cpp29 int retCode = 0; variable
44 retCode = fputs(info.c_str(), pFile); in DoSomethingInterestingWithMyAPI()
45 if (retCode != FILE_RETURN_SUCCESS) { in DoSomethingInterestingWithMyAPI()
49 retCode = fclose(pFile); in DoSomethingInterestingWithMyAPI()
50 if (retCode != FILE_RETURN_SUCCESS) { in DoSomethingInterestingWithMyAPI()

12345678