/ohos5.0/docs/zh-cn/application-dev/reference/apis-connectivity-kit/ |
H A D | js-apis-wifiext.md | 53 getSupportedPowerModel(): Promise<Array<PowerModel>> 65 | Promise<Array<[PowerModel](#powermodel)>> | Promise对象。表示功率模式。 | 68 ## PowerModel section 83 getSupportedPowerModel(callback: AsyncCallback<Array<PowerModel>>): void 95 …| callback | AsyncCallback<Array<[PowerModel](#powermodel)>> | 是 | 回调函数。当操作成功时,err为0,d… 100 getPowerModel(): Promise<PowerModel> 112 | Promise<[PowerModel](#powermodel)> | Promise对象。表示功率模式。 | 117 getPowerModel(callback: AsyncCallback<PowerModel>): void 129 …| callback | AsyncCallback<[PowerModel](#powermodel)> | 是 | 回调函数。当操作成功时,err为0,data表示功率模式。如果e… 134 setPowerModel(model: PowerModel) : boolean; [all …]
|
/ohos5.0/foundation/communication/wifi/wifi/frameworks/js/napi/src/ |
H A D | wifi_ext_napi_entry.cpp | 23 napi_value PowerModel = nullptr; in PowerModelInit() local 24 napi_create_object(env, &PowerModel); in PowerModelInit() 25 … SetNamedPropertyByInteger(env, PowerModel, static_cast<int>(PowerModelJs::SLEEPING), "SLEEPING"); in PowerModelInit() 26 SetNamedPropertyByInteger(env, PowerModel, static_cast<int>(PowerModelJs::GENERAL), "GENERAL"); in PowerModelInit() 27 …SetNamedPropertyByInteger(env, PowerModel, static_cast<int>(PowerModelJs::THROUGH_WALL), "THROUGH_… in PowerModelInit() 28 return PowerModel; in PowerModelInit()
|
H A D | wifi_ext_napi_hotspot.cpp | 55 const std::set<PowerModel>& setPowerModelList, napi_value& arrayResult) in NativePowerModelListToJsObj() 158 ErrCode ret = hotspot->SetPowerModel(static_cast<PowerModel>(model)); in SetPowerModel()
|
/ohos5.0/docs/en/application-dev/reference/apis-connectivity-kit/ |
H A D | js-apis-wifiext.md | 53 getSupportedPowerModel(): Promise<Array<PowerModel>> 65 | Promise<Array<[PowerModel](#powermodel)>> | Promise used to return the power models o… 68 ## PowerModel section 83 getSupportedPowerModel(callback: AsyncCallback<Array<PowerModel>>): void 95 | callback | AsyncCallback<Array<[PowerModel](#powermodel)>> | Yes| Callback used to re… 100 getPowerModel(): Promise<PowerModel> 112 | Promise<[PowerModel](#powermodel)> | Promise used to return the power model obtained.| 117 getPowerModel(callback: AsyncCallback<PowerModel>): void 129 | callback | AsyncCallback<[PowerModel](#powermodel)> | Yes| Callback used to return the resu… 134 setPowerModel(model: PowerModel) : boolean; [all …]
|
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/ |
H A D | i_ap_service.h | 40 virtual ErrCode GetSupportedPowerModel(std::set<PowerModel>& setPowerModelList) = 0; 41 virtual ErrCode GetPowerModel(PowerModel& model) = 0; 42 virtual ErrCode SetPowerModel(const PowerModel& model) = 0;
|
H A D | ap_interface.h | 129 virtual ErrCode GetSupportedPowerModel(std::set<PowerModel>& setPowerModelList) override; 137 virtual ErrCode GetPowerModel(PowerModel& model) override; 145 virtual ErrCode SetPowerModel(const PowerModel& model) override;
|
H A D | ap_service.h | 136 ErrCode GetSupportedPowerModel(std::set<PowerModel>& setPowerModelList); 144 ErrCode GetPowerModel(PowerModel& model); 152 ErrCode SetPowerModel(const PowerModel& model);
|
H A D | ap_interface.cpp | 99 ErrCode ApInterface::GetSupportedPowerModel(std::set<PowerModel>& setPowerModelList) in GetSupportedPowerModel() 104 ErrCode ApInterface::GetPowerModel(PowerModel& model) in GetPowerModel() 109 ErrCode ApInterface::SetPowerModel(const PowerModel& model) in SetPowerModel()
|
H A D | ap_service.cpp | 286 ErrCode ApService::GetSupportedPowerModel(std::set<PowerModel>& setPowerModelList) in GetSupportedPowerModel() 290 setPowerModelList.insert(PowerModel::SLEEPING); in GetSupportedPowerModel() 291 setPowerModelList.insert(PowerModel::GENERAL); in GetSupportedPowerModel() 292 setPowerModelList.insert(PowerModel::THROUGH_WALL); in GetSupportedPowerModel() 296 ErrCode ApService::GetPowerModel(PowerModel& model) in GetPowerModel() 304 ErrCode ApService::SetPowerModel(const PowerModel& model) in SetPowerModel()
|
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_ap/Mock/ |
H A D | mock_ap_interface.h | 40 virtual ErrCode GetSupportedPowerModel(std::set<PowerModel>& setPowerModelList); 41 virtual ErrCode GetPowerModel(PowerModel& model); 42 virtual ErrCode SetPowerModel(const PowerModel& model);
|
H A D | mock_ap_interface.cpp | 80 ErrCode ApInterface::GetSupportedPowerModel(std::set<PowerModel>& setPowerModelList) in GetSupportedPowerModel() 85 ErrCode ApInterface::GetPowerModel(PowerModel& model) in GetPowerModel() 90 ErrCode ApInterface::SetPowerModel(const PowerModel& model) in SetPowerModel()
|
/ohos5.0/foundation/communication/wifi/wifi/frameworks/js/napi/inc/ |
H A D | wifi_ext_napi_hotspot.h | 34 PowerModel powerModel; 37 : AsyncContext(env, work, deferred), powerModel(PowerModel::GENERAL) {} 45 std::set<PowerModel> setPowerModelList;
|
/ohos5.0/foundation/communication/wifi/wifi/frameworks/native/interfaces/ |
H A D | i_wifi_hotspot.h | 179 virtual ErrCode GetSupportedPowerModel(std::set<PowerModel>& setPowerModelList) = 0; 187 virtual ErrCode GetPowerModel(PowerModel& model) = 0; 195 virtual ErrCode SetPowerModel(const PowerModel& model) = 0;
|
/ohos5.0/foundation/communication/wifi/wifi/interfaces/inner_api/ |
H A D | wifi_hotspot.h | 186 virtual ErrCode GetSupportedPowerModel(std::set<PowerModel>& setPowerModelList) = 0; 194 virtual ErrCode GetPowerModel(PowerModel& model) = 0; 202 virtual ErrCode SetPowerModel(const PowerModel& model) = 0;
|
/ohos5.0/foundation/communication/wifi/wifi/frameworks/native/src/ |
H A D | wifi_hotspot_impl.h | 196 ErrCode GetSupportedPowerModel(std::set<PowerModel>& setPowerModelList) override; 204 ErrCode GetPowerModel(PowerModel& model) override; 212 ErrCode SetPowerModel(const PowerModel& model) override;
|
H A D | wifi_hotspot_proxy.h | 182 ErrCode GetSupportedPowerModel(std::set<PowerModel>& setPowerModelList) override; 190 ErrCode GetPowerModel(PowerModel& model) override; 198 ErrCode SetPowerModel(const PowerModel& model) override;
|
H A D | wifi_hotspot_impl.cpp | 226 ErrCode WifiHotspotImpl::GetSupportedPowerModel(std::set<PowerModel>& setPowerModelList) in GetSupportedPowerModel() 233 ErrCode WifiHotspotImpl::GetPowerModel(PowerModel& model) in GetPowerModel() 240 ErrCode WifiHotspotImpl::SetPowerModel(const PowerModel& model) in SetPowerModel()
|
H A D | wifi_hotspot_proxy.cpp | 716 ErrCode WifiHotspotProxy::GetSupportedPowerModel(std::set<PowerModel>& setPowerModelList) in GetSupportedPowerModel() 755 setPowerModelList.insert(PowerModel(val)); in GetSupportedPowerModel() 760 ErrCode WifiHotspotProxy::GetPowerModel(PowerModel& model) in GetPowerModel() 790 model = PowerModel(reply.ReadInt32()); in GetPowerModel() 794 ErrCode WifiHotspotProxy::SetPowerModel(const PowerModel& model) in SetPowerModel()
|
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap_sa/ |
H A D | wifi_hotspot_service_impl.h | 175 ErrCode GetSupportedPowerModel(std::set<PowerModel>& setPowerModelList) override; 183 ErrCode GetPowerModel(PowerModel& model) override; 191 ErrCode SetPowerModel(const PowerModel& model) override;
|
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_ap/ |
H A D | ap_service_test.cpp | 250 std::set<PowerModel> setPowerModelList; 256 PowerModel model = PowerModel::SLEEPING; 265 PowerModel model = PowerModel::SLEEPING;
|
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/native/ |
H A D | wifi_inner_hotspot_test.cpp | 182 std::set<PowerModel> setPowerModelList; 192 PowerModel model; 202 ErrCode result = devicePtr->SetPowerModel(PowerModel::GENERAL);
|
/ohos5.0/foundation/communication/wifi/wifi/test/fuzztest/wifi_sta/wifiap_fuzzer/ |
H A D | wifiap_fuzzer.cpp | 296 std::set<PowerModel> setPowerModelList; in GetSupportedPowerModelFuzzTest() 303 PowerModel model = static_cast<PowerModel>(static_cast<int>(data[0]) % THREE); in GetPowerModelFuzzTest() 310 PowerModel model = static_cast<PowerModel>(static_cast<int>(data[0]) % THREE); in SetPowerModelFuzzTest()
|
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_toolkit/unittest/Mock/ |
H A D | mock_wifi_config_center.h | 88 virtual int SetPowerModel(const PowerModel& model, int id = 0)= 0; 89 virtual int GetPowerModel(PowerModel& model, int id = 0) = 0; 198 MOCK_METHOD2(SetPowerModel, int(const PowerModel& model, int id)); 199 MOCK_METHOD2(GetPowerModel, int(PowerModel& model, int id));
|
/ohos5.0/foundation/communication/wifi/wifi/test/fuzztest/wifi_sta/wifihotspotimpl_fuzzer/ |
H A D | wifihotspotimpl_fuzzer.cpp | 108 std::set<PowerModel> setPowerModelList; in DisassociateStaFuzzTest() 110 PowerModel model; in DisassociateStaFuzzTest()
|
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/config/ |
H A D | wifi_config_center.h | 194 int SetPowerModel(const PowerModel& model, int id = 0); 196 int GetPowerModel(PowerModel& model, int id = 0); 377 std::map<int, PowerModel> powerModel;
|