Home
last modified time | relevance | path

Searched refs:LnnSetLocalNumInfo (Results 1 – 24 of 24) sorted by relevance

/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_ledger/
H A Dlnn_ledger_common_test.cpp294 EXPECT_TRUE(LnnSetLocalNumInfo(NUM_KEY_NET_CAP, 1 << BIT_BR) == SOFTBUS_OK);
399 LnnSetLocalNumInfo(NUM_KEY_AUTH_PORT, LOCAL_AUTH_PORT);
417 int32_t ret = LnnSetLocalNumInfo(NUM_KEY_SESSION_PORT, LOCAL_SESSION_PORT);
419 ret = LnnSetLocalNumInfo(NUM_KEY_AUTH_PORT, LOCAL_AUTH_PORT);
421 ret = LnnSetLocalNumInfo(NUM_KEY_PROXY_PORT, LOCAL_PROXY_PORT);
423 ret = LnnSetLocalNumInfo(NUM_KEY_NET_CAP, LOCAL_CAPACITY);
425 ret = LnnSetLocalNumInfo(NUM_KEY_MASTER_NODE_WEIGHT, MASTER_WEIGHT);
427 ret = LnnSetLocalNumInfo(NUM_KEY_P2P_ROLE, P2P_ROLE);
429 ret = LnnSetLocalNumInfo(NUM_KEY_STATIC_CAP_LEN, STATIC_LEN);
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/unittest/
H A Dledger_lane_hub_test.cpp175 ret = LnnSetLocalNumInfo(NUM_KEY_NET_CAP, 1 << BIT_BR); in ConstructBtLocalInfo()
181 int32_t ret = LnnSetLocalNumInfo(NUM_KEY_AUTH_PORT, LOCAL_AUTH_PORT); in ConstructWiFiLocalInfo()
183 ret = LnnSetLocalNumInfo(NUM_KEY_PROXY_PORT, LOCAL_PROXY_PORT); in ConstructWiFiLocalInfo()
185 ret = LnnSetLocalNumInfo(NUM_KEY_SESSION_PORT, LOCAL_SESSION_PORT); in ConstructWiFiLocalInfo()
188 ret = LnnSetLocalNumInfo(NUM_KEY_NET_CAP, 1 << BIT_WIFI_5G); in ConstructWiFiLocalInfo()
190 ret = LnnSetLocalNumInfo(NUM_KEY_NET_CAP, 1 << BIT_WIFI_24G); in ConstructWiFiLocalInfo()
H A Dlane_test.cpp134 ret = LnnSetLocalNumInfo(NUM_KEY_NET_CAP, (1 << BIT_BR) | in ConstructLocalInfo()
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_buscenter/src/
H A Dlnn_ip_network_impl.c166 return LnnSetLocalNumInfo(NUM_KEY_AUTH_PORT, port); in OpenAuthPort()
174 (void)LnnSetLocalNumInfo(NUM_KEY_AUTH_PORT, IP_DEFAULT_PORT); in CloseAuthPort()
205 return LnnSetLocalNumInfo(NUM_KEY_SESSION_PORT, port); in OpenSessionPort()
214 (void)LnnSetLocalNumInfo(NUM_KEY_SESSION_PORT, IP_DEFAULT_PORT); in CloseSessionPort()
246 (void)LnnSetLocalNumInfo(NUM_KEY_PROXY_PORT, port); in OpenProxyPort()
264 (void)LnnSetLocalNumInfo(NUM_KEY_PROXY_PORT, IP_DEFAULT_PORT); in CloseProxyPort()
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_builder/src/
H A Dlnn_network_info_test.cpp200 EXPECT_CALL(netLedgerMock, LnnSetLocalNumInfo).WillRepeatedly(Return(SOFTBUS_ERR));
230 EXPECT_CALL(netLedgerMock, LnnSetLocalNumInfo).WillRepeatedly(Return(SOFTBUS_ERR));
242 EXPECT_CALL(netLedgerMock, LnnSetLocalNumInfo).WillRepeatedly(Return(SOFTBUS_OK));
264 EXPECT_CALL(netLedgerMock, LnnSetLocalNumInfo).WillOnce(Return(SOFTBUS_ERR))
H A Dlnn_net_ledger_mock.cpp391 int32_t LnnSetLocalNumInfo(InfoKey key, int32_t info) in LnnSetLocalNumInfo() function
393 return GetNetLedgerInterface()->LnnSetLocalNumInfo(key, info); in LnnSetLocalNumInfo()
H A Dlnn_net_builder_deps_mock.cpp130 int32_t LnnSetLocalNumInfo(InfoKey key, int32_t info) in LnnSetLocalNumInfo() function
132 return GetNetBuilderDepsInterface()->LnnSetLocalNumInfo(key, info); in LnnSetLocalNumInfo()
H A Dlnn_net_builder_mock_test.cpp161 EXPECT_CALL(NetBuilderMock, LnnSetLocalNumInfo(_, _)).WillRepeatedly(Return(SOFTBUS_OK));
745 EXPECT_CALL(NetBuilderMock, LnnSetLocalNumInfo(_, _)).WillOnce(Return(SOFTBUS_ERR));
750 EXPECT_CALL(NetBuilderMock, LnnSetLocalNumInfo(_, _)).WillOnce(Return(SOFTBUS_OK));
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_buscenter/
H A Dlnn_ip_network_impl_test.cpp213 EXPECT_CALL(ledgerMock, LnnSetLocalNumInfo).WillRepeatedly(Return(SOFTBUS_OK));
259 EXPECT_CALL(ledgerMock, LnnSetLocalNumInfo).WillRepeatedly(Return(SOFTBUS_OK));
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/
H A Dlnn_network_info.c230 if (LnnSetLocalNumInfo(NUM_KEY_NET_CAP, (int32_t)netCapability) != SOFTBUS_OK) { in WifiStateProcess()
417 if (LnnSetLocalNumInfo(NUM_KEY_NET_CAP, (int32_t)netCapability) != SOFTBUS_OK) { in BtStateChangeEventHandler()
H A Dlnn_net_builder.c148 if (LnnSetLocalNumInfo(NUM_KEY_MASTER_NODE_WEIGHT, weight) != SOFTBUS_OK) { in UpdateLocalMasterNode()
952 if (LnnSetLocalNumInfo(NUM_KEY_NET_CAP, netCapability) != SOFTBUS_OK) { in UpdateLocalNetCapability()
H A Dlnn_net_builder_init.c751 LnnSetLocalNumInfo(NUM_KEY_MASTER_NODE_WEIGHT, LnnGetLocalWeight()); in LnnInitNetBuilderDelay()
/ohos5.0/foundation/communication/dsoftbus/tests/core/connection/wifi_direct_cpp/
H A Dwifi_direct_mock.h47 virtual int32_t LnnSetLocalNumInfo(InfoKey key, int32_t info) = 0;
159 MOCK_METHOD2(LnnSetLocalNumInfo, int32_t (InfoKey, int32_t));
H A Dwifi_direct_mock.cpp58 int32_t LnnSetLocalNumInfo(InfoKey key, int32_t info) in LnnSetLocalNumInfo() function
60 return OHOS::SoftBus::WifiDirectInterfaceMock::GetMock()->LnnSetLocalNumInfo(key, info); in LnnSetLocalNumInfo()
H A Dwifi_direct_utils.cpp536 int32_t ret = LnnSetLocalNumInfo(NUM_KEY_P2P_ROLE, role); in SyncLnnInfoForP2p()
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_builder/include/
H A Dlnn_net_ledger_mock.h54 virtual int32_t LnnSetLocalNumInfo(InfoKey key, int32_t info) = 0;
137 MOCK_METHOD2(LnnSetLocalNumInfo, int32_t (InfoKey, int32_t));
H A Dlnn_net_builder_deps_mock.h77 virtual int32_t LnnSetLocalNumInfo(InfoKey key, int32_t info);
218 MOCK_METHOD2(LnnSetLocalNumInfo, int32_t (InfoKey, int32_t));
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/interface/
H A Dbus_center_manager.h58 int32_t LnnSetLocalNumInfo(InfoKey key, int32_t info);
/ohos5.0/foundation/communication/dsoftbus/adapter/common/bus_center/network/
H A Dlnn_netmanager_listener.cpp116 ret = LnnSetLocalNumInfo(NUM_KEY_NET_CAP, netCapability); in OnInterfaceLinkStateChanged()
/ohos5.0/foundation/communication/dsoftbus/tests/core/connection/wifi_direct_cpp/utils/
H A Dwifi_direct_utils_test.cpp301 EXPECT_CALL(mock, LnnSetLocalNumInfo).WillOnce(Return(-1));
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/common/src/
H A Dlnn_net_ledger.c146 if (LnnSetLocalNumInfo(NUM_KEY_STATE_VERSION, info.stateVersion) != SOFTBUS_OK) { in ProcessLocalDeviceInfo()
/ohos5.0/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/utils/
H A Dwifi_direct_utils.cpp540 int32_t ret = LnnSetLocalNumInfo(NUM_KEY_P2P_ROLE, role); in SyncLnnInfoForP2p()
/ohos5.0/foundation/communication/dsoftbus/tests/core/connection/wifi_direct_cpp/processor/
H A Dp2p_v1_processor_test.cpp264 EXPECT_CALL(mock, LnnSetLocalNumInfo(_, _)).WillRepeatedly(Return(SOFTBUS_OK)); in InjectCommonMock()
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/local_ledger/src/
H A Dlnn_local_net_ledger.c2089 int32_t LnnSetLocalNumInfo(InfoKey key, int32_t info) in LnnSetLocalNumInfo() function