/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/ |
H A D | ap_started_state.cpp | 92 …mProcessFunMap.insert(std::make_pair(ApStatemachineEvent::CMD_FAIL, &ApStartedState::ProcessCmdFai… in Init() 102 … std::make_pair(ApStatemachineEvent::CMD_ADD_BLOCK_LIST, &ApStartedState::ProcessCmdAddBlockList)); in Init() 104 … std::make_pair(ApStatemachineEvent::CMD_DEL_BLOCK_LIST, &ApStartedState::ProcessCmdDelBlockList)); in Init() 106 … std::make_pair(ApStatemachineEvent::CMD_STOP_HOTSPOT, &ApStartedState::ProcessCmdStopHotspot)); in Init() 109 mProcessFunMap.insert(std::make_pair(ApStatemachineEvent::CMD_SET_IDLE_TIMEOUT, in Init() 113 mProcessFunMap.insert(std::make_pair(ApStatemachineEvent::CMD_HOTSPOT_CHANNEL_CHANGED, in Init() 115 mProcessFunMap.insert(std::make_pair(ApStatemachineEvent::CMD_ASSOCIATED_STATIONS_CHANGED, in Init() 117 mProcessFunMap.insert(std::make_pair(ApStatemachineEvent::CMD_START_HOTSPOT, in Init() 130 auto iter = mProcessFunMap.find(static_cast<ApStatemachineEvent>(msgName)); in ExecuteStateMsg() 502 … m_ApStateMachine.MessageExecutedLater(static_cast<int>(ApStatemachineEvent::CMD_STATION_JOIN), in ProcessCmdAssociatedStaChanged() [all …]
|
H A D | ap_monitor.cpp | 57 …SendMessage(m_selectIfacName, ApStatemachineEvent::CMD_ASSOCIATED_STATIONS_CHANGED, event, 0, anyS… in OnStaJoinOrLeave() 64 … SendMessage(m_selectIfacName, ApStatemachineEvent::CMD_UPDATE_HOTSPOTCONFIG_RESULT, 0, 0, 0); in OnHotspotStateEvent() 66 … SendMessage(m_selectIfacName, ApStatemachineEvent::CMD_UPDATE_HOTSPOTCONFIG_RESULT, 1, 0, 0); in OnHotspotStateEvent() 77 SendMessage(m_selectIfacName, ApStatemachineEvent::CMD_HOTSPOT_CHANNEL_CHANGED, freq, 0, 0); in WpaEventApChannelSwitch() 117 …const std::string &iface, ApStatemachineEvent msgName, int param1, int param2, const std::any &mes… in SendMessage()
|
H A D | ap_idle_state.cpp | 50 switch (static_cast<ApStatemachineEvent>(msgName)) { in ExecuteStateMsg() 51 case ApStatemachineEvent::CMD_START_HOTSPOT: { in ExecuteStateMsg() 55 case ApStatemachineEvent::CMD_UPDATE_HOTSPOTCONFIG_RESULT: { in ExecuteStateMsg()
|
H A D | ap_service.cpp | 64 m_ApStateMachine.SendMessage(static_cast<int>(ApStatemachineEvent::CMD_START_HOTSPOT)); in EnableHotspot() 83 m_ApStateMachine.SendMessage(static_cast<int>(ApStatemachineEvent::CMD_STOP_HOTSPOT)); in DisableHotspot() 94 msg->SetMessageName(static_cast<int>(ApStatemachineEvent::CMD_SET_HOTSPOT_CONFIG)); in SetHotspotConfig() 115 msg->SetMessageName(static_cast<int>(ApStatemachineEvent::CMD_SET_IDLE_TIMEOUT)); in SetHotspotIdleTimeout() 128 msg->SetMessageName(static_cast<int>(ApStatemachineEvent::CMD_ADD_BLOCK_LIST)); in AddBlockList() 143 msg->SetMessageName(static_cast<int>(ApStatemachineEvent::CMD_DEL_BLOCK_LIST)); in DelBlockList() 158 msg->SetMessageName(static_cast<int>(ApStatemachineEvent::CMD_DISCONNECT_STATION)); in DisconnetStation() 327 msg->SetMessageName(static_cast<int>(ApStatemachineEvent::CMD_UPDATE_COUNTRY_CODE)); in OnWifiCountryCodeChanged()
|
H A D | ap_state_machine.cpp | 94 void ApStateMachine::BroadCastStationChange(const StationInfo &staInfo, ApStatemachineEvent act) in BroadCastStationChange() 98 case ApStatemachineEvent::CMD_STATION_JOIN: in BroadCastStationChange() 105 case ApStatemachineEvent::CMD_STATION_LEAVE: in BroadCastStationChange() 175 … m_iface, [=](ApStatemachineEvent msgName, int param1, int param2, const std::any &messageObj) { in RegisterEventHandler()
|
H A D | ap_define.h | 38 enum class ApStatemachineEvent { enum 56 using HandlerApMethod = void(ApStatemachineEvent, int, int, const std::any &);
|
H A D | ap_stations_manager.h | 96 …void RegisterEventHandler(std::function<void(const StationInfo &, ApStatemachineEvent)> callbacks); 116 std::function<void(const StationInfo &, ApStatemachineEvent)> m_stationChangeCallback;
|
H A D | ap_stations_manager.cpp | 110 m_stationChangeCallback(staInfo, ApStatemachineEvent::CMD_STATION_LEAVE); in StationLeave() 140 m_stationChangeCallback(staInfoTemp, ApStatemachineEvent::CMD_STATION_JOIN); in StationJoin() 172 …nager::RegisterEventHandler(std::function<void(const StationInfo &, ApStatemachineEvent)> callback) in RegisterEventHandler()
|
H A D | ap_monitor.h | 85 …virtual void SendMessage(const std::string &iface, ApStatemachineEvent msgName, int param1, int pa…
|
H A D | ap_state_machine.h | 67 void BroadCastStationChange(const StationInfo &staInfo, ApStatemachineEvent act);
|
H A D | ap_started_state.h | 259 std::map<ApStatemachineEvent, ProcessFun> mProcessFunMap;
|
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_ap/ |
H A D | ap_started_state_test.cpp | 272 msg->SetMessageName(static_cast<int>(ApStatemachineEvent::CMD_FAIL)); 279 msg->SetMessageName(static_cast<int>(ApStatemachineEvent::CMD_STATION_JOIN)); 286 msg->SetMessageName(static_cast<int>(ApStatemachineEvent::CMD_STATION_LEAVE)); 293 msg->SetMessageName(static_cast<int>(ApStatemachineEvent::CMD_SET_HOTSPOT_CONFIG)); 306 msg->SetMessageName(static_cast<int>(ApStatemachineEvent::CMD_SET_HOTSPOT_CONFIG)); 334 msg->SetMessageName(static_cast<int>(ApStatemachineEvent::CMD_ADD_BLOCK_LIST)); 344 msg->SetMessageName(static_cast<int>(ApStatemachineEvent::CMD_ADD_BLOCK_LIST)); 350 msg->SetMessageName(static_cast<int>(ApStatemachineEvent::CMD_DEL_BLOCK_LIST)); 357 msg->SetMessageName(static_cast<int>(ApStatemachineEvent::CMD_STOP_HOTSPOT)); 361 msg->SetMessageName(static_cast<int>(ApStatemachineEvent::CMD_DISCONNECT_STATION)); [all …]
|
H A D | ap_idle_state_test.cpp | 81 msg->SetMessageName(static_cast<int>(ApStatemachineEvent::CMD_UPDATE_HOTSPOTCONFIG_RESULT)); 85 msg->SetMessageName(static_cast<int>(ApStatemachineEvent::CMD_START_HOTSPOT)); 94 msg->SetMessageName(static_cast<int>(ApStatemachineEvent::CMD_SET_HOTSPOT_CONFIG)); 98 msg->SetMessageName(static_cast<int>(ApStatemachineEvent::CMD_DISCONNECT_STATION));
|
H A D | ap_root_state_test.cpp | 56 msg->SetMessageName(static_cast<int>(ApStatemachineEvent::CMD_UPDATE_HOTSPOTCONFIG_RESULT)); 59 msg->SetMessageName(static_cast<int>(ApStatemachineEvent::CMD_START_HOTSPOT)); 62 msg->SetMessageName(static_cast<int>(ApStatemachineEvent::CMD_SET_HOTSPOT_CONFIG));
|
H A D | ap_state_machine_test.cpp | 101 pApStateMachine->BroadCastStationChange(staInfo, ApStatemachineEvent::CMD_STATION_JOIN); in WrapBroadCastStationJoin() 106 pApStateMachine->BroadCastStationChange(staInfo, ApStatemachineEvent::CMD_STATION_LEAVE); in WrapBroadCastStationLeave() 110 pApStateMachine->BroadCastStationChange(staInfo, ApStatemachineEvent::CMD_START_HOTSPOT); in WrapBroadCastStationChangeDefult()
|
H A D | ap_stations_manager_test.cpp | 82 void BroadCastStationChangeTest(const StationInfo &staInfo, ApStatemachineEvent act) in BroadCastStationChangeTest()
|
/ohos5.0/foundation/communication/wifi/wifi/test/fuzztest/wifi_sta/wifiap_fuzzer/ |
H A D | wifiap_fuzzer.cpp | 118 msg->SetMessageName(static_cast<int>(ApStatemachineEvent::CMD_UPDATE_HOTSPOTCONFIG_RESULT)); in WifiApRootStateFuzzTest() 120 msg->SetMessageName(static_cast<int>(ApStatemachineEvent::CMD_START_HOTSPOT)); in WifiApRootStateFuzzTest() 122 msg->SetMessageName(static_cast<int>(ApStatemachineEvent::CMD_SET_HOTSPOT_CONFIG)); in WifiApRootStateFuzzTest() 320 msg->SetMessageName(static_cast<int>(ApStatemachineEvent::CMD_UPDATE_HOTSPOTCONFIG_RESULT)); in WifiApIdleStateFuzzTest() 322 msg->SetMessageName(static_cast<int>(ApStatemachineEvent::CMD_START_HOTSPOT)); in WifiApIdleStateFuzzTest()
|