Searched refs:DeviceType (Results 1 – 13 of 13) sorted by relevance
/system/bt/gd/hci/ |
D | enum_helper.h | 28 enum DeviceType { UNKNOWN = 0, BR_EDR = 1, LE = 2, DUAL = 3 }; enum 36 template <typename T, typename std::enable_if<std::is_same_v<T, hci::DeviceType>, int>::type = 0> 37 std::optional<hci::DeviceType> FromLegacyConfigString(const std::string& str) { in FromLegacyConfigString() 42 if (*raw_value < hci::DeviceType::UNKNOWN || *raw_value > hci::DeviceType::DUAL) { in FromLegacyConfigString() 45 return static_cast<hci::DeviceType>(*raw_value); in FromLegacyConfigString()
|
/system/bt/gd/storage/ |
D | device.cc | 30 using hci::DeviceType; 98 ASSERT(device_type == DeviceType::LE || device_type == DeviceType::DUAL); in Le() 105 ASSERT(device_type == DeviceType::BR_EDR || device_type == DeviceType::DUAL); in Classic()
|
D | device_test.cc | 28 using bluetooth::hci::DeviceType; 132 mutation.Add(device.SetDeviceType(DeviceType::BR_EDR)); in TEST() 135 ASSERT_THAT(device.GetDeviceType(), Optional(Eq(DeviceType::BR_EDR))); in TEST() 138 mutation.Add(device.SetDeviceType(DeviceType::LE)); in TEST() 141 ASSERT_THAT(device.GetDeviceType(), Optional(Eq(DeviceType::DUAL))); in TEST() 156 mutation.Add(device.SetDeviceType(DeviceType::BR_EDR)); in TEST() 159 ASSERT_THAT(device.GetDeviceType(), Optional(Eq(DeviceType::BR_EDR))); in TEST() 172 mutation.Add(device.SetDeviceType(DeviceType::LE)); in TEST() 175 ASSERT_THAT(device.GetDeviceType(), Optional(Eq(DeviceType::LE))); in TEST() 188 mutation.Add(device.SetDeviceType(DeviceType::DUAL)); in TEST() [all …]
|
D | device.h | 182 …GENERATE_PROPERTY_GETTER_SETTER_REMOVER_WITH_CUSTOM_SETTER(DeviceType, hci::DeviceType, "DevType",… 183 return static_cast<hci::DeviceType>(value | GetDeviceType().value_or(hci::DeviceType::UNKNOWN));
|
D | config_cache_test.cc | 286 Optional(StrEq(std::to_string(bluetooth::hci::DeviceType::BR_EDR)))); in TEST() 288 …config.SetProperty("CC:DD:EE:FF:00:11", "DevType", std::to_string(bluetooth::hci::DeviceType::BR_E… in TEST() 293 Optional(StrEq(std::to_string(bluetooth::hci::DeviceType::BR_EDR)))); in TEST() 298 Optional(StrEq(std::to_string(bluetooth::hci::DeviceType::DUAL)))); in TEST() 303 Optional(StrEq(std::to_string(bluetooth::hci::DeviceType::LE)))); in TEST()
|
D | adapter_config_test.cc | 25 using bluetooth::hci::DeviceType;
|
D | config_cache.cc | 371 hci::DeviceType device_type = hci::DeviceType::BR_EDR; in FixDeviceTypeInconsistencyInSection() 381 device_type = hci::DeviceType::DUAL; in FixDeviceTypeInconsistencyInSection() 383 device_type = hci::DeviceType::BR_EDR; in FixDeviceTypeInconsistencyInSection() 385 device_type = hci::DeviceType::LE; in FixDeviceTypeInconsistencyInSection()
|
D | le_device_test.cc | 28 using bluetooth::hci::DeviceType;
|
D | classic_device_test.cc | 27 using bluetooth::hci::DeviceType;
|
/system/bt/gd/security/record/ |
D | security_record_storage.cc | 29 if (*device.GetDeviceType() == hci::DeviceType::LE) { in SetClassicData() 40 if (*device.GetDeviceType() == hci::DeviceType::BR_EDR) { in SetLeData() 111 mutation.Add(device.SetDeviceType(hci::DeviceType::BR_EDR)); in SaveSecurityRecords() 113 mutation.Add(device.SetDeviceType(hci::DeviceType::DUAL)); in SaveSecurityRecords() 115 mutation.Add(device.SetDeviceType(hci::DeviceType::LE)); in SaveSecurityRecords() 132 …auto address_type = (device.GetDeviceType() == hci::DeviceType::BR_EDR) ? hci::AddressType::PUBLIC… in LoadSecurityRecords() 137 if (device.GetDeviceType() != hci::DeviceType::LE) { in LoadSecurityRecords() 140 if (device.GetDeviceType() != hci::DeviceType::BR_EDR) { in LoadSecurityRecords()
|
D | security_record_storage_test.cc | 108 ASSERT_EQ(hci::DeviceType::LE, device.GetDeviceType()); in TEST_F()
|
/system/bt/gd/proto/bluetooth/metrics/ |
D | bluetooth.proto | 63 enum DeviceType { enum 79 optional DeviceType device_type = 2;
|
/system/bt/main/shim/ |
D | le_scanning_manager.cc | 411 auto device_type = bluetooth::hci::DeviceType::LE; in handle_remote_properties() 417 device_type = bluetooth::hci::DeviceType::DUAL; in handle_remote_properties()
|