Home
last modified time | relevance | path

Searched refs:ApStatemachineEvent (Results 1 – 17 of 17) sorted by relevance

/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/
H A Dap_started_state.cpp92 …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 Dap_monitor.cpp57 …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 Dap_idle_state.cpp50 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 Dap_service.cpp64 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 Dap_state_machine.cpp94 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 Dap_define.h38 enum class ApStatemachineEvent { enum
56 using HandlerApMethod = void(ApStatemachineEvent, int, int, const std::any &);
H A Dap_stations_manager.h96 …void RegisterEventHandler(std::function<void(const StationInfo &, ApStatemachineEvent)> callbacks);
116 std::function<void(const StationInfo &, ApStatemachineEvent)> m_stationChangeCallback;
H A Dap_stations_manager.cpp110 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 Dap_monitor.h85 …virtual void SendMessage(const std::string &iface, ApStatemachineEvent msgName, int param1, int pa…
H A Dap_state_machine.h67 void BroadCastStationChange(const StationInfo &staInfo, ApStatemachineEvent act);
H A Dap_started_state.h259 std::map<ApStatemachineEvent, ProcessFun> mProcessFunMap;
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_ap/
H A Dap_started_state_test.cpp272 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 Dap_idle_state_test.cpp81 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 Dap_root_state_test.cpp56 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 Dap_state_machine_test.cpp101 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 Dap_stations_manager_test.cpp82 void BroadCastStationChangeTest(const StationInfo &staInfo, ApStatemachineEvent act) in BroadCastStationChangeTest()
/ohos5.0/foundation/communication/wifi/wifi/test/fuzztest/wifi_sta/wifiap_fuzzer/
H A Dwifiap_fuzzer.cpp118 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()