/foundation/communication/wifi/wifi/interfaces/kits/c/ |
H A D | wifi_p2p.h | 36 * @return WifiErrorCode - operation result 38 WifiErrorCode EnableP2p(); 43 * @return WifiErrorCode - operation result 45 WifiErrorCode DisableP2p(); 51 * @return WifiErrorCode - operation result 53 WifiErrorCode GetP2pEnableStatus(P2pState* state); 58 * @return WifiErrorCode - operation result 60 WifiErrorCode DiscoverDevices(); 65 * @return WifiErrorCode - operation result 67 WifiErrorCode StopDiscoverDevice [all...] |
H A D | wifi_device.h | 55 * {@link WifiErrorCode} otherwise. 58 WifiErrorCode EnableWifi(void); 64 * {@link WifiErrorCode} otherwise. 67 WifiErrorCode DisableWifi(void); 82 * {@link WifiErrorCode} otherwise. 85 WifiErrorCode Scan(void); 96 * error code defined in {@link WifiErrorCode} otherwise. 99 WifiErrorCode GetScanInfoList(WifiScanInfo *result, unsigned int *size); 109 * in {@link WifiErrorCode} otherwise. 112 WifiErrorCode AddDeviceConfi [all...] |
H A D | wifi_hotspot.h | 60 * {@link WifiErrorCode} otherwise. 63 WifiErrorCode EnableHotspot(void); 69 * {@link WifiErrorCode} otherwise. 72 WifiErrorCode DisableHotspot(void); 83 * {@link WifiErrorCode} otherwise. 86 WifiErrorCode SetHotspotConfig(const HotspotConfig *config); 95 * {@link WifiErrorCode} otherwise. 98 WifiErrorCode GetHotspotConfig(HotspotConfig *result); 118 * code defined in {@link WifiErrorCode} otherwise. 121 WifiErrorCode GetStationLis [all...] |
H A D | wifi_hid2d.h | 166 * @return WifiErrorCode - operation result 168 WifiErrorCode Hid2dRequestGcIp(const unsigned char gcMac[MAC_LEN], unsigned int ipAddr[IPV4_ARRAY_LEN]); 173 * @return WifiErrorCode - operation result 175 WifiErrorCode Hid2dSharedlinkIncrease(void); 180 * @return WifiErrorCode - operation result 182 WifiErrorCode Hid2dSharedlinkDecrease(void); 189 * @return WifiErrorCode - operation result 191 WifiErrorCode Hid2dCreateGroup(const int frequency, FreqType type); 197 * @return WifiErrorCode - operation result 199 WifiErrorCode Hid2dRemoveGcGrou [all...] |
H A D | wifi_hotspot_config.h | 113 * {@link WifiErrorCode} otherwise. 116 WifiErrorCode SetBand(int band); 123 * {@link WifiErrorCode} otherwise. 126 WifiErrorCode GetBand(int *result);
|
H A D | wifi_error_code.h | 67 } WifiErrorCode; typedef
|
/foundation/communication/wifi_lite/interfaces/wifiservice/ |
H A D | wifi_device.h | 54 * {@link WifiErrorCode} otherwise.
57 WifiErrorCode EnableWifi(void);
63 * {@link WifiErrorCode} otherwise.
66 WifiErrorCode DisableWifi(void);
81 * {@link WifiErrorCode} otherwise.
84 WifiErrorCode Scan(void);
95 * error code defined in {@link WifiErrorCode} otherwise.
98 WifiErrorCode GetScanInfoList(WifiScanInfo *result, unsigned int *size);
108 * in {@link WifiErrorCode} otherwise.
111 WifiErrorCode AddDeviceConfi [all...] |
H A D | wifi_hotspot.h | 60 * {@link WifiErrorCode} otherwise.
63 WifiErrorCode EnableHotspot(void);
69 * {@link WifiErrorCode} otherwise.
72 WifiErrorCode DisableHotspot(void);
83 * {@link WifiErrorCode} otherwise.
86 WifiErrorCode SetHotspotConfig(const HotspotConfig *config);
95 * {@link WifiErrorCode} otherwise.
98 WifiErrorCode GetHotspotConfig(HotspotConfig *result);
118 * code defined in {@link WifiErrorCode} otherwise.
121 WifiErrorCode GetStationLis [all...] |
H A D | wifi_hotspot_config.h | 105 * {@link WifiErrorCode} otherwise.
108 WifiErrorCode SetBand(int band);
115 * {@link WifiErrorCode} otherwise.
118 WifiErrorCode GetBand(int *result);
|
H A D | wifi_error_code.h | 67 } WifiErrorCode;
typedef
|
/foundation/communication/dsoftbus/tests/core/bus_center/mock_common/include/ |
H A D | wifi_mock.h | 33 virtual WifiErrorCode GetDeviceConfigs(WifiDeviceConfig *result, unsigned int *size) = 0; 34 virtual WifiErrorCode ConnectToDevice(const WifiDeviceConfig *config) = 0; 35 virtual WifiErrorCode Scan(void) = 0; 36 virtual WifiErrorCode RegisterWifiEvent(WifiEvent *event) = 0; 37 virtual WifiErrorCode GetScanInfoList(WifiScanInfo *result, unsigned int *size) = 0; 38 virtual WifiErrorCode UnRegisterWifiEvent(WifiEvent *event) = 0; 39 virtual WifiErrorCode Hid2dGetChannelListFor5G(int32_t *chanList, int32_t len) = 0; 40 virtual WifiErrorCode GetLinkedInfo(WifiLinkedInfo *info) = 0; 41 virtual WifiErrorCode GetCurrentGroup(WifiP2pGroupInfo* groupInfo) = 0; 43 virtual WifiErrorCode GetWifiDetailStat [all...] |
/foundation/communication/dsoftbus/tests/core/bus_center/mock_common/src/ |
H A D | wifi_mock.cpp | 41 WifiErrorCode GetDeviceConfigs(WifiDeviceConfig *result, unsigned int *size) in GetDeviceConfigs() 46 WifiErrorCode ConnectToDevice(const WifiDeviceConfig *config) in ConnectToDevice() 51 WifiErrorCode Scan(void) in Scan() 56 WifiErrorCode RegisterWifiEvent(WifiEvent *event) in RegisterWifiEvent() 61 WifiErrorCode GetScanInfoList(WifiScanInfo *result, unsigned int *size) in GetScanInfoList() 66 WifiErrorCode UnRegisterWifiEvent(WifiEvent *event) in UnRegisterWifiEvent() 71 WifiErrorCode Hid2dGetChannelListFor5G(int32_t *chanList, int32_t len) in Hid2dGetChannelListFor5G() 76 WifiErrorCode GetLinkedInfo(WifiLinkedInfo *info) in GetLinkedInfo() 81 WifiErrorCode GetCurrentGroup(WifiP2pGroupInfo* groupInfo) in GetCurrentGroup() 91 WifiErrorCode GetWifiDetailStat [all...] |
/foundation/communication/dsoftbus/tests/core/connection/wifi_direct_cpp/ |
H A D | wifi_direct_mock.h | 44 virtual WifiErrorCode Hid2dGetChannelListFor5G(int32_t *chanList, int32_t len) = 0; 45 virtual WifiErrorCode GetP2pEnableStatus(P2pState* state) = 0; 79 virtual WifiErrorCode GetLinkedInfo(WifiLinkedInfo *info) = 0; 80 virtual WifiErrorCode Hid2dGetRecommendChannel(const RecommendChannelRequest *request, 82 virtual WifiErrorCode Hid2dGetSelfWifiCfgInfo(SelfCfgType cfgType, char cfgData[CFG_DATA_MAX_BYTES], 86 virtual WifiErrorCode Hid2dSetPeerWifiCfgInfo(PeerCfgType cfgType, char cfgData[CFG_DATA_MAX_BYTES], 88 virtual WifiErrorCode GetCurrentGroup(WifiP2pGroupInfo* groupInfo) = 0; 89 virtual WifiErrorCode Hid2dRequestGcIp(const unsigned char gcMac[MAC_LEN], 91 virtual WifiErrorCode Hid2dConfigIPAddr(const char ifName[IF_NAME_LEN], const IpAddrInfo *ipInfo) = 0; 92 virtual WifiErrorCode Hid2dCreateGrou [all...] |
H A D | wifi_direct_mock.cpp | 37 WifiErrorCode Hid2dGetChannelListFor5G(int32_t *chanList, int32_t len) in Hid2dGetChannelListFor5G() 42 WifiErrorCode GetP2pEnableStatus(P2pState *state) in GetP2pEnableStatus() 201 WifiErrorCode GetLinkedInfo(WifiLinkedInfo *info) in GetLinkedInfo() 206 WifiErrorCode Hid2dGetRecommendChannel(const RecommendChannelRequest *request, RecommendChannelResponse *response) in Hid2dGetRecommendChannel() 211 WifiErrorCode Hid2dGetSelfWifiCfgInfo(SelfCfgType cfgType, char cfgData[CFG_DATA_MAX_BYTES], int32_t *getDatValidLen) in Hid2dGetSelfWifiCfgInfo() 221 WifiErrorCode Hid2dSetPeerWifiCfgInfo(PeerCfgType cfgType, char cfgData[CFG_DATA_MAX_BYTES], int32_t setDataValidLen) in Hid2dSetPeerWifiCfgInfo() 227 WifiErrorCode GetCurrentGroup(WifiP2pGroupInfo *groupInfo) in GetCurrentGroup() 232 WifiErrorCode Hid2dRequestGcIp(const unsigned char gcMac[MAC_LEN], unsigned int ipAddr[IPV4_ARRAY_LEN]) in Hid2dRequestGcIp() 237 WifiErrorCode Hid2dConfigIPAddr(const char ifName[IF_NAME_LEN], const IpAddrInfo *ipInfo) in Hid2dConfigIPAddr() 242 WifiErrorCode Hid2dCreateGrou [all...] |
/foundation/communication/wifi/wifi/frameworks/native/c_adapter/src/ |
H A D | wifi_c_hotspot.cpp | 31 NO_SANITIZE("cfi") WifiErrorCode EnableHotspot() in EnableHotspot() 37 NO_SANITIZE("cfi") WifiErrorCode DisableHotspot() in DisableHotspot() 54 NO_SANITIZE("cfi") WifiErrorCode IsHotspotDualBandSupported(bool &isSupported) in IsHotspotDualBandSupported() 90 static WifiErrorCode GetHotspotConfigFromC(const HotspotConfig *config, OHOS::Wifi::HotspotConfig& hotspotConfig) in GetHotspotConfigFromC() 119 static WifiErrorCode GetHotspotConfigFromCpp(const OHOS::Wifi::HotspotConfig& hotspotConfig, HotspotConfig *result) in GetHotspotConfigFromCpp() 140 NO_SANITIZE("cfi") WifiErrorCode SetHotspotConfig(const HotspotConfig *config) in SetHotspotConfig() 145 WifiErrorCode ret = GetHotspotConfigFromC(config, hotspotConfig); in SetHotspotConfig() 152 NO_SANITIZE("cfi") WifiErrorCode GetHotspotConfig(HotspotConfig *result) in GetHotspotConfig() 159 WifiErrorCode retValue = GetHotspotConfigFromCpp(hotspotConfig, result); in GetHotspotConfig() 168 static WifiErrorCode GetStaListFromCp [all...] |
H A D | wifi_c_hid2d.cpp | 28 NO_SANITIZE("cfi") WifiErrorCode Hid2dRequestGcIp(const unsigned char gcMac[MAC_LEN], in Hid2dRequestGcIp() 43 NO_SANITIZE("cfi") WifiErrorCode Hid2dSharedlinkIncrease(void) in Hid2dSharedlinkIncrease() 49 NO_SANITIZE("cfi") WifiErrorCode Hid2dSharedlinkDecrease(void) in Hid2dSharedlinkDecrease() 55 NO_SANITIZE("cfi") WifiErrorCode Hid2dCreateGroup(const int frequency, FreqType type) in Hid2dCreateGroup() 61 NO_SANITIZE("cfi") WifiErrorCode Hid2dRemoveGcGroup(const char gcIfName[IF_NAME_LEN]) in Hid2dRemoveGcGroup() 67 NO_SANITIZE("cfi") WifiErrorCode Hid2dConnect(const Hid2dConnectConfig *config) in Hid2dConnect() 81 NO_SANITIZE("cfi") WifiErrorCode Hid2dConfigIPAddr(const char ifName[IF_NAME_LEN], const IpAddrInfo* ipInfo) in Hid2dConfigIPAddr() 93 NO_SANITIZE("cfi") WifiErrorCode Hid2dReleaseIPAddr(const char ifName[IF_NAME_LEN]) in Hid2dReleaseIPAddr() 123 NO_SANITIZE("cfi") WifiErrorCode Hid2dGetRecommendChannel(const RecommendChannelRequest *request, in Hid2dGetRecommendChannel() 140 NO_SANITIZE("cfi") WifiErrorCode Hid2dGetChannelListFor5 [all...] |
H A D | wifi_c_utils.cpp | 22 static std::map<ErrCode, WifiErrorCode> g_ErrCodeMap = { 41 WifiErrorCode GetCErrorCode(ErrCode errCode) in GetCErrorCode() 43 std::map<ErrCode, WifiErrorCode>::const_iterator iter = g_ErrCodeMap.find(errCode); in GetCErrorCode() 47 WifiErrorCode IpStrToArray(const std::string& str, unsigned int ipAddr[IPV4_ARRAY_LEN]) { in IpStrToArray()
|
H A D | wifi_c_device.cpp | 38 NO_SANITIZE("cfi") WifiErrorCode EnableWifi() in EnableWifi() 44 NO_SANITIZE("cfi") WifiErrorCode DisableWifi() in DisableWifi() 72 NO_SANITIZE("cfi") WifiErrorCode Scan() in Scan() 78 NO_SANITIZE("cfi") WifiErrorCode GetScanInfoList(WifiScanInfo *result, unsigned int *size) in GetScanInfoList() 240 NO_SANITIZE("cfi") WifiErrorCode AddDeviceConfig(const WifiDeviceConfig *config, int *result) in AddDeviceConfig() 258 NO_SANITIZE("cfi") WifiErrorCode GetDeviceConfigs(WifiDeviceConfig *result, unsigned int *size) in GetDeviceConfigs() 281 NO_SANITIZE("cfi") WifiErrorCode RemoveDevice(int networkId) in RemoveDevice() 287 WifiErrorCode DisableDeviceConfig(int networkId) in DisableDeviceConfig() 292 WifiErrorCode EnableDeviceConfig(int networkId) in EnableDeviceConfig() 297 NO_SANITIZE("cfi") WifiErrorCode ConnectT [all...] |
H A D | wifi_c_p2p.cpp | 29 NO_SANITIZE("cfi") WifiErrorCode EnableP2p() in EnableP2p() 36 NO_SANITIZE("cfi") WifiErrorCode DisableP2p() in DisableP2p() 42 NO_SANITIZE("cfi") WifiErrorCode GetP2pEnableStatus(P2pState* state) in GetP2pEnableStatus() 53 NO_SANITIZE("cfi") WifiErrorCode DiscoverDevices() in DiscoverDevices() 59 NO_SANITIZE("cfi") WifiErrorCode StopDiscoverDevices() in StopDiscoverDevices() 65 NO_SANITIZE("cfi") WifiErrorCode DiscoverServices() in DiscoverServices() 71 NO_SANITIZE("cfi") WifiErrorCode StopDiscoverServices() in StopDiscoverServices() 77 NO_SANITIZE("cfi") WifiErrorCode StartP2pListen(int period, int interval) in StartP2pListen() 83 NO_SANITIZE("cfi") WifiErrorCode StopP2pListen() in StopP2pListen() 101 NO_SANITIZE("cfi") WifiErrorCode CreateGrou [all...] |
H A D | wifi_c_event.cpp | 215 WifiErrorCode EventManager::RegisterDeviceEvent(const std::vector<std::string> &event) in RegisterDeviceEvent() 234 WifiErrorCode EventManager::RegisterScanEvent(const std::vector<std::string> &event) in RegisterScanEvent() 253 WifiErrorCode EventManager::RegisterHotspotEvent(const std::vector<std::string> &event) in RegisterHotspotEvent() 272 WifiErrorCode EventManager::RegisterP2PEvent(const std::vector<std::string> &event) in RegisterP2PEvent() 296 NO_SANITIZE("cfi") WifiErrorCode EventManager::RegisterWifiEvents() in RegisterWifiEvents() 318 WifiErrorCode ret = WIFI_SUCCESS; in RegisterWifiEvents() 424 WifiErrorCode RegisterWifiEvent(WifiEvent *event) { in RegisterWifiEvent() 437 WifiErrorCode UnRegisterWifiEvent(WifiEvent *event) { in UnRegisterWifiEvent()
|
/foundation/communication/wifi/wifi/frameworks/native/c_adapter/inc/ |
H A D | wifi_c_utils.h | 51 * @return WifiErrorCode - c error code 53 WifiErrorCode GetCErrorCode(ErrCode errCode); 60 * @return WifiErrorCode - operation result 62 WifiErrorCode IpStrToArray(const std::string& str, unsigned int ipAddr[IPV4_ARRAY_LEN]);
|
/foundation/communication/wifi/wifi/frameworks/native/src/ |
H A D | wifi_sa_event.h | 172 WifiErrorCode RegisterDeviceEvent(const std::vector<std::string> &event); 173 WifiErrorCode RegisterScanEvent(const std::vector<std::string> &event); 174 WifiErrorCode RegisterHotspotEvent(const std::vector<std::string> &event); 175 WifiErrorCode RegisterP2PEvent(const std::vector<std::string> &event); 176 WifiErrorCode RegisterWifiEvents();
|
/foundation/communication/wifi/wifi/test/wifi_standard/native/ |
H A D | wifi_c_hotspot_test.cpp | 128 WifiErrorCode ret = SetHotspotConfig(config); in HWTEST_F() 144 WifiErrorCode ret = SetHotspotConfig(&config); in HWTEST_F()
|
/foundation/communication/dsoftbus/tests/core/connection/wifi_direct_cpp/processor/ |
H A D | p2p_v1_processor_test.cpp | 110 std::pair<WifiErrorCode, std::vector<int>>(WIFI_SUCCESS, std::vector<int> { 36, 48, 149 })); in PrepareContext() 111 context_.Set(TestContextKey::WIFI_GET_SELF_CONFIG, WifiErrorCode(WIFI_SUCCESS)); in PrepareContext() 116 std::pair<WifiErrorCode, std::vector<int>>(WIFI_SUCCESS, std::vector<int> { 192, 168, 1, 1 })); in PrepareContext() 134 auto value = context_.Get(TestContextKey::WIFI_5G_CHANNEL_LIST, std::pair<WifiErrorCode, std::vector<int>>()); in InjectData() 141 .WillRepeatedly(Return(context_.Get(TestContextKey::WIFI_GET_SELF_CONFIG, WifiErrorCode(WIFI_SUCCESS)))); in InjectData() 157 auto value = context_.Get(TestContextKey::WIFI_REQUEST_GC_IP, std::pair<WifiErrorCode, std::vector<int>>()); in InjectData() 531 std::pair<WifiErrorCode, std::vector<int>>(WIFI_SUCCESS, std::vector<int> { 192, 168, 49, 3 })); in HWTEST_F() 846 std::pair<WifiErrorCode, std::vector<int>>(WIFI_SUCCESS, std::vector<int> { 192, 168, 49, 3 })); in HWTEST_F() 911 std::pair<WifiErrorCode, std::vector<int>>(WIFI_SUCCESS, std::vector<int> { 192, 168, 49, 3 })); in HWTEST_F() 1418 std::pair<WifiErrorCode, st in HWTEST_F() [all...] |
/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/adapter/ |
H A D | p2p_adapter.cpp | 157 WifiErrorCode ret = Hid2dSharedlinkIncrease(); in P2pShareLinkReuse() 165 WifiErrorCode ret = Hid2dSharedlinkDecrease(); in P2pShareLinkRemoveGroup() 180 WifiErrorCode ret; in DestroyGroup()
|