Home
last modified time | relevance | path

Searched refs:PowerModel (Results 1 – 25 of 43) sorted by relevance

12

/ohos5.0/docs/zh-cn/application-dev/reference/apis-connectivity-kit/
H A Djs-apis-wifiext.md53 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 Dwifi_ext_napi_entry.cpp23 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 Dwifi_ext_napi_hotspot.cpp55 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 Djs-apis-wifiext.md53 getSupportedPowerModel(): Promise&lt;Array&lt;PowerModel&gt;&gt;
65 | Promise&lt;Array&lt;[PowerModel](#powermodel)&gt;&gt; | Promise used to return the power models o…
68 ## PowerModel section
83 getSupportedPowerModel(callback: AsyncCallback&lt;Array&lt;PowerModel&gt;&gt;): void
95 | callback | AsyncCallback&lt;Array&lt;[PowerModel](#powermodel)&gt;&gt; | Yes| Callback used to re…
100 getPowerModel(): Promise&lt;PowerModel&gt;
112 | Promise&lt;[PowerModel](#powermodel)&gt; | Promise used to return the power model obtained.|
117 getPowerModel(callback: AsyncCallback&lt;PowerModel&gt;): void
129 | callback | AsyncCallback&lt;[PowerModel](#powermodel)&gt; | 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 Di_ap_service.h40 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 Dap_interface.h129 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 Dap_service.h136 ErrCode GetSupportedPowerModel(std::set<PowerModel>& setPowerModelList);
144 ErrCode GetPowerModel(PowerModel& model);
152 ErrCode SetPowerModel(const PowerModel& model);
H A Dap_interface.cpp99 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 Dap_service.cpp286 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 Dmock_ap_interface.h40 virtual ErrCode GetSupportedPowerModel(std::set<PowerModel>& setPowerModelList);
41 virtual ErrCode GetPowerModel(PowerModel& model);
42 virtual ErrCode SetPowerModel(const PowerModel& model);
H A Dmock_ap_interface.cpp80 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 Dwifi_ext_napi_hotspot.h34 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 Di_wifi_hotspot.h179 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 Dwifi_hotspot.h186 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 Dwifi_hotspot_impl.h196 ErrCode GetSupportedPowerModel(std::set<PowerModel>& setPowerModelList) override;
204 ErrCode GetPowerModel(PowerModel& model) override;
212 ErrCode SetPowerModel(const PowerModel& model) override;
H A Dwifi_hotspot_proxy.h182 ErrCode GetSupportedPowerModel(std::set<PowerModel>& setPowerModelList) override;
190 ErrCode GetPowerModel(PowerModel& model) override;
198 ErrCode SetPowerModel(const PowerModel& model) override;
H A Dwifi_hotspot_impl.cpp226 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 Dwifi_hotspot_proxy.cpp716 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 Dwifi_hotspot_service_impl.h175 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 Dap_service_test.cpp250 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 Dwifi_inner_hotspot_test.cpp182 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 Dwifiap_fuzzer.cpp296 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 Dmock_wifi_config_center.h88 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 Dwifihotspotimpl_fuzzer.cpp108 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 Dwifi_config_center.h194 int SetPowerModel(const PowerModel& model, int id = 0);
196 int GetPowerModel(PowerModel& model, int id = 0);
377 std::map<int, PowerModel> powerModel;

12