Home
last modified time | relevance | path

Searched refs:DeviceType (Results 1 – 13 of 13) 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.cc28 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 …]
Ddevice.h182 …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));
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.cc25 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.cc28 using bluetooth::hci::DeviceType;
Dclassic_device_test.cc27 using bluetooth::hci::DeviceType;
/system/bt/gd/security/record/
Dsecurity_record_storage.cc29 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()
Dsecurity_record_storage_test.cc108 ASSERT_EQ(hci::DeviceType::LE, device.GetDeviceType()); in TEST_F()
/system/bt/gd/proto/bluetooth/metrics/
Dbluetooth.proto63 enum DeviceType { enum
79 optional DeviceType device_type = 2;
/system/bt/main/shim/
Dle_scanning_manager.cc411 auto device_type = bluetooth::hci::DeviceType::LE; in handle_remote_properties()
417 device_type = bluetooth::hci::DeviceType::DUAL; in handle_remote_properties()