Home
last modified time | relevance | path

Searched refs:SetErrorCode (Results 1 – 25 of 131) sorted by relevance

123456

/ohos5.0/foundation/communication/netmanager_base/frameworks/js/napi/netpolicy/src/
H A Dnetpolicy_exec.cpp34 context->SetErrorCode(result); in ExecSetPolicyByUid()
45 context->SetErrorCode(result); in ExecGetPolicyByUid()
56 context->SetErrorCode(result); in ExecGetUidsByPolicy()
69 context->SetErrorCode(result); in ExecSetBackgroundPolicy()
80 context->SetErrorCode(result); in ExecGetBackgroundPolicy()
92 context->SetErrorCode(result); in ExecGetNetQuotaPolicies()
105 context->SetErrorCode(result); in ExecSetNetQuotaPolicies()
117 context->SetErrorCode(result); in ExecRestoreAllPolicies()
135 context->SetErrorCode(result); in ExecIsUidNetAllowed()
146 context->SetErrorCode(result); in ExecSetDeviceIdleTrustlist()
[all …]
/ohos5.0/foundation/communication/netmanager_base/test/netstatsmanager/unittest/net_stats_manager_test/
H A Dnet_stats_service_proxy_test.cpp139 void SetErrorCode(int errorCode) in SetErrorCode() function in OHOS::NetManagerStandard::__anonfdc0fbe80110::MockNetIRemoteObject
206 remoteObj_->SetErrorCode(NETMANAGER_ERROR);
252 remoteObj_->SetErrorCode(NETMANAGER_ERROR);
289 remoteObj_->SetErrorCode(NETMANAGER_ERROR);
328 remoteObj_->SetErrorCode(NETMANAGER_ERROR);
367 remoteObj_->SetErrorCode(NETMANAGER_ERROR);
406 remoteObj_->SetErrorCode(NETMANAGER_ERROR);
445 remoteObj_->SetErrorCode(NETMANAGER_ERROR);
484 remoteObj_->SetErrorCode(NETMANAGER_ERROR);
523 remoteObj_->SetErrorCode(NETMANAGER_ERROR);
[all …]
/ohos5.0/foundation/communication/netmanager_base/test/netpolicymanager/unittest/net_policy_manager_test/
H A Dnet_policy_callback_proxy_test.cpp88 void SetErrorCode(int errorCode) in SetErrorCode() function in OHOS::NetManagerStandard::__anonfa9788870110::MockNetIRemoteObject
128 remoteObj_->SetErrorCode(NETMANAGER_ERROR);
135 remoteObj_->SetErrorCode(NETMANAGER_SUCCESS);
148 remoteObj_->SetErrorCode(NETMANAGER_ERROR);
155 remoteObj_->SetErrorCode(NETMANAGER_SUCCESS);
168 remoteObj_->SetErrorCode(NETMANAGER_ERROR);
175 remoteObj_->SetErrorCode(NETMANAGER_SUCCESS);
198 remoteObj_->SetErrorCode(NETMANAGER_ERROR);
208 remoteObj_->SetErrorCode(NETMANAGER_SUCCESS);
225 remoteObj_->SetErrorCode(NETMANAGER_ERROR);
[all …]
/ohos5.0/foundation/communication/netmanager_base/frameworks/js/napi/connection/connection_exec/src/
H A Dconnection_exec.cpp121 context->SetErrorCode(ret); in ExecGetDefaultNet()
136 context->SetErrorCode(ret); in ExecHasDefaultNet()
152 context->SetErrorCode(ret); in ExecIsDefaultNetMetered()
168 context->SetErrorCode(ret); in ExecGetNetCapabilities()
183 context->SetErrorCode(ret); in ExecGetConnectionProperties()
195 context->SetErrorCode(ret); in ExecGetAllNets()
217 context->SetErrorCode(res); in ExecEnableAirplaneMode()
232 context->SetErrorCode(res); in ExecDisableAirplaneMode()
250 context->SetErrorCode(res); in ExecReportNetConnected()
268 context->SetErrorCode(res); in ExecReportNetDisconnected()
[all …]
/ohos5.0/foundation/communication/netmanager_base/frameworks/js/napi/netstats/src/
H A Dstatistics_exec.cpp41 context->SetErrorCode(result); in ExecGetCellularRxBytes()
48 context->SetErrorCode(result); in ExecGetCellularTxBytes()
55 context->SetErrorCode(result); in ExecGetAllRxBytes()
62 context->SetErrorCode(result); in ExecGetAllTxBytes()
69 context->SetErrorCode(result); in ExecGetUidRxBytes()
76 context->SetErrorCode(result); in ExecGetUidTxBytes()
83 context->SetErrorCode(result); in ExecGetIfaceRxBytes()
90 context->SetErrorCode(result); in ExecGetIfaceTxBytes()
98 context->SetErrorCode(result); in ExecGetIfaceStats()
107 context->SetErrorCode(result); in ExecGetIfaceUidStats()
[all …]
/ohos5.0/foundation/communication/netmanager_ext/frameworks/js/napi/vpn/src/
H A Dvpn_exec.cpp47 context->SetErrorCode(result); in ExecPrepare()
62 context->SetErrorCode(result); in ExecSetUp()
77 context->SetErrorCode(result); in ExecProtect()
92 context->SetErrorCode(result); in ExecDestroy()
103 context->SetErrorCode(result); in ExecAddSysVpnConfig()
113 context->SetErrorCode(result); in ExecDeleteSysVpnConfig()
123 context->SetErrorCode(result); in ExecGetSysVpnConfigList()
133 context->SetErrorCode(result); in ExecGetSysVpnConfig()
143 context->SetErrorCode(result); in ExecGetConnectedSysVpnConfig()
/ohos5.0/foundation/communication/netmanager_ext/frameworks/js/napi/sharing/src/
H A Dnetshare_exec.cpp33 context->SetErrorCode(result); in ExecIsSharingSupported()
51 context->SetErrorCode(result); in ExecIsSharing()
69 context->SetErrorCode(result); in ExecStartSharing()
86 context->SetErrorCode(result); in ExecStopSharing()
104 context->SetErrorCode(result); in ExecGetSharingIfaces()
130 context->SetErrorCode(result); in ExecGetSharingState()
149 context->SetErrorCode(result); in ExecGetSharableRegexes()
173 context->SetErrorCode(result); in ExecGetStatsRxBytes()
191 context->SetErrorCode(result); in ExecGetStatsTxBytes()
209 context->SetErrorCode(result); in ExecGetStatsTotalBytes()
/ohos5.0/foundation/communication/netmanager_ext/frameworks/js/napi/mdns/src/
H A Dmdns_exec.cpp33 context->SetErrorCode(ret); in ExecAddLocalService()
45 context->SetErrorCode(ret); in ExecRemoveLocalService()
57 context->SetErrorCode(ret); in ExecResolveLocalService()
65 context->SetErrorCode(NET_MDNS_ERR_UNKNOWN); in ExecResolveLocalService()
71 context->SetErrorCode(NET_MDNS_ERR_TIMEOUT); in ExecResolveLocalService()
77 context->SetErrorCode(observer->retCode_); in ExecResolveLocalService()
99 context->SetErrorCode(ret); in ExecStartSearchingMDNS()
122 context->SetErrorCode(ret); in ExecStopSearchingMDNS()
/ohos5.0/foundation/communication/netmanager_ext/frameworks/js/napi/netfirewall/src/context/
H A Dget_all_intercept_records_context.cpp46 SetErrorCode(FIREWALL_ERR_PARAMETER_ERROR); in ParseParams()
53 SetErrorCode(FIREWALL_ERR_INVALID_PARAMETER); in ParseParams()
60 SetErrorCode(FIREWALL_ERR_INTERNAL); in ParseParams()
65 SetErrorCode(FIREWALL_ERR_INVALID_PARAMETER); in ParseParams()
H A Dget_all_netfirewall_rules_context.cpp46 SetErrorCode(FIREWALL_ERR_PARAMETER_ERROR); in ParseParams()
53 SetErrorCode(FIREWALL_ERR_INVALID_PARAMETER); in ParseParams()
59 SetErrorCode(FIREWALL_ERR_INTERNAL); in ParseParams()
64 SetErrorCode(FIREWALL_ERR_INVALID_PARAMETER); in ParseParams()
H A Dset_netfirewall_policy_context.cpp48 SetErrorCode(FIREWALL_ERR_PARAMETER_ERROR); in ParseParams()
55 SetErrorCode(FIREWALL_ERR_INVALID_PARAMETER); in ParseParams()
62 SetErrorCode(ret); in ParseParams()
69 SetErrorCode(FIREWALL_ERR_INTERNAL); in ParseParams()
H A Dadd_netfirewall_rule_context.cpp45 SetErrorCode(FIREWALL_ERR_PARAMETER_ERROR); in ParseParams()
52 SetErrorCode(ret); in ParseParams()
59 SetErrorCode(FIREWALL_ERR_INTERNAL); in ParseParams()
H A Ddelete_netfirewall_rule_context.cpp46 SetErrorCode(FIREWALL_ERR_PARAMETER_ERROR); in ParseParams()
53 SetErrorCode(FIREWALL_ERR_INVALID_PARAMETER); in ParseParams()
60 SetErrorCode(FIREWALL_ERR_INVALID_PARAMETER); in ParseParams()
H A Dget_netfirewall_rule_context.cpp43 SetErrorCode(FIREWALL_ERR_PARAMETER_ERROR); in ParseParams()
51 SetErrorCode(FIREWALL_ERR_INVALID_PARAMETER); in ParseParams()
56 SetErrorCode(FIREWALL_ERR_INVALID_PARAMETER); in ParseParams()
H A Dupdate_netfirewall_rule_context.cpp46 SetErrorCode(FIREWALL_ERR_PARAMETER_ERROR); in ParseParams()
53 SetErrorCode(ret); in ParseParams()
60 SetErrorCode(FIREWALL_ERR_INTERNAL); in ParseParams()
/ohos5.0/base/security/certificate_manager/interfaces/kits/napi/src/dialog/
H A Dcm_napi_open_dialog.cpp55 bool CmUIExtensionCallback::SetErrorCode(int32_t code) in SetErrorCode() function in CMNapi::CmUIExtensionCallback
73 if (SetErrorCode(releaseCode)) { in OnRelease()
83 if (SetErrorCode(0)) { in OnResult()
91 if (SetErrorCode(0)) { in OnReceive()
100 if (SetErrorCode(errorCode)) { in OnError()
113 if (SetErrorCode(0)) { in OnDestroy()
/ohos5.0/foundation/communication/netmanager_ext/frameworks/js/napi/netfirewall/src/
H A Dnet_firewall_exec.cpp51 context->SetErrorCode(result); in ExecSetNetFirewallPolicy()
77 context->SetErrorCode(result); in ExecGetNetFirewallPolicy()
110 context->SetErrorCode(result); in ExecAddNetFirewallRule()
136 context->SetErrorCode(result); in ExecUpdateNetFirewallRule()
163 context->SetErrorCode(result); in ExecDeleteNetFirewallRule()
190 context->SetErrorCode(result); in ExecGetNetFirewallRules()
231 context->SetErrorCode(result); in ExecGetNetFirewallRule()
259 context->SetErrorCode(result); in ExecGetInterceptRecords()
/ohos5.0/foundation/communication/netmanager_ext/frameworks/js/napi/vpnext/src/
H A Dvpn_exec_ext.cpp47 context->SetErrorCode(result); in ExecPrepare()
62 context->SetErrorCode(result); in ExecSetUp()
77 context->SetErrorCode(result); in ExecProtect()
92 context->SetErrorCode(result); in ExecDestroy()
/ohos5.0/foundation/communication/netstack/frameworks/js/napi/socket/socket_exec/src/
H A Dlocal_socket_exec.cpp326 context->SetErrorCode(errno); in LocalSocketSendEvent()
775 context->SetErrorCode(errno); in ExecLocalSocketBind()
825 context->SetErrorCode(errno); in ExecLocalSocketConnect()
851 context->SetErrorCode(EBADF); in ExecLocalSocketSend()
865 context->SetErrorCode(errno); in ExecLocalSocketClose()
910 context->SetErrorCode(errno); in ExecLocalSocketGetLocalAddress()
931 context->SetErrorCode(errno); in ExecLocalSocketSetExtraOptions()
966 context->SetErrorCode(errno); in ExecLocalSocketGetExtraOptions()
979 context->SetErrorCode(err); in LocalSocketServerBind()
984 context->SetErrorCode(errno); in LocalSocketServerBind()
[all …]
H A Dsocket_exec.cpp86 context->SetErrorCode(errno); \
625 context->SetErrorCode(errno); in TcpSendEvent()
1118 context->SetErrorCode(errno); in CheckSocketFd()
1158 context->SetErrorCode(errno); in GetSocketState()
1196 context->SetErrorCode(errno); in IsAddressAndRetValid()
1218 context->SetErrorCode(errno); in ExecGetRemoteAddress()
1306 context->SetErrorCode(errno); in ExecTcpSetExtraOptions()
1325 context->SetErrorCode(errno); in ExecUdpSetExtraOptions()
1467 context->SetErrorCode(errno); in ExecUdpDropMembership()
1556 context->SetErrorCode(errno); in GetIPv4Address()
[all …]
/ohos5.0/foundation/communication/netmanager_base/frameworks/js/napi/netstats/src/context/
H A Dget_traffic_stats_by_uid_network_context.cpp38 SetErrorCode(NETMANAGER_ERR_PARAMETER_ERROR); in ParseParams()
45 SetErrorCode(NETMANAGER_ERR_PARAMETER_ERROR); in ParseParams()
57 SetErrorCode(NETMANAGER_ERR_INVALID_PARAMETER); in ParseParams()
85 SetErrorCode(NETMANAGER_ERR_PARAMETER_ERROR); in CheckNetworkParams()
105 SetErrorCode(NETMANAGER_ERR_PARAMETER_ERROR); in CheckNetworkParams()
H A Dget_traffic_stats_by_network_context.cpp38 SetErrorCode(NETMANAGER_ERR_PARAMETER_ERROR); in ParseParams()
50 SetErrorCode(NETMANAGER_ERR_INVALID_PARAMETER); in ParseParams()
78 SetErrorCode(NETMANAGER_ERR_PARAMETER_ERROR); in CheckNetworkParams()
98 SetErrorCode(NETMANAGER_ERR_PARAMETER_ERROR); in CheckNetworkParams()
H A Dget_iface_stats_context.cpp37 SetErrorCode(NETMANAGER_ERR_PARAMETER_ERROR); in ParseParams()
48 SetErrorCode(NETMANAGER_ERR_PARAMETER_ERROR); in ParseParams()
61 SetErrorCode(NETMANAGER_ERR_PARAMETER_ERROR); in ParseParams()
/ohos5.0/foundation/communication/netmanager_ext/frameworks/js/napi/ethernet/
H A Dethernet_exec.cpp58 context->SetErrorCode(result); in ExecGetMacAddress()
84 context->SetErrorCode(result); in ExecGetIfaceConfig()
120 context->SetErrorCode(result); in ExecSetIfaceConfig()
136 context->SetErrorCode(result); in ExecIsIfaceActive()
152 context->SetErrorCode(result); in ExecGetAllActiveIfaces()
/ohos5.0/foundation/communication/netmanager_base/frameworks/js/napi/network/network_exec/src/
H A Dnetwork_exec.cpp65 context->SetErrorCode(ret); in ExecGetType()
79 context->SetErrorCode(ret); in ExecGetType()
128 context->SetErrorCode(ret); in ExecSubscribe()
160 context->SetErrorCode(ret); in ExecUnsubscribe()

123456