Searched refs:DeviceType (Results 1 – 10 of 10) 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 | 30 using bluetooth::hci::DeviceType; 130 mutation.Add(device.SetDeviceType(DeviceType::BR_EDR)); in TEST() 133 ASSERT_THAT(device.GetDeviceType(), Optional(Eq(DeviceType::BR_EDR))); in TEST() 136 mutation.Add(device.SetDeviceType(DeviceType::LE)); in TEST() 139 ASSERT_THAT(device.GetDeviceType(), Optional(Eq(DeviceType::DUAL))); in TEST() 154 mutation.Add(device.SetDeviceType(DeviceType::BR_EDR)); in TEST() 157 ASSERT_THAT(device.GetDeviceType(), Optional(Eq(DeviceType::BR_EDR))); in TEST() 170 mutation.Add(device.SetDeviceType(DeviceType::LE)); in TEST() 173 ASSERT_THAT(device.GetDeviceType(), Optional(Eq(DeviceType::LE))); in TEST() 186 mutation.Add(device.SetDeviceType(DeviceType::DUAL)); in TEST() [all …]
|
D | device.h | 180 …GENERATE_PROPERTY_GETTER_SETTER_REMOVER_WITH_CUSTOM_SETTER(DeviceType, hci::DeviceType, "DevType",… 181 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 | 27 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 | 30 using bluetooth::hci::DeviceType;
|
D | classic_device_test.cc | 29 using bluetooth::hci::DeviceType;
|
/system/bt/gd/proto/bluetooth/metrics/ |
D | bluetooth.proto | 63 enum DeviceType { enum 79 optional DeviceType device_type = 2;
|