/ohos5.0/foundation/communication/wifi/wifi/frameworks/native/src/ |
H A D | wifi_p2p_proxy.cpp | 77 return WIFI_OPT_FAILED; in EnableP2p() 84 return WIFI_OPT_FAILED; in EnableP2p() 92 return WIFI_OPT_FAILED; in EnableP2p() 96 return WIFI_OPT_FAILED; in EnableP2p() 105 return WIFI_OPT_FAILED; in DisableP2p() 112 return WIFI_OPT_FAILED; in DisableP2p() 120 return WIFI_OPT_FAILED; in DisableP2p() 125 return WIFI_OPT_FAILED; in DisableP2p() 134 return WIFI_OPT_FAILED; in DiscoverDevices() 141 return WIFI_OPT_FAILED; in DiscoverDevices() [all …]
|
H A D | wifi_hotspot_proxy.cpp | 79 return WIFI_OPT_FAILED; in IsHotspotActive() 86 return WIFI_OPT_FAILED; in IsHotspotActive() 94 return WIFI_OPT_FAILED; in IsHotspotActive() 98 return WIFI_OPT_FAILED; in IsHotspotActive() 112 return WIFI_OPT_FAILED; in IsHotspotDualBandSupported() 119 return WIFI_OPT_FAILED; in IsHotspotDualBandSupported() 127 return WIFI_OPT_FAILED; in IsHotspotDualBandSupported() 131 return WIFI_OPT_FAILED; in IsHotspotDualBandSupported() 146 return WIFI_OPT_FAILED; in GetHotspotState() 153 return WIFI_OPT_FAILED; in GetHotspotState() [all …]
|
H A D | wifi_device_proxy.cpp | 83 return WIFI_OPT_FAILED; in EnableWifi() 90 return WIFI_OPT_FAILED; in EnableWifi() 98 return WIFI_OPT_FAILED; in EnableWifi() 103 return WIFI_OPT_FAILED; in EnableWifi() 112 return WIFI_OPT_FAILED; in DisableWifi() 118 return WIFI_OPT_FAILED; in DisableWifi() 126 return WIFI_OPT_FAILED; in DisableWifi() 130 return WIFI_OPT_FAILED; in DisableWifi() 139 return WIFI_OPT_FAILED; in InitWifiProtect() 145 return WIFI_OPT_FAILED; in InitWifiProtect() [all …]
|
H A D | wifi_device_proxy_lite.cpp | 337 return WIFI_OPT_FAILED; in Init() 343 return WIFI_OPT_FAILED; in Init() 362 return WIFI_OPT_FAILED; in EnableWifi() 372 return WIFI_OPT_FAILED; in EnableWifi() 381 return WIFI_OPT_FAILED; in EnableWifi() 385 return WIFI_OPT_FAILED; in EnableWifi() 395 return WIFI_OPT_FAILED; in DisableWifi() 405 return WIFI_OPT_FAILED; in DisableWifi() 414 return WIFI_OPT_FAILED; in DisableWifi() 418 return WIFI_OPT_FAILED; in DisableWifi() [all …]
|
H A D | wifi_scan_proxy.cpp | 86 return WIFI_OPT_FAILED; in SetScanControlInfo() 93 return WIFI_OPT_FAILED; in SetScanControlInfo() 119 return WIFI_OPT_FAILED; in SetScanControlInfo() 124 return WIFI_OPT_FAILED; in SetScanControlInfo() 138 return WIFI_OPT_FAILED; in Scan() 145 return WIFI_OPT_FAILED; in Scan() 154 return WIFI_OPT_FAILED; in Scan() 158 return WIFI_OPT_FAILED; in Scan() 173 return WIFI_OPT_FAILED; in AdvanceScan() 180 return WIFI_OPT_FAILED; in AdvanceScan() [all …]
|
H A D | wifi_scan_proxy_lite.cpp | 41 return WIFI_OPT_FAILED; in ParseScanInfos() 179 return WIFI_OPT_FAILED; in Init() 185 return WIFI_OPT_FAILED; in Init() 204 return WIFI_OPT_FAILED; in SetScanControlInfo() 214 return WIFI_OPT_FAILED; in SetScanControlInfo() 241 return WIFI_OPT_FAILED; in SetScanControlInfo() 245 return WIFI_OPT_FAILED; in SetScanControlInfo() 255 return WIFI_OPT_FAILED; in Scan() 265 return WIFI_OPT_FAILED; in Scan() 274 return WIFI_OPT_FAILED; in Scan() [all …]
|
H A D | wifi_scan_callback_stub_lite.cpp | 34 int ret = WIFI_OPT_FAILED; in OnRemoteRequest() 48 return WIFI_OPT_FAILED; in OnRemoteRequest() 52 int exception = WIFI_OPT_FAILED; in OnRemoteRequest() 65 ret = WIFI_OPT_FAILED; in OnRemoteRequest()
|
H A D | wifi_device_callback_stub_lite.cpp | 40 return WIFI_OPT_FAILED; in OnRemoteInterfaceToken() 48 int ret = WIFI_OPT_FAILED; in OnRemoteRequest() 56 if (OnRemoteInterfaceToken(code, data) == WIFI_OPT_FAILED) { in OnRemoteRequest() 57 return WIFI_OPT_FAILED; in OnRemoteRequest() 59 int exception = WIFI_OPT_FAILED; in OnRemoteRequest() 91 ret = WIFI_OPT_FAILED; in OnRemoteRequest()
|
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_sta/ |
H A D | sta_interface.cpp | 55 return WIFI_OPT_FAILED; in EnableStaService() 62 return WIFI_OPT_FAILED; in EnableStaService() 74 return WIFI_OPT_FAILED; in DisableStaService() 86 return WIFI_OPT_FAILED; in ConnectToNetwork() 98 return WIFI_OPT_FAILED; in ConnectToDevice() 110 return WIFI_OPT_FAILED; in StartRoamToNetwork() 122 return WIFI_OPT_FAILED; in StartConnectToUserSelectNetwork() 134 return WIFI_OPT_FAILED; in ReConnect() 146 return WIFI_OPT_FAILED; in ReAssociate() 158 return WIFI_OPT_FAILED; in Disconnect() [all …]
|
H A D | sta_service.cpp | 104 return WIFI_OPT_FAILED; in InitStaService() 109 return WIFI_OPT_FAILED; in InitStaService() 117 return WIFI_OPT_FAILED; in InitStaService() 122 return WIFI_OPT_FAILED; in InitStaService() 227 return WIFI_OPT_FAILED; in AddCandidateConfig() 262 return WIFI_OPT_FAILED; in RemoveCandidateConfig() 288 return WIFI_OPT_FAILED; in ConnectToCandidateConfig() 501 return WIFI_OPT_FAILED; in RemoveDevice() 529 return WIFI_OPT_FAILED; in RemoveAllDevice() 535 return WIFI_OPT_FAILED; in RemoveAllDevice() [all …]
|
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_sta/ |
H A D | sta_interface_test.cpp | 90 EXPECT_TRUE(pStaInterface->DisableStaService() == WIFI_OPT_FAILED); in DisableWifiFail() 104 EXPECT_TRUE(pStaInterface->ConnectToNetwork(0) == WIFI_OPT_FAILED); in ConnectToNetworkIdFail1() 118 EXPECT_TRUE(pStaInterface->ConnectToDevice(config) == WIFI_OPT_FAILED); in ConnectToConfigFail1() 132 EXPECT_TRUE(pStaInterface->ReAssociate() == WIFI_OPT_FAILED); in ReAssociateFail1() 146 EXPECT_TRUE(pStaInterface->Disconnect() == WIFI_OPT_FAILED); in DisconnectFail1() 186 EXPECT_TRUE(pStaInterface->RemoveDevice(0) == WIFI_OPT_FAILED); in RemoveDeviceConfigFail1() 224 EXPECT_TRUE(pStaInterface->StartWps(config) == WIFI_OPT_FAILED); in StartWpsFail1() 236 EXPECT_TRUE(pStaInterface->CancelWps() == WIFI_OPT_FAILED); in CancelWpsFail1() 330 EXPECT_TRUE(pStaInterface->SetSuspendMode(mode) == WIFI_OPT_FAILED); in SetSuspendModeFail() 343 EXPECT_TRUE(pStaInterface->RemoveAllDevice() == WIFI_OPT_FAILED); in RemoveAllDeviceFail() [all …]
|
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_scan/ |
H A D | scan_interface.cpp | 72 CHECK_NULL_AND_RETURN(pScanService, WIFI_OPT_FAILED); in UnInit() 81 CHECK_NULL_AND_RETURN(pScanService, WIFI_OPT_FAILED); in Scan() 89 CHECK_NULL_AND_RETURN(pScanService, WIFI_OPT_FAILED); in ScanWithParam() 98 CHECK_NULL_AND_RETURN(pScanService, WIFI_OPT_FAILED); in DisableScan() 106 CHECK_NULL_AND_RETURN(pScanService, WIFI_OPT_FAILED); in StartWifiPnoScan() 119 CHECK_NULL_AND_RETURN(pScanService, WIFI_OPT_FAILED); in OnScreenStateChanged() 131 CHECK_NULL_AND_RETURN(pScanService, WIFI_OPT_FAILED); in OnStandbyStateChanged() 139 CHECK_NULL_AND_RETURN(pScanService, WIFI_OPT_FAILED); in OnClientModeStatusChanged() 160 CHECK_NULL_AND_RETURN(pScanService, WIFI_OPT_FAILED); in OnMovingFreezeStateChange() 174 CHECK_NULL_AND_RETURN(pScanService, WIFI_OPT_FAILED); in OnCustomControlStateChanged() [all …]
|
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_controller/ |
H A D | wifi_service_scheduler.cpp | 97 return WIFI_OPT_FAILED; in AutoStartStaService() 110 return WIFI_OPT_FAILED; in AutoStartStaService() 116 return WIFI_OPT_FAILED; in AutoStartStaService() 134 return WIFI_OPT_FAILED; in AutoStartWifi2Service() 141 return WIFI_OPT_FAILED; in AutoStartWifi2Service() 145 return WIFI_OPT_FAILED; in AutoStartWifi2Service() 171 return WIFI_OPT_FAILED; in AutoStopStaService() 195 return WIFI_OPT_FAILED; in AutoStopStaService() 217 return WIFI_OPT_FAILED; in AutoStopWifi2Service() 284 return WIFI_OPT_FAILED; in AutoStartScanOnly() [all …]
|
H A D | multi_sta_state_machine.cpp | 64 return WIFI_OPT_FAILED; in InitMultiStaStateMachine() 67 if (InitMultiStaStates() == WIFI_OPT_FAILED) { in InitMultiStaStateMachine() 68 return WIFI_OPT_FAILED; in InitMultiStaStateMachine() 96 return WIFI_OPT_FAILED; in InitMultiStaStates() 203 ErrCode ret = WIFI_OPT_FAILED; in ExecuteStateMsg()
|
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_common/wifi_country_code/ |
H A D | wifi_country_code_policy.cpp | 80 return WIFI_OPT_FAILED; in CalculateWifiCountryCode() 91 return WIFI_OPT_FAILED; in GetWifiCountryCodeByFactory() 98 return WIFI_OPT_FAILED; in GetWifiCountryCodeByFactory() 103 return WIFI_OPT_FAILED; in GetWifiCountryCodeByFactory() 118 return WIFI_OPT_FAILED; in GetWifiCountryCodeByMcc() 124 return WIFI_OPT_FAILED; in GetWifiCountryCodeByMcc() 178 return WIFI_OPT_FAILED; in StatisticCountryCodeFromScanResult() 218 return WIFI_OPT_FAILED; in FindLargestCountCountryCode() 232 return WIFI_OPT_FAILED; in FindLargestCountCountryCode() 259 return WIFI_OPT_FAILED; in ParseCountryCodeElement() [all …]
|
H A D | wifi_country_code_manager.cpp | 133 return WIFI_OPT_FAILED; in UpdateWifiCountryCode() 140 m_wifiCountryCodePolicy->CalculateWifiCountryCode(wifiCountryCode) == WIFI_OPT_FAILED) { in UpdateWifiCountryCode() 142 return WIFI_OPT_FAILED; in UpdateWifiCountryCode() 167 return WIFI_OPT_FAILED; in RegisterWifiCountryCodeChangeListener() 185 return WIFI_OPT_FAILED; in UnregisterWifiCountryCodeChangeListener() 189 return ret > 0 ? WIFI_OPT_SUCCESS : WIFI_OPT_FAILED; in UnregisterWifiCountryCodeChangeListener() 235 return WIFI_OPT_FAILED; in UpdateWifiCountryCodeCache() 240 return ret == 0 ? WIFI_OPT_SUCCESS : WIFI_OPT_FAILED; in UpdateWifiCountryCodeCache()
|
/ohos5.0/foundation/communication/wifi/wifi/frameworks/js/napi/src/ |
H A D | wifi_napi_p2p.cpp | 46 return WIFI_OPT_FAILED; in DevicesToJsArray() 63 return WIFI_OPT_FAILED; in GroupInfosToJs() 77 return WIFI_OPT_FAILED; in GroupInfosToJs() 82 return WIFI_OPT_FAILED; in GroupInfosToJs() 98 return WIFI_OPT_FAILED; in GroupsToJsArray() 103 return WIFI_OPT_FAILED; in GroupsToJsArray() 117 WIFI_NAPI_ASSERT(env, wifiP2pPtr != nullptr, WIFI_OPT_FAILED, SYSCAP_WIFI_P2P); in GetCurrentGroup() 151 WIFI_NAPI_ASSERT(env, wifiP2pPtr != nullptr, WIFI_OPT_FAILED, SYSCAP_WIFI_P2P); in GetP2pGroups() 184 WIFI_NAPI_ASSERT(env, wifiP2pPtr != nullptr, WIFI_OPT_FAILED, SYSCAP_WIFI_P2P); in DeletePersistentGroup() 201 WIFI_NAPI_ASSERT(env, wifiP2pPtr != nullptr, WIFI_OPT_FAILED, SYSCAP_WIFI_P2P); in StartDiscoverDevices() [all …]
|
H A D | wifi_napi_device.cpp | 34 WIFI_NAPI_ASSERT(env, wifiDevicePtr != nullptr, WIFI_OPT_FAILED, SYSCAP_WIFI_STA); in EnableWifi() 42 WIFI_NAPI_ASSERT(env, wifiDevicePtr != nullptr, WIFI_OPT_FAILED, SYSCAP_WIFI_STA); in DisableWifi() 49 WIFI_NAPI_ASSERT(env, wifiDevicePtr != nullptr, WIFI_OPT_FAILED, SYSCAP_WIFI_STA); in IsWifiActive() 64 WIFI_NAPI_ASSERT(env, wifiDevicePtr != nullptr, WIFI_OPT_FAILED, SYSCAP_WIFI_STA); in Scan() 73 WIFI_NAPI_ASSERT(env, wifiDevicePtr != nullptr, WIFI_OPT_FAILED, SYSCAP_WIFI_STA); in StartScan() 132 return WIFI_OPT_FAILED; in NativeInfoElemsToJsObj() 140 return WIFI_OPT_FAILED; in NativeInfoElemsToJsObj() 149 return WIFI_OPT_FAILED; in NativeInfoElemsToJsObj() 157 return WIFI_OPT_FAILED; in NativeInfoElemsToJsObj() 187 return WIFI_OPT_FAILED; in NativeScanInfosToJsObj() [all …]
|
H A D | wifi_napi_hotspot.cpp | 37 WIFI_NAPI_ASSERT(env, wifiHotspotPtr != nullptr, WIFI_OPT_FAILED, SYSCAP_WIFI_AP_CORE); in EnableHotspot() 48 WIFI_NAPI_ASSERT(env, wifiHotspotPtr != nullptr, WIFI_OPT_FAILED, SYSCAP_WIFI_AP_CORE); in DisableHotspot() 58 WIFI_NAPI_ASSERT(env, wifiHotspotPtr != nullptr, WIFI_OPT_FAILED, SYSCAP_WIFI_AP_CORE); in IsHotspotActive() 69 WIFI_NAPI_ASSERT(env, wifiHotspotPtr != nullptr, WIFI_OPT_FAILED, SYSCAP_WIFI_AP_CORE); in IsHotspotDualBandSupported() 192 WIFI_NAPI_ASSERT(env, wifiHotspotPtr != nullptr, WIFI_OPT_FAILED, SYSCAP_WIFI_AP_CORE); in SetHotspotConfig() 194 ErrCode ret = WIFI_OPT_FAILED; in SetHotspotConfig() 221 WIFI_NAPI_ASSERT(env, wifiHotspotPtr != nullptr, WIFI_OPT_FAILED, SYSCAP_WIFI_AP_CORE); in GetHotspotConfig() 253 WIFI_NAPI_ASSERT(env, wifiHotspotPtr != nullptr, WIFI_OPT_FAILED, SYSCAP_WIFI_AP_CORE); in GetStations() 289 WIFI_NAPI_ASSERT(env, wifiHotspotPtr != nullptr, WIFI_OPT_FAILED, SYSCAP_WIFI_AP_CORE); in AddHotspotBlockedList() 310 WIFI_NAPI_ASSERT(env, wifiHotspotPtr != nullptr, WIFI_OPT_FAILED, SYSCAP_WIFI_AP_CORE); in DelHotspotBlockedList() [all …]
|
H A D | wifi_ext_napi_hotspot.cpp | 34 WIFI_NAPI_ASSERT(env, hotspot != nullptr, WIFI_OPT_FAILED, SYSCAP_WIFI_AP_EXT); in EnableHotspot() 46 WIFI_NAPI_ASSERT(env, hotspot != nullptr, WIFI_OPT_FAILED, SYSCAP_WIFI_AP_EXT); in DisableHotspot() 64 return WIFI_OPT_FAILED; in NativePowerModelListToJsObj() 80 WIFI_NAPI_ASSERT(env, asyncContext != nullptr, WIFI_OPT_FAILED, SYSCAP_WIFI_AP_EXT); in GetSupportedPowerModel() 116 WIFI_NAPI_ASSERT(env, asyncContext != nullptr, WIFI_OPT_FAILED, SYSCAP_WIFI_AP_EXT); in GetPowerModel() 157 WIFI_NAPI_ASSERT(env, hotspot != nullptr, WIFI_OPT_FAILED, SYSCAP_WIFI_AP_EXT); in SetPowerModel()
|
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_common/ |
H A D | wifi_datashare_utils.cpp | 121 CHECK_NULL_AND_RETURN(queryHelper, WIFI_OPT_FAILED); in Query() 130 return WIFI_OPT_FAILED; in Query() 136 return WIFI_OPT_FAILED; in Query() 150 CHECK_NULL_AND_RETURN(insertHelper, WIFI_OPT_FAILED); in Insert() 161 return WIFI_OPT_FAILED; in Insert() 172 CHECK_NULL_AND_RETURN(updateHelper, WIFI_OPT_FAILED); in Update() 183 return WIFI_OPT_FAILED; in Update() 194 CHECK_NULL_AND_RETURN(registerHelper, WIFI_OPT_FAILED); in RegisterObserver() 195 CHECK_NULL_AND_RETURN(observer, WIFI_OPT_FAILED); in RegisterObserver() 204 CHECK_NULL_AND_RETURN(unregisterHelper, WIFI_OPT_FAILED); in UnRegisterObserver() [all …]
|
/ohos5.0/foundation/communication/wifi/wifi/utils/src/ |
H A D | wifi_sa_manager.cpp | 42 return WIFI_OPT_FAILED; in LoadWifiSa() 52 return WIFI_OPT_FAILED; in LoadWifiSa() 58 return WIFI_OPT_FAILED; in LoadWifiSa() 77 return WIFI_OPT_FAILED; in WaitLoadStateChange() 89 return WIFI_OPT_FAILED; in UnloadWifiSa() 95 return WIFI_OPT_FAILED; in UnloadWifiSa()
|
H A D | wifi_timer.cpp | 43 return WIFI_OPT_FAILED; in Register() 52 return WIFI_OPT_FAILED; in Register() 89 return WIFI_OPT_FAILED; in Register() 95 return WIFI_OPT_FAILED; in Register()
|
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/ |
H A D | ap_service.cpp | 72 return WIFI_OPT_FAILED; in EnableHotspot() 92 return ErrCode::WIFI_OPT_FAILED; in SetHotspotConfig() 113 return ErrCode::WIFI_OPT_FAILED; in SetHotspotIdleTimeout() 126 return ErrCode::WIFI_OPT_FAILED; in AddBlockList() 141 return ErrCode::WIFI_OPT_FAILED; in DelBlockList() 156 return ErrCode::WIFI_OPT_FAILED; in DisconnetStation() 178 return ErrCode::WIFI_OPT_FAILED; in GetStationList() 198 return ErrCode::WIFI_OPT_FAILED; in GetValidBands() 221 return ErrCode::WIFI_OPT_FAILED; in GetValidBands() 232 return ErrCode::WIFI_OPT_FAILED; in GetValidChannels() [all …]
|
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/unittest/common/ |
H A D | wifi_country_code_policy_test.cpp | 85 EXPECT_EQ(ErrCode::WIFI_OPT_FAILED, m_wifiCountryCodePolicy->GetWifiCountryCodeByFactory(code)); 163 …EXPECT_EQ(ErrCode::WIFI_OPT_FAILED, m_wifiCountryCodePolicy->StatisticCountryCodeFromScanResult(co… 202 EXPECT_EQ(ErrCode::WIFI_OPT_FAILED, m_wifiCountryCodePolicy->FindLargestCountCountryCode(code)); 216 EXPECT_EQ(ErrCode::WIFI_OPT_FAILED, m_wifiCountryCodePolicy->FindLargestCountCountryCode(code)); 227 EXPECT_EQ(ErrCode::WIFI_OPT_FAILED, m_wifiCountryCodePolicy->FindLargestCountCountryCode(code)); 231 EXPECT_EQ(ErrCode::WIFI_OPT_FAILED, m_wifiCountryCodePolicy->FindLargestCountCountryCode(code)); 239 …EXPECT_EQ(ErrCode::WIFI_OPT_FAILED, m_wifiCountryCodePolicy->ParseCountryCodeElement(infoElems1, c… 247 …EXPECT_EQ(ErrCode::WIFI_OPT_FAILED, m_wifiCountryCodePolicy->ParseCountryCodeElement(infoElems2, c… 331 EXPECT_EQ(ErrCode::WIFI_OPT_FAILED, m_wifiCountryCodePolicy->GetWifiCountryCodeByAP(code)); 340 …EXPECT_EQ(ErrCode::WIFI_OPT_FAILED, m_wifiCountryCodePolicy->GetWifiCountryCodeByScanResult(code)); [all …]
|