/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_p2p/ |
H A D | group_negotiation_state.cpp | 94 if (groupManager.GetCurrentGroup().IsGroupOwner() && in ProcessGroupStartedEvt() 95 … MacAddress::IsValidMac(groupManager.GetCurrentGroup().GetOwner().GetDeviceAddress().c_str())) { in ProcessGroupStartedEvt() 101 if (groupManager.GetCurrentGroup().IsPersistent()) { in ProcessGroupStartedEvt() 103 const WifiP2pDevice &owner = groupManager.GetCurrentGroup().GetOwner(); in ProcessGroupStartedEvt() 104 WifiP2pGroupInfo copy = groupManager.GetCurrentGroup(); in ProcessGroupStartedEvt() 105 …copy.SetNetworkId(groupManager.GetGroupNetworkId(owner, groupManager.GetCurrentGroup().GetGroupNam… in ProcessGroupStartedEvt() 107 groupManager.AddOrUpdateGroup(groupManager.GetCurrentGroup()); in ProcessGroupStartedEvt() 110 WifiP2pGroupInfo copy = groupManager.GetCurrentGroup(); in ProcessGroupStartedEvt() 126 if (groupManager.GetCurrentGroup().IsGroupOwner()) { in DoDhcpInGroupStart() 147 const WifiP2pDevice &owner = groupManager.GetCurrentGroup().GetOwner(); in DoDhcpInGroupStart() [all …]
|
H A D | p2p_group_operating_state.cpp | 171 if (groupManager.GetCurrentGroup().IsGroupOwner()) { in ProcessGroupStartedEvt() 198 if (groupManager.GetCurrentGroup().IsPersistent()) { in ProcessGroupRemovedEvt() 200 WifiP2pGroupInfo copy = groupManager.GetCurrentGroup(); in ProcessGroupRemovedEvt() 206 if (groupManager.GetCurrentGroup().GetInterface() == p2pStateMachine.p2pDevIface) { in ProcessGroupRemovedEvt() 212 …IfConfig::GetInstance().FlushIpAddr(groupManager.GetCurrentGroup().GetInterface(), IpType::IPTYPE_… in ProcessGroupRemovedEvt() 213 if (groupManager.GetCurrentGroup().IsGroupOwner()) { in ProcessGroupRemovedEvt() 219 WriteWifiP2pStateHiSysEvent(groupManager.GetCurrentGroup().GetInterface(), P2P_GC, P2P_OFF); in ProcessGroupRemovedEvt() 246 WifiP2pGroupInfo group = groupManager.GetCurrentGroup(); in ProcessCmdRemoveGroup() 248 if (!groupManager.GetCurrentGroup().IsGroupOwner()) { in ProcessCmdRemoveGroup() 302 WifiP2pGroupInfo currentGroup = groupManager.GetCurrentGroup(); in ProcessCmdDeleteGroup()
|
H A D | group_formed_state.cpp | 36 if (!groupManager.GetCurrentGroup().IsGroupOwner()) { in GoInState() 37 WriteWifiP2pStateHiSysEvent(groupManager.GetCurrentGroup().GetInterface(), P2P_GC, P2P_ON); in GoInState() 144 if (groupManager.GetCurrentGroup().IsGroupOwner()) { in ProcessProvDiscEvt() 183 WifiP2pGroupInfo currentGroup = groupManager.GetCurrentGroup(); in ProcessCmdRemoveGroupClient() 232 if (!groupManager.GetCurrentGroup().IsContainsDevice(device)) { in ProcessDeviceLostEvt() 266 … if (groupManager.IsCurrGroupClientEmpty() && !groupManager.GetCurrentGroup().IsExplicitGroup()) { in ProcessDisconnectEvt() 282 …WifiP2PHalInterface::GetInstance().SetP2pGroupIdle(groupManager.GetCurrentGroup().GetInterface(), … in ProcessConnectEvt() 400 WifiP2pGroupInfo currGroup = groupManager.GetCurrentGroup(); in ProcessCmdChSwitch() 414 WifiP2pGroupInfo currGroup = groupManager.GetCurrentGroup(); in ProcessCmdSetIpAddress()
|
H A D | p2p_state_machine.cpp | 97 StopDhcpClient(groupManager.GetCurrentGroup().GetInterface().c_str(), false); in ~P2pStateMachine() 368 p2pInfo.SetIsGroupOwner(groupManager.GetCurrentGroup().IsGroupOwner()); in SetWifiP2pInfoWhenGroupFormed() 377 WifiP2pGroupInfo groupInfo = groupManager.GetCurrentGroup(); in AddClientInfo() 887 WifiP2pGroupInfo currGroup = groupManager.GetCurrentGroup(); in StartDhcpServer() 892 WifiNetAgent::GetInstance().AddRoute(groupManager.GetCurrentGroup().GetInterface(), in StartDhcpServer() 901 if (!groupManager.GetCurrentGroup().GetInterface().empty()) { in StopDhcpServer() 904 return m_DhcpdInterface.StopDhcp(groupManager.GetCurrentGroup().GetInterface()); in StopDhcpServer() 934 WifiP2pGroupInfo currGroup = groupManager->GetCurrentGroup(); in OnSuccess() 996 result = StartDhcpClient(groupManager.GetCurrentGroup().GetInterface().c_str(), false); in StartDhcpClientInterface() 1264 std::string ifName = groupManager.GetCurrentGroup().GetInterface(); in StopP2pDhcpClient() [all …]
|
H A D | invitation_request_state.cpp | 30 …rorNo::WIFI_HAL_OPT_OK == WifiP2PHalInterface::GetInstance().Invite(groupManager.GetCurrentGroup(), in GoInState() 56 int netId = groupManager.GetCurrentGroup().GetNetworkId(); in ExecuteStateMsg()
|
H A D | wifi_p2p_service.cpp | 218 WifiP2pGroupInfo groupInfo = groupManager.GetCurrentGroup(); in QueryP2pLinkedInfo() 225 ErrCode WifiP2pService::GetCurrentGroup(WifiP2pGroupInfo &group) in GetCurrentGroup() function in OHOS::Wifi::WifiP2pService 233 WifiP2pGroupInfo copy = groupManager.GetCurrentGroup(); in GetCurrentGroup() 339 ErrCode ret = GetCurrentGroup(group); in Hid2dRequestGcIp()
|
H A D | p2p_idle_state.cpp | 330 if (!p2pStateMachine.groupManager.GetCurrentGroup().IsGroupOwner()) { in ProcessGroupStartedEvt() 333 const WifiP2pDevice &owner = groupManager.GetCurrentGroup().GetOwner(); in ProcessGroupStartedEvt() 337 WifiP2pGroupInfo copy = groupManager.GetCurrentGroup(); in ProcessGroupStartedEvt() 348 WifiP2pGroupInfo currGrp = p2pStateMachine.groupManager.GetCurrentGroup(); in ProcessGroupStartedEvt()
|
H A D | p2p_interface.cpp | 161 ErrCode P2pInterface::GetCurrentGroup(WifiP2pGroupInfo &group) in GetCurrentGroup() function in OHOS::Wifi::P2pInterface 163 return p2pService.GetCurrentGroup(group); in GetCurrentGroup()
|
H A D | wifi_p2p_group_manager.h | 198 inline const WifiP2pGroupInfoProxy &GetCurrentGroup() const in GetCurrentGroup() function
|
H A D | p2p_group_join_state.cpp | 89 const WifiP2pGroupInfo group = groupManager.GetCurrentGroup(); in StartPbc()
|
H A D | ip2p_service.h | 165 virtual ErrCode GetCurrentGroup(WifiP2pGroupInfo &group) = 0;
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/connection/wifi_direct_cpp/entity/ |
H A D | p2p_entity_test.cpp | 57 EXPECT_CALL(mock, GetCurrentGroup(_)).WillRepeatedly(Return(WIFI_SUCCESS)); 134 EXPECT_CALL(mock, GetCurrentGroup(_)).WillRepeatedly(Return(WIFI_SUCCESS)); 142 EXPECT_CALL(mock, GetCurrentGroup(_)).WillRepeatedly(Return(WIFI_SUCCESS)); 151 EXPECT_CALL(mock, GetCurrentGroup(_)).WillRepeatedly(Return(WIFI_SUCCESS)); 223 EXPECT_CALL(mock, GetCurrentGroup(_)).WillRepeatedly(Return(ERROR_WIFI_UNKNOWN)); 235 EXPECT_CALL(mock, GetCurrentGroup(_)).WillRepeatedly(Return(WIFI_SUCCESS)); 355 EXPECT_CALL(mock, GetCurrentGroup(_)).WillRepeatedly(Return(WIFI_SUCCESS)); 431 EXPECT_CALL(mock, GetCurrentGroup(_)).WillRepeatedly(Return(WIFI_SUCCESS));
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/mock_common/src/ |
H A D | wifi_mock.cpp | 81 WifiErrorCode GetCurrentGroup(WifiP2pGroupInfo* groupInfo) in GetCurrentGroup() function 83 return GetWifiInterface()->GetCurrentGroup(groupInfo); in GetCurrentGroup()
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/connection/wifi_direct_cpp/adapter/ |
H A D | p2p_adapter_test.cpp | 287 … EXPECT_CALL(mock, GetCurrentGroup).WillOnce(DoAll(SetArgPointee<0>(info), Return(WIFI_SUCCESS))); 304 … EXPECT_CALL(mock, GetCurrentGroup).WillOnce(DoAll(SetArgPointee<0>(info), Return(WIFI_SUCCESS))); 320 EXPECT_CALL(mock, GetCurrentGroup) 346 EXPECT_CALL(mock, GetCurrentGroup) 370 EXPECT_CALL(mock, GetCurrentGroup).WillOnce(Return(ERROR_WIFI_UNKNOWN));
|
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_p2p/test/ |
H A D | wifi_p2p_service_test.cpp | 146 HWTEST_F(WifiP2pServiceTest, GetCurrentGroup, TestSize.Level1) 152 EXPECT_EQ(pWifiP2pService->GetCurrentGroup(group), ErrCode::WIFI_OPT_FAILED); 239 EXPECT_EQ(pWifiP2pService->GetCurrentGroup(group), ErrCode::WIFI_OPT_SUCCESS); 272 EXPECT_EQ(pWifiP2pService->GetCurrentGroup(group), ErrCode::WIFI_OPT_FAILED); 285 EXPECT_EQ(pWifiP2pService->GetCurrentGroup(group), ErrCode::WIFI_OPT_SUCCESS);
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/mock_common/include/ |
H A D | wifi_mock.h | 41 virtual WifiErrorCode GetCurrentGroup(WifiP2pGroupInfo* groupInfo) = 0; 59 MOCK_METHOD1(GetCurrentGroup, WifiErrorCode(WifiP2pGroupInfo*));
|
/ohos5.0/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/adapter/ |
H A D | p2p_adapter.cpp | 305 auto ret = GetCurrentGroup(groupInfo.get()); in GetGroupInfo() 338 auto ret = GetCurrentGroup(groupInfo.get()); in GetGroupConfig() 366 int32_t ret = GetCurrentGroup(groupInfo.get()); in GetIpAddress() 397 auto ret = GetCurrentGroup(groupInfo.get()); in GetDynamicMacAddress()
|
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/unittest/ |
H A D | wifi_mock_p2p_service.h | 46 ErrCode GetCurrentGroup(WifiP2pGroupInfo &group);
|
/ohos5.0/foundation/communication/wifi/wifi/interfaces/kits/c/ |
H A D | wifi_p2p.h | 143 WifiErrorCode GetCurrentGroup(WifiP2pGroupInfo* groupInfo);
|
/ohos5.0/foundation/communication/wifi/wifi/interfaces/inner_api/ |
H A D | wifi_p2p.h | 174 virtual ErrCode GetCurrentGroup(WifiP2pGroupInfo &group) = 0;
|
/ohos5.0/foundation/communication/wifi/wifi/frameworks/js/napi/inc/ |
H A D | wifi_napi_p2p.h | 25 napi_value GetCurrentGroup(napi_env env, napi_callback_info info);
|
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_p2p/test/Mock/ |
H A D | mock_p2p_interface.cpp | 121 ErrCode P2pInterface::GetCurrentGroup(WifiP2pGroupInfo &group) in GetCurrentGroup() function in OHOS::Wifi::P2pInterface
|
H A D | mock_p2p_interface.h | 47 virtual ErrCode GetCurrentGroup(WifiP2pGroupInfo &group) override;
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/connection/wifi_direct_cpp/ |
H A D | wifi_direct_mock.h | 86 virtual WifiErrorCode GetCurrentGroup(WifiP2pGroupInfo* groupInfo) = 0; 171 MOCK_METHOD(WifiErrorCode, GetCurrentGroup, (WifiP2pGroupInfo*), (override));
|
/ohos5.0/foundation/communication/wifi/wifi/frameworks/native/interfaces/ |
H A D | i_wifi_p2p.h | 176 virtual ErrCode GetCurrentGroup(WifiP2pGroupInfo &group) = 0;
|