Home
last modified time | relevance | path

Searched refs:LnnGetLocalStrInfo (Results 1 – 25 of 89) sorted by relevance

1234

/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/unittest/
H A Dledger_lane_hub_test.cpp201 ret = LnnGetLocalStrInfo(STRING_KEY_DEV_UDID, des, LOCAL_MAX_SIZE); in GetCommonLocalInfo()
203 ret = LnnGetLocalStrInfo(STRING_KEY_NETWORKID, des, LOCAL_MAX_SIZE); in GetCommonLocalInfo()
205 ret = LnnGetLocalStrInfo(STRING_KEY_UUID, des, LOCAL_MAX_SIZE); in GetCommonLocalInfo()
207 ret = LnnGetLocalStrInfo(STRING_KEY_DEV_TYPE, des, LOCAL_MAX_SIZE); in GetCommonLocalInfo()
209 ret = LnnGetLocalStrInfo(STRING_KEY_DEV_NAME, des, LOCAL_MAX_SIZE); in GetCommonLocalInfo()
217 ret = LnnGetLocalStrInfo(STRING_KEY_BT_MAC, des, LOCAL_MAX_SIZE); in GetBTLocalInfo()
343 EXPECT_TRUE(LnnGetLocalStrInfo(NUM_KEY_AUTH_PORT, nodeInfo, len) == SOFTBUS_INVALID_PARAM);
345 EXPECT_TRUE(LnnGetLocalStrInfo(NUM_KEY_PROXY_PORT, nodeInfo, len) == SOFTBUS_INVALID_PARAM);
346 EXPECT_TRUE(LnnGetLocalStrInfo(NUM_KEY_NET_CAP, nodeInfo, len) == SOFTBUS_INVALID_PARAM);
350 EXPECT_TRUE(LnnGetLocalStrInfo(NUM_KEY_P2P_ROLE, nodeInfo, len) == SOFTBUS_INVALID_PARAM);
[all …]
H A Dnet_buscenter_test.cpp209 EXPECT_TRUE(LnnGetLocalStrInfo(STRING_KEY_WLAN_IP, ipAddr, IP_LEN) == SOFTBUS_OK);
225 EXPECT_TRUE(LnnGetLocalStrInfo(STRING_KEY_WLAN_IP, ipAddr, IP_LEN) == SOFTBUS_OK);
240 EXPECT_TRUE(LnnGetLocalStrInfo(STRING_KEY_WLAN_IP, ipAddr, IP_LEN) == SOFTBUS_OK);
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/common/src/
H A Dlnn_net_ledger.c236 return LnnGetLocalStrInfo(STRING_KEY_DEV_UDID, (char *)info, infoLen); in LnnGetNodeKeyInfoLocal()
238 return LnnGetLocalStrInfo(STRING_KEY_UUID, (char *)info, infoLen); in LnnGetNodeKeyInfoLocal()
240 return LnnGetLocalStrInfo(STRING_KEY_MASTER_NODE_UDID, (char *)info, infoLen); in LnnGetNodeKeyInfoLocal()
242 return LnnGetLocalStrInfo(STRING_KEY_BT_MAC, (char *)info, infoLen); in LnnGetNodeKeyInfoLocal()
244 return LnnGetLocalStrInfo(STRING_KEY_WLAN_IP, (char *)info, infoLen); in LnnGetNodeKeyInfoLocal()
246 return LnnGetLocalStrInfo(STRING_KEY_DEV_NAME, (char *)info, infoLen); in LnnGetNodeKeyInfoLocal()
248 return LnnGetLocalStrInfo(STRING_KEY_OFFLINE_CODE, (char *)info, infoLen); in LnnGetNodeKeyInfoLocal()
256 return LnnGetLocalStrInfo(STRING_KEY_NODE_ADDR, (char *)info, infoLen); in LnnGetNodeKeyInfoLocal()
258 return LnnGetLocalStrInfo(STRING_KEY_P2P_IP, (char *)info, infoLen); in LnnGetNodeKeyInfoLocal()
316 … if (LnnGetLocalStrInfo(STRING_KEY_NETWORKID, localNetworkId, NETWORK_ID_BUF_LEN) != SOFTBUS_OK) { in LnnGetNodeKeyInfo()
[all …]
/ohos5.0/foundation/communication/dsoftbus/tests/core/discovery/ble/softbus_ble_mock/
H A Dbus_center_mock.cpp22 int32_t LnnGetLocalStrInfo(InfoKey key, char *info, uint32_t len) in LnnGetLocalStrInfo() function
24 return BusCenterMock::GetMock()->LnnGetLocalStrInfo(key, info, len); in LnnGetLocalStrInfo()
114 … EXPECT_CALL(*this, LnnGetLocalStrInfo).WillRepeatedly(BusCenterMock::ActionOfLnnGetLocalStrInfo); in SetupSuccessStub()
H A Dbus_center_mock.h29 virtual int32_t LnnGetLocalStrInfo(InfoKey key, char *info, uint32_t len) = 0;
50 MOCK_METHOD(int32_t, LnnGetLocalStrInfo, (InfoKey key, char *info, uint32_t len), (override));
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_buscenter/
H A Dlnn_ip_network_impl_test.cpp131 EXPECT_CALL(ledgerMock, LnnGetLocalStrInfo).WillRepeatedly(Return(SOFTBUS_OK));
176 …EXPECT_CALL(ledgerMock, LnnGetLocalStrInfo).WillRepeatedly(LnnNetLedgertInterfaceMock::ActionOfLnn…
195 EXPECT_CALL(ledgerMock, LnnGetLocalStrInfo).WillOnce(Return(SOFTBUS_ERR)).
211 …EXPECT_CALL(ledgerMock, LnnGetLocalStrInfo).WillOnce(Return(SOFTBUS_ERR)).WillRepeatedly(Return(SO…
243 EXPECT_CALL(ledgerMock, LnnGetLocalStrInfo).WillOnce(Return(SOFTBUS_ERR)).
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_buscenter/src/
H A Dlnn_ip_network_impl.c152 if (LnnGetLocalStrInfo(STRING_KEY_WLAN_IP, localIp, MAX_ADDR_LEN) != SOFTBUS_OK) { in OpenAuthPort()
195 …if (LnnGetLocalStrInfo(STRING_KEY_WLAN_IP, info.socketOption.addr, sizeof(info.socketOption.addr))… in OpenSessionPort()
234 int32_t ret = LnnGetLocalStrInfo(STRING_KEY_WLAN_IP, listenerInfo.socketOption.addr, in OpenProxyPort()
294 if (LnnGetLocalStrInfo(STRING_KEY_WLAN_IP, ipAddr, ipAddrLen) != SOFTBUS_OK) { in GetLocalIpInfo()
298 if (LnnGetLocalStrInfo(STRING_KEY_NET_IF_NAME, ifName, ifNameLen) != SOFTBUS_OK) { in GetLocalIpInfo()
342 … if (LnnGetLocalStrInfo(STRING_KEY_NET_IF_NAME, oldMainIf, sizeof(oldMainIf)) != SOFTBUS_OK) { in ReleaseMainPort()
370 if (LnnGetLocalStrInfo(STRING_KEY_NET_IF_NAME, oldMainIf, sizeof(oldMainIf)) != SOFTBUS_OK) { in RequestMainPort()
624 if (LnnGetLocalStrInfo(STRING_KEY_WLAN_IP, localIp, MAX_ADDR_LEN) != SOFTBUS_OK) { in IsValidLocalIp()
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/common/mock/
H A Dtrans_lane_common_test_mock.cpp69 int32_t LnnGetLocalStrInfo(InfoKey key, char *info, uint32_t len) in LnnGetLocalStrInfo() function
71 return GetTransLaneCommonTestInterface()->LnnGetLocalStrInfo(key, info, len); in LnnGetLocalStrInfo()
H A Dtrans_lane_common_test_mock.h40 virtual int32_t LnnGetLocalStrInfo(InfoKey key, char *info, uint32_t len) = 0;
58 MOCK_METHOD3(LnnGetLocalStrInfo, int32_t (InfoKey key, char *info, uint32_t len));
H A Dtrans_lane_pending_test_mock.cpp107 int32_t LnnGetLocalStrInfo(InfoKey key, char *info, uint32_t len) in LnnGetLocalStrInfo() function
109 return GetTransLanePendingTestInterface()->LnnGetLocalStrInfo(key, info, len); in LnnGetLocalStrInfo()
H A Dtrans_lane_pending_test_mock.h50 virtual int32_t LnnGetLocalStrInfo(InfoKey key, char *info, uint32_t len) = 0;
77 MOCK_METHOD3(LnnGetLocalStrInfo, int32_t (InfoKey key, char *info, uint32_t len));
/ohos5.0/foundation/communication/dsoftbus/core/discovery/coap/nstackx_coap/src/
H A Ddisc_nstackx_adapter.c65 … int32_t ret = LnnGetLocalStrInfo(STRING_KEY_NET_IF_NAME, localNetifName, sizeof(localNetifName)); in FillRspSettings()
309 if (LnnGetLocalStrInfo(STRING_KEY_WLAN_IP, localIp, IP_LEN) != SOFTBUS_OK) { in IsNetworkValid()
403 int32_t ret = LnnGetLocalStrInfo(STRING_KEY_DEV_UDID, udid, sizeof(udid)); in GetDeviceId()
464 if (LnnGetLocalStrInfo(STRING_KEY_WLAN_IP, g_localDeviceInfo->localIfInfo[0].networkIpAddr, in SetLocalDeviceInfo()
466LnnGetLocalStrInfo(STRING_KEY_HICE_VERSION, g_localDeviceInfo->version, sizeof(g_localDeviceInfo->… in SetLocalDeviceInfo()
468 LnnGetLocalStrInfo(STRING_KEY_NET_IF_NAME, g_localDeviceInfo->localIfInfo[0].networkName, in SetLocalDeviceInfo()
574 int32_t ret = LnnGetLocalStrInfo(STRING_KEY_DEV_NAME, localDevName, sizeof(localDevName)); in DiscCoapUpdateDevName()
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/manager/mock/
H A Dtrans_manager_mock.cpp95 int32_t LnnGetLocalStrInfo(InfoKey key, char *info, uint32_t len) in LnnGetLocalStrInfo() function
97 return GetTransManagerInterface()->LnnGetLocalStrInfo(key, info, len); in LnnGetLocalStrInfo()
H A Dtrans_manager_mock.h48 virtual int32_t LnnGetLocalStrInfo(InfoKey key, char *info, uint32_t len) = 0;
67 MOCK_METHOD3(LnnGetLocalStrInfo, int32_t (InfoKey, char *, uint32_t));
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/heartbeat/src/
H A Dlnn_heartbeat_utils.c384 (void)LnnGetLocalStrInfo(STRING_KEY_UUID, localUuid, UUID_BUF_LEN); in LnnDumpLocalBasicInfo()
385 (void)LnnGetLocalStrInfo(STRING_KEY_DEV_UDID, localUdid, UDID_BUF_LEN); in LnnDumpLocalBasicInfo()
398 (void)LnnGetLocalStrInfo(STRING_KEY_WLAN_IP, localIp, IP_LEN); in LnnDumpLocalBasicInfo()
399 (void)LnnGetLocalStrInfo(STRING_KEY_P2P_MAC, localP2PMac, MAC_LEN); in LnnDumpLocalBasicInfo()
400 (void)LnnGetLocalStrInfo(STRING_KEY_BT_MAC, localBtMac, BT_MAC_LEN); in LnnDumpLocalBasicInfo()
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/
H A Dlnn_net_builder_init.c346 …if (LnnGetLocalStrInfo(STRING_KEY_MASTER_NODE_UDID, localMasterUdid, UDID_BUF_LEN) != SOFTBUS_OK || in TryElectMasterNodeOnline()
377 …if (LnnGetLocalStrInfo(STRING_KEY_MASTER_NODE_UDID, localMasterUdid, UDID_BUF_LEN) != SOFTBUS_OK) { in TryElectMasterNodeOffline()
381 LnnGetLocalStrInfo(STRING_KEY_DEV_UDID, localUdid, UDID_BUF_LEN); in TryElectMasterNodeOffline()
410 if (LnnGetLocalStrInfo(STRING_KEY_MASTER_NODE_UDID, masterUdid, UDID_BUF_LEN) != SOFTBUS_OK) { in TryElectAsMasterState()
433 if (LnnGetLocalStrInfo(STRING_KEY_DEV_UDID, localUdid, UDID_BUF_LEN) != SOFTBUS_OK) { in TryElectAsMasterState()
745 int32_t ret = LnnGetLocalStrInfo(STRING_KEY_DEV_UDID, udid, UDID_BUF_LEN); in LnnInitNetBuilderDelay()
/ohos5.0/foundation/communication/dsoftbus/tests/core/authentication/unittest/
H A Dauth_net_ledger_mock.h39 virtual int32_t LnnGetLocalStrInfo(InfoKey key, char *info, uint32_t len) = 0;
75 MOCK_METHOD3(LnnGetLocalStrInfo, int32_t(InfoKey, char *, uint32_t));
H A Dauth_test_enhance.cpp177 ON_CALL(ledgermock, LnnGetLocalStrInfo(_, _, _)).WillByDefault(Return(SOFTBUS_OK));
208 ON_CALL(ledgermock, LnnGetLocalStrInfo(_, _, _)).WillByDefault(Return(SOFTBUS_OK));
242 ON_CALL(ledgermock, LnnGetLocalStrInfo(_, _, _)).WillByDefault(Return(SOFTBUS_OK));
275 ON_CALL(ledgermock, LnnGetLocalStrInfo(_, _, _)).WillByDefault(Return(SOFTBUS_OK));
H A Dauth_net_ledger_mock.cpp53 int32_t LnnGetLocalStrInfo(InfoKey key, char *info, uint32_t len) in LnnGetLocalStrInfo() function
55 return GetNetLedgerInterface()->LnnGetLocalStrInfo(key, info, len); in LnnGetLocalStrInfo()
/ohos5.0/foundation/communication/dsoftbus/tests/core/connection/ble/mock/
H A Dconnection_ble_client_mock.h47 virtual int32_t LnnGetLocalStrInfo(InfoKey key, char *info, uint32_t len) = 0;
72 MOCK_METHOD(int32_t, LnnGetLocalStrInfo, (InfoKey, char *, uint32_t));
H A Dconnection_ble_manager_mock.cpp104 int32_t LnnGetLocalStrInfo(InfoKey key, char *info, uint32_t len) in LnnGetLocalStrInfo() function
106 return GetConnectionBleInterface()->LnnGetLocalStrInfo(key, info, len); in LnnGetLocalStrInfo()
H A Dconnection_ble_client_mock.cpp160 int32_t LnnGetLocalStrInfo(InfoKey key, char *info, uint32_t len) in LnnGetLocalStrInfo() function
162 return GetConnectionBleClientInterface()->LnnGetLocalStrInfo(key, info, len); in LnnGetLocalStrInfo()
H A Dconnection_ble_manager_mock.h48 virtual int32_t LnnGetLocalStrInfo(InfoKey key, char *info, uint32_t len) = 0;
97 MOCK_METHOD(int32_t, LnnGetLocalStrInfo, (InfoKey, char *, uint32_t), (override));
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/tcp_direct/src/
H A Dtrans_tcp_direct_manager.c48 (void)LnnGetLocalStrInfo(STRING_KEY_DEV_UDID, localUdid, sizeof(localUdid)); in OnSessionOpenFailProc()
264 …if (LnnGetLocalStrInfo(STRING_KEY_NODE_ADDR, appInfo->myData.addr, sizeof(appInfo->myData.addr)) != in TransUpdateAppInfo()
271 … if (LnnGetLocalStrInfo(STRING_KEY_WLAN_IP, appInfo->myData.addr, sizeof(appInfo->myData.addr)) != in TransUpdateAppInfo()
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/common/mock/src/
H A Dtrans_auth_mock.cpp212 int32_t LnnGetLocalStrInfo(InfoKey key, char *info, uint32_t len) in LnnGetLocalStrInfo() function
214 return GetTransAuthInterface()->LnnGetLocalStrInfo(key, info, len); in LnnGetLocalStrInfo()

1234