Home
last modified time | relevance | path

Searched refs:iface_util_ (Results 1 – 11 of 11) sorted by relevance

/hardware/interfaces/wifi/aidl/default/tests/
Dwifi_iface_util_unit_tests.cpp53 WifiIfaceUtil* iface_util_ = new WifiIfaceUtil(iface_tool_, legacy_hal_); member in aidl::android::hardware::wifi::iface_util::WifiIfaceUtilTest
57 auto mac_address = iface_util_->getOrCreateRandomMacAddress(); in TEST_F()
61 ASSERT_EQ(mac_address, iface_util_->getOrCreateRandomMacAddress()); in TEST_F()
62 ASSERT_EQ(mac_address, iface_util_->getOrCreateRandomMacAddress()); in TEST_F()
78 iface_util_->registerIfaceEventHandlers(kIfaceName, event_handlers); in TEST_F()
80 ASSERT_TRUE(iface_util_->setMacAddress(kIfaceName, mac_address)); in TEST_F()
85 iface_util_->unregisterIfaceEventHandlers(kIfaceName); in TEST_F()
87 ASSERT_TRUE(iface_util_->setMacAddress(kIfaceName, mac_address)); in TEST_F()
Dwifi_nan_iface_unit_tests.cpp150 std::shared_ptr<NiceMock<iface_util::MockWifiIfaceUtil>> iface_util_{ member in aidl::android::hardware::wifi::WifiNanIfaceTest
159 EXPECT_CALL(*iface_util_, registerIfaceEventHandlers(testing::_, testing::_)) in TEST_F()
168 MockNanIface::createMock(kIfaceName, false, legacy_hal_, iface_util_); in TEST_F()
Dwifi_chip_unit_tests.cpp277 std::shared_ptr<NiceMock<iface_util::MockWifiIfaceUtil>> iface_util_{ member in aidl::android::hardware::wifi::WifiChipTest
284 chip_ = WifiChip::create(chip_id_, true, legacy_hal_, mode_controller_, iface_util_, in SetUp()
741 EXPECT_CALL(*iface_util_, setUpState(testing::_, testing::_)).Times(0); in TEST_F()
748 EXPECT_CALL(*iface_util_, ifNameToIndex("aware0")).WillOnce(testing::Return(4)); in TEST_F()
749 EXPECT_CALL(*iface_util_, setUpState("aware0", true)).WillOnce(testing::Return(true)); in TEST_F()
752 EXPECT_CALL(*iface_util_, setUpState("aware0", false)).WillOnce(testing::Return(true)); in TEST_F()
/hardware/interfaces/wifi/aidl/default/
Dwifi_ap_iface.cpp37 iface_util_(iface_util), in WifiApIface()
106 if (!iface_util_.lock()->setMacAddress(intf, rmac)) { in setMacAddressInternal()
116 if (!iface_util_.lock()->setMacAddress(ifname_, mac)) { in setMacAddressInternal()
125 std::array<uint8_t, 6> mac = iface_util_.lock()->getFactoryMacAddress(ifaceName); in getFactoryMacAddressInternal()
139 !iface_util_.lock()->setMacAddress(intf, getMacResult.first)) { in resetToFactoryMacAddressInternal()
149 if (!iface_util_.lock()->setMacAddress(ifname_, in resetToFactoryMacAddressInternal()
150 iface_util_.lock()->createRandomMacAddress())) { in resetToFactoryMacAddressInternal()
158 !iface_util_.lock()->setMacAddress(ifname_, getMacResult.first)) { in resetToFactoryMacAddressInternal()
Dwifi_ap_iface.h66 std::weak_ptr<iface_util::WifiIfaceUtil> iface_util_; variable
Dwifi_chip.cpp241 iface_util_(iface_util), in WifiChip()
806 ndk::SharedRefBase::make<WifiApIface>(ifname, ap_instances, legacy_hal_, iface_util_); in newWifiApIface()
854 if (!iface_util_->createBridge(br_ifname)) { in createBridgedApIfaceInternal()
861 if (!iface_util_->addIfaceToBridge(br_ifname, instance)) { in createBridgedApIfaceInternal()
932 if (!iface_util_->removeIfaceFromBridge(it.first, iface)) { in removeIfaceInstanceFromBridgedApIfaceInternal()
966 if (ifname.empty() || !iface_util_->ifNameToIndex(ifname)) { in createNanIfaceInternal()
973 WifiNanIface::create(ifname, is_dedicated_iface, legacy_hal_, iface_util_); in createNanIfaceInternal()
1071 std::shared_ptr<WifiStaIface> iface = WifiStaIface::create(ifname, legacy_hal_, iface_util_); in createStaIfaceInternal()
1854 iface_util_->removeIfaceFromBridge(it.first, iface); in invalidateAndClearBridgedApAll()
1857 iface_util_->deleteBridge(it.first); in invalidateAndClearBridgedApAll()
[all …]
Dwifi_nan_iface.cpp37 iface_util_(iface_util), in WifiNanIface()
642 iface_util_.lock()->registerIfaceEventHandlers(ifname_, event_handlers); in registerCallbackHandlers()
657 iface_util_.lock()->unregisterIfaceEventHandlers(ifname_); in invalidate()
663 iface_util_.lock()->setUpState(ifname_, false); in invalidate()
Dwifi_nan_iface.h143 std::weak_ptr<iface_util::WifiIfaceUtil> iface_util_; variable
Dwifi_sta_iface.cpp36 iface_util_(iface_util), in WifiStaIface()
705 bool status = iface_util_.lock()->setMacAddress(ifname_, mac); in setMacAddressInternal()
713 std::array<uint8_t, 6> mac = iface_util_.lock()->getFactoryMacAddress(ifname_); in getFactoryMacAddressInternal()
Dwifi_sta_iface.h157 std::weak_ptr<iface_util::WifiIfaceUtil> iface_util_; variable
Dwifi_chip.h280 std::shared_ptr<iface_util::WifiIfaceUtil> iface_util_; variable