/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/unittest/ |
H A D | ledger_lane_hub_test.cpp | 201 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 D | net_buscenter_test.cpp | 209 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 D | lnn_net_ledger.c | 236 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 D | bus_center_mock.cpp | 22 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 D | bus_center_mock.h | 29 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 D | lnn_ip_network_impl_test.cpp | 131 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 D | lnn_ip_network_impl.c | 152 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 D | trans_lane_common_test_mock.cpp | 69 int32_t LnnGetLocalStrInfo(InfoKey key, char *info, uint32_t len) in LnnGetLocalStrInfo() function 71 return GetTransLaneCommonTestInterface()->LnnGetLocalStrInfo(key, info, len); in LnnGetLocalStrInfo()
|
H A D | trans_lane_common_test_mock.h | 40 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 D | trans_lane_pending_test_mock.cpp | 107 int32_t LnnGetLocalStrInfo(InfoKey key, char *info, uint32_t len) in LnnGetLocalStrInfo() function 109 return GetTransLanePendingTestInterface()->LnnGetLocalStrInfo(key, info, len); in LnnGetLocalStrInfo()
|
H A D | trans_lane_pending_test_mock.h | 50 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 D | disc_nstackx_adapter.c | 65 … 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() 466 …LnnGetLocalStrInfo(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 D | trans_manager_mock.cpp | 95 int32_t LnnGetLocalStrInfo(InfoKey key, char *info, uint32_t len) in LnnGetLocalStrInfo() function 97 return GetTransManagerInterface()->LnnGetLocalStrInfo(key, info, len); in LnnGetLocalStrInfo()
|
H A D | trans_manager_mock.h | 48 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 D | lnn_heartbeat_utils.c | 384 (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 D | lnn_net_builder_init.c | 346 …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 D | auth_net_ledger_mock.h | 39 virtual int32_t LnnGetLocalStrInfo(InfoKey key, char *info, uint32_t len) = 0; 75 MOCK_METHOD3(LnnGetLocalStrInfo, int32_t(InfoKey, char *, uint32_t));
|
H A D | auth_test_enhance.cpp | 177 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 D | auth_net_ledger_mock.cpp | 53 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 D | connection_ble_client_mock.h | 47 virtual int32_t LnnGetLocalStrInfo(InfoKey key, char *info, uint32_t len) = 0; 72 MOCK_METHOD(int32_t, LnnGetLocalStrInfo, (InfoKey, char *, uint32_t));
|
H A D | connection_ble_manager_mock.cpp | 104 int32_t LnnGetLocalStrInfo(InfoKey key, char *info, uint32_t len) in LnnGetLocalStrInfo() function 106 return GetConnectionBleInterface()->LnnGetLocalStrInfo(key, info, len); in LnnGetLocalStrInfo()
|
H A D | connection_ble_client_mock.cpp | 160 int32_t LnnGetLocalStrInfo(InfoKey key, char *info, uint32_t len) in LnnGetLocalStrInfo() function 162 return GetConnectionBleClientInterface()->LnnGetLocalStrInfo(key, info, len); in LnnGetLocalStrInfo()
|
H A D | connection_ble_manager_mock.h | 48 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 D | trans_tcp_direct_manager.c | 48 (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 D | trans_auth_mock.cpp | 212 int32_t LnnGetLocalStrInfo(InfoKey key, char *info, uint32_t len) in LnnGetLocalStrInfo() function 214 return GetTransAuthInterface()->LnnGetLocalStrInfo(key, info, len); in LnnGetLocalStrInfo()
|