Home
last modified time | relevance | path

Searched refs:wifiDevicePtr (Results 1 - 5 of 5) sorted by relevance

/foundation/communication/wifi/wifi/frameworks/native/c_adapter/src/
H A Dwifi_c_device.cpp35 std::shared_ptr<OHOS::Wifi::WifiDevice> wifiDevicePtr = OHOS::Wifi::WifiDevice::GetInstance(WIFI_DEVICE_ABILITY_ID); variable
40 CHECK_PTR_RETURN(wifiDevicePtr, ERROR_WIFI_NOT_AVAILABLE); in EnableWifi()
41 return GetCErrorCode(wifiDevicePtr->EnableWifi()); in EnableWifi()
46 CHECK_PTR_RETURN(wifiDevicePtr, ERROR_WIFI_NOT_AVAILABLE); in DisableWifi()
47 return GetCErrorCode(wifiDevicePtr->DisableWifi()); in DisableWifi()
52 if (wifiDevicePtr == nullptr) { in IsWifiActive()
57 OHOS::Wifi::ErrCode ret = wifiDevicePtr->IsWifiActive(isActive); in IsWifiActive()
63 if (wifiDevicePtr == nullptr) { in IsMeteredHotspot()
68 OHOS::Wifi::ErrCode ret = wifiDevicePtr->IsMeteredHotspot(isMeteredHotspot); in IsMeteredHotspot()
242 CHECK_PTR_RETURN(wifiDevicePtr, ERROR_WIFI_NOT_AVAILABL in AddDeviceConfig()
[all...]
/foundation/communication/wifi/wifi/frameworks/js/napi/src/
H A Dwifi_napi_device.cpp28 std::shared_ptr<WifiDevice> wifiDevicePtr = WifiDevice::GetInstance(WIFI_DEVICE_ABILITY_ID); member
34 WIFI_NAPI_ASSERT(env, wifiDevicePtr != nullptr, WIFI_OPT_FAILED, SYSCAP_WIFI_STA); in EnableWifi()
35 ErrCode ret = wifiDevicePtr->EnableWifi(); in EnableWifi()
42 WIFI_NAPI_ASSERT(env, wifiDevicePtr != nullptr, WIFI_OPT_FAILED, SYSCAP_WIFI_STA); in DisableWifi()
43 ErrCode ret = wifiDevicePtr->DisableWifi(); in DisableWifi()
49 WIFI_NAPI_ASSERT(env, wifiDevicePtr != nullptr, WIFI_OPT_FAILED, SYSCAP_WIFI_STA); in IsWifiActive()
51 ErrCode ret = wifiDevicePtr->IsWifiActive(activeStatus); 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()
201 WIFI_NAPI_ASSERT(env, wifiDevicePtr ! in GetScanInfos()
[all...]
/foundation/ability/dmsfwk/services/dtbschedmgr/src/mission/
H A Dwifi_state_listener.cpp63 std::shared_ptr<Wifi::WifiDevice> wifiDevicePtr = Wifi::WifiDevice::GetInstance(WIFI_DEVICE_SYS_ABILITY_ID); in CheckWifiStateIsActived() local
64 if (wifiDevicePtr == nullptr) { in CheckWifiStateIsActived()
69 auto ret = wifiDevicePtr->GetWifiDetailState(wifiDetailState); in CheckWifiStateIsActived()
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/
H A Dmedialibrary_subscriber.cpp131 auto wifiDevicePtr = Wifi::WifiDevice::GetInstance(WIFI_DEVICE_ABILITY_ID); in MedialibrarySubscriber() local
132 if (wifiDevicePtr == nullptr) { in MedialibrarySubscriber()
133 MEDIA_ERR_LOG("MedialibrarySubscriber wifiDevicePtr is null"); in MedialibrarySubscriber()
135 ErrCode ret = wifiDevicePtr->IsConnected(isWifiConn_); in MedialibrarySubscriber()
/foundation/multimedia/media_library/frameworks/services/media_thumbnail/src/
H A Dthumbnail_utils.cpp2405 auto wifiDevicePtr = Wifi::WifiDevice::GetInstance(WIFI_DEVICE_ABILITY_ID); in IsMobileNetworkEnabled() local
2406 if (wifiDevicePtr == nullptr) { in IsMobileNetworkEnabled()
2407 MEDIA_ERR_LOG("wifiDevicePtr is null"); in IsMobileNetworkEnabled()
2409 int32_t ret = wifiDevicePtr->IsConnected(isWifiConnected); in IsMobileNetworkEnabled()

Completed in 8 milliseconds