Searched refs:devices_ (Results 1 – 9 of 9) sorted by relevance
/system/bt/vendor_libs/test_vendor_lib/model/setup/ |
D | test_model.cc | 101 devices_.push_back(std::move(new_dev)); in Add() 102 return devices_.size() - 1; in Add() 106 if (dev_index >= devices_.size() || devices_[dev_index] == nullptr) { in Del() 112 devices_[dev_index]->UnregisterPhyLayers(); in Del() 113 devices_[dev_index] = nullptr; in Del() 134 if (dev_index >= devices_.size() || devices_[dev_index] == nullptr) { in AddDeviceToPhy() 142 auto dev = devices_[dev_index]; in AddDeviceToPhy() 151 if (dev_index >= devices_.size() || devices_[dev_index] == nullptr) { in DelDeviceFromPhy() 161 devices_[dev_index]->UnregisterPhyLayer( in DelDeviceFromPhy() 219 if (index >= devices_.size() || devices_[index] == nullptr) { in OnHciConnectionClosed() [all …]
|
D | test_model.h | 99 std::vector<std::shared_ptr<Device>> devices_; variable
|
/system/bt/bta/vc/ |
D | devices.h | 129 devices_.emplace_back(address, first_connection); in Add() 133 for (auto it = devices_.begin(); it != devices_.end(); it++) { in Remove() 135 it = devices_.erase(it); in Remove() 142 auto iter = std::find_if(devices_.begin(), devices_.end(), in FindByAddress() 147 return (iter == devices_.end()) ? nullptr : &(*iter); in FindByAddress() 152 std::find_if(devices_.begin(), devices_.end(), in FindByConnId() 157 return (iter == devices_.end()) ? nullptr : &(*iter); in FindByConnId() 160 size_t Size() { return (devices_.size()); } in Size() 162 void Clear() { devices_.clear(); } in Clear() 165 for (auto& device : devices_) { in DebugDump() [all …]
|
D | devices_test.cc | 52 devices_ = new VolumeControlDevices(); in SetUp() 60 delete devices_; in TearDown() 63 VolumeControlDevices* devices_ = nullptr; member in bluetooth::vc::internal::VolumeControlDevicesTest 70 ASSERT_EQ((size_t)0, devices_->Size()); in TEST_F() 71 devices_->Add(test_address_0, true); in TEST_F() 72 ASSERT_EQ((size_t)1, devices_->Size()); in TEST_F() 77 ASSERT_EQ((size_t)0, devices_->Size()); in TEST_F() 78 devices_->Add(test_address_0, true); in TEST_F() 79 devices_->Add(test_address_0, true); in TEST_F() 80 ASSERT_EQ((size_t)1, devices_->Size()); in TEST_F() [all …]
|
/system/update_engine/common/ |
D | fake_boot_control.h | 104 devices_.resize(num_slots_); in SetNumSlots() 113 devices_[slot][partition_name] = device; in SetPartitionDevice() 130 if (slot >= devices_.size()) { 133 auto device_path = devices_[slot].find(partition_name); 134 if (device_path == devices_[slot].end()) { 150 std::vector<std::map<std::string, std::string>> devices_; variable
|
/system/core/fs_mgr/libsnapshot/ |
D | utility.cpp | 50 for (auto it = devices_.rbegin(); it != devices_.rend(); ++it) { in ~AutoDeviceList() 56 for (auto&& p : devices_) { in Release()
|
D | utility.h | 49 devices_.emplace_back(std::make_unique<T>(std::forward<Args>(args)...)); in EmplaceBack() 54 std::vector<std::unique_ptr<AutoDevice>> devices_;
|
/system/bt/stack/eatt/ |
D | eatt_impl.h | 54 std::vector<eatt_device> devices_; member 71 auto iter = find_if(devices_.begin(), devices_.end(), in find_device_by_cid() 77 return (iter == devices_.end()) ? nullptr : &(*iter); in find_device_by_cid() 283 devices_.begin(), devices_.end(), in find_device_by_address() 286 return iter == devices_.end() ? nullptr : &(*iter); in find_device_by_address() 290 devices_.push_back(eatt_device(bd_addr, default_mtu_, max_mps_)); in add_eatt_device() 291 eatt_device* eatt_dev = &devices_.back(); in add_eatt_device()
|
/system/core/fs_mgr/libfiemap/ |
D | image_manager.cpp | 352 : control_(control), devices_(devices), commit_(false) {} in AutoDetachLoopDevices() 356 for (const auto& device : devices_) { in ~AutoDetachLoopDevices() 365 const std::vector<std::string>& devices_; member in android::fiemap::AutoDetachLoopDevices
|