Home
last modified time | relevance | path

Searched refs:DeviceType (Results 1 – 10 of 10) sorted by relevance

/system/bt/gd/hci/
Denum_helper.h28 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/
Ddevice.cc30 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()
Ddevice_test.cc30 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 …]
Ddevice.h180 …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));
Dconfig_cache_test.cc286 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()
Dadapter_config_test.cc27 using bluetooth::hci::DeviceType;
Dconfig_cache.cc371 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()
Dle_device_test.cc30 using bluetooth::hci::DeviceType;
Dclassic_device_test.cc29 using bluetooth::hci::DeviceType;
/system/bt/gd/proto/bluetooth/metrics/
Dbluetooth.proto63 enum DeviceType { enum
79 optional DeviceType device_type = 2;