Home
last modified time | relevance | path

Searched refs:phy_index (Results 1 – 3 of 3) sorted by relevance

/aosp12/system/bt/vendor_libs/test_vendor_lib/model/setup/
H A Dtest_model.cc123 void TestModel::DelPhy(size_t phy_index) { in DelPhy() argument
124 if (phy_index >= phys_.size()) { in DelPhy()
125 LOG_WARN("Unknown phy at index %zu", phy_index); in DelPhy()
130 [this, phy_index]() { phys_[phy_index].UnregisterAllPhyLayers(); }); in DelPhy()
138 if (phy_index >= phys_.size()) { in AddDeviceToPhy()
139 LOG_WARN("Can't find phy %zu", phy_index); in AddDeviceToPhy()
143 dev->RegisterPhyLayer(phys_[phy_index].GetPhyLayer( in AddDeviceToPhy()
155 if (phy_index >= phys_.size()) { in DelDeviceFromPhy()
156 LOG_WARN("Can't find phy %zu", phy_index); in DelDeviceFromPhy()
160 [this, dev_index, phy_index]() { in DelDeviceFromPhy()
[all …]
H A Dtest_command_handler.cc193 size_t phy_index = std::stoi(args[0]); in DelPhy() local
195 model_.DelPhy(phy_index); in DelPhy()
196 …nse_string_ = "TestCommandHandler 'del_phy' called with phy at index " + std::to_string(phy_index); in DelPhy()
207 size_t phy_index = std::stoi(args[1]); in AddDeviceToPhy() local
208 model_.AddDeviceToPhy(dev_index, phy_index); in AddDeviceToPhy()
210 " and phy " + std::to_string(phy_index); in AddDeviceToPhy()
222 size_t phy_index = std::stoi(args[1]); in DelDeviceFromPhy() local
223 model_.DelDeviceFromPhy(dev_index, phy_index); in DelDeviceFromPhy()
225 " and phy " + std::to_string(phy_index); in DelDeviceFromPhy()
H A Dtest_model.h63 void DelPhy(size_t phy_index);
66 void AddDeviceToPhy(size_t device_index, size_t phy_index);
69 void DelDeviceFromPhy(size_t device_index, size_t phy_index);