Home
last modified time | relevance | path

Searched refs:p2pInstance_ (Results 1 - 6 of 6) sorted by relevance

/foundation/CastEngine/castengine_wifi_display/services/impl/scene/wfd/
H A Dwfd_source_scene.cpp83 if (scene->p2pInstance_ == nullptr) { in OnP2pThisDeviceChanged()
89 if (scene->p2pInstance_->QueryP2pLinkedInfo(info)) { in OnP2pThisDeviceChanged()
164 if (scene == nullptr || scene->p2pInstance_ == nullptr) { in OnP2pConnectionChanged()
180 if (Wifi::ErrCode::WIFI_OPT_SUCCESS != scene->p2pInstance_->GetCurrentGroup(group)) { in OnP2pConnectionChanged()
307 p2pInstance_ = Wifi::WifiP2p::GetInstance(WIFI_P2P_ABILITY_ID); in Initialize()
308 RETURN_IF_NULL(p2pInstance_); in Initialize()
318 p2pInstance_->RegisterCallBack(wfdP2pCallback, event); in Initialize()
348 if (p2pInstance_) { in Release()
349 p2pInstance_->RemoveGroup(); in Release()
351 p2pInstance_ in Release()
[all...]
H A Dwfd_sink_scene.cpp124 if (parent && parent->p2pInstance_) { in OnP2pGcJoinGroup()
126 if (Wifi::ErrCode::WIFI_OPT_SUCCESS != parent->p2pInstance_->QueryP2pDevices(devices)) { in OnP2pGcJoinGroup()
239 p2pInstance_ = Wifi::WifiP2p::GetInstance(WIFI_P2P_ABILITY_ID); in Initialize()
240 RETURN_IF_NULL(p2pInstance_); in Initialize()
244 p2pInstance_->RegisterCallBack(wfdP2pCallback, event); in Initialize()
283 if (p2pInstance_) { in Release()
285 p2pInstance_->RemoveGroup(); in Release()
291 p2pInstance_.reset(); in Release()
417 RETURN_INVALID_IF_NULL(p2pInstance_); in HandleStart()
420 p2pInstance_ in HandleStart()
[all...]
H A Dwfd_source_scene.h138 std::shared_ptr<Wifi::WifiP2p> p2pInstance_; member in OHOS::Sharing::final
H A Dwfd_sink_scene.h132 std::shared_ptr<Wifi::WifiP2p> p2pInstance_; member in OHOS::Sharing::final
/foundation/CastEngine/castengine_wifi_display/tests/unittest/impl/scene/mock/
H A Dmock_wfd_source_scene.cpp34 p2pInstance_ = mockWifiP2pInstance_; in MockInitialize()
39 return p2pInstance_; in MockGetP2pInstance()
H A Dmock_wfd_sink_scene.cpp33 p2pInstance_ = mockWifiP2pInstance_; in MockInitialize()
38 return p2pInstance_; in MockGetP2pInstance()

Completed in 3 milliseconds